maint.mk: don't maintain a second build-aux variable.
[gnulib.git] / ChangeLog
1 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2
3         maint.mk: don't maintain a second build-aux variable.
4         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5         depends on GNUmakefile, which already maintains a cfg.mk
6         overridable $(_build-aux) for projects with a non-standard
7         build-aux directory location, although without the $(srcdir)
8         prefix.  Use that variable consistently instead of introducing a
9         second one.  Adjust all call sites.
10
11 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12
13         Add stdalign module and use it in other modules.
14         This is based on a previous proposal by Bruno Haible
15         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
16
17         stdalign: new module
18         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
19         * modules/stdalign: New files.
20         * MODULES.html.sh (c1x_core_properties): Add stdalign.
21         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
22
23         stdalign-tests: new module
24         * modules/stdalign-tests, tests/test-stdalign.c: New files.
25
26         argp: use stdalign
27         * lib/argp-parse.c: Include <stdalign.h>.
28         (alignof): Remove.
29         * modules/argp (Depends-on): Add stdalign.
30
31         crypto libraries: use stdalign
32         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
33         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
34         Do not include <stdlib.h> twice, in md4.c.
35         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
36         because we are accessing a pointer's bit-pattern, not a size.
37         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
38         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
39         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
40         * modules/crypto/sha512: Likewise.
41
42         sys_socket: use stdalign, not alignof
43         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
44         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45
46 2011-10-27  Bruno Haible  <bruno@clisp.org>
47
48         raise test: Avoid a test failure on Linux/MIPS.
49         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
50         because 99 is a valid signal on Linux/MIPS.
51
52 2011-10-27  Bruno Haible  <bruno@clisp.org>
53
54         nonblocking tests: Fix test failure on Linux/MIPS.
55         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
56         Set to 270000.
57
58 2011-10-27  Bruno Haible  <bruno@clisp.org>
59
60         utimensat: Work around problem on Linux/hppa.
61         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
62         values.
63         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
64
65 2011-10-25  Jim Meyering  <meyering@redhat.com>
66
67         maint.mk: fix a bug in sc_prohibit_stddef_without_use
68         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
69         after symbols like NULL, size_t, etc.
70         Reported by Alfred M. Szmidt.
71
72         maint.mk: exempt ENODATA from a syntax-check rule
73         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
74         from the sc_prohibit_always-defined_macros syntax-check rule.
75         Add a comment.  See this for more details:
76         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
77
78 2011-10-23  Jim Meyering  <meyering@redhat.com>
79
80         fts: close parent dir FD before returning from post-traversal fts_read
81         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
82         unlink A, even though an FD open on A remained.  This is suboptimal
83         (holding a file descriptor open longer than needed), but otherwise not
84         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
85         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
86         that represents a real problem: it causes the removal of A to fail
87         with e.g., "rm: cannot remove `A': Device or resource busy"
88
89         fts visits each directory twice and keeps a cache (fts_fd_ring) of
90         directory file descriptors.  After completing the final, FTS_DP,
91         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
92         cache, but then proceeded to add a new FD to it via the subsequent
93         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
94         final file descriptor would be closed only via fts_close's call to
95         fd_ring_clear.  Now, it is usually closed earlier, via the final
96         FTS_DP-returning fts_read call.
97         * lib/fts.c (restore_initial_cwd): New function, converted from
98         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
99         Update callers.
100         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
101         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
102
103 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
104             Bruno Haible  <bruno@clisp.org>
105             Jim Meyering  <jim@meyering.net>
106
107         readme-release: improve safety of release prep instructions.
108         * README-release: Don't git pull all branches when only master
109         is needed for the release process.
110         Run make maintainer-clean before changing trees and merging.
111         Don't try to run ./configure right after git pull in case files
112         that influence the bootstrap process have changed, move the
113         ./configure step to after running ./bootstrap.
114         Don't bootstrap "one last time"... it's the first time!
115
116 2011-10-22  Bruno Haible  <bruno@clisp.org>
117
118         errno, strerror-override: Support for MSVC 10.
119         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
120         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
121         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
122         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
123         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
124         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
125         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
126         Assign values compatible with MSVC 10.
127         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
128         New macros.
129         (GNULIB_defined_EWINSOCK): New macro.
130         * lib/strerror-override.c (strerror_override): Update accordingly.
131         * lib/strerror-override.h: Likewise.
132         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
133         longer equal to the corresponding errno value.
134         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
135
136 2011-10-22  Bruno Haible  <bruno@clisp.org>
137
138         perror: Recognize when test program crashes.
139         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
140         strerror, set gl_cv_func_perror_works to no.
141         Reported by Daniel Richard G. <skunk@iskunk.org>.
142
143         perror: Fix indentation.
144         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
145
146 2011-10-22  Bruno Haible  <bruno@clisp.org>
147
148         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
149         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
150         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
151         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
152         functions, not as a macro.
153         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
154         macros.
155         (isfinite, isinf, isnan, signbit): Check overloaded functions and
156         absence of macro.
157         Suggested by Eric Blake.
158         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
159
160 2011-10-21  Bruno Haible  <bruno@clisp.org>
161
162         relocatable-prog-wrapper: Don't leave object files behind.
163         * build-aux/install-reloc: Re-synchronize list of .o files to be
164         removed with list of compilation units.
165
166 2011-10-20  Bruno Haible  <bruno@clisp.org>
167
168         openpty, posix_openpt: Remove code duplication.
169         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
170         * lib/openpty.c: Include <stdlib.h>.
171         (openpty): Use posix_openpt on all platforms except IRIX.
172         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
173
174 2011-10-20  Bruno Haible  <bruno@clisp.org>
175
176         unlockpt: Detect invalid argument.
177         * lib/unlockpt.c: Include <fcntl.h>.
178         (unlockpt): Check whether fd is valid, using fcntl().
179         * modules/unlockpt (Depends-on): Add fcntl-h.
180
181 2011-10-20  Bruno Haible  <bruno@clisp.org>
182
183         openpty: Avoid compilation error on AIX 6.1.
184         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
185
186 2011-10-20  Bruno Haible  <bruno@clisp.org>
187
188         posix_openpt: Support for OpenBSD.
189         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
190         (posix_openpt) [OpenBSD]: New code.
191         * lib/grantpt.c: Include <fcntl.h>.
192         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
193         * modules/grantpt (Depends-on): Add fcntl-h.
194
195 2011-10-20  Bruno Haible  <bruno@clisp.org>
196
197         posix_openpt test: Coding style.
198         * tests/test-posix_openpt.c: Use GNU coding style.
199
200 2011-10-20  Bruno Haible  <bruno@clisp.org>
201
202         grantpt: Support --avoid=pt_chown.
203         * modules/grantpt (Files): Add lib/pty-private.h.
204
205 2011-10-20  Bruno Haible  <bruno@clisp.org>
206
207         posix_openpt: Fix autoconf macro.
208         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
209         unneeded check for _getpty.
210
211 2011-10-20  Bruno Haible  <bruno@clisp.org>
212
213         openpty: Update comments.
214         * lib/openpty.c: Add comments about Minix.
215
216 2011-10-19  Eric Blake  <eblake@redhat.com>
217
218         openpty: relax license
219         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
220
221         pt_chown: use configmake to simplify build
222         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
223
224         ptsname and others: relax license
225         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
226         * modules/unlockpt (License): Likewise.
227         * modules/pt_chown (License): Likewise.
228         * modules/ptsname (License): Likewise.
229         * modules/ttyname_r (License): Likewise.
230
231 2011-10-19  Jim Meyering  <meyering@redhat.com>
232
233         posix_openpt: remove spurious #endif
234         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
235
236 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
237
238         maint.mk: Respect $(build_aux) in web-manual rule.
239         * top/maint.mk (web-manual): Find gen-announce script in user's
240         $(build_aux) directory instead of hard-coding 'build-aux'.
241
242 2011-10-19  Bruno Haible  <bruno@clisp.org>
243
244         posix_openpt: Fix compilation error.
245         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
246         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
247         Mention the openpty module as an alternative.
248
249 2011-10-19  Bruno Haible  <bruno@clisp.org>
250
251         Support for old NeXTstep 3.3 frexp().
252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
253         execution time of the test to 5 seconds.
254         Reported by Daniel Richard G. <skunk@iskunk.org>.
255
256 2011-10-19  Bruno Haible  <bruno@clisp.org>
257
258         Support for old NeXTstep 3.3 sed.
259         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
260         part, use /.../, not \|...|. Escape periods in the header file name.
261         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
262         Reported by Daniel Richard G. <skunk@iskunk.org>.
263
264 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
265
266         Support for old NeXTstep 3.3 gcc.
267         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
268         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
269         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
270         * lib/spawn.in.h (_Restrict_arr_): Likewise.
271         * lib/regex.h (_Restrict_arr_): Likewise.
272         * lib/regex_internal.h (re_token_t): Likewise.
273         * lib/regexec.c (check_node_accept_bytes): Likewise.
274         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
275
276 2011-10-18  Eric Blake  <eblake@redhat.com>
277
278         posix_openpt: new module
279         * modules/posix_openpt: New module.
280         * m4/posix_openpt.m4: New file.
281         * lib/posix_openpt.c: Likewise.
282         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
283         (gl_STDLIB_H_DEFAULTS): Set defaults.
284         * modules/stdlib (Makefile.am): Substitute macros.
285         * lib/stdlib.in.h (posix_openpt): Declare.
286         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
287         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
288         * modules/posix_openpt-tests: New test module.
289         * tests/test-posix_openpt.c: New test.
290
291 2011-10-15  Bruno Haible  <bruno@clisp.org>
292
293         xstrtoll: Fix compilation failure.
294         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
295         from lib/strtol.c.
296         * doc/posix-headers/limits.texi: Mention missing numerical limits on
297         some platforms.
298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
299
300 2011-10-15  Bruno Haible  <bruno@clisp.org>
301
302         vasnprintf: Optimize bit search operation.
303         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
305         gl_DOUBLE_EXPONENT_LOCATION.
306         * modules/vasnprintf (Files): Add m4/exponentd.m4.
307         * modules/unistdio/u8-vasnprintf (Files): Likewise.
308         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
309         * modules/unistdio/u16-vasnprintf (Files): Likewise.
310         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
311         * modules/unistdio/u32-vasnprintf (Files): Likewise.
312         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
313         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
314         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
315
316 2011-10-15  Bruno Haible  <bruno@clisp.org>
317
318         vasnprintf: Fix comments.
319         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
320
321 2011-10-14  Bruno Haible  <bruno@clisp.org>
322
323         Tests for module 'integer_length_ll'.
324         * modules/integer_length_ll-tests: New file.
325         * tests/test-integer_length_ll.c: New file.
326
327         New module 'integer_length_ll'.
328         * lib/integer_length_ll.c: New file.
329         * modules/integer_length_ll: New file.
330
331 2011-10-14  Bruno Haible  <bruno@clisp.org>
332
333         Tests for module 'integer_length_l'.
334         * modules/integer_length_l-tests: New file.
335         * tests/test-integer_length_l.c: New file.
336
337         New module 'integer_length_l'.
338         * lib/integer_length_l.c: New file.
339         * modules/integer_length_l: New file.
340
341 2011-10-14  Bruno Haible  <bruno@clisp.org>
342
343         Tests for module 'integer_length'.
344         * modules/integer_length-tests: New file.
345         * tests/test-integer_length.c: New file.
346
347         New module 'integer_length'.
348         * lib/integer_length.h: New file.
349         * lib/integer_length.c: New file.
350         * modules/integer_length: New file.
351
352 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
353
354         popen: Fix dependency conditions.
355         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
356
357 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
358
359         perror: Fix autoconf test.
360         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
361         <stdlib.h> and <string.h>.
362
363 2011-10-14  Bruno Haible  <bruno@clisp.org>
364
365         ffsl: Optimize on 64-bit platforms.
366         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
367         unrolling.
368
369 2011-10-13  Bruno Haible  <bruno@clisp.org>
370
371         ffsl: Optimize on 32-bit platforms.
372         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
373         use ffs() without a loop.
374
375         ffsl, ffsll: Optimize for GCC.
376         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
377         * lib/ffsl.c (GCC_BUILTIN): New macro.
378         * lib/ffsll.c (GCC_BUILTIN): Likewise.
379
380 2011-10-13  Bruno Haible  <bruno@clisp.org>
381
382         ffs, bcopy, memset: Support symbol renaming via config.h.
383         * lib/ffs.c: Include <config.h>.
384         * lib/bcopy.c: Likewise.
385         * lib/memset.c: Likewise.
386
387 2011-10-10  Bruno Haible  <bruno@clisp.org>
388
389         atanl: Simplify for platforms where 'long double' == 'double'.
390         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
391         alternative implementation.
392         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
393         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
394         * modules/atanl (Depends-on): Add atan. Update conditions.
395
396 2011-10-10  Bruno Haible  <bruno@clisp.org>
397
398         acosl: Simplify for platforms where 'long double' == 'double'.
399         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
400         alternative implementation.
401         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
402         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
403         * modules/acosl (Depends-on): Add acos. Update conditions.
404
405 2011-10-10  Bruno Haible  <bruno@clisp.org>
406
407         asinl: Simplify for platforms where 'long double' == 'double'.
408         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
409         alternative implementation.
410         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
411         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
412         * modules/asinl (Depends-on): Add asin. Update conditions.
413
414 2011-10-10  Bruno Haible  <bruno@clisp.org>
415
416         tanl: Simplify for platforms where 'long double' == 'double'.
417         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
418         implementation.
419         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
420         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
421         * modules/tanl (Depends-on): Add tan. Update conditions.
422         (configure.ac): Don't compile trigl.c if
423         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
424
425 2011-10-10  Bruno Haible  <bruno@clisp.org>
426
427         cosl: Simplify for platforms where 'long double' == 'double'.
428         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
429         implementation.
430         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
431         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
432         * modules/cosl (Depends-on): Add cos. Update conditions.
433         (configure.ac): Don't compile sincosl.c and trigl.c if
434         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
435
436 2011-10-10  Bruno Haible  <bruno@clisp.org>
437
438         sinl: Simplify for platforms where 'long double' == 'double'.
439         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
440         implementation.
441         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
442         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
443         * modules/sinl (Depends-on): Add sin. Update conditions.
444         (configure.ac): Don't compile sincosl.c and trigl.c if
445         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
446
447 2011-10-10  Bruno Haible  <bruno@clisp.org>
448
449         logl: Simplify for platforms where 'long double' == 'double'.
450         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
451         implementation.
452         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
453         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
454         * modules/logl (Depends-on): Add log. Update conditions.
455
456 2011-10-10  Bruno Haible  <bruno@clisp.org>
457
458         expl: Simplify for platforms where 'long double' == 'double'.
459         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
460         implementation.
461         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
462         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
463         * modules/expl (Depends-on): Add exp. Update conditions.
464
465 2011-10-10  Bruno Haible  <bruno@clisp.org>
466
467         sqrtl: Simplify for platforms where 'long double' == 'double'.
468         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
469         alternative implementation.
470         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
471         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
472         * modules/sqrtl (Depends-on): Update conditions.
473
474 2011-10-10  Bruno Haible  <bruno@clisp.org>
475
476         ldexpl: Simplify for platforms where 'long double' == 'double'.
477         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
478         alternative implementation.
479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
480         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
481         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
482
483 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
484
485         ffsll: set correct witness
486         * modules/ffsll (configure.ac): Fix typo.
487
488 2011-10-10  Bruno Haible  <bruno@clisp.org>
489
490         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
491         * lib/printf-frexpl.c: Include <config.h>.
492         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
493         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
494         second time.
495         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
496         gl_LONG_DOUBLE_VS_DOUBLE.
497         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
498         conditions.
499
500 2011-10-10  Bruno Haible  <bruno@clisp.org>
501
502         frexpl: Simplify for platforms where 'long double' == 'double'.
503         * lib/frexpl.c: Include <config.h>.
504         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
505         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
506         time.
507         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
508         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
509         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
510         * modules/frexpl (Depends-on): Add frexp. Update conditions.
511         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
512         conditions.
513
514 2011-10-10  Jim Meyering  <meyering@redhat.com>
515
516         test-renameat: don't leave behind a temporary file
517         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
518           ERROR: files left in build directory after distclean:
519           ./gltests/test-renameat.too
520           make[1]: *** [distcleancheck] Error 1
521         Reported by Tom G. Christensen.
522
523 2011-10-09  Bruno Haible  <bruno@clisp.org>
524
525         rint: Determine RINT_LIBM correctly on AIX 7.
526         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
527         directly, not only through a function pointer. Also accept an optional
528         4th argument with extra code.
529         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
530         rintf() call by gcc when optimizing.
531
532         mathfunc.m4: Refactor.
533         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
534         m4 variable.
535
536 2011-10-09  Bruno Haible  <bruno@clisp.org>
537
538         rintl: Simplify for platforms where 'long double' == 'double'.
539         * lib/rintl.c: Include <config.h>.
540         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
541         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
542         time.
543         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
544         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
545         * modules/rintl (Depends-on): Add rint. Update conditions.
546
547 2011-10-09  Bruno Haible  <bruno@clisp.org>
548
549         roundl: Simplify for platforms where 'long double' == 'double'.
550         * lib/roundl.c: Include <config.h>.
551         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
552         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
553         time.
554         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
555         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
556         * modules/roundl (Depends-on): Add round. Update conditions.
557
558 2011-10-09  Bruno Haible  <bruno@clisp.org>
559
560         truncl: Simplify for platforms where 'long double' == 'double'.
561         * lib/truncl.c: Include <config.h>.
562         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
563         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
564         time.
565         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
566         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
567         * modules/truncl (Depends-on): Add trunc. Update conditions.
568
569 2011-10-09  Bruno Haible  <bruno@clisp.org>
570
571         ceill: Simplify for platforms where 'long double' == 'double'.
572         * lib/ceill.c: Include <config.h>.
573         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
574         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
575         time.
576         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
577         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
578         * modules/ceill (Depends-on): Add ceil. Update conditions.
579
580 2011-10-09  Bruno Haible  <bruno@clisp.org>
581
582         floorl: Simplify for platforms where 'long double' == 'double'.
583         * lib/floorl.c: Include <config.h>.
584         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
585         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
586         time.
587         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
588         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
589         * modules/floorl (Depends-on): Add floor. Update conditions.
590
591 2011-10-09  Bruno Haible  <bruno@clisp.org>
592
593         rint: Fix ordering constraints.
594         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
595         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
596         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
597
598 2011-10-09  Bruno Haible  <bruno@clisp.org>
599
600         copysignl: Simplify for platforms where 'long double' == 'double'.
601         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
602         alternative.
603         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
604         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
605         * modules/copysignl (Depends-on): Add copysign. Update conditions.
606
607 2011-10-09  Bruno Haible  <bruno@clisp.org>
608
609         Tests for module 'rintl'.
610         * modules/rintl-tests: New file.
611         * tests/test-rintl.c: New file.
612
613         New module 'rintl'.
614         * lib/math.in.h (rintl): New declaration.
615         * lib/rintl.c: New file.
616         * m4/rintl.m4: New file.
617         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
619         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
620         * modules/rintl: New file.
621         * tests/test-math-c++.cc: Check the declaration of rintl.
622         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
623         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
624         * doc/posix-functions/rintl.texi: Mention the new module.
625
626 2011-10-09  Bruno Haible  <bruno@clisp.org>
627
628         Tests for module 'rintf'.
629         * modules/rintf-tests: New file.
630         * tests/test-rintf.c: New file.
631
632         New module 'rintf'.
633         * lib/math.in.h (rintf): New declaration.
634         * lib/rintf.c: New file.
635         * m4/rintf.m4: New file.
636         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
638         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
639         * modules/rintf: New file.
640         * tests/test-math-c++.cc: Check the declaration of rintf.
641         * doc/posix-functions/rintf.texi: Mention the new module.
642
643 2011-10-09  Bruno Haible  <bruno@clisp.org>
644
645         rint: Support for MSVC.
646         * lib/math.in.h (rint): New declaration.
647         * lib/rint.c: New file.
648         * m4/rint.m4: New file.
649         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
651         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
652         * modules/rint (Description): Fix.
653         (Files): Add lib/rint.c, m4/rint.m4.
654         (Depends-on): Add math.
655         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
656         gl_MATH_MODULE_INDICATOR.
657         * tests/test-math-c++.cc: Check the declaration of rint.
658         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
659         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
660         * doc/posix-functions/rint.texi: Mention the replacement provided by
661         the module.
662
663         rint tests: More tests.
664         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
665         minus-zero.h, infinity.h, nan.h.
666         (main): Skip the test if the current rounding mode is not standard. Add
667         tests for negative numbers, minus zero, infinity, NaN.
668         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
669         tests/nan.h.
670         (Depends-on): Add isnand-nolibm.
671
672 2011-10-09  Bruno Haible  <bruno@clisp.org>
673
674         Tests for module 'copysignl'.
675         * modules/copysignl-tests: New file.
676         * tests/test-copysignl.c: New file.
677
678         New module 'copysignl'.
679         * lib/math.in.h (copysignl): New declaration.
680         * lib/copysignl.c: New file.
681         * m4/copysignl.m4: New file.
682         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
684         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
685         HAVE_COPYSIGNL.
686         * modules/copysignl: New file.
687         * tests/test-math-c++.cc: Check the declaration of copysignl.
688         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
689         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
690         * doc/posix-functions/copysignl.texi: Mention the new module.
691
692 2011-10-09  Bruno Haible  <bruno@clisp.org>
693
694         Tests for module 'copysignf'.
695         * modules/copysignf-tests: New file.
696         * tests/test-copysignf.c: New file.
697
698         New module 'copysignf'.
699         * lib/math.in.h (copysignf): New declaration.
700         * lib/copysignf.c: New file.
701         * m4/copysignf.m4: New file.
702         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
704         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
705         HAVE_COPYSIGNF.
706         * modules/copysignf: New file.
707         * tests/test-math-c++.cc: Check the declaration of copysignf.
708         * doc/posix-functions/copysignf.texi: Mention the new module.
709
710 2011-10-09  Bruno Haible  <bruno@clisp.org>
711
712         Ensure that HAVE_* variables are set to 1 before they are set to 0.
713         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
714         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
715         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
716         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
717         gl_SIGNAL_H_DEFAULTS.
718
719 2011-10-09  Bruno Haible  <bruno@clisp.org>
720
721         poll: Make macro safer.
722         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
723         ac_cv_header_poll_h is not set.
724
725 2011-10-09  Bruno Haible  <bruno@clisp.org>
726
727         copysign: Provide replacement.
728         * lib/math.in.h (copysign): New declaration.
729         * lib/copysign.c: New file.
730         * m4/copysign.m4: New file.
731         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
733         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
734         HAVE_COPYSIGN.
735         * modules/copysign (Description): Clarify.
736         (Files): Add lib/copysign.c, m4/copysign.m4.
737         (Depends-on): Add math, signbit.
738         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
739         gl_MATH_MODULE_INDICATOR.
740         * tests/test-math-c++.cc: Check the declaration of copysign.
741         * doc/posix-functions/copysign.texi: Mention the effects of the module
742         on Minix and MSVC.
743
744 2011-10-09  Bruno Haible  <bruno@clisp.org>
745
746         isinf: Ensure macro on AIX 5.1.
747         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
748         macro.
749         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
750
751 2011-10-09  Bruno Haible  <bruno@clisp.org>
752
753         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
754         * modules/snprintf-posix-tests (configure.ac): Require
755         gl_LONG_DOUBLE_VS_DOUBLE.
756         * modules/sprintf-posix-tests (configure.ac): Likewise.
757         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
758         * modules/vasprintf-posix-tests (configure.ac): Likewise.
759         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
760         * modules/vsprintf-posix-tests (configure.ac): Likewise.
761         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
762         tests on platforms where 'long double' is the same as 'double'.
763         * tests/test-sprintf-posix.h (test_function): Likewise.
764         * tests/test-vasnprintf-posix.c (test_function): Likewise.
765         * tests/test-vasprintf-posix.c (test_function): Likewise.
766
767         *printf: Fix for platforms where 'long double' == 'double'.
768         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
769         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
770         * modules/dprintf-posix (Files): Add m4/math_h.m4.
771         * modules/fprintf-posix (Files): Likewise.
772         * modules/obstack-printf-posix (Files): Likewise.
773         * modules/snprintf-posix (Files): Likewise.
774         * modules/sprintf-posix (Files): Likewise.
775         * modules/vasnprintf (Files): Likewise.
776         * modules/vasnprintf-posix (Files): Likewise.
777         * modules/vasprintf-posix (Files): Likewise.
778         * modules/vdprintf-posix (Files): Likewise.
779         * modules/vfprintf-posix (Files): Likewise.
780         * modules/vsnprintf-posix (Files): Likewise.
781         * modules/vsprintf-posix (Files): Likewise.
782         * modules/unistdio/u8-vasnprintf (Files): Likewise.
783         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
784         * modules/unistdio/u16-vasnprintf (Files): Likewise.
785         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
786         * modules/unistdio/u32-vasnprintf (Files): Likewise.
787         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
788         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
789
790         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
791         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
792         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
793         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
794         'long double'.
795         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
796
797         isinf: Fix for platforms where 'long double' == 'double'.
798         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
799         Don't blindly assume 80-bit 'long double'.
800
801         isfinite: Fix for platforms where 'long double' == 'double'.
802         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
803         Don't blindly assume 80-bit 'long double'.
804
805         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
806         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
807         * modules/isfinite-tests (configure.ac): Require
808         gl_LONG_DOUBLE_VS_DOUBLE.
809         * modules/isinf-tests (configure.ac): Likewise.
810         * modules/isnan-tests (configure.ac): Likewise.
811         * modules/isnanl-tests (configure.ac): Likewise.
812         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
813         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
814         tests on platforms where 'long double' is the same as 'double'.
815         * tests/test-isinf.c (test_isinfl): Likewise.
816         * tests/test-isnan.c (test_long_double): Likewise.
817         * tests/test-isnanl.h (main): Likewise.
818
819 2011-10-08  Bruno Haible  <bruno@clisp.org>
820
821         Tests for module 'tanhf'.
822         * modules/tanhf-tests: New file.
823         * tests/test-tanhf.c: New file.
824
825         New module 'tanhf'.
826         * lib/math.in.h (tanhf): New declaration.
827         * lib/tanhf.c: New file.
828         * m4/tanhf.m4: New file.
829         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
831         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
832         * modules/tanhf: New file.
833         * tests/test-math-c++.cc: Check the declaration of tanhf.
834         * doc/posix-functions/tanhf.texi: Mention the new module.
835
836         tanh: Use a .m4 file.
837         * m4/tanh.m4: New file.
838         * modules/tanh (Files): Add it.
839         (configure.ac): Just invoke gl_FUNC_TANH.
840
841 2011-10-08  Bruno Haible  <bruno@clisp.org>
842
843         Tests for module 'coshf'.
844         * modules/coshf-tests: New file.
845         * tests/test-coshf.c: New file.
846
847         New module 'coshf'.
848         * lib/math.in.h (coshf): New declaration.
849         * lib/coshf.c: New file.
850         * m4/coshf.m4: New file.
851         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
853         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
854         * modules/coshf: New file.
855         * tests/test-math-c++.cc: Check the declaration of coshf.
856         * doc/posix-functions/coshf.texi: Mention the new module.
857
858         cosh: Use a .m4 file.
859         * m4/cosh.m4: New file.
860         * modules/cosh (Files): Add it.
861         (configure.ac): Just invoke gl_FUNC_COSH.
862
863 2011-10-08  Bruno Haible  <bruno@clisp.org>
864
865         Tests for module 'sinhf'.
866         * modules/sinhf-tests: New file.
867         * tests/test-sinhf.c: New file.
868
869         New module 'sinhf'.
870         * lib/math.in.h (sinhf): New declaration.
871         * lib/sinhf.c: New file.
872         * m4/sinhf.m4: New file.
873         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
875         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
876         * modules/sinhf: New file.
877         * tests/test-math-c++.cc: Check the declaration of sinhf.
878         * doc/posix-functions/sinhf.texi: Mention the new module.
879
880         sinh: Use a .m4 file.
881         * m4/sinh.m4: New file.
882         * modules/sinh (Files): Add it.
883         (configure.ac): Just invoke gl_FUNC_SINH.
884
885 2011-10-08  Bruno Haible  <bruno@clisp.org>
886
887         Tests for module 'atan2f'.
888         * modules/atan2f-tests: New file.
889         * tests/test-atan2f.c: New file.
890
891         New module 'atan2f'.
892         * lib/math.in.h (atan2f): New declaration.
893         * lib/atan2f.c: New file.
894         * m4/atan2f.m4: New file.
895         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
897         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
898         * modules/atan2f: New file.
899         * tests/test-math-c++.cc: Check the declaration of atan2f.
900         * doc/posix-functions/atan2f.texi: Mention the new module.
901
902         atan2: Use a .m4 file.
903         * m4/atan2.m4: New file.
904         * modules/atan2 (Files): Add it.
905         (configure.ac): Just invoke gl_FUNC_ATAN2.
906
907 2011-10-08  Bruno Haible  <bruno@clisp.org>
908
909         Tests for module 'atanf'.
910         * modules/atanf-tests: New file.
911         * tests/test-atanf.c: New file.
912
913         New module 'atanf'.
914         * lib/math.in.h (atanf): New declaration.
915         * lib/atanf.c: New file.
916         * m4/atanf.m4: New file.
917         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
919         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
920         * modules/atanf: New file.
921         * tests/test-math-c++.cc: Check the declaration of atanf.
922         * doc/posix-functions/atanf.texi: Mention the new module.
923
924         atan: Use a .m4 file.
925         * m4/atan.m4: New file.
926         * modules/atan (Files): Add it.
927         (configure.ac): Just invoke gl_FUNC_ATAN.
928
929 2011-10-08  Bruno Haible  <bruno@clisp.org>
930
931         Tests for module 'acosf'.
932         * modules/acosf-tests: New file.
933         * tests/test-acosf.c: New file.
934
935         New module 'acosf'.
936         * lib/math.in.h (acosf): New declaration.
937         * lib/acosf.c: New file.
938         * m4/acosf.m4: New file.
939         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
941         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
942         * modules/acosf: New file.
943         * tests/test-math-c++.cc: Check the declaration of acosf.
944         * doc/posix-functions/acosf.texi: Mention the new module.
945
946         acos: Use a .m4 file.
947         * m4/acos.m4: New file.
948         * modules/acos (Files): Add it.
949         (configure.ac): Just invoke gl_FUNC_ACOS.
950
951 2011-10-08  Bruno Haible  <bruno@clisp.org>
952
953         Tests for module 'asinf'.
954         * modules/asinf-tests: New file.
955         * tests/test-asinf.c: New file.
956
957         New module 'asinf'.
958         * lib/math.in.h (asinf): New declaration.
959         * lib/asinf.c: New file.
960         * m4/asinf.m4: New file.
961         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
963         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
964         * modules/asinf: New file.
965         * tests/test-math-c++.cc: Check the declaration of asinf.
966         * doc/posix-functions/asinf.texi: Mention the new module.
967
968         asin: Use a .m4 file.
969         * m4/asin.m4: New file.
970         * modules/asin (Files): Add it.
971         (configure.ac): Just invoke gl_FUNC_ASIN.
972
973 2011-10-08  Bruno Haible  <bruno@clisp.org>
974
975         Tests for module 'tanf'.
976         * modules/tanf-tests: New file.
977         * tests/test-tanf.c: New file.
978
979         New module 'tanf'.
980         * lib/math.in.h (tanf): New declaration.
981         * lib/tanf.c: New file.
982         * m4/tanf.m4: New file.
983         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
985         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
986         * modules/tanf: New file.
987         * tests/test-math-c++.cc: Check the declaration of tanf.
988         * doc/posix-functions/tanf.texi: Mention the new module.
989
990         tan: Use a .m4 file.
991         * m4/tan.m4: New file.
992         * modules/tan (Files): Add it.
993         (configure.ac): Just invoke gl_FUNC_TAN.
994
995 2011-10-08  Bruno Haible  <bruno@clisp.org>
996
997         Tests for module 'cosf'.
998         * modules/cosf-tests: New file.
999         * tests/test-cosf.c: New file.
1000
1001         New module 'cosf'.
1002         * lib/math.in.h (cosf): New declaration.
1003         * lib/cosf.c: New file.
1004         * m4/cosf.m4: New file.
1005         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1007         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1008         * modules/cosf: New file.
1009         * tests/test-math-c++.cc: Check the declaration of cosf.
1010         * doc/posix-functions/cosf.texi: Mention the new module.
1011
1012         cos: Use a .m4 file.
1013         * m4/cos.m4: New file.
1014         * modules/cos (Files): Add it.
1015         (configure.ac): Just invoke gl_FUNC_COS.
1016
1017 2011-10-08  Bruno Haible  <bruno@clisp.org>
1018
1019         Tests for module 'sinf'.
1020         * modules/sinf-tests: New file.
1021         * tests/test-sinf.c: New file.
1022
1023         New module 'sinf'.
1024         * lib/math.in.h (sinf): New declaration.
1025         * lib/sinf.c: New file.
1026         * m4/sinf.m4: New file.
1027         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1029         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1030         * modules/sinf: New file.
1031         * tests/test-math-c++.cc: Check the declaration of sinf.
1032         * doc/posix-functions/sinf.texi: Mention the new module.
1033
1034         sin: Use a .m4 file.
1035         * m4/sin.m4: New file.
1036         * modules/sin (Files): Add it.
1037         (configure.ac): Just invoke gl_FUNC_SIN.
1038
1039 2011-10-08  Bruno Haible  <bruno@clisp.org>
1040
1041         Tests for module 'powf'.
1042         * modules/powf-tests: New file.
1043         * tests/test-powf.c: New file.
1044
1045         New module 'powf'.
1046         * lib/math.in.h (powf): New declaration.
1047         * lib/powf.c: New file.
1048         * m4/powf.m4: New file.
1049         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1051         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1052         * modules/powf: New file.
1053         * tests/test-math-c++.cc: Check the declaration of powf.
1054         * doc/posix-functions/powf.texi: Mention the new module.
1055
1056         pow: Use a .m4 file.
1057         * m4/pow.m4: New file.
1058         * modules/pow (Files): Add it.
1059         (configure.ac): Just invoke gl_FUNC_POW.
1060
1061 2011-10-08  Bruno Haible  <bruno@clisp.org>
1062
1063         Tests for module 'log10f'.
1064         * modules/log10f-tests: New file.
1065         * tests/test-log10f.c: New file.
1066
1067         New module 'log10f'.
1068         * lib/math.in.h (log10f): New declaration.
1069         * lib/log10f.c: New file.
1070         * m4/log10f.m4: New file.
1071         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1073         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1074         * modules/log10f: New file.
1075         * tests/test-math-c++.cc: Check the declaration of log10f.
1076         * doc/posix-functions/log10f.texi: Mention the new module.
1077
1078         log10: Use a .m4 file.
1079         * m4/log10.m4: New file.
1080         * modules/log10 (Files): Add it.
1081         (configure.ac): Just invoke gl_FUNC_LOG10.
1082
1083 2011-10-08  Bruno Haible  <bruno@clisp.org>
1084
1085         Tests for module 'logf'.
1086         * modules/logf-tests: New file.
1087         * tests/test-logf.c: New file.
1088
1089         New module 'logf'.
1090         * lib/math.in.h (logf): New declaration.
1091         * lib/logf.c: New file.
1092         * m4/logf.m4: New file.
1093         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1095         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1096         * modules/logf: New file.
1097         * tests/test-math-c++.cc: Check the declaration of logf.
1098         * doc/posix-functions/logf.texi: Mention the new module.
1099
1100         log: Use a .m4 file.
1101         * m4/log.m4: New file.
1102         * modules/log (Files): Add it.
1103         (configure.ac): Just invoke gl_FUNC_LOG.
1104
1105 2011-10-08  Bruno Haible  <bruno@clisp.org>
1106
1107         Tests for module 'expf'.
1108         * modules/expf-tests: New file.
1109         * tests/test-expf.c: New file.
1110
1111         New module 'expf'.
1112         * lib/math.in.h (expf): New declaration.
1113         * lib/expf.c: New file.
1114         * m4/expf.m4: New file.
1115         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1117         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1118         * modules/expf: New file.
1119         * tests/test-math-c++.cc: Check the declaration of expf.
1120         * doc/posix-functions/expf.texi: Mention the new module.
1121
1122         exp: Use a .m4 file.
1123         * m4/exp.m4: New file.
1124         * modules/exp (Files): Add it.
1125         (configure.ac): Just invoke gl_FUNC_EXP.
1126
1127 2011-10-08  Bruno Haible  <bruno@clisp.org>
1128
1129         Tests for module 'sqrtf'.
1130         * modules/sqrtf-tests: New file.
1131         * tests/test-sqrtf.c: New file.
1132
1133         New module 'sqrtf'.
1134         * lib/math.in.h (sqrtf): New declaration.
1135         * lib/sqrtf.c: New file.
1136         * m4/sqrtf.m4: New file.
1137         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1139         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1140         * modules/sqrtf: New file.
1141         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1142         * doc/posix-functions/sqrtf.texi: Mention the new module.
1143
1144 2011-10-08  Bruno Haible  <bruno@clisp.org>
1145
1146         Tests: Avoid link failures w.r.t. libintl.
1147         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1148         $(LIBINTL).
1149         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1150         $(LIBINTL).
1151         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1152         against $(LIBINTL).
1153         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1154         $(LIBINTL).
1155         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1156         $(LIBINTL).
1157         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1158
1159 2011-10-08  Bruno Haible  <bruno@clisp.org>
1160
1161         pow tests: Defeat compiler optimizations.
1162         * tests/test-pow.c (main): Assign arguments to x and y before use.
1163
1164 2011-10-08  Bruno Haible  <bruno@clisp.org>
1165
1166         gnulib-tool: Improve last commit.
1167         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1168         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1169         ignore dependencies that are not among the modules list.
1170
1171 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1172
1173         gnulib-tool: don't follow dependencies to avoided modules
1174         This fixes a bug that is related to the previous one.
1175         * gnulib-tool (func_modules_transitive_closure)
1176         (func_emit_autoconf_snippets):
1177         Check whether a dependency is acceptable before using it.
1178         (--extract-dependencies): Report an error if --avoid is also used,
1179         since this combination of options is not yet supported.
1180
1181         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1182         Problem reported by Peter Dyballa in
1183         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1184         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1185         when echoing "$condition".
1186
1187 2011-10-07  Bruno Haible  <bruno@clisp.org>
1188
1189         Fix documentation about math functions on MacOS X.
1190         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1191         MacOS X 10.5.
1192         * doc/posix-functions/fdim.texi: Likewise.
1193         * doc/posix-functions/feclearexcept.texi: Likewise.
1194         * doc/posix-functions/fegetenv.texi: Likewise.
1195         * doc/posix-functions/fegetround.texi: Likewise.
1196         * doc/posix-functions/feholdexcept.texi: Likewise.
1197         * doc/posix-functions/feraiseexcept.texi: Likewise.
1198         * doc/posix-functions/fesetenv.texi: Likewise.
1199         * doc/posix-functions/fesetround.texi: Likewise.
1200         * doc/posix-functions/fetestexcept.texi: Likewise.
1201         * doc/posix-functions/feupdateenv.texi: Likewise.
1202         * doc/posix-functions/fmax.texi: Likewise.
1203         * doc/posix-functions/fmin.texi: Likewise.
1204         * doc/posix-functions/log2.texi: Likewise.
1205         * doc/posix-functions/modff.texi: Likewise.
1206         * doc/posix-functions/nan.texi: Likewise.
1207         * doc/posix-functions/nanf.texi: Likewise.
1208         * doc/posix-functions/nextafterf.texi: Likewise.
1209         * doc/posix-functions/remquo.texi: Likewise.
1210
1211 2011-10-07  Bruno Haible  <bruno@clisp.org>
1212
1213         modff: Drop assumption about library that defines modff.
1214         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1215         AC_CHECK_FUNCS.
1216         * modules/modff (Files): Add m4/mathfunc.m4.
1217
1218 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1219
1220         raise tests: Avoid a GCC warning.
1221         * tests/test-raise.c (handler): Use _Noreturn.
1222
1223 2011-10-07  Bruno Haible  <bruno@clisp.org>
1224
1225         Tests for module 'ldexpf'.
1226         * modules/ldexpf-tests: New file.
1227         * tests/test-ldexpf.c: New file.
1228
1229         New module 'ldexpf'.
1230         * lib/math.in.h (ldexpf): New declaration.
1231         * lib/ldexpf.c: New file.
1232         * m4/ldexpf.m4: New file.
1233         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1235         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1236         * modules/ldexpf: New file.
1237         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1238         * doc/posix-functions/ldexpf.texi: Mention the new module.
1239
1240 2011-10-06  Bruno Haible  <bruno@clisp.org>
1241
1242         frexpf: Work around problems on IRIX and mingw.
1243         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1245         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1246         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1247         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1248         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1249         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1250
1251 2011-10-06  Bruno Haible  <bruno@clisp.org>
1252
1253         fabsf: Drop assumption about library that defines fabsf.
1254         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1255         AC_CHECK_FUNCS.
1256         * modules/fabsf (Files): Add m4/mathfunc.m4.
1257
1258 2011-10-06  Bruno Haible  <bruno@clisp.org>
1259
1260         frexpf: Drop assumption about library that defines frexpf.
1261         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1262         'int *', 'float *', 'long double *', 'float', 'long double'.
1263         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1264         AC_CHECK_FUNCS.
1265         * modules/frexpf (Files): Add m4/mathfunc.m4.
1266
1267         Tests for module 'frexpf'.
1268         * modules/frexpf-tests: New file.
1269         * tests/test-frexpf.c: New file.
1270
1271         New module 'frexpf'.
1272         * lib/math.in.h (frexpf): New declaration.
1273         * lib/frexpf.c: New file.
1274         * m4/frexpf.m4: New file.
1275         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1277         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1278         * modules/frexpf: New file.
1279         * tests/test-math-c++.cc: Check the declaration of frexpf.
1280         * doc/posix-functions/frexpf.texi: Mention the new module.
1281
1282 2011-10-06  Bruno Haible  <bruno@clisp.org>
1283
1284         math: Sort function declarations of math.in.h.
1285         * lib/math.in.h (frexp, logb): Move declarations.
1286
1287 2011-10-05  Bruno Haible  <bruno@clisp.org>
1288
1289         Tests for module 'modff'.
1290         * modules/modff-tests: New file.
1291         * tests/test-modff.c: New file.
1292
1293         New module 'modff'.
1294         * lib/math.in.h (modff): New declaration.
1295         * lib/modff.c: New file.
1296         * m4/modff.m4: New file.
1297         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1299         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1300         * modules/modff: New file.
1301         * tests/test-math-c++.cc: Check the declaration of modff.
1302         * doc/posix-functions/modff.texi: Mention the new module.
1303
1304         modf tests: Make test sharper.
1305         * tests/test-modf.c (main): Strengthen upper bound.
1306
1307         modf: Use a .m4 file.
1308         * m4/modf.m4: New file.
1309         * modules/modf (Files): Add it.
1310         (configure.ac): Just invoke gl_FUNC_MODF.
1311
1312 2011-10-05  Bruno Haible  <bruno@clisp.org>
1313
1314         Tests for module 'fmodf'.
1315         * modules/fmodf-tests: New file.
1316         * tests/test-fmodf.c: New file.
1317
1318         New module 'fmodf'.
1319         * lib/math.in.h (fmodf): New declaration.
1320         * lib/fmodf.c: New file.
1321         * m4/fmodf.m4: New file.
1322         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1324         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1325         * modules/fmodf: New file.
1326         * tests/test-math-c++.cc: Check the declaration of fmodf.
1327         * doc/posix-functions/fmodf.texi: Mention the new module.
1328
1329         fmod: Use a .m4 file.
1330         * m4/fmod.m4: New file.
1331         * modules/fmod (Files): Add it.
1332         (configure.ac): Just invoke gl_FUNC_FMOD.
1333
1334 2011-10-05  Bruno Haible  <bruno@clisp.org>
1335
1336         Tests for module 'fabsf'.
1337         * modules/fabsf-tests: New file.
1338         * tests/test-fabsf.c: New file.
1339
1340         New module 'fabsf'.
1341         * lib/math.in.h (fabsf): New declaration.
1342         * lib/fabsf.c: New file.
1343         * m4/fabsf.m4: New file.
1344         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1346         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1347         * modules/fabsf: New file.
1348         * tests/test-math-c++.cc: Check the declaration of fabsf.
1349         * doc/posix-functions/fabsf.texi: Mention the new module.
1350
1351         fabs: Use a .m4 file.
1352         * m4/fabs.m4: New file.
1353         * modules/fabs (Files): Add it.
1354         (configure.ac): Just invoke gl_FUNC_FABS.
1355
1356 2011-10-05  Jim Meyering  <meyering@redhat.com>
1357
1358         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1359         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1360         ls -lL regression introduced in coreutils-8.12, it does so at the
1361         cost of an additional stat call in the common case.  Besides, now
1362         that the kernel change that prompted commit 95f7c57f has been reverted
1363         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1364         we have no use for commit 95f7c57f, "file-has-acl: use
1365         acl_extended_file_nofollow if available".
1366
1367 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1368
1369         file-has-acl: revert unintended change in behavior of ls -L
1370         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1371         derived from...
1372         (file_has_acl): ...code here.  Call it.
1373         This problem was introduced with 2011-07-22 commit 95f7c57f,
1374         "file-has-acl: use acl_extended_file_nofollow if available".
1375         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1376
1377 2011-10-03  Bruno Haible  <bruno@clisp.org>
1378
1379         poll: Avoid link errors on MSVC.
1380         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1381         * modules/poll (Depends-on): Add sockets.
1382         (Link): New section.
1383         * NEWS: Mention the change.
1384         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1385         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1386         $(LIB_POLL) instead of $(LIBSOCKET).
1387
1388 2011-10-03  Bruno Haible  <bruno@clisp.org>
1389
1390         sys_select tests: Fix link error on MSVC 9.
1391         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1392         with $(LIB_SELECT) instead of $(LIBSOCKET).
1393
1394 2011-10-03  Bruno Haible  <bruno@clisp.org>
1395
1396         sys_select: Fix compilation error on mingw.
1397         * lib/sys_select.in.h: On native Windows, include <io.h>.
1398
1399 2011-10-03  Bruno Haible  <bruno@clisp.org>
1400
1401         wmemset: Support for MSVC.
1402         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1403         whether wmemset() exists.
1404
1405 2011-10-03  Bruno Haible  <bruno@clisp.org>
1406
1407         wmemmove: Support for MSVC.
1408         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1409         whether wmemmove() exists.
1410
1411 2011-10-03  Bruno Haible  <bruno@clisp.org>
1412
1413         wmemcpy: Support for MSVC.
1414         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1415         whether wmemcpy() exists.
1416
1417 2011-10-03  Bruno Haible  <bruno@clisp.org>
1418
1419         wmemcmp: Support for MSVC.
1420         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1421         whether wmemcmp() exists.
1422
1423 2011-10-03  Bruno Haible  <bruno@clisp.org>
1424
1425         wmemchr: Support for MSVC.
1426         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1427         whether wmemchr() exists.
1428
1429 2011-10-03  Bruno Haible  <bruno@clisp.org>
1430
1431         glthread/*, strsignal: Support for MSVC.
1432         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1433         including <winsock.h> on MSVC 9.
1434         * lib/glthread/lock.h: Likewise.
1435         * lib/glthread/thread.h: Likewise.
1436         * lib/glthread/tls.h: Likewise.
1437         * lib/glthread/yield.h: Likewise.
1438         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1439         if HAVE_UNISTD_H is false.
1440         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1441
1442 2011-10-03  Bruno Haible  <bruno@clisp.org>
1443
1444         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1445         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1446         Set to 100000.
1447
1448 2011-10-03  Bruno Haible  <bruno@clisp.org>
1449
1450         acl: Fix specification.
1451         * lib/file-has-acl.c (file_has_acl): Fix specification.
1452
1453 2011-10-03  Bruno Haible  <bruno@clisp.org>
1454
1455         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1456         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1457         (compute_curr_prefix, shared_library_fullname,
1458         find_shared_library_fullname, get_shared_library_fullname, relocate):
1459         Use it together with PIC && INSTALLDIR.
1460         Reported by <jojelino@gmail.com>
1461         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1462
1463 2011-10-01  Jim Meyering  <meyering@redhat.com>
1464
1465         maint.mk: adjust a release-related rule not to require use of gzip
1466         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1467         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1468         projects that build only .tar.xz files.  Also fix an erroneous test.
1469
1470         test-linkat: don't leave behind a temporary file
1471         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1472         Otherwise, coreutils' "make distcheck" would fail with this:
1473           Only in /c/cu/tests/torture/coreutils/test/\
1474             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1475           make[2]: *** [my-distcheck] Error 1
1476
1477         float, math: add omitted file
1478         * lib/itold.c: Add file, required for yesterday's float change.
1479
1480 2011-10-01  Bruno Haible  <bruno@clisp.org>
1481
1482         isinf: Fix for OpenBSD/x86.
1483         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1484         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1485         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1486
1487 2011-10-01  Bruno Haible  <bruno@clisp.org>
1488
1489         isfinite: Fix syntax error in configure test.
1490         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1491
1492         isfinite: Fix typo.
1493         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1494         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1495
1496 2011-10-01  Bruno Haible  <bruno@clisp.org>
1497
1498         nonblocking tests: Fix test failure on Linux/IA-64.
1499         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1500         Set to 270000.
1501
1502 2011-10-01  Bruno Haible  <bruno@clisp.org>
1503
1504         mkfifoat tests: Fix a test failure on mingw.
1505         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1506         with error ENOSYS.
1507
1508 2011-09-30  Bruno Haible  <bruno@clisp.org>
1509
1510         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1511         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1512         'long double'. Set REPLACE_ITOLD.
1513         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1514         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1515         * lib/itold.c: New file.
1516         * modules/float (Files): Add lib/itold.c.
1517         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1518         (Makefile.am): Substitute REPLACE_ITOLD.
1519         * modules/math (Depends-on): Add float.
1520         (Makefile.am): Substitute REPLACE_ITOLD.
1521         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1522         * doc/posix-headers/math.texi: Likewise.
1523         * doc/posix-functions/logl.texi: Likewise.
1524
1525 2011-09-30  Bruno Haible  <bruno@clisp.org>
1526
1527         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1528         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1529         Set to 140000.
1530
1531 2011-09-30  Bruno Haible  <bruno@clisp.org>
1532
1533         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1534         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1535         invocation, say "right after AC_PROG_CC_STDC", not "right after
1536         AC_PROG_CC".
1537         Reported by Gary V. Vaughan <gary@gnu.org>.
1538
1539 2011-09-30  Bruno Haible  <bruno@clisp.org>
1540
1541         Centralize C99 requirement.
1542         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1543         * modules/stdarg (configure.ac-early): Invoke it instead of
1544         AC_PROG_CC_STDC.
1545         Reported by Gary V. Vaughan and Paul Eggert.
1546
1547 2011-09-29  Bruno Haible  <bruno@clisp.org>
1548
1549         float: Fix LDBL_MAX value on Linux/PowerPC.
1550         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1551         on Linux/PowerPC.
1552         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1553         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1554         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1555         platform.
1556         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1557
1558 2011-09-29  Bruno Haible  <bruno@clisp.org>
1559
1560         doc: Improve doc about gl_EARLY.
1561         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1562         AC_PROG_CC_STDC invocation.
1563         Reported by Gary V. Vaughan <gary@gnu.org>.
1564
1565 2011-09-28  Bruno Haible  <bruno@clisp.org>
1566
1567         fgetc, fputc, fread, fwrite tests: Fix link error.
1568         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1569         on non-MSVC platforms.
1570         * tests/test-fputc.c (main): Likewise.
1571         * tests/test-fread.c (main): Likewise.
1572         * tests/test-fwrite.c (main): Likewise.
1573         Reported by Jim Meyering.
1574
1575 2011-09-27  Bruno Haible  <bruno@clisp.org>
1576
1577         fputc, fwrite tests: Avoid test failure on MSVC.
1578         * tests/test-fgetc.c: Include msvc-inval.h.
1579         (main): Invoke gl_msvc_inval_ensure_handler.
1580         * tests/test-fputc.c: Include msvc-inval.h.
1581         (main): Invoke gl_msvc_inval_ensure_handler.
1582         * tests/test-fread.c: Include msvc-inval.h.
1583         (main): Invoke gl_msvc_inval_ensure_handler.
1584         * tests/test-fwrite.c: Include msvc-inval.h.
1585         (main): Invoke gl_msvc_inval_ensure_handler.
1586         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1587         * modules/fputc-tests (Depends-on): Likewise.
1588         * modules/fread-tests (Depends-on): Likewise.
1589         * modules/fwrite-tests (Depends-on): Likewise.
1590
1591 2011-09-27  Bruno Haible  <bruno@clisp.org>
1592
1593         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1594         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1595         (raise): Remove older, duplicated declaration.
1596         (_gl_raise_SIGPIPE): New declaration.
1597         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1598         (rpl_raise): Remove function.
1599         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1600         a gnulib-defined SIGPIPE here.
1601         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1602         'sigprocmask' has detected missing signal-blocking and the module
1603         'sigpipe' is enabled.
1604         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1605
1606 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1607
1608         base64-tests: avoid memory leak
1609         * tests/test-base64.c (main): Plug memory leak.
1610
1611         base32: new module
1612         * modules/base32: New module.
1613         * lib/base32.c: New file.
1614         * lib/base32.h: Likewise.
1615         * m4/base32.m4: Likewise.
1616         * modules/base32-tests: New test.
1617         * tests/test-base32.c: Likewise.
1618         * MODULES.html.sh (Misc): Mention it.
1619
1620 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         gnulib: use more-standard license notice wording
1623         * gnulib-tool (func_emit_copyright_notice): When emitting a
1624         license notice into a file, use the standard wording as suggested
1625         by the current information for GNU maintainers, except say "file"
1626         rather than "program".  The new wording gives a license version
1627         number, which addresses an issue raised by Glenn Morris in
1628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1629         * m4/onceonly.m4: Use that same wording here, too.
1630
1631         dup2: minor simplification
1632         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1633         as lib/dup2.c no longer uses 'inline'.
1634
1635 2011-09-25  Bruno Haible  <bruno@clisp.org>
1636
1637         strings: Fix compilation error on MSVC.
1638         * lib/strings.in.h: Include <stddef.h> for size_t.
1639
1640 2011-09-25  Bruno Haible  <bruno@clisp.org>
1641
1642         fflush et al.: Document limitation on MSVC.
1643         * doc/posix-functions/fflush.texi: Document possible crash in handling
1644         mode other than DEFAULT_HANDLING.
1645         * doc/posix-functions/fgetc.texi: Likewise.
1646         * doc/posix-functions/fputc.texi: Likewise.
1647         * doc/posix-functions/fread.texi: Likewise.
1648         * doc/posix-functions/fwrite.texi: Likewise.
1649
1650 2011-09-25  Bruno Haible  <bruno@clisp.org>
1651
1652         msvc-inval: Allow three invalid parameter handling modes.
1653         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1654         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1655         macros.
1656         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1657         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1658         SANE_LIBRARY_HANDLING as a no-op.
1659         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1660         <stdlib.h>.
1661         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1662
1663 2011-09-25  Bruno Haible  <bruno@clisp.org>
1664
1665         msvc-inval: Make handler multithread-safe.
1666         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1667         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1668         declarations.
1669         (gl_msvc_inval_current): New declaration.
1670         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1671         Operate on the structure returned by gl_msvc_inval_current().
1672         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1673         Remove varaiables.
1674         (tls_index, tls_initialized): New variables.
1675         (not_per_thread): New variable.
1676         (gl_msvc_inval_current): New function.
1677         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1678         returned by gl_msvc_inval_current().
1679
1680 2011-09-25  Bruno Haible  <bruno@clisp.org>
1681
1682         msvc-inval: Install handler globally.
1683         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1684         !_MSC_VER.
1685         (gl_msvc_invalid_parameter_handler): Remove declaration.
1686         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1687         declarations.
1688         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1689         Install the handler globally, don't uninstall it.
1690         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1691         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1692         currently valid, call RaiseException instead.
1693         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1694         for !_MSC_VER.
1695
1696 2011-09-25  Bruno Haible  <bruno@clisp.org>
1697
1698         strerror_r-posix: Fix for MSVC 9.
1699         * lib/strerror_r.c (local_snprintf): New function.
1700         (snprintf): Define to local_snprintf, not to _snprintf.
1701
1702 2011-09-25  Bruno Haible  <bruno@clisp.org>
1703
1704         ftruncate: Support for MSVC 9.
1705         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1706         (chsize_nothrow): New function.
1707         (chsize): Redefine as a macro.
1708         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1709         * modules/ftruncate (Depends-on): Add msvc-inval.
1710
1711 2011-09-25  Bruno Haible  <bruno@clisp.org>
1712
1713         New module 'fstat'.
1714         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1715         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1716         * lib/fchdir.c (rpl_fstat): Remove function.
1717         * m4/fstat.m4: New file.
1718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1720         declared.
1721         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1722         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1723         * modules/fstat: New file.
1724         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1725         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1726         is set.
1727         * doc/posix-functions/fstat.texi: Mention the new module and the
1728         problem on MSVC.
1729         * NEWS: Mention the change.
1730         * modules/acl (Depends-on): Add fstat.
1731         * modules/chdir-safer (Depends-on): Likewise.
1732         * modules/chown (Depends-on): Likewise.
1733         * modules/copy-file (Depends-on): Likewise.
1734         * modules/fchdir (Depends-on): Likewise.
1735         * modules/fdopendir (Depends-on): Likewise.
1736         * modules/fopen (Depends-on): Likewise.
1737         * modules/fts (Depends-on): Likewise.
1738         * modules/getcwd (Depends-on): Likewise.
1739         * modules/isapipe (Depends-on): Likewise.
1740         * modules/linkat (Depends-on): Likewise.
1741         * modules/lseek (Depends-on): Likewise.
1742         * modules/mkdir-p (Depends-on): Likewise.
1743         * modules/open (Depends-on): Likewise.
1744         * modules/openat (Depends-on): Likewise.
1745         * modules/read-file (Depends-on): Likewise.
1746         * modules/renameat (Depends-on): Likewise.
1747         * modules/utimens (Depends-on): Likewise.
1748
1749 2011-09-25  Bruno Haible  <bruno@clisp.org>
1750
1751         linkat: Fix compilation on MSVC 9.
1752         * lib/linkat.c: Don't include <stdint.h>.
1753
1754 2011-09-25  Bruno Haible  <bruno@clisp.org>
1755
1756         fclose: Support for MSVC 9.
1757         * lib/fclose.c: Include msvc-inval.h.
1758         (fclose_nothrow): New function.
1759         (rpl_fclose): Use it.
1760         * modules/fclose (Depends-on): Add msvc-inval.
1761         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1762
1763 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1764
1765         dup2: minor simplifications
1766         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1767         that it's a performance win.
1768         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1769         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1770
1771 2011-09-24  Jim Meyering  <meyering@redhat.com>
1772
1773         test-futimens: avoid a warning from gcc -Wshadow
1774         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1775         to avoid a shadowing warning.
1776
1777 2011-09-24  Bruno Haible  <bruno@clisp.org>
1778
1779         fdopen: Support for MSVC 9.
1780         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1781         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1782         * lib/fdopen.c: Include msvc-inval.h.
1783         (fdopen_nothrow): New function.
1784         (rpl_fdopen): Use it.
1785         * modules/fdopen (Depends-on): Add msvc-inval.
1786         * modules/fclose-tests (Depends-on): Add fdopen.
1787         * modules/fflush-tests (Depends-on): Likewise.
1788         * modules/fgetc-tests (Depends-on): Likewise.
1789         * modules/fputc-tests (Depends-on): Likewise.
1790         * modules/fread-tests (Depends-on): Likewise.
1791         * modules/freopen-tests (Depends-on): Likewise.
1792         * modules/fseeko-tests (Depends-on): Likewise.
1793         * modules/ftello-tests (Depends-on): Likewise.
1794         * modules/fwrite-tests  (Depends-on): Likewise.
1795         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1796
1797 2011-09-24  Bruno Haible  <bruno@clisp.org>
1798
1799         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1800         * modules/fgetc-tests (Depends-on): Add unistd.
1801         * modules/fputc-tests (Depends-on): Likewise.
1802         * modules/fread-tests (Depends-on): Likewise.
1803         * modules/fwrite-tests (Depends-on): Likewise.
1804
1805 2011-09-24  Bruno Haible  <bruno@clisp.org>
1806
1807         dup: Simplify autoconf test.
1808         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1809         on gl_MSVC_INVAL's result.
1810
1811 2011-09-24  Bruno Haible  <bruno@clisp.org>
1812
1813         Tests for function fwrite().
1814         * modules/fwrite-tests: New file.
1815         * tests/test-fwrite.c: New file.
1816         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1817
1818         Tests for function fread().
1819         * modules/fread-tests: New file.
1820         * tests/test-fread.c: New file.
1821         * modules/stdio-tests (Depends-on): Add fread-tests.
1822
1823         Activate fputc tests.
1824         * modules/stdio-tests (Depends-on): Add fputc-tests.
1825
1826         Enhance fgetc, fputc tests.
1827         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1828         * tests/test-fputc.c (main): Likewise.
1829
1830 2011-09-24  Bruno Haible  <bruno@clisp.org>
1831
1832         write: Support for MSVC 9.
1833         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1834         is not 1.
1835         * lib/write.c (write_nothrow): New function.
1836         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1837         not 1. Use write_nothrow.
1838         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1839         invalid parameter handler.
1840         (gl_PREREQ_WRITE): New macro.
1841         * modules/write (Depends-on): Add msvc-inval.
1842         (configure.ac): Invoke gl_PREREQ_WRITE.
1843         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1844
1845 2011-09-24  Bruno Haible  <bruno@clisp.org>
1846
1847         read: Fix last commit.
1848         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1849
1850 2011-09-24  Bruno Haible  <bruno@clisp.org>
1851
1852         dup2: Fix last commit.
1853         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1854         (rpl_dup2): Disable fcntl workaround on native Windows.
1855
1856         sigprocmask: Make code safer.
1857         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1858         section that changes macro definitions for this compilation unit.
1859
1860 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1861
1862         dup2: clarify by coalescing Windows-specific material
1863         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1864         "msvc-nothrow.h"' to the Windows-specific section, so that the
1865         Emacs source need not contain these include files.
1866         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1867         Windows-specific fixes into this function rather than just the
1868         nothrow fix, as this shortens and clarifies the code.  Always
1869         define as a function, as that's a bit cleaner than having it be
1870         sometimes a function and sometimes a macro.
1871         (rpl_dup2): Move the Windows-specific stuff out of here and into
1872         ms_windows_dup2.  Don't protect the Haiku-related fix with
1873         "#if !defined __linux__", as the same code also works around
1874         a Linux kernel bug, and it doesn't add any system calls on any
1875         platform.  Add comment about FreeBSD 6.1.
1876
1877         sigprocmask: move #include directive
1878         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1879         Windows-specific section, so that the Emacs source need not
1880         contain msvc-inval.h.
1881
1882 2011-09-23  Bruno Haible  <bruno@clisp.org>
1883
1884         read: Support for MSVC 9.
1885         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1886         is not 1.
1887         * lib/read.c (read_nothrow): New function.
1888         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1889         read_nothrow.
1890         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1891         invalid parameter handler.
1892         (gl_PREREQ_READ): New macro.
1893         * modules/read (Depends-on): Add msvc-inval.
1894         (configure.ac): Invoke gl_PREREQ_READ.
1895         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1896
1897 2011-09-23  Bruno Haible  <bruno@clisp.org>
1898
1899         close: Support for MSVC 9.
1900         * lib/close.c: Include <errno.h>, msvc-inval.h.
1901         (close_nothrow): New function.
1902         (rpl_close): Use it.
1903         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1904         invalid parameter handler.
1905         * modules/close (Depends-on): Add msvc-inval.
1906         * modules/dup2-tests (Depends-on): Add close.
1907         * modules/dup3-tests (Depends-on): Likewise.
1908         * modules/fcntl-tests (Depends-on): Likewise.
1909         * modules/spawn-pipe-tests (Depends-on): Likewise.
1910         * modules/unistd-safer-tests (Depends-on): Likewise.
1911         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1912
1913 2011-09-23  Bruno Haible  <bruno@clisp.org>
1914
1915         New module 'dup'.
1916         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1917         Allow replacement.
1918         * lib/dup.c: New file.
1919         * lib/fchdir.c (rpl_dup): Remove function.
1920         * m4/dup.m4: New file.
1921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1922         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1923         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1924         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1925         * modules/dup: New file.
1926         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1927         'dup' module is in use.
1928         * modules/fdopendir (Depends-on): Add dup.
1929         * modules/fdutimensat-tests (Depends-on): Likewise.
1930         * modules/fts (Depends-on): Likewise.
1931         * modules/futimens-tests (Depends-on): Likewise.
1932         * modules/posix_spawnp-tests (Depends-on): Likewise.
1933         * modules/unistd-safer-tests (Depends-on): Likewise.
1934         * modules/utimens-tests (Depends-on): Likewise.
1935         * doc/posix-functions/dup.texi: Mention the new module and the problem
1936         on MSVC.
1937
1938 2011-09-23  Bruno Haible  <bruno@clisp.org>
1939
1940         getdtablesize: Support for MSVC 9.
1941         * lib/getdtablesize.c: Include msvc-inval.h.
1942         (_setmaxstdio_nothrow): New function.
1943         (_setmaxstdio): Redefine it.
1944         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1945         * modules/getdtablesize (Depends-on): Add msvc-inval.
1946         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1947
1948 2011-09-23  Bruno Haible  <bruno@clisp.org>
1949
1950         signal-h: Rename from signal.
1951         * modules/signal-h: Renamed from modules/signal.
1952         * modules/pthread_sigmask (Depends-on): Update.
1953         * modules/raise (Depends-on): Likewise.
1954         * modules/sigaction (Depends-on): Likewise.
1955         * modules/sigpipe (Depends-on): Likewise.
1956         * modules/sigprocmask (Depends-on): Likewise.
1957         * modules/sys_select (Depends-on): Likewise.
1958         * modules/signal-h-tests: Renamed from modules/signal-tests.
1959         (Files, Depends-on, Makefile.am): Update.
1960         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1961         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1962         (Files, Makefile.am): Update.
1963         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1964         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1965         * modules/signal: New placeholder file.
1966         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1967         * doc/posix-headers/signal.texi: Update.
1968         * NEWS: Mention the change.
1969
1970 2011-09-23  Bruno Haible  <bruno@clisp.org>
1971
1972         sigprocmask: Avoid crashes through signal() on MSVC 9.
1973         * lib/sigprocmask.c: Include msvc-inval.h.
1974         (signal_nothrow): New function.
1975         (signal): Redefine it.
1976         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1977         * modules/sigprocmask (Depends-on): Add msvc-inval.
1978         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1979
1980 2011-09-23  Bruno Haible  <bruno@clisp.org>
1981
1982         Tests for module 'raise'.
1983         * modules/raise-tests: New file.
1984         * tests/test-raise.c: New file.
1985
1986         raise: Support for MSVC.
1987         * lib/signal.in.h (raise): New declaration.
1988         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1989         for native Windows platforms.
1990         * m4/raise.m4: New file.
1991         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1992         HAVE_RAISE, REPLACE_RAISE.
1993         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1994         REPLACE_RAISE.
1995         * modules/raise (Status, Notice): Remove fields.
1996         (Files): Add m4/raise.m4.
1997         (Depends-on): Add signal, msvc-inval.
1998         (configure.ac): Use the common idioms.
1999         (Maintainer): Add me.
2000         * tests/test-signal-c++.cc: Check the signature of raise.
2001         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2002
2003 2011-09-23  Bruno Haible  <bruno@clisp.org>
2004
2005         pipe2: Fix compilation on pre-C99 compilers.
2006         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2007
2008 2011-09-23  Bruno Haible  <bruno@clisp.org>
2009
2010         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2011         * lib/msvc-nothrow.h: New file.
2012         * lib/msvc-nothrow.c: New file.
2013         * m4/msvc-nothrow.m4: New file.
2014         * modules/msvc-nothrow: New file.
2015         * lib/dup2.c: Include msvc-nothrow.h.
2016         (rpl_dup2): No need to protect _get_osfhandle call here.
2017         * lib/accept4.c: Include msvc-nothrow.h.
2018         * lib/error.c: Likewise.
2019         * lib/fcntl.c: Likewise.
2020         * lib/lseek.c: Likewise.
2021         * lib/nonblocking.c: Likewise.
2022         * lib/poll.c: Likewise.
2023         * lib/read.c: Likewise.
2024         * lib/select.c: Likewise.
2025         * lib/sockets.h: Likewise.
2026         * lib/sockets.c: Likewise.
2027         * lib/stdio-read.c: Likewise.
2028         * lib/stdio-write.c: Likewise.
2029         * lib/write.c: Likewise.
2030         * lib/w32sock.h: Likewise.
2031         * lib/w32spawn.h: Likewise.
2032         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2033         * lib/fsync.c: Likewise.
2034         * lib/isapipe.c: Likewise.
2035         * modules/dup2 (Depends-on): Add msvc-nothrow.
2036         * modules/accept4 (Depends-on): Likewise.
2037         * modules/error (Depends-on): Likewise.
2038         * modules/fcntl (Depends-on): Likewise.
2039         * modules/lseek (Depends-on): Likewise.
2040         * modules/nonblocking (Depends-on): Likewise.
2041         * modules/poll (Depends-on): Likewise.
2042         * modules/read (Depends-on): Likewise.
2043         * modules/select (Depends-on): Likewise.
2044         * modules/sockets (Depends-on): Likewise.
2045         * modules/sigpipe (Depends-on): Likewise.
2046         * modules/write (Depends-on): Likewise.
2047         * modules/accept (Depends-on): Likewise.
2048         * modules/bind (Depends-on): Likewise.
2049         * modules/connect (Depends-on): Likewise.
2050         * modules/gethostname (Depends-on): Likewise.
2051         * modules/getpeername (Depends-on): Likewise.
2052         * modules/getsockname (Depends-on): Likewise.
2053         * modules/getsockopt (Depends-on): Likewise.
2054         * modules/ioctl (Depends-on): Likewise.
2055         * modules/listen (Depends-on): Likewise.
2056         * modules/recv (Depends-on): Likewise.
2057         * modules/recvfrom (Depends-on): Likewise.
2058         * modules/send (Depends-on): Likewise.
2059         * modules/sendto (Depends-on): Likewise.
2060         * modules/setsockopt (Depends-on): Likewise.
2061         * modules/shutdown (Depends-on): Likewise.
2062         * modules/socket (Depends-on): Likewise.
2063         * modules/execute (Depends-on): Likewise.
2064         * modules/spawn-pipe (Depends-on): Likewise.
2065         * modules/flock (Depends-on): Likewise.
2066         * modules/fsync (Depends-on): Likewise.
2067         * modules/isapipe (Depends-on): Likewise.
2068         * tests/test-cloexec.c: Include msvc-nothrow.h.
2069         * tests/test-dup-safer.c: Likewise.
2070         * tests/test-dup2.c: Likewise.
2071         * tests/test-dup3.c: Likewise.
2072         * tests/test-fcntl.c: Likewise.
2073         * tests/test-pipe.c: Likewise.
2074         * tests/test-pipe2.c: Likewise.
2075         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2076         * modules/unistd-safer-tests (Depends-on): Likewise.
2077         * modules/dup2-tests (Depends-on): Likewise.
2078         * modules/dup3-tests (Depends-on): Likewise.
2079         * modules/fcntl-tests (Depends-on): Likewise.
2080         * modules/pipe-posix-tests (Depends-on): Likewise.
2081         * modules/pipe2-tests (Depends-on): Likewise.
2082
2083 2011-09-23  Bruno Haible  <bruno@clisp.org>
2084
2085         dup2: Make code more maintainable.
2086         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2087         (rpl_dup2): Use it.
2088         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2089         * modules/dup2 (configure.ac): Invoke it.
2090         Reported by Paul Eggert.
2091
2092 2011-09-23  Bruno Haible  <bruno@clisp.org>
2093
2094         msvc-inval: Fix compilation error.
2095         * lib/msvc-inval.h: Include <excpt.h>.
2096
2097 2011-09-23  Bruno Haible  <bruno@clisp.org>
2098
2099         mkdir: Tweak for MSVC 9.
2100         * lib/sys_stat.in.h: Update comments.
2101         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2102
2103         Tests for module 'chdir'.
2104         * modules/chdir-tests: New file.
2105         * tests/test-chdir.c: New file.
2106
2107         New module 'chdir'.
2108         * modules/chdir: New file.
2109         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2110         (chdir): New declaration.
2111         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2112         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2113         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2114         * tests/test-unistd-c++.cc: Check signature of chdir.
2115         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2116         * modules/chdir-long (Depends-on): Add chdir.
2117         * modules/fchdir (Depends-on): Likewise.
2118         * modules/rename (Depends-on): Likewise.
2119         * modules/savewd (Depends-on): Likewise.
2120
2121         rmdir: Support for mingw, MSVC 9.
2122         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2123         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2124
2125         getcwd: Tweak for MSVC 9.
2126         * lib/unistd.in.h: Update comments.
2127         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2128
2129 2011-09-22  Bruno Haible  <bruno@clisp.org>
2130
2131         strerror_r-posix: Avoid a link error on MSVC.
2132         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2133         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2134
2135 2011-09-22  Bruno Haible  <bruno@clisp.org>
2136
2137         select: Avoid link errors on MSVC.
2138         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2139         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2140         * modules/pselect (Link): Likewise.
2141         * NEWS: Mention the change.
2142         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2143         test-select-stdin against $(LIB_SELECT).
2144         * modules/pselect-tests (Makefile.am): Link test-pselect against
2145         $(LIB_SELECT).
2146
2147 2011-09-22  Bruno Haible  <bruno@clisp.org>
2148
2149         select: Avoid compilation error on MSVC.
2150         * lib/select.c: Don't include <stdbool.h>.
2151
2152 2011-09-21  Bruno Haible  <bruno@clisp.org>
2153
2154         Consolidate all uses of PATH_MAX in *.m4 files.
2155         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2156         macros.
2157         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2158         and gl_PATHMAX_SNIPPET.
2159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2161         * modules/chdir-long (Files): Add m4/pathmax.m4.
2162         * modules/getcwd (Files): Likewise.
2163
2164 2011-09-21  Bruno Haible  <bruno@clisp.org>
2165
2166         ftruncate: Un-deprecate, concentrate on Win32 support.
2167         * modules/ftruncate (Status, Notice): Remove sections.
2168         (Depends-on): Add largefile.
2169         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2170         non-mingw platforms.
2171         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2172         include <io.h>.
2173         * modules/perror-tests (Depends-on): Add ftruncate.
2174         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2175         'ftruncate' module.
2176
2177 2011-09-21  Bruno Haible  <bruno@clisp.org>
2178
2179         Add dependencies to new dirent related modules.
2180         * modules/opendir (Depends-on): Add closedir.
2181         * modules/getcwd (Depends-on): Add opendir, closedir.
2182         * modules/dirent-safer-tests (Depends-on): Likewise.
2183         * modules/fdopendir-tests (Depends-on): Likewise.
2184         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2185         * modules/renameat-tests (Depends-on): Likewise.
2186
2187 2011-09-21  Bruno Haible  <bruno@clisp.org>
2188
2189         opendir: Avoid compilation error on mingw.
2190         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2191         * modules/opendir (Depends-on): Add unistd.
2192
2193 2011-09-21  Bruno Haible  <bruno@clisp.org>
2194
2195         ftruncate tests: Avoid a test failure on mingw.
2196         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2197
2198 2011-09-21  Bruno Haible  <bruno@clisp.org>
2199
2200         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2201         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2202         native Windows.
2203
2204 2011-09-21  Bruno Haible  <bruno@clisp.org>
2205
2206         New module 'fdopen'.
2207         * lib/stdio.in.h (fdopen): New declaration.
2208         * lib/fdopen.c: New file.
2209         * m4/fdopen.m4: New file.
2210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2211         REPLACE_FDOPEN.
2212         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2213         REPLACE_FDOPEN.
2214         * modules/fdopen: New file.
2215         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2216         * tests/test-stdio-c++.cc: Check signature of fdopen.
2217         * doc/posix-functions/fdopen.texi: Mention the new module.
2218
2219 2011-09-21  Bruno Haible  <bruno@clisp.org>
2220
2221         unlockpt tests: Avoid test failure on NetBSD 5.1.
2222         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2223         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2224
2225 2011-09-21  Bruno Haible  <bruno@clisp.org>
2226
2227         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2228         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2229         * tests/test-getlogin_r.c (main): Likewise.
2230
2231 2011-09-20  Bruno Haible  <bruno@clisp.org>
2232
2233         time tests: Don't require pid_t.
2234         * doc/posix-headers/time.texi: Revert last change.
2235         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2236         * tests/test-time.c: Comment out the check for pid_t.
2237
2238 2011-09-20  Bruno Haible  <bruno@clisp.org>
2239
2240         fsync tests: Avoid a test failure on mingw.
2241         * tests/test-fsync.c (main): Allow a failure with EIO.
2242
2243 2011-09-20  Bruno Haible  <bruno@clisp.org>
2244
2245         euidaccess: Update comments.
2246         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2247
2248 2011-09-20  Bruno Haible  <bruno@clisp.org>
2249
2250         Ensure EBADF returns for socket functions on mingw.
2251         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2252         descriptor is invalid.
2253         * lib/bind.c (rpl_bind): Likewise.
2254         * lib/connect.c (rpl_connect): Likewise.
2255         * lib/getpeername.c (rpl_getpeername): Likewise.
2256         * lib/getsockname.c (rpl_getsockname): Likewise.
2257         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2258         * lib/listen.c (rpl_listen): Likewise.
2259         * lib/recv.c (rpl_recv): Likewise.
2260         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2261         * lib/send.c (rpl_send): Likewise.
2262         * lib/sendto.c (rpl_sendto): Likewise.
2263         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2264         * lib/shutdown.c (rpl_shutdown): Likewise.
2265
2266 2011-09-20  Bruno Haible  <bruno@clisp.org>
2267
2268         select tests: EBADF tests.
2269         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2270         test_bad_fd): New functions.
2271         (test_function): Invoke also test_bad_fd.
2272
2273 2011-09-20  Bruno Haible  <bruno@clisp.org>
2274
2275         Tests for module 'posix_spawn_file_actions_addopen.
2276         * modules/posix_spawn_file_actions_addopen-tests: New file.
2277         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2278
2279         Tests for module 'posix_spawn_file_actions_adddup2'.
2280         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2281         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2282
2283         Tests for module 'posix_spawn_file_actions_addclose'.
2284         * modules/posix_spawn_file_actions_addclose-tests: New file.
2285         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2286
2287 2011-09-20  Bruno Haible  <bruno@clisp.org>
2288
2289         Tests for module 'unlockpt'.
2290         * modules/unlockpt-tests: New file.
2291         * tests/test-unlockpt.c: New file.
2292         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2293
2294         Tests for module 'grantpt'.
2295         * modules/grantpt-tests: New file.
2296         * tests/test-grantpt.c: New file.
2297         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2298
2299 2011-09-20  Bruno Haible  <bruno@clisp.org>
2300
2301         freopen tests: EBADF tests.
2302         * tests/test-freopen.c: Include errno.h, unistd.h.
2303         (main): Add tests for EBADF, commented out for the moment.
2304
2305         fclose tests: EBADF tests.
2306         * tests/test-fclose.c (main): Add tests for EBADF.
2307
2308         fflush tests: EBADF tests.
2309         * tests/test-fflush.c: Include errno.h, macros.h.
2310         (main): Add tests for EBADF.
2311
2312         ftello tests: EBADF tests.
2313         * tests/test-ftello4.sh: New file.
2314         * tests/test-ftello4.c: New file.
2315         * modules/ftello-tests (Files): Add them.
2316         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2317
2318         fseeko tests: EBADF tests.
2319         * tests/test-fseeko4.sh: New file.
2320         * tests/test-fseeko4.c: New file.
2321         * modules/fseeko-tests (Files): Add them.
2322         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2323
2324         Tests for function fputc().
2325         * modules/fputc-tests: New file.
2326         * tests/test-fputc.c: New file.
2327         * modules/stdio-tests (Depends-on): Add fputc-tests.
2328
2329         Tests for function fgetc().
2330         * modules/fgetc-tests: New file.
2331         * tests/test-fgetc.c: New file.
2332         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2333
2334         Tests for function fdopen().
2335         * modules/fdopen-tests: New file.
2336         * tests/test-fdopen.c: New file.
2337         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2338
2339         Tests for module 'vdprintf'.
2340         * modules/vdprintf-tests: New file.
2341         * tests/test-vdprintf.c: New file.
2342
2343         Tests for module 'dprintf'.
2344         * modules/dprintf-tests: New file.
2345         * tests/test-dprintf.c: New file.
2346
2347 2011-09-20  Bruno Haible  <bruno@clisp.org>
2348
2349         Tests for module 'ioctl'.
2350         * modules/ioctl-tests: New file.
2351         * tests/test-ioctl.c: New file.
2352
2353 2011-09-20  Bruno Haible  <bruno@clisp.org>
2354
2355         fcntl tests: EBADF tests.
2356         * tests/test-fcntl.c (main): Add more tests for EBADF.
2357
2358 2011-09-20  Bruno Haible  <bruno@clisp.org>
2359
2360         utimensat tests: EBADF tests.
2361         * tests/test-utimensat.c (main): Add tests for EBADF.
2362
2363         renameat tests: EBADF tests.
2364         * tests/test-renameat.c (main): Add tests for EBADF.
2365
2366         mkfifoat tests: EBADF tests.
2367         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2368
2369         readlinkat tests: EBADF tests.
2370         * tests/test-readlinkat.c (main): Add tests for EBADF.
2371
2372         symlinkat tests: EBADF tests.
2373         * tests/test-symlinkat.c (main): Add tests for EBADF.
2374
2375         linkat tests: EBADF tests.
2376         * tests/test-linkat.c (main): Add tests for EBADF.
2377
2378         Tests for module 'faccessat'.
2379         * modules/faccessat-tests: New file.
2380         * tests/test-faccessat.c: New file.
2381
2382         fdopendir tests: EBADF tests.
2383         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2384
2385         openat tests: EBADF tests.
2386         * tests/test-fchownat.c (main): Add tests for EBADF.
2387         * tests/test-fstatat.c (main): Likewise.
2388         * tests/test-mkdirat.c (main): Likewise.
2389         * tests/test-openat.c (main): Likewise.
2390         * tests/test-unlinkat.c (main): Likewise.
2391         * tests/test-fchmodat.c: New file.
2392         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2393         (Makefile.am): Also run 'test-fchmodat'.
2394
2395 2011-09-20  Bruno Haible  <bruno@clisp.org>
2396
2397         utimens, futimens, fdutimensat tests: EBADF tests.
2398         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2399
2400         Tests for function fstat().
2401         * modules/fstat-tests: New file.
2402         * tests/test-fstat.c: New file.
2403         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2404
2405 2011-09-20  Bruno Haible  <bruno@clisp.org>
2406
2407         test-ttyname_r tests: EBADF tests.
2408         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2409
2410         Tests for module 'isatty'.
2411         * modules/isatty-tests: New file.
2412         * tests/test-isatty.c: New file.
2413
2414         Tests for module 'write'.
2415         * modules/write-tests: New file.
2416         * tests/test-write.c: New file.
2417
2418         Tests for module 'read'.
2419         * modules/read-tests: New file.
2420         * tests/test-read.c: New file.
2421
2422         pwrite tests: EBADF tests.
2423         * tests/test-pwrite.c (main): Add tests for EBADF.
2424
2425         pread tests: EBADF tests.
2426         * tests/test-pread.c (main): Add tests for EBADF.
2427
2428         lseek tests: EBADF tests.
2429         * tests/test-lseek.c (main): Add more tests for EBADF.
2430
2431         Tests for module 'ftruncate'.
2432         * modules/ftruncate-tests: New file.
2433         * tests/test-ftruncate.sh: New file.
2434         * tests/test-ftruncate.c: New file.
2435
2436         fsync tests: EBADF tests.
2437         * tests/test-fsync.c (main): Add more tests for EBADF.
2438
2439         fdatasync tests: EBADF tests.
2440         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2441
2442         Tests for module 'fchown'.
2443         * modules/fchown-tests: New file.
2444         * tests/test-fchown.c: New file.
2445
2446         Tests for module 'fchmod'.
2447         * modules/fchmod-tests: New file.
2448         * tests/test-fchmod.c: New file.
2449
2450         fchdir tests: EBADF tests.
2451         * tests/test-fchdir.c (main): Add more tests for EBADF.
2452
2453         dup2 tests: EBADF tests.
2454         * tests/test-dup2.c (main): Add more tests for EBADF.
2455
2456         Tests for module 'dup'.
2457         * modules/dup-tests: New file.
2458         * tests/test-dup.c: New file.
2459
2460         Tests for module 'close'.
2461         * modules/close-tests: New file.
2462         * tests/test-close.c: New file.
2463
2464 2011-09-20  Bruno Haible  <bruno@clisp.org>
2465
2466         Tests for module 'shutdown'.
2467         * modules/shutdown-tests: New file.
2468         * tests/test-shutdown.c: New file.
2469
2470         Tests for module 'setsockopt'.
2471         * modules/setsockopt-tests: New file.
2472         * tests/test-setsockopt.c: New file.
2473
2474         Tests for module 'sendto'.
2475         * modules/sendto-tests: New file.
2476         * tests/test-sendto.c: New file.
2477
2478         Tests for module 'send'.
2479         * modules/send-tests: New file.
2480         * tests/test-send.c: New file.
2481
2482         Tests for module 'recvfrom'.
2483         * modules/recvfrom-tests: New file.
2484         * tests/test-recvfrom.c: New file.
2485
2486         Tests for module 'recv'.
2487         * modules/recv-tests: New file.
2488         * tests/test-recv.c: New file.
2489
2490         Tests for module 'listen'.
2491         * modules/listen-tests: New file.
2492         * tests/test-listen.c: New file.
2493
2494         Tests for module 'getsockopt'.
2495         * modules/getsockopt-tests: New file.
2496         * tests/test-getsockopt.c: New file.
2497
2498         Tests for module 'getsockname'.
2499         * modules/getsockname-tests: New file.
2500         * tests/test-getsockname.c: New file.
2501
2502         Tests for module 'getpeername'.
2503         * modules/getpeername-tests: New file.
2504         * tests/test-getpeername.c: New file.
2505
2506         Tests for module 'connect'.
2507         * modules/connect-tests: New file.
2508         * tests/test-connect.c: New file.
2509
2510         Tests for module 'bind'.
2511         * modules/bind-tests: New file.
2512         * tests/test-bind.c: New file.
2513
2514         accept4 tests: Fix for native Windows.
2515         * tests/test-accept4.c: Include sockets.h.
2516         (main): Invoke gl_sockets_startup.
2517         * modules/accept4-tests (Depends-on): Add sockets.
2518
2519         accept tests: Fix for native Windows.
2520         * tests/test-accept.c: Include sockets.h.
2521         (main): Invoke gl_sockets_startup.
2522         * modules/accept-tests (Depends-on): Add sockets.
2523
2524 2011-09-19  Bruno Haible  <bruno@clisp.org>
2525
2526         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2527         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2528         do...while(0).
2529         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2530         Suggested by Paul Eggert.
2531
2532 2011-09-19  Bruno Haible  <bruno@clisp.org>
2533
2534         sched: Ensure pid_t is defined.
2535         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2536         not define pid_t.
2537         * lib/sched.in.h: Include <sys/types.h>.
2538         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2540
2541 2011-09-19  Bruno Haible  <bruno@clisp.org>
2542
2543         msvc-inval: Ensure the entire expansion is a single statement.
2544         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2545         of braces.
2546
2547 2011-09-19  Jim Meyering  <meyering@redhat.com>
2548
2549         tests: use printf, not echo in init.sh's warn_ function
2550         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2551         misbehave when given strings containing a backslash or starting
2552         with e.g., -n.  James Youngman suggested setting IFS.
2553
2554 2011-09-19  Eric Blake  <eblake@redhat.com>
2555
2556         futimens: enhance test
2557         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2558         closed non-negative fd.
2559
2560         date: accept 'hence' as opposite of 'ago'
2561         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2562         * tests/test-parse-datetime.c (main): Enhance test.
2563         Suggested by Jesse Wilson.
2564
2565 2011-09-19  Jim Meyering  <meyering@redhat.com>
2566
2567         getcwd: don't fail in a deep directory on a system without openat
2568         Before this change, getcwd would fail when called from a directory
2569         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2570         the non-openat implementation used "..", "../..", "../../..", etc.
2571         to access ancestor directories.  With too many, that string would
2572         be longer than PATH_MAX.
2573         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2574         using gnulib's openat replacement.
2575         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2576         we're using the replacement function.
2577
2578 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2579
2580         maint.mk: avoid warnings from perl about missing files
2581         * top/maint.mk (def_sym_regex): Ignore files listed in
2582         $(gl_other_headers_) that do not exist, say because a project
2583         does not use a corresponding module.
2584
2585 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2586
2587         stat: use pathmax.h only if needed
2588         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2589         This is better for Emacs, which does not have a mingw port and
2590         therefore can avoid the pathmax module.
2591
2592         utimens: remove dependency on dup2
2593         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2594         to work around the Linux kernel bug.
2595         * modules/utimens (Depends-on): Remove dup2.
2596
2597 2011-09-18  Bruno Haible  <bruno@clisp.org>
2598
2599         inet_ntop, inet_pton: Look for it also in libresolv.
2600         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2601         libnsl, search for it in libresolv.
2602         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2603         Needed on Solaris 7.
2604
2605 2011-09-18  Bruno Haible  <bruno@clisp.org>
2606
2607         accept, accept4 tests: Avoid link error on Solaris.
2608         * modules/accept-tests (Makefile.am): Link test-accept against
2609         $(LIBSOCKET).
2610         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2611         $(LIBSOCKET).
2612
2613         accept4: Avoid link error on Solaris.
2614         * modules/accept4 (Link): New section.
2615
2616         socket functions: Avoid link errors on Solaris.
2617         * modules/accept (Depends-on): Add socketlib.
2618         (Link): New section.
2619         * modules/bind (Depends-on): Add socketlib.
2620         (Link): New section.
2621         * modules/connect (Depends-on): Add socketlib.
2622         (Link): New section.
2623         * modules/getpeername (Depends-on): Add socketlib.
2624         (Link): New section.
2625         * modules/getsockname (Depends-on): Add socketlib.
2626         (Link): New section.
2627         * modules/getsockopt (Depends-on): Add socketlib.
2628         (Link): New section.
2629         * modules/listen (Depends-on): Add socketlib.
2630         (Link): New section.
2631         * modules/recv (Depends-on): Add socketlib.
2632         (Link): New section.
2633         * modules/recvfrom (Depends-on): Add socketlib.
2634         (Link): New section.
2635         * modules/send (Depends-on): Add socketlib.
2636         (Link): New section.
2637         * modules/sendto (Depends-on): Add socketlib.
2638         (Link): New section.
2639         * modules/setsockopt (Depends-on): Add socketlib.
2640         (Link): New section.
2641         * modules/shutdown (Depends-on): Add socketlib.
2642         (Link): New section.
2643         * modules/socket (Depends-on): Add socketlib.
2644         (Link): New section.
2645
2646 2011-09-18  Bruno Haible  <bruno@clisp.org>
2647
2648         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2649         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2650         than 5 seconds.
2651         * modules/ptsname-tests (configure.ac): Test for alarm.
2652
2653 2011-09-18  Bruno Haible  <bruno@clisp.org>
2654
2655         posix_spawn_file_actions_add*: Fix module dependencies.
2656         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2657         posix_spawn_file_actions_init.
2658         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2659         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2660
2661 2011-09-18  Bruno Haible  <bruno@clisp.org>
2662
2663         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2664         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2665         * tests/test-renameat.c (main): Likewise.
2666
2667 2011-09-18  Bruno Haible  <bruno@clisp.org>
2668
2669         Tests for module 'accept4'.
2670         * modules/accept4-tests: New file.
2671         * tests/test-accept4.c: New file.
2672
2673 2011-09-18  Bruno Haible  <bruno@clisp.org>
2674
2675         Tests for module 'accept'.
2676         * modules/accept-tests: New file.
2677         * tests/test-accept.c: New file.
2678
2679 2011-09-18  Bruno Haible  <bruno@clisp.org>
2680
2681         dup2: Support for MSVC.
2682         * lib/dup2.c: Include msvc-inval.h.
2683         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2684         _get_osfhandle calls.
2685         * modules/dup2 (Depends-on): Add msvc-inval.
2686         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2687
2688         New module 'msvc-inval'.
2689         * lib/msvc-inval.h: New file.
2690         * lib/msvc-inval.c: New file.
2691         * m4/msvc-inval.m4: New file.
2692         * modules/msvc-inval: New file.
2693
2694 2011-09-17  Bruno Haible  <bruno@clisp.org>
2695
2696         Tests for module 'pclose'.
2697         * modules/pclose-tests: New file.
2698
2699         New module 'pclose'.
2700         * lib/stdio.in.h (pclose): New declaration.
2701         * lib/pclose.c: New file.
2702         * m4/pclose.m4: New file.
2703         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2704         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2705         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2706         * modules/pclose: New file.
2707         * modules/popen-tests (Depends-on): Add pclose.
2708         * modules/popen-safer-tests (Depends-on): Likewise.
2709         * doc/posix-functions/pclose.texi: Mention the new module.
2710
2711 2011-09-17  Bruno Haible  <bruno@clisp.org>
2712
2713         popen: Support for MSVC.
2714         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2715         * lib/popen.c (popen): Provide alternate definition for native Windows.
2716         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2718         * modules/popen (Depends-on, configure.ac): Update condition.
2719         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2720         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2721         fixed.
2722
2723 2011-09-17  Bruno Haible  <bruno@clisp.org>
2724
2725         isnanl, isnand, isnanf: Work around MSVC bug.
2726         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2727
2728 2011-09-17  Bruno Haible  <bruno@clisp.org>
2729
2730         sys_socket tests: Fix recent mistake.
2731         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2732
2733 2011-09-17  Bruno Haible  <bruno@clisp.org>
2734
2735         putenv: Support for MSVC.
2736         * modules/putenv (Depends-on): Add environ.
2737         * lib/putenv.c (environ): Disable declaration.
2738         * lib/unistd.in.h: Update comment.
2739
2740 2011-09-17  Bruno Haible  <bruno@clisp.org>
2741
2742         math: Avoid macro redefinition warnings on MSVC.
2743         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2744         Undefine before redefining.
2745
2746 2011-09-17  Bruno Haible  <bruno@clisp.org>
2747
2748         doc: Mention functions which are declared as macros.
2749         * doc/posix-functions/*[fl].texi: Mention that some functions are
2750         defined as macros with arguments only.
2751
2752 2011-09-17  Bruno Haible  <bruno@clisp.org>
2753
2754         Add dependencies to new dirent related modules.
2755         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2756         * modules/fts (Depends-on): Likewise.
2757         * modules/glob (Depends-on): Likewise.
2758         * modules/savedir (Depends-on): Likewise.
2759         * modules/scandir (Depends-on): Likewise.
2760         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2761         * modules/fdopendir (Depends-on): Add opendir.
2762
2763 2011-09-17  Bruno Haible  <bruno@clisp.org>
2764
2765         inet_pton: Support for MSVC on Windows Vista or newer.
2766         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2767         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2768         HAVE_DECL_INET_PTON is defined.
2769         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2770         On platforms with <winsock2.h>, test whether inet_pton is declared in
2771         <ws2tcpip.h>. If so, arrange to replace it.
2772         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2773         REPLACE_INET_PTON.
2774         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2775         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2776         (Depends-on, configure.ac): Update condition.
2777         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2778
2779 2011-09-17  Bruno Haible  <bruno@clisp.org>
2780
2781         inet_ntop: Support for MSVC on Windows Vista or newer.
2782         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2783         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2784         HAVE_DECL_INET_NTOP is defined.
2785         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2786         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2787         <ws2tcpip.h>. If so, arrange to replace it.
2788         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2789         REPLACE_INET_NTOP.
2790         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2791         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2792         (Depends-on, configure.ac): Update condition.
2793         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2794
2795 2011-09-16  Eric Blake  <eblake@redhat.com>
2796
2797         test-fsync: yet another enhancement
2798         * tests/test-fsync.c (main): Also test behavior on read-only text
2799         file.
2800
2801 2011-09-16  Bruno Haible  <bruno@clisp.org>
2802
2803         Enhance fsync, fdatasync tests.
2804         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2805         * tests/test-fdatasync.c (main): Likewise.
2806
2807 2011-09-16  Bruno Haible  <bruno@clisp.org>
2808
2809         Support for MSVC compiler: Ensure mode_t gets defined.
2810         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2811         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2812         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2813         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2814         * tests/test-fcntl-h.c: Check that mode_t is defined.
2815         * tests/test-sys_stat.c: Likewise.
2816         * tests/test-sys_types.c: Likewise.
2817         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2818         * doc/posix-headers/sys_stat.texi: Likewise.
2819         * doc/posix-headers/sys_types.texi: Likewise.
2820
2821 2011-09-16  Bruno Haible  <bruno@clisp.org>
2822
2823         sys_stat: Support for MSVC.
2824         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2825         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2826         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2827         MSVC.
2828
2829 2011-09-16  Bruno Haible  <bruno@clisp.org>
2830
2831         Support for MSVC compiler: Ensure off_t gets defined.
2832         * lib/unistd.in.h: Include <sys/types.h>.
2833         * tests/test-fcntl-h.c: Check that off_t is defined.
2834         * tests/test-sys_stat.c: Likewise.
2835         * tests/test-sys_types.c: Likewise.
2836
2837 2011-09-16  Eric Blake  <eblake@redhat.com>
2838
2839         fdatasync: port to Solaris
2840         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2841         * modules/fdatasync (Link): Document it.
2842         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2843
2844         fdatasync: port to MacOS X 10.7
2845         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2846         declared.
2847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2848         * modules/unistd (Makefile.am): Substitute it.
2849         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2850         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2851
2852         fdatasync: minor improvements
2853         * modules/fdatasync (Depends-on): Add condition for fsync.
2854         * lib/fdatasync.c (fdatasync): Add comment.
2855         * tests/test-unistd-c++.cc: Test fdatasync.
2856
2857         unistd: update refs to newer POSIX
2858         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2859         Suggested by Bruno Haible.
2860
2861         fdatasync: new module
2862         * modules/fsync (Description): Document difference to fdatasync.
2863         * modules/fdatasync: New module.
2864         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2865         * lib/fdatasync.c (fdatasync): Likewise.
2866         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2867         defaults.
2868         * modules/unistd (Makefile.am): Set witnesses.
2869         * lib/unistd.in.h (fdatasync): Declare.
2870         * MODULES.html.sh: Document it.
2871         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2872         * modules/fdatasync-tests: New test.
2873         * tests/test-fdatasync.c: Likewise.
2874
2875 2011-09-16  Eric Blake  <eblake@redhat.com>
2876
2877         test-fsync: enhance tests
2878         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2879         * tests/test-fsync.c (main): Enhance test.
2880
2881 2011-09-15  Bruno Haible  <bruno@clisp.org>
2882
2883         Support for MSVC compiler: Ensure ssize_t gets defined.
2884         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2885         * doc/posix-headers/stdio.texi: Likewise.
2886         * modules/stdio (Depends-on): Add ssize_t.
2887         * modules/sys_socket (Depends-on): Likewise.
2888         * modules/sys_types (Depends-on): Likewise.
2889         * modules/sys_uio (Depends-on): Likewise.
2890         * modules/unistd (Depends-on): Likewise.
2891         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2892         * tests/test-sys_types.c: Check that ssize_t is defined.
2893
2894 2011-09-14  Bruno Haible  <bruno@clisp.org>
2895
2896         Avoid using #, the m4 comment starter character, near brackets.
2897         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2898         delimiter character in sed expressions.
2899         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2900         Suggested by Eric Blake.
2901
2902         Properly quote AC_CHECK_DECLS' 4th argument.
2903         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2904         argument.
2905         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2906         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2907         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2908         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2909         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2910         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2912         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2913         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2914         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2915         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2916         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2917         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2918         * m4/isinf.m4 (gl_ISINF): Likewise.
2919         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2920         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2921         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2922         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2923         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2924         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2925         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2926         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2927         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2928         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2929         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2930         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2932         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2934         Reported by Eric Blake.
2935
2936         Properly quote AC_CHECK_DECL's 4th argument.
2937         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2938         argument.
2939         * m4/argp.m4 (gl_ARGP): Likewise.
2940         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2941         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2942         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2943         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2944         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2945         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2947         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2948         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2949         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2950         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2951         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2952         Reported by Eric Blake.
2953
2954 2011-09-14  Eric Blake  <eblake@redhat.com>
2955
2956         opendir: avoid compile warning
2957         * lib/opendir.c (includes): Always include errno.h.
2958         Reported by Tatsuro MATSUOKA.
2959
2960 2011-09-14  Jim Meyering  <meyering@redhat.com>
2961
2962         maint.mk: sc_tight_scope: propagate failure from sub-make
2963         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2964         Reported by Martin von Gagern.
2965
2966 2011-09-13  Bruno Haible  <bruno@clisp.org>
2967
2968         tempname: Support for MSVC.
2969         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2970         MSVC.
2971         * modules/tempname (Depends-on): Add fcntl-h.
2972
2973 2011-09-13  Bruno Haible  <bruno@clisp.org>
2974
2975         sys_time: Support for MSVC.
2976         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2977         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2978         include <winsock2.h>.
2979         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2980         function declarations that collide with POSIX.
2981         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2982         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2983
2984 2011-09-13  Bruno Haible  <bruno@clisp.org>
2985
2986         stat: Support for MSVC.
2987         * lib/stat.c: Include pathmax.h.
2988         * modules/stat (Depends-on): Add pathmax.
2989
2990         pathmax: Support for native Windows.
2991         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2992
2993 2011-09-12  Bruno Haible  <bruno@clisp.org>
2994
2995         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2996         * lib/dirent.in.h (struct dirent): New type.
2997         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2998         DT_WHT): New macros.
2999         (DIR): New type.
3000         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3001         (readdir, rewinddir): New declarations.
3002         * lib/dirent-private.h: New file.
3003         * lib/opendir.c: New file.
3004         * lib/readdir.c: New file.
3005         * lib/rewinddir.c: New file.
3006         * lib/closedir.c: New file.
3007         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3008         * m4/opendir.m4: New file.
3009         * m4/readdir.m4: New file.
3010         * m4/rewinddir.m4: New file.
3011         * m4/closedir.m4: New file.
3012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3013         REPLACE_CLOSEDIR here.
3014         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3015         readdir, rewinddir are declared.
3016         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3017         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3018         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3019         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3020         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3021         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3022         * modules/opendir: New file.
3023         * modules/readdir: New file.
3024         * modules/rewinddir: New file.
3025         * modules/closedir: New file.
3026         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3027         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3028         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3029         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3030         * NEWS: Mention the 'fchdir' change.
3031
3032 2011-09-11  Bruno Haible  <bruno@clisp.org>
3033
3034         asm-underscore.m4: Support for MSVC.
3035         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3036         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3037
3038 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3039
3040         Doc about crypt functions.
3041         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3042         needing for _GNU_SOURCE to get crypt.
3043         * doc/posix-functions/encrypt.texi: Likewise.
3044         * doc/posix-functions/setkey.texi: Likewise.
3045
3046 2011-09-11  Bruno Haible  <bruno@clisp.org>
3047
3048         doc: Update regarding MSVC 9.
3049         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3050         tested".
3051         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3052         * doc/posix-headers/*.texi: Likewise.
3053         * doc/pastposix-functions/*.texi: Likewise.
3054         * doc/glibc-functions/*.texi: Likewise.
3055         * doc/glibc-headers/*.texi: Likewise.
3056
3057 2011-09-11  Bruno Haible  <bruno@clisp.org>
3058
3059         unistd et al.: Don't assume <unistd.h> exists.
3060         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3061         does not exist.
3062         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3063         exist. But include <stdlib.h>.
3064         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3065         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3066         symlink() does not exist.
3067         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3068         include <io.h> instead.
3069         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3070         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3071         include <direct.h> instead.
3072         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3074         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3075         <io.h> instead.
3076         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3077         correctly if the system does not have hard links.
3078         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3079         <direct.h> instead.
3080         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3081         it when looking for function declarations.
3082         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3083         <direct.h> and <io.h> instead.
3084         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3085
3086 2011-09-11  Bruno Haible  <bruno@clisp.org>
3087
3088         strcase: Support for MSVC.
3089         * modules/strcase (Status, Notice): Remove obsoletion mark.
3090         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3091         * doc/posix-functions/strncasecmp.texi: Likewise.
3092
3093         strings: Don't assume <strings.h> exists.
3094         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3095         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3096         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3097         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3098
3099 2011-09-11  Bruno Haible  <bruno@clisp.org>
3100
3101         dirent: Don't assume <dirent.h> exists.
3102         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3103         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3104         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3105         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3106
3107 2011-09-11  Bruno Haible  <bruno@clisp.org>
3108
3109         Fix wint_t on MSVC.
3110         * lib/wchar.in.h (wint_t): On MSVC, override it.
3111         * lib/wctype.in.h (wint_t): Likewise.
3112         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3113         MSVC.
3114         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3115         * doc/posix-headers/wctype.texi: Likewise.
3116
3117 2011-09-11  Bruno Haible  <bruno@clisp.org>
3118
3119         sys_types: Fix typo.
3120         * lib/sys_types.in.h: Fix typo in comment.
3121         Reported by Paul Eggert.
3122
3123         Support for MSVC compiler: Ensure size_t gets defined.
3124         * modules/strings (Depends-on): Add 'sys_types'.
3125         * modules/sys_uio (Depends-on): Likewise.
3126         * lib/sys_uio.in.h: Update comment.
3127
3128         C++ tests for module 'sys_types'.
3129         * modules/sys_types-c++-tests: New file.
3130         * tests/test-sys_types-c++.cc: New file.
3131
3132         Tests for module 'sys_types'.
3133         * modules/sys_types-tests: New file.
3134         * tests/test-sys_types.c: New file.
3135
3136         New module 'sys_types'.
3137         * lib/sys_types.in.h: New file.
3138         * m4/sys_types_h.m4: New file.
3139         * modules/sys_types: New file.
3140         * doc/posix-headers/sys_types.texi: Mention the new module and the
3141         size_t problem on MSVC 9.
3142
3143 2011-09-11  Bruno Haible  <bruno@clisp.org>
3144
3145         Support for MSVC compiler: Avoid division by a literal 0.
3146         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3147         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3148         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3149         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3150         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3151         * tests/infinity.h: New file.
3152         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3153         on MSVC.
3154         * tests/test-ceilf1.c: Include infinity.h.
3155         (main): Use Infinityf.
3156         * tests/test-ceil1.c: Include infinity.h.
3157         (main): Use Infinityd.
3158         * tests/test-ceill.c: Include infinity.h.
3159         (main): Use Infinityl.
3160         * tests/test-dprintf-posix.c: Include infinity.h.
3161         (test_function): Use Infinityd.
3162         * tests/test-floorf1.c: Include infinity.h.
3163         (main): Use Infinityf.
3164         * tests/test-floor1.c: Include infinity.h.
3165         (main): Use Infinityd.
3166         * tests/test-floorl.c: Include infinity.h.
3167         (main): Use Infinityl.
3168         * tests/test-fprintf-posix.c: Include infinity.h.
3169         (test_function): Use Infinityd.
3170         * tests/test-frexp.c: Include infinity.h.
3171         (main): Use Infinityd.
3172         * tests/test-frexpl.c: Include infinity.h.
3173         (main): Use Infinityl.
3174         * tests/test-isfinite.c: Include infinity.h.
3175         (test_isfinitef): Use Infinityf.
3176         (test_isfinited): Use Infinityd.
3177         (test_isfinitel): Use Infinityl.
3178         * tests/test-isinf.c: Include infinity.h.
3179         (test_isinff): Use Infinityf.
3180         (test_isinfd): Use Infinityd.
3181         (test_isinfl): Use Infinityl.
3182         * tests/test-isnan.c: Include infinity.h.
3183         (test_float): Use Infinityf.
3184         (test_double): Use Infinityd.
3185         (test_long_double): Use Infinityl.
3186         * tests/test-isnanf.h: Include infinity.h.
3187         (main): Use Infinityf.
3188         * tests/test-isnand.h: Include infinity.h.
3189         (main): Use Infinityd.
3190         * tests/test-isnanl.h: Include infinity.h.
3191         (main): Use Infinityl.
3192         * tests/test-ldexpl.c: Include infinity.h.
3193         (main): Use Infinityl.
3194         * tests/test-printf-posix.h: Include infinity.h.
3195         (test_function): Use Infinityd.
3196         * tests/test-roundf1.c: Include infinity.h.
3197         (main): Use Infinityf.
3198         * tests/test-round1.c: Include infinity.h.
3199         (main): Use Infinityd.
3200         * tests/test-roundl.c: Include infinity.h.
3201         (main): Use Infinityl.
3202         * tests/test-signbit.c: Include infinity.h.
3203         (test_signbitf): Use Infinityf.
3204         (test_signbitd): Use Infinityd.
3205         (test_signbitl): Use Infinityl.
3206         * tests/test-snprintf-posix.h: Include infinity.h.
3207         (test_function): Use Infinityd, Infinityl.
3208         * tests/test-sprintf-posix.h: Include infinity.h.
3209         (test_function): Use Infinityd, Infinityl.
3210         * tests/test-truncf1.c: Include infinity.h.
3211         (main): Use Infinityf.
3212         * tests/test-trunc1.c: Include infinity.h.
3213         (main): Use Infinityd.
3214         * tests/test-truncl.c: Include infinity.h.
3215         (main): Use Infinityl.
3216         * tests/test-vasnprintf-posix.c: Include infinity.h.
3217         (test_function): Use Infinityd, Infinityl.
3218         * tests/test-vasprintf-posix.c: Include infinity.h.
3219         (test_function): Use Infinityd, Infinityl.
3220         * modules/ceilf-tests (Files): Add tests/infinity.h.
3221         * modules/ceil-tests (Files): Likewise.
3222         * modules/ceill-tests (Files): Likewise.
3223         * modules/dprintf-posix-tests (Files): Likewise.
3224         * modules/floorf-tests (Files): Likewise.
3225         * modules/floor-tests (Files): Likewise.
3226         * modules/floorl-tests (Files): Likewise.
3227         * modules/fprintf-posix-tests (Files): Likewise.
3228         * modules/frexp-tests (Files): Likewise.
3229         * modules/frexp-nolibm-tests (Files): Likewise.
3230         * modules/frexpl-tests (Files): Likewise.
3231         * modules/frexpl-nolibm-tests (Files): Likewise.
3232         * modules/isfinite-tests (Files): Likewise.
3233         * modules/isinf-tests (Files): Likewise.
3234         * modules/isnan-tests (Files): Likewise.
3235         * modules/isnanf-tests (Files): Likewise.
3236         * modules/isnanf-nolibm-tests (Files): Likewise.
3237         * modules/isnand-tests (Files): Likewise.
3238         * modules/isnand-nolibm-tests (Files): Likewise.
3239         * modules/isnanl-tests (Files): Likewise.
3240         * modules/isnanl-nolibm-tests (Files): Likewise.
3241         * modules/ldexpl-tests (Files): Likewise.
3242         * modules/printf-posix-tests (Files): Likewise.
3243         * modules/roundf-tests (Files): Likewise.
3244         * modules/round-tests (Files): Likewise.
3245         * modules/roundl-tests (Files): Likewise.
3246         * modules/signbit-tests (Files): Likewise.
3247         * modules/snprintf-posix-tests (Files): Likewise.
3248         * modules/sprintf-posix-tests (Files): Likewise.
3249         * modules/truncf-tests (Files): Likewise.
3250         * modules/trunc-tests (Files): Likewise.
3251         * modules/truncl-tests (Files): Likewise.
3252         * modules/vasnprintf-posix-tests (Files): Likewise.
3253         * modules/vasprintf-posix-tests (Files): Likewise.
3254         * modules/vdprintf-posix-tests (Files): Likewise.
3255         * modules/vfprintf-posix-tests (Files): Likewise.
3256         * modules/vprintf-posix-tests (Files): Likewise.
3257         * modules/vsnprintf-posix-tests (Files): Likewise.
3258         * modules/vsprintf-posix-tests (Files): Likewise.
3259         * modules/xprintf-posix-tests (Files): Likewise.
3260
3261 2011-09-11  Bruno Haible  <bruno@clisp.org>
3262
3263         Ensure pid_t gets defined.
3264         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3265         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3266         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3267         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3268         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3269         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3270         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3271         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3272         * tests/test-fcntl-h.c: Check that pid_t is defined.
3273         * tests/test-sched.c: Likewise.
3274         * tests/test-termios.c: Likewise.
3275         * tests/test-time.c: Likewise.
3276         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3277         * doc/posix-headers/signal.texi: Likewise.
3278         * doc/posix-headers/sys_types.texi: Likewise.
3279         * doc/posix-headers/time.texi: Likewise.
3280
3281 2011-09-11  Bruno Haible  <bruno@clisp.org>
3282
3283         acl: Fix compilation on Solaris 10 (older version).
3284         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3285         of ACE_EVERYONE.
3286         * lib/set-mode-acl.c (qset_acl): Likewise.
3287         Reported by Christian Jullien <eligis@orange.fr>.
3288
3289 2011-09-10  Bruno Haible  <bruno@clisp.org>
3290
3291         iconv, unsetenv: Add support for MSVC compiler.
3292         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3293         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3294
3295 2011-09-10  Bruno Haible  <bruno@clisp.org>
3296
3297         *printf: Add support for MSVC compiler.
3298         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3299         handles the exception caused by the %n directive. When cross-compiling,
3300         guess no on native Windows.
3301         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3302         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3303         emulate it through vsnprintf.
3304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3305         * doc/posix-functions/dprintf.texi: Update documentation regarding
3306         MSVC 9.
3307         * doc/posix-functions/fprintf.texi: Likewise.
3308         * doc/posix-functions/printf.texi: Likewise.
3309         * doc/posix-functions/snprintf.texi: Likewise.
3310         * doc/posix-functions/sprintf.texi: Likewise.
3311         * doc/posix-functions/swprintf.texi: Likewise.
3312         * doc/posix-functions/vdprintf.texi: Likewise.
3313         * doc/posix-functions/vfprintf.texi: Likewise.
3314         * doc/posix-functions/vprintf.texi: Likewise.
3315         * doc/posix-functions/vsnprintf.texi: Likewise.
3316         * doc/posix-functions/vsprintf.texi: Likewise.
3317         * doc/glibc-functions/asprintf.texi: Likewise.
3318         * doc/glibc-functions/obstack_printf.texi: Likewise.
3319         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3320         * doc/glibc-functions/vasprintf.texi: Likewise.
3321
3322 2011-09-10  Bruno Haible  <bruno@clisp.org>
3323
3324         nocrash: Add support for native Windows.
3325         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3326
3327 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3328             Bruno Haible  <bruno@clisp.org>
3329
3330         absolute-header, include-next: Add support for MSVC compiler.
3331         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3332         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3333         directory separator in #line directives.
3334         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3335         recognize also backslash as directory separator in #line directives.
3336
3337 2011-09-08  Jim Meyering  <meyering@redhat.com>
3338
3339         maint.mk: mark the post-release commit log with "maint: " prefix
3340         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3341         one-line commit-log summary.
3342
3343 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3344             Bruno Haible  <bruno@clisp.org>
3345
3346         Doc about crypt functions.
3347         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3348         systems.
3349         * doc/posix-functions/encrypt.texi: Likewise.
3350         * doc/posix-functions/setkey.texi: Likewise.
3351
3352 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3353
3354         * lib/gc.h: Fix copyright header.
3355
3356 2011-09-07  Bruno Haible  <bruno@clisp.org>
3357
3358         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3359         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3360         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3361
3362 2011-09-07  Bruno Haible  <bruno@clisp.org>
3363
3364         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3365         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3366         * lib/freopen.c: Likewise.
3367         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3368         * lib/lstat.c: Likewise.
3369         * lib/stat.c: Likewise.
3370         * lib/open.c: Use different syntax for include of <fcntl.h>.
3371         * lib/openat.c: Include fcntl.h again, explicitly.
3372
3373 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3374
3375         parse-datetime: document the newly accepted format
3376         * doc/parse-datetime.texi (Combined date and time of day items):
3377         New section.
3378
3379 2011-09-06  Bruno Haible  <bruno@clisp.org>
3380
3381         acl: Fix a test failure on newer Solaris 10 with ZFS.
3382         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3383         ENOSYS as no ACL.
3384         Reported by Jim Meyering.
3385
3386 2011-09-06  Bruno Haible  <bruno@clisp.org>
3387
3388         acl: Update for AIX >= 5.3 with NFS.
3389         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3390         ENOSYS as no ACL.
3391
3392         acl: Fix a test failure on AIX >= 5.3 with NFS.
3393         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3394         as no ACL.
3395
3396 2011-09-06  Bruno Haible  <bruno@clisp.org>
3397
3398         acl: Fix a test failure on IRIX 6.5 with NFS.
3399         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3400         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3401         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3402         * lib/copy-acl.c (qcopy_acl): Likewise.
3403
3404 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         openat: port to AIX 7.1 with large files
3407         AIX 7.1 does a "#define openat open64at" if large files are in use,
3408         so we can't simply #undef openat.  Use the orig_openat trick (similar
3409         to orig_open in lib/open.c) to work around the problem.  Problem
3410         reported by Kevin Brott for GNU tar, in the thread containing
3411         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3412         * lib/openat.c (__need_system_fcntl_h): Define first.
3413         Include <fcntl.h> and <sys/types.h> before undefining.
3414         (orig_openat) [HAVE_OPENAT]: New inline function.
3415         (openat) [HAVE_OPENAT]: Do not undef.
3416         (rpl_openat): Use orig_openat, not openat.
3417
3418 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3419             Bruno Haible  <bruno@clisp.org>
3420
3421         acl: Avoid errors on NonStop Kernel.
3422         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3423         ENOTSUP errors.
3424
3425 2011-09-05  Bruno Haible  <bruno@clisp.org>
3426
3427         acl: Clean up Solaris code.
3428         * lib/acl-internal.h: Remove no-op #if.
3429         * lib/file-has-acl.c: Likewise.
3430         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3431         * lib/copy-acl.c (qcopy_acl): Likewise.
3432
3433 2011-09-05  Bruno Haible  <bruno@clisp.org>
3434
3435         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3436         binaries built on the original Solaris 10.
3437         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3438         trivial.
3439
3440 2011-09-05  Bruno Haible  <bruno@clisp.org>
3441
3442         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3443         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3444         10.
3445         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3446         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3447         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3448         instead of acl_get, facl_get, acl_set, facl_set.
3449
3450 2011-09-05  Bruno Haible  <bruno@clisp.org>
3451
3452         copy-file: Try unit tests on more file systems.
3453         * tests/test-copy-file-1.sh: New file.
3454         * tests/test-copy-file-2.sh: New file.
3455         * modules/copy-file-tests (Files): Add them.
3456         (Makefile.am): Add them to TESTS.
3457
3458         acl: Try unit tests on more file systems.
3459         * tests/test-file-has-acl-1.sh: New file.
3460         * tests/test-file-has-acl-2.sh: New file.
3461         * tests/test-set-mode-acl-1.sh: New file.
3462         * tests/test-set-mode-acl-2.sh: New file.
3463         * tests/test-copy-acl-1.sh: New file.
3464         * tests/test-copy-acl-2.sh: New file.
3465         * modules/acl-tests (Files): Add them.
3466         (Makefile.am): Add them to TESTS.
3467
3468 2011-09-04  Bruno Haible  <bruno@clisp.org>
3469
3470         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3471         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3472         10.
3473         (OLD_ALLOW, OLD_DENY): New macros.
3474         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3475         ACE_ACCESS_ALLOWED_ACE_TYPE.
3476         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3477         ACE_ACCESS_DENIED_ACE_TYPE.
3478         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3479         (NEW_ACE_EXECUTE): Fix value.
3480         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3481         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3482         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3483         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3484         NEW_ACE_SYNCHRONIZE): New macros.
3485         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3486         instead of acl_fromtext, acl_set, facl_set.
3487         Fixes a coreutils/tests/cp/perm failure.
3488
3489 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3490
3491         openat: test for fstatat (..., 0) bug
3492         Further testing with tar suggests that fstatat (..., 0)
3493         does not work in general, on AIX 7.1; see
3494         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3495         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3496         replacement fstatat (which is what older AIX releases were using
3497         anyway).
3498         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3499         use is now changed to orig_fstatat.  This was probably the right
3500         thing to do anyway.
3501         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3502         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3503         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3504         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3505         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3506         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3507         if the bug is found.
3508
3509         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3510         This tests for another fstatat bug on AIX 7.1:
3511         fstatat (AT_FDCWD, ..., 0) does not work.  See
3512         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3513         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3514         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3515         (rpl_fstatat): Adjust so that it works around either (or both)
3516         bugs if present.
3517         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3518
3519 2011-09-03  Karl Berry  <karl@gnu.org>
3520
3521         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3522         in index entries.
3523
3524 2011-09-02  Bruno Haible  <bruno@clisp.org>
3525
3526         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3527         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3528         values of AR, ARFLAGS, RANLIB.
3529         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3530
3531 2011-09-02  Bruno Haible  <bruno@clisp.org>
3532
3533         Find 'ar' program that fits with --host argument.
3534         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3535
3536 2011-09-02  Bruno Haible  <bruno@clisp.org>
3537
3538         tests: init.sh: Support any non-GNU diff.
3539         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3540         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3541         Solaris 8.
3542
3543 2011-09-02  Bruno Haible  <bruno@clisp.org>
3544
3545         tests: init.sh: work also with any non-GNU diff that supports -u
3546         * tests/init.sh: Relax check for diff -u support.
3547         Rather than checking for GNU diff via --version, simply check
3548         for support for -u itself.  Useful at least on OpenBSD 4.9,
3549         AIX 7.1, IRIX 6.5, and Solaris 10.
3550
3551 2011-09-01  Bruno Haible  <bruno@clisp.org>
3552
3553         strtoimax, strtoumax: Document problem on HP-UX 11.
3554         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3555         * doc/posix-functions/strtoumax.texi: Likewise.
3556
3557 2011-09-01  Bruno Haible  <bruno@clisp.org>
3558
3559         strtoumax: Avoid link error on OSF/1 with DTK cc.
3560         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3561         defined as a function.
3562         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3563         strtoumax is defined, not whether it is declared.
3564
3565 2011-09-01  Bruno Haible  <bruno@clisp.org>
3566
3567         strtoimax: Avoid link error on OSF/1 with DTK cc.
3568         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3569         defined as a function.
3570         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3571         strtoimax is defined, not whether it is declared.
3572
3573 2011-09-01  Bruno Haible  <bruno@clisp.org>
3574
3575         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3576         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3577         as a function.
3578         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3579         whether it is declared.
3580
3581 2011-09-01  Bruno Haible  <bruno@clisp.org>
3582
3583         imaxabs: Avoid link error on OSF/1 with DTK cc.
3584         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3585         as a function.
3586         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3587         whether it is declared.
3588
3589 2011-09-01  Bruno Haible  <bruno@clisp.org>
3590
3591         Tests for module 'strtoumax'.
3592         * modules/strtoumax-tests: New file.
3593         * tests/test-strtoumax.c: New file.
3594
3595         Tests for module 'strtoimax'.
3596         * modules/strtoimax-tests: New file.
3597         * tests/test-strtoimax.c: New file.
3598
3599         Tests for module 'imaxdiv'.
3600         * modules/imaxdiv-tests: New file.
3601         * tests/test-imaxdiv.c: New file.
3602
3603         Tests for module 'imaxabs'.
3604         * modules/imaxabs-tests: New file.
3605         * tests/test-imaxabs.c: New file.
3606
3607 2011-09-01  Bruno Haible  <bruno@clisp.org>
3608
3609         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3610         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3611         pthread_create.
3612
3613 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3614
3615         openat: work around AIX 7.1 fstatat issue
3616         This should fix the problem that was not properly fixed
3617         in the previous change, dated 2011-08-30.
3618         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3619         __need_system_stat_h defined.
3620         (orig_fstatat) [HAVE_FSTATAT]: New function.
3621         (rpl_fstatat): Go back to the old way of doing things,
3622         except call orig_fstatat instead of fstatat.
3623         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3624         Remove unnecessary check whether fstatat fills in st_size etc.
3625
3626 2011-09-01  Bruno Haible  <bruno@clisp.org>
3627
3628         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3629         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3630         just include the system's header.
3631
3632 2011-08-31  Jim Meyering  <meyering@redhat.com>
3633
3634         tests: avoid spurious assertion failure in test-float.c on ppc64
3635         * tests/test-float.c (test_long_double): Comment out an assertion,
3636         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3637         with gcc-4.4.4.
3638
3639         maint: indent with spaces, not TABs
3640         I need to get in the habit of running gnulib's "make check".
3641         Both of these would have been caught.
3642         * m4/largefile.m4: Indent with spaces, not TABs.
3643         * lib/parse-datetime.y (iso_8601_time): Likewise.
3644         Spotted by Pádraig Brady.
3645
3646         test-parse-datetime.c: accommodate a relatively strict gcc warning
3647         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3648         to avoid a warning from gcc's -Werror=missing-declarations.
3649         Insert a few spaces-before-funcall-parenthesis.
3650
3651 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3652
3653         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3654         The parser now accepts ISO 8601 date-time strings with "T" as the
3655         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3656         with a space between the date and time strings.  Now it also parses
3657         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3658         variants like "2004-02-29T16:21:42.333-07:00"
3659         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3660         of day representation using the 'T' separator character.
3661         * doc/parse-datetime.texi (General date syntax): replace use of
3662         deprecated --iso-8601 option with --rfc-3339 in example of date
3663         command output formats that can be parsed.
3664         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3665         lib/parse-datetime.y.
3666         (gmt_offset): New function.
3667         (main): Add additional test cases to validate ISO8601 extended
3668         date and time of day parsing.
3669
3670 2011-08-31  Bruno Haible  <bruno@clisp.org>
3671
3672         freopen: Documentation.
3673         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3674         name.
3675         Reported by Claudio Bley <claudio.bley@gmail.com>.
3676
3677 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3678
3679         freopen: Don't crash if the filename argument is NULL.
3680         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3681         NULL.
3682
3683 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3684
3685         openat: work around AIX 7.1 fstatat bug
3686         Problem reported by Kevin Brott for GNU tar, in the thread containing
3687         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3688         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3689         FSTATAT_ST_SIZE_ETC_BROKEN.
3690         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3691         rpl_fstatat.
3692         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3693         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3694         AC_CHECK_FUNCS_ONCE for fstatat.
3695         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3696         fchmodat, mkdirat, openat and unlinkat.
3697
3698 2011-08-30  Bruno Haible  <bruno@clisp.org>
3699
3700         Avoid endless recursions if config.h includes some header files.
3701         * lib/fopen.c (__need_FILE): Define already before including config.h.
3702         * lib/freopen.c (__need_FILE): Likewise.
3703         * lib/open.c (__need_system_fcntl_h): Likewise.
3704         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3705         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3706         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3707
3708 2011-08-25  Karl Berry  <karl@gnu.org>
3709
3710         * config/srclist.txt (ylwrap): new try.
3711         * build-aux/ylwrap: new file.
3712
3713 2011-08-23  Bruno Haible  <bruno@clisp.org>
3714
3715         tmpdir: Use a good default directory on native Windows.
3716         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3717         (P_tmpdir): Default to _P_tmpdir on native Windows.
3718         (path_search): On native Windows, try the value returned by GetTempPath
3719         before trying P_tmpdir.
3720         * modules/tmpdir (Depends-on): Add pathmax.
3721         Suggested by John Darrington <john@darrington.wattle.id.au>.
3722
3723 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3724
3725         doc: fix typo in README-release
3726         * top/README-release: Capitalize first word of a sentence.
3727
3728 2011-08-19  Jim Meyering  <meyering@redhat.com>
3729
3730         fts: do not exhaust memory when processing million-entry directories
3731         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3732         directory would require about 256*N bytes of memory.  Thus, it was
3733         easy to construct a directory too large to be processed by any of
3734         those tools.  With this change, fts' maximum memory utilization is
3735         now limited to around 30MB.
3736         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3737         (fts_read): When we've processed the final entry (i.e., when
3738         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3739         using the parent entry to read any remaining entries.  Dispatch
3740         depending on what fts_build returns:
3741         - NULL+stop, aka failure: stop
3742         - NULL otherwise: move up in the dir hierarchy
3743         - non-NULL: handle this new entry
3744         (fts_build): Declare and use new local, continue_readdir.
3745         Prepare to be called from fts_read, when the entries
3746         from a partially-read directory have just been exhausted.
3747         In that case, we'll skip the opendir and instead use the parent's
3748         fts_dirp and derive dir_fd from that.
3749         Finally, in the readdir loop, if we read max_entries entries,
3750         exit the loop ensuring *not* to call closedir.  This is required
3751         so that fts_dirp can be reused on a subsequent call.
3752         Prompted by Ben England's report of memory exhaustion in find
3753         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3754
3755         maint: fts: move decl of `dp' down into while loop; split a long line
3756         * lib/fts.c (fts_build): No semantic change.
3757
3758         fts: add/use new struct member, fts_dirp
3759         We are about to use this to manage any directory with
3760         too many entries to read all of them into memory at once.
3761         To do that, we'll need to save the DIR* pointer in each
3762         affected FTSENT struct.
3763         * lib/fts_.h: Include <dirent.h>.
3764         (struct FTSENT) [fts_dirp]: New member.
3765         * lib/fts.c (closedir_and_clear): Define.
3766         Use it in place of closedir so that we are sure to
3767         clear the new fts_dirp member when done with it.
3768         (fts_alloc): Initialize the new member.
3769         (fts_lfree): Free, if needed.
3770
3771         maint: fts: give __opendir2 a new parameter and rename
3772         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3773         than surreptitiously using sole caller's "dir_fd".
3774         (fts_opendir): Rename from __opendir2.
3775
3776         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3777         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3778
3779         maint: fts.c: correct off-by-one indentation
3780         * lib/fts.c (fts_build): Correct indentation, change style
3781         of a couple of block comments, and bracing style.
3782
3783         maint: fts.c: move __opendir2 #define "up" out of function body
3784         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3785
3786         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3787         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3788         out for a long time and besides was useful only on BSD systems.
3789
3790 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3791
3792         regex: port to Stratus OpenVOS
3793         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3794         define to empty, rather than attempting nonportable optimizations.
3795         Problem reported by Paul Green in:
3796         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3797         and fix suggested by Eric Blake in:
3798         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3799
3800 2011-08-17  Eric Blake  <eblake@redhat.com>
3801
3802         getcwd: fix test failures on mingw
3803         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3804         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3805         test if long directory cannot be created, and allow mingw errno.
3806
3807         getcwd-lgpl: fix m4 to match relaxed test for BSD
3808         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3809         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3810         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3811         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3812         signature problem.
3813
3814         getcwd: fix compilation on mingw64
3815         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3816         getcwd.
3817         Reported by Marc-André Lureau.
3818
3819         pipe2: silence compiler warning
3820         * lib/pipe2.c (pipe2): Hide label if it is not used.
3821
3822 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3823
3824         relocatable-prog: fix link error
3825         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3826         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3827         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3828         into modules/relocatable-lib without noticing that
3829         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3830         also needs to build relocatable.c.
3831
3832 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3833
3834         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3835         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3836         shell code: it contained a 'break' that was not in a loop.
3837         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3838         via a shell-language loop; this may have been true in old Autoconf
3839         versions, but it's not true in Autoconf 2.68.  I found this bug
3840         when testing coreutils git on Solaris 8, whose shell complains
3841         about the syntax error.
3842
3843 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3844
3845         * lib/base64.c: Fix comment to reference RFC 4648.
3846         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3847         <gvtulder@gmail.com>.
3848
3849 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3850
3851         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3852
3853         po/Makefile.in.in: fix make -q problem
3854         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3855         rule, since there's no file named 'check-macro-version' and its
3856         use as a file breaks make -q.
3857         (all): Don't depend on check-macro-version.
3858         (CHECK_MACRO_VERSION): New macro.
3859         (stamp-po): Use it.
3860
3861         configmake: fix make -q problem
3862         * modules/configmake (configmake.h): Update configmake.h's time stamp
3863         even if the file does not change.  Otherwise, 'make -q' fails.
3864         Problem reported by Simon Josefsson in
3865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3866
3867 2011-08-11  Jim Meyering  <meyering@redhat.com>
3868
3869         git-version-gen: correct the advice in a comment
3870         * build-aux/git-version-gen: Correct comment.
3871         Don't recommend to list .tarball-version in .gitignore.
3872
3873 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3874
3875         base64: fix off-by-one buffer size bug
3876         Problem and (trivial) fix reported by Gijs van Tulder in
3877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3878         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3879         * tests/test-base64.c (main): Catch the bug.
3880
3881 2011-08-10  Eric Blake  <eblake@redhat.com>
3882
3883         closein: correct comments
3884         * lib/closein.c (close_stdin): Improve comments.
3885
3886 2011-08-09  Bruno Haible  <bruno@clisp.org>
3887
3888         More tests for 'fseeko'.
3889         * tests/test-fseeko3.c: New file, from Eric Blake.
3890         * tests/test-fseeko3.sh: New file.
3891         * modules/fseeko-tests (Files): Add them.
3892         (TESTS): Add test-fseeko3.sh.
3893         (check_PROGRAMS): Add test-fseeko3.
3894
3895 2011-08-09  Eric Blake  <eblake@redhat.com>
3896
3897         fseeko: remove unneeded hack
3898         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3899
3900         fseeko: fix bug on glibc
3901         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3902         Reported by John W. Eaton.
3903
3904 2011-08-08  Bruno Haible  <bruno@clisp.org>
3905
3906         unictype/base: Fix interoperability with preinstalled libunistring.
3907         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3908         Reported by Simon Josefsson.
3909
3910 2011-08-08  Bruno Haible  <bruno@clisp.org>
3911
3912         iswblank: Detect declaration correctly.
3913         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3914         AC_CHECK_DECLS invocation.
3915
3916 2011-08-08  Bruno Haible  <bruno@clisp.org>
3917
3918         tcgetsid: Detect declaration correctly.
3919         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3920         AC_CHECK_DECLS invocation.
3921         Reported by Simon Josefsson.
3922
3923 2011-08-08  Eric Blake  <eblake@redhat.com>
3924
3925         largefile: fix typo that regressed large file support
3926         * modules/largefile (configure.ac-early): Fix section name.
3927
3928 2011-08-06  Karl Berry  <karl@gnu.org>
3929
3930         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3931         a separate module.
3932
3933 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3934
3935         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3936         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3937         get prototype for free.
3938
3939 2011-08-04  Bruno Haible  <bruno@clisp.org>
3940
3941         Tests for module 'pathmax'.
3942         * modules/pathmax-tests: New file.
3943         * tests/test-pathmax.c: New file.
3944
3945         canonicalize-lgpl: Support larger filenames on the Hurd.
3946         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3947         Reported by Paul Eggert.
3948
3949         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3950         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3951         * lib/chdir-long.h: Include pathmax.h.
3952         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3953         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3954         (PATH_MAX): Remove code that is done by pathmax.h.
3955         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3956         * lib/tmpfile.c: Add a comment.
3957         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3958         * modules/chdir-long (Depends-on): Add pathmax.
3959         * modules/getcwd (Depends-on): Add pathmax.
3960         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3961         is not defined.
3962         * doc/posix-headers/limits.texi: Mention the pathmax module.
3963         * NEWS: Mention the change.
3964
3965 2011-08-02  Bruno Haible  <bruno@clisp.org>
3966
3967         pthread_sigmask: Actually use results of gl_THREADLIB.
3968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3969         gl_THREADLIB, not gl_[]THREADLIB.
3970         Reported by Eric Blake.
3971
3972 2011-08-02  Jim Meyering  <meyering@redhat.com>
3973
3974         maint.mk: relax the default _gl_TS_function_match regexp
3975         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3976         space between function name and "(" in an "extern" declaration.
3977         That would fail to match a decl with no space there: extern void foo();
3978
3979 2011-07-31  Iain Nicol  <iain@thenicols.net>
3980
3981         git-version-gen: document that EXTRA_DIST must include .version
3982         * build-aux/git-version-gen: In the how-to-use comment, document
3983         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3984         will fail when run from an unpacked distribution tarball.
3985
3986 2011-08-01  Bruno Haible  <bruno@clisp.org>
3987
3988         wctype-h: Fix last change.
3989         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3990         REPLACE_TOWLOWER to 0.
3991         Reported by Sam Steingold <sds@gnu.org>.
3992
3993 2011-07-31  Bruno Haible  <bruno@clisp.org>
3994
3995         frexpl: Update autoconf test.
3996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3997         according to changes of 2011-06-20.
3998
3999 2011-07-31  Bruno Haible  <bruno@clisp.org>
4000
4001         sys_utsname: Add support for Minix.
4002         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4003         <sys/utsname.h>.
4004         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4005         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4006
4007 2011-07-31  Bruno Haible  <bruno@clisp.org>
4008
4009         strings: Add support for Minix.
4010         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4011         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4012         * doc/posix-headers/strings.texi: Document the Minix problem.
4013
4014 2011-07-31  Bruno Haible  <bruno@clisp.org>
4015
4016         wctype-h: Add support for Minix.
4017         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4018         REPLACE_TOWLOWER.
4019         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4020         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4021         REPLACE_ISWCNTRL.
4022
4023 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4024
4025         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4026         This is a performance improvement for 64-bit hosts: it causes the
4027         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4028
4029 2011-07-31  Bruno Haible  <bruno@clisp.org>
4030
4031         stdioext: Add support for Minix.
4032         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4033         * lib/fpurge.c (fpurge): Likewise.
4034         * lib/freadahead.c (freadahead): Likewise.
4035         * lib/freadable.c (freadable): Likewise.
4036         * lib/freading.c (freading): Likewise.
4037         * lib/freadptr.c (freadptr): Likewise.
4038         * lib/freadseek.c (freadptrinc): Likewise.
4039         * lib/fseeko.c (rpl_fseeko): Likewise.
4040         * lib/fseterr.c (fseterr): Likewise.
4041         * lib/fwritable.c (fwritable): Likewise.
4042         * lib/fwriting.c (fwriting): Likewise.
4043         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4044         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4045
4046 2011-07-31  Bruno Haible  <bruno@clisp.org>
4047
4048         errno: Port to Minix.
4049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4050         ECONNABORTED are defined.
4051         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4052         GNULIB_defined_ECONNABORTED): New macros.
4053         * lib/strerror-override.h (strerror_override): Test also
4054         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4055         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4056         ECONNABORTED.
4057         * doc/posix-headers/errno.texi: Mention the Minix problem.
4058
4059 2011-07-31  Bruno Haible  <bruno@clisp.org>
4060
4061         Work around declaration collisions on Minix.
4062         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4063         defined, set REPLACE_MBSINIT.
4064         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4065         defined, set REPLACE_MBRTOWC.
4066         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4067         set REPLACE_MBRLEN.
4068         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4069         defined, set REPLACE_MBSRTOWCS.
4070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4071         defined, set REPLACE_WCRTOMB.
4072         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4073         defined, set REPLACE_WCSRTOMBS.
4074
4075 2011-07-31  Bruno Haible  <bruno@clisp.org>
4076
4077         Add support for Minix with ACK compiler.
4078         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4079         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4080         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4081
4082 2011-07-31  Bruno Haible  <bruno@clisp.org>
4083
4084         Documentation about Minix.
4085         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4086         * doc/glibc-headers/*.texi: Likewise.
4087         * doc/posix-functions/*.texi: Likewise.
4088         * doc/glibc-functions/*.texi: Likewise.
4089
4090 2011-07-31  Bruno Haible  <bruno@clisp.org>
4091
4092         snippet/warn-on-use: Fix indentation.
4093         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4094
4095 2011-07-25  Jim Meyering  <meyering@redhat.com>
4096
4097         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4098         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4099         commands.
4100
4101 2011-07-27  Jim Meyering  <meyering@redhat.com>
4102
4103         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4104         * top/maint.mk (gl_extract_significant_defines_): Now that
4105         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4106         gnulib/lib/signal.in.h, and now that we recommend to
4107         define-if-undefined those two symbols in application code,
4108         we must filter them out of the "significant" list.
4109         This avoids a "make syntax-check" failure in coreutils.
4110
4111 2011-07-26  Eric Blake  <eblake@redhat.com>
4112
4113         warnings: add comments about previous patch
4114         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4115         * m4/include_next.m4: Likewise.
4116         * m4/warn-on-use.m4: Likewise.
4117         * m4/warnings.m4: Likewise, and simplify use.
4118         Suggested by Stefano Lattarini.
4119
4120         include-next, warnings: support older autoconf
4121         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4122         AS_VAR_PUSHDEF in a way that works with older autoconf.
4123         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4124         Reported by Daniel P. Berrange.
4125
4126 2011-07-25  Bruno Haible  <bruno@clisp.org>
4127
4128         fseek, ftell: Fix doc.
4129         * doc/posix-functions/fseek.texi: Reword statement about
4130         AC_SYS_LARGEFILE.
4131         * doc/posix-functions/ftell.texi: Likewise.
4132
4133 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4134             Bruno Haible  <bruno@clisp.org>
4135
4136         Add dependencies to the 'largefile' module.
4137         * modules/fopen (Depends-on): Add 'largefile'.
4138         * modules/freopen (Depends-on): Likewise.
4139         * modules/fseeko (Depends-on): Likewise.
4140         * modules/ftello (Depends-on): Likewise.
4141         * modules/glob (Depends-on): Likewise.
4142         * modules/lseek (Depends-on): Likewise.
4143         * modules/lstat (Depends-on): Likewise.
4144         * modules/mkostemp (Depends-on): Likewise.
4145         * modules/mkostemps (Depends-on): Likewise.
4146         * modules/mkstemp (Depends-on): Likewise.
4147         * modules/mkstemps (Depends-on): Likewise.
4148         * modules/open (Depends-on): Likewise.
4149         * modules/openat (Depends-on): Likewise.
4150         * modules/pread (Depends-on): Likewise.
4151         * modules/pwrite (Depends-on): Likewise.
4152         * modules/scandir (Depends-on): Likewise.
4153         * modules/stat (Depends-on): Likewise.
4154         * modules/tmpfile (Depends-on): Likewise.
4155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4156         since the containing module now depends on the largefile module.
4157         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4158         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4159         off_t is fixed by gnulib.
4160         * doc/posix-functions/freopen.texi: Likewise.
4161         * doc/posix-functions/fseeko.texi: Likewise.
4162         * doc/posix-functions/fstatat.texi: Likewise.
4163         * doc/posix-functions/ftello.texi: Likewise.
4164         * doc/posix-functions/glob.texi: Likewise.
4165         * doc/posix-functions/lseek.texi: Likewise.
4166         * doc/posix-functions/lstat.texi: Likewise.
4167         * doc/posix-functions/mkstemp.texi: Likewise.
4168         * doc/posix-functions/open.texi: Likewise.
4169         * doc/posix-functions/openat.texi: Likewise.
4170         * doc/posix-functions/pread.texi: Likewise.
4171         * doc/posix-functions/pwrite.texi: Likewise.
4172         * doc/posix-functions/scandir.texi: Likewise.
4173         * doc/posix-functions/stat.texi: Likewise.
4174         * doc/posix-functions/tmpfile.texi: Likewise.
4175         * doc/glibc-functions/mkostemp.texi: Likewise.
4176         * doc/glibc-functions/mkostemps.texi: Likewise.
4177         * doc/glibc-functions/mkstemps.texi: Likewise.
4178
4179 2011-07-25  Bruno Haible  <bruno@clisp.org>
4180
4181         fcntl: Move AC_LIBOBJ invocation to module description.
4182         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4183         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4184
4185         fcntl: Remove call-in from fchdir.m4.
4186         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4188
4189         dup3: Remove potential call-in from fchdir.m4.
4190         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4192
4193         dup2: Move AC_LIBOBJ invocation to module description.
4194         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4195         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4196         Don't invoke AC_LIBOBJ.
4197         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4198
4199         dup2: Remove call-in from fchdir.m4.
4200         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4202
4203         fclose: Move AC_LIBOBJ invocation to module description.
4204         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4205         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4206         to 1.
4207         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4208
4209         fclose: Remove call-in from close.m4.
4210         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4211         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4212
4213         close: Move AC_LIBOBJ invocation to module description.
4214         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4215         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4216         1.
4217         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4218
4219         close: Remove call-in from fchdir.m4.
4220         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4222
4223         open: Move AC_LIBOBJ invocation to module description.
4224         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4225         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4226         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4227
4228         open: Remove call-in from fchdir.m4.
4229         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4231
4232         fchdir: Start to remove gl_REPLACE_* idiom.
4233         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4234         (gl_FUNC_FCHDIR): Invoke it.
4235
4236 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4237
4238         * lib/ftell.c (ftell): Comment out cast.
4239
4240         close: use gl_REPLACE_FCLOSE only if defined
4241         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4242         is defined.  The close module doesn't depend on the fclose module
4243         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4245         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4246
4247 2011-07-24  Jim Meyering  <meyering@redhat.com>
4248
4249         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4250         * tests/test-select.h (test_function): Declare as "static".
4251
4252 2011-07-24  Bruno Haible  <bruno@clisp.org>
4253
4254         doc: Mention the effects of AC_SYS_LARGEFILE.
4255         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4256         on this function.
4257         * doc/posix-functions/aio_error.texi: Likewise.
4258         * doc/posix-functions/aio_fsync.texi: Likewise.
4259         * doc/posix-functions/aio_read.texi: Likewise.
4260         * doc/posix-functions/aio_return.texi: Likewise.
4261         * doc/posix-functions/aio_suspend.texi: Likewise.
4262         * doc/posix-functions/aio_write.texi: Likewise.
4263         * doc/posix-functions/fgetpos.texi: Likewise.
4264         * doc/posix-functions/fopen.texi: Likewise.
4265         * doc/posix-functions/freopen.texi: Likewise.
4266         * doc/posix-functions/fsetpos.texi: Likewise.
4267         * doc/posix-functions/fstatvfs.texi: Likewise.
4268         * doc/posix-functions/ftruncate.texi: Likewise.
4269         * doc/posix-functions/ftw.texi: Likewise.
4270         * doc/posix-functions/getrlimit.texi: Likewise.
4271         * doc/posix-functions/glob.texi: Likewise.
4272         * doc/posix-functions/lio_listio.texi: Likewise.
4273         * doc/posix-functions/lockf.texi: Likewise.
4274         * doc/posix-functions/mkstemp.texi: Likewise.
4275         * doc/posix-functions/mmap.texi: Likewise.
4276         * doc/posix-functions/nftw.texi: Likewise.
4277         * doc/posix-functions/openat.texi: Likewise.
4278         * doc/posix-functions/opendir.texi: Likewise.
4279         * doc/posix-functions/posix_fadvise.texi: Likewise.
4280         * doc/posix-functions/posix_fallocate.texi: Likewise.
4281         * doc/posix-functions/pread.texi: Likewise.
4282         * doc/posix-functions/pwrite.texi: Likewise.
4283         * doc/posix-functions/readdir.texi: Likewise.
4284         * doc/posix-functions/readdir_r.texi: Likewise.
4285         * doc/posix-functions/rewinddir.texi: Likewise.
4286         * doc/posix-functions/scandir.texi: Likewise.
4287         * doc/posix-functions/seekdir.texi: Likewise.
4288         * doc/posix-functions/setrlimit.texi: Likewise.
4289         * doc/posix-functions/statvfs.texi: Likewise.
4290         * doc/posix-functions/telldir.texi: Likewise.
4291         * doc/posix-functions/tmpfile.texi: Likewise.
4292         * doc/posix-functions/truncate.texi: Likewise.
4293         * doc/glibc-functions/fallocate.texi: Likewise.
4294         * doc/glibc-functions/fstatfs.texi: Likewise.
4295         * doc/glibc-functions/fts_children.texi: Likewise.
4296         * doc/glibc-functions/fts_read.texi: Likewise.
4297         * doc/glibc-functions/getdirentries.texi: Likewise.
4298         * doc/glibc-functions/mkostemp.texi: Likewise.
4299         * doc/glibc-functions/mkostemps.texi: Likewise.
4300         * doc/glibc-functions/mkstemps.texi: Likewise.
4301         * doc/glibc-functions/preadv.texi: Likewise.
4302         * doc/glibc-functions/pwritev.texi: Likewise.
4303         * doc/glibc-functions/sendfile.texi: Likewise.
4304         * doc/glibc-functions/statfs.texi: Likewise.
4305
4306 2011-07-24  Bruno Haible  <bruno@clisp.org>
4307
4308         doc: Fix typo.
4309         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4310
4311 2011-07-24  Bruno Haible  <bruno@clisp.org>
4312
4313         doc: Mention fsusage.
4314         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4315
4316 2011-07-24  Bruno Haible  <bruno@clisp.org>
4317
4318         doc: Mention new glibc headers and functions.
4319         * doc/glibc-headers/gshadow.texi: New file.
4320         * doc/glibc-functions/endsgent.texi: New file.
4321         * doc/glibc-functions/fgetsgent.texi: New file.
4322         * doc/glibc-functions/fgetsgent_r.texi: New file.
4323         * doc/glibc-functions/getsgent.texi: New file.
4324         * doc/glibc-functions/getsgent_r.texi: New file.
4325         * doc/glibc-functions/getsgnam.texi: New file.
4326         * doc/glibc-functions/getsgnam_r.texi: New file.
4327         * doc/glibc-functions/putsgent.texi: New file.
4328         * doc/glibc-functions/setsgent.texi: New file.
4329         * doc/glibc-functions/sgetsgent.texi: New file.
4330         * doc/glibc-functions/sgetsgent_r.texi: New file.
4331         * doc/glibc-functions/malloc_info.texi: New file.
4332         * doc/glibc-functions/preadv.texi: New file.
4333         * doc/glibc-functions/pwritev.texi: New file.
4334         * doc/glibc-functions/register_printf_modifier.texi: New file.
4335         * doc/glibc-functions/register_printf_specifier.texi: New file.
4336         * doc/glibc-functions/register_printf_type.texi: New file.
4337         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4338         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4339         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4340         * doc/glibc-functions/pthread_getname_np.texi: New file.
4341         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4342         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4343         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4344         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4345         * doc/glibc-functions/pthread_setname_np.texi: New file.
4346         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4347         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4348         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4349         * doc/glibc-functions/qsort_r.texi: New file.
4350         * doc/glibc-functions/quick_exit.texi: New file.
4351         * doc/glibc-functions/syncfs.texi: New file.
4352         * doc/gnulib.texi: Include them.
4353         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4354         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4355         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4356         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4357         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4358         * doc/glibc-functions/execvpe.texi: Likewise.
4359
4360 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4361
4362         ftell: don't include <unistd.h>
4363         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4364         guaranteed to define off_t, and the ftell module depends on the
4365         stdio module.
4366
4367         ftell: do not assume wraparound signed arithmetic
4368         * lib/ftell.c: Include <limits.h>.
4369         (ftell): Don't assume wraparound signed arithmetic.
4370
4371 2011-07-24  Bruno Haible  <bruno@clisp.org>
4372
4373         close: No longer depend on module 'fclose'.
4374         * modules/close (Depends-on): Remove fclose.
4375         * NEWS: Mention the change.
4376         Suggested by Sam Steingold <sds@gnu.org>.
4377
4378 2011-07-24  Bruno Haible  <bruno@clisp.org>
4379
4380         fsusage: Enable large volume support on AIX >= 5.2.
4381         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4382         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4383         instead of STAT_STATVFS.
4384         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4385
4386         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4387         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4388         f_blocks field only on MacOS X.
4389
4390         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4392         * modules/fsusage (Depends-on): Add largefile.
4393
4394 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         * README: Modernize discussion of signed integers.
4397         Assuming overflow wraparound is no longer safe.
4398         Mention ones' complement and signed magnitude.
4399
4400 2011-07-22  Bruno Haible  <bruno@clisp.org>
4401
4402         select tests, pselect tests: Refactor.
4403         * tests/test-select.h: New file, extracted from tests/test-select.c.
4404         (select_fn): New type.
4405         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4406         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4407         test_pipe): Add my_select argument.
4408         (test_function): Renamed from main. Add my_select argument.
4409         * tests/test-select.c: Move most code to tests/test-select.h. Include
4410         test-select.h.
4411         * modules/select-tests (Files): Add tests/test-select.h.
4412         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4413         (my_select, main): New functions.
4414         * modules/pselect-tests (Files): Add tests/test-select.h,
4415         tests/macros.h, tests/signature.h.
4416         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4417         (configure.ac): Check for <sys/wait.h>.
4418
4419 2011-07-22  Bruno Haible  <bruno@clisp.org>
4420
4421         sys_select tests: Check the signature of FD_*.
4422         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4423         signature tests from here...
4424         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4425         here.
4426         * modules/sys_select-tests (Files): Add tests/signature.h.
4427
4428 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4429
4430         largefile: new module, replacing large-inode
4431         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4432         * MODULES.html.sh: Add largefile, remove large-inode.
4433         * modules/largefile, m4/largefile.m4: New files.
4434         * modules/large-inode, m4/large-inode.m4: Remove.
4435
4436         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4437         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4438         implementations that use only 32 bits to count blocks.
4439         On typical hosts with 1024-byte blocks, this fails with file
4440         systems as small as 4 TiB.  Problem reported by Herb Wartens
4441         <http://debbugs.gnu.org/9140> and this should also fix a similar
4442         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4443
4444         large-inode: New module
4445         * MODULES.html.sh: Add it.
4446         * modules/large-inode, m4/large-inode.m4: New files.
4447
4448         extensions: Enable extensions on MacOS X 10.5 and later.
4449         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4450
4451 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4452
4453         file-has-acl: use acl_extended_file_nofollow if available
4454         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4455         (acl_extended_file): New macro.
4456         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4457         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4458
4459 2011-07-21  Bruno Haible  <bruno@clisp.org>
4460
4461         Declare system functions in a way that works with C++.
4462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4463         declare fdopendir as extern "C".
4464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4465         declare frexpl as extern "C".
4466         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4467         declare gai_strerror as extern "C".
4468         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4469         programs, declare gai_strerror as extern "C".
4470         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4471         declare getlogin_r as extern "C".
4472         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4473         as extern "C".
4474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4475         declare ldexpl as extern "C".
4476         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4477         as extern "C".
4478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4479         program, declare getmntinfo as extern "C".
4480         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4481         stpncpy as extern "C".
4482         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4483         program, declare __xpg_strerror_r as extern "C".
4484         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4485         strndup as extern "C".
4486         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4487         declare memset and bzero as extern "C".
4488         Reported by Sam Steingold <sds@gnu.org>.
4489
4490 2011-07-12  Jim Meyering  <meyering@redhat.com>
4491
4492         maint.mk: prohibit inclusion of "verify.h" without use
4493         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4494
4495 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4496
4497         timer-time: A new module to check for timer_settime()
4498         * m4/timer_time.m4: Check for the posix function.
4499         * modules/timer-time: Add the new module.
4500         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4501         Mention it.
4502
4503 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4504             Bruno Haible  <bruno@clisp.org>
4505
4506         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4507         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4508         not defined, assume POSIX threads and look for pthread_sigmask in
4509         $LIBS, without changing $CPPFLAGS.
4510
4511 2011-07-19  Bruno Haible  <bruno@clisp.org>
4512
4513         strstr: Update cross-compilation guess.
4514         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4515         CPUs, guess no, in view of glibc
4516         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4517         Suggested by Eric Blake. Reported by Reuben Thomas.
4518
4519 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4520
4521         getopt-gnu: suppress core dumps from detection code
4522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4523         to suppress core dumps that may well occur on glibc systems.
4524         * modules/getopt-gnu: Depend on nocrash.
4525
4526 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4527
4528         pthread_sigmask: ensure usleep is declared
4529         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4530         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4531
4532 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4533
4534         doc: Document NonStop portability issues.
4535         * doc/posix-functions/sigaction.texi (sigaction):
4536         * doc/posix-headers/signal.texi (signal.h):
4537         Document NonStop.  See Joachim Schmitz in
4538         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4539
4540 2011-07-15  Bruno Haible  <bruno@clisp.org>
4541
4542         ffsl, ffsll: Avoid unportable behaviour.
4543         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4544
4545 2011-07-15  Bruno Haible  <bruno@clisp.org>
4546
4547         ffs: More tests.
4548         * tests/test-ffs.c (NBITS): New macro.
4549         (main): Add more tests.
4550         * tests/test-ffsl.c (NBITS): New macro.
4551         (main): Add more tests.
4552         * tests/test-ffsll.c (NBITS): New macro.
4553         (main): Add more tests.
4554
4555 2011-07-15  Eric Blake  <eblake@redhat.com>
4556
4557         ffsl, ffsll: new modules
4558         * modules/ffsl: New file.
4559         * modules/ffsll: Likewise.
4560         * m4/ffsl.m4: Likewise.
4561         * m4/ffsll.m4: Likewise.
4562         * lib/ffsl.c: Likewise.
4563         * lib/ffsl.h: Likewise.
4564         * lib/ffsll.c: Likewise.
4565         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4566         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4567         * modules/string (Makefile.am): Substitute witnesses.
4568         * lib/strings.in.h (ffsl, ffsll): Declare.
4569         * modules/ffsl-tests: New test file.
4570         * modules/ffsll-tests: Likewise.
4571         * tests/test-ffsl.c: Likewise.
4572         * tests/test-ffsll.c: Likewise.
4573         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4574         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4575         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4576
4577         ffs: fix m4 prerequisite
4578         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4579
4580         ffs: avoid undefined behavior
4581         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4582         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4583         Reported by Bruno Haible.
4584
4585 2011-07-12  Bruno Haible  <bruno@clisp.org>
4586
4587         pthread_sigmask: Rely on module 'threadlib'.
4588         * modules/pthread_sigmask (Depends-on): Add threadlib.
4589         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4590         is defined.
4591
4592 2011-07-12  Bruno Haible  <bruno@clisp.org>
4593
4594         regex: Depend on module 'strcase'.
4595         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4596
4597 2011-07-12  Jim Meyering  <meyering@redhat.com>
4598
4599         warn-on-use: fix typo in file name
4600         * modules/snippet/warn-on-use (Files): Correct file name:
4601         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4602
4603 2011-07-12  Bruno Haible  <bruno@clisp.org>
4604
4605         strings: Document module.
4606         * doc/posix-headers/strings.texi: Mention module 'strings'.
4607
4608 2011-07-12  Bruno Haible  <bruno@clisp.org>
4609
4610         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4611         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4612         (Files, Makefile.am): Update.
4613         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4614         * modules/stdlib (Depends-on): Update.
4615
4616 2011-07-12  Bruno Haible  <bruno@clisp.org>
4617
4618         * NEWS: Mention the changes.
4619
4620         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4621         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4622         (Files, Makefile.am): Update.
4623         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4624         * modules/arpa_inet (Depends-on): Update.
4625         * modules/ctype (Depends-on): Update.
4626         * modules/dirent (Depends-on): Update.
4627         * modules/fcntl-h (Depends-on): Update.
4628         * modules/glob (Depends-on): Update.
4629         * modules/iconv-h (Depends-on): Update.
4630         * modules/inttypes-incomplete (Depends-on): Update.
4631         * modules/langinfo (Depends-on): Update.
4632         * modules/locale (Depends-on): Update.
4633         * modules/math (Depends-on): Update.
4634         * modules/netdb (Depends-on): Update.
4635         * modules/poll-h (Depends-on): Update.
4636         * modules/pty (Depends-on): Update.
4637         * modules/search (Depends-on): Update.
4638         * modules/signal (Depends-on): Update.
4639         * modules/spawn (Depends-on): Update.
4640         * modules/stdio (Depends-on): Update.
4641         * modules/stdlib (Depends-on): Update.
4642         * modules/string (Depends-on): Update.
4643         * modules/strings (Depends-on): Update.
4644         * modules/sys_file (Depends-on): Update.
4645         * modules/sys_ioctl (Depends-on): Update.
4646         * modules/sys_select (Depends-on): Update.
4647         * modules/sys_socket (Depends-on): Update.
4648         * modules/sys_stat (Depends-on): Update.
4649         * modules/sys_time (Depends-on): Update.
4650         * modules/sys_times (Depends-on): Update.
4651         * modules/sys_utsname (Depends-on): Update.
4652         * modules/sys_wait (Depends-on): Update.
4653         * modules/termios (Depends-on): Update.
4654         * modules/time (Depends-on): Update.
4655         * modules/unistd (Depends-on): Update.
4656         * modules/wchar (Depends-on): Update.
4657         * modules/wctype-h (Depends-on): Update.
4658         * MODULES.html.sh (Support for building libraries and executables):
4659         Update.
4660
4661         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4662         * modules/snippet/unused-parameter: Renamed from
4663         modules/unused-parameter.
4664         (Files, Makefile.am): Update.
4665         * build-aux/snippet/unused-parameter.h: Renamed from
4666         build-aux/unused-parameter.h.
4667         * modules/selinux-h (Depends-on): Update.
4668         * modules/unistr/base (Depends-on): Update.
4669         * MODULES.html.sh (Core language properties): Update.
4670
4671         Rename module 'link-warning' to 'snippet/link-warning'.
4672         * modules/snippet/link-warning: Renamed from modules/link-warning.
4673         (Files, Makefile.am): Update.
4674         * build-aux/snippet/link-warning.h: Renamed from
4675         build-aux/link-warning.h.
4676         * MODULES.html.sh (Support for building libraries and executables):
4677         Update.
4678
4679         Rename module 'c++defs' to 'snippet/c++defs'.
4680         * modules/snippet/c++defs: Renamed from modules/c++defs.
4681         (Files, Makefile.am): Update.
4682         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4683         * modules/arpa_inet (Depends-on): Update.
4684         * modules/ctype (Depends-on): Update.
4685         * modules/dirent (Depends-on): Update.
4686         * modules/fcntl-h (Depends-on): Update.
4687         * modules/glob (Depends-on): Update.
4688         * modules/iconv-h (Depends-on): Update.
4689         * modules/langinfo (Depends-on): Update.
4690         * modules/locale (Depends-on): Update.
4691         * modules/math (Depends-on): Update.
4692         * modules/netdb (Depends-on): Update.
4693         * modules/poll-h (Depends-on): Update.
4694         * modules/pty (Depends-on): Update.
4695         * modules/search (Depends-on): Update.
4696         * modules/signal (Depends-on): Update.
4697         * modules/spawn (Depends-on): Update.
4698         * modules/stdio (Depends-on): Update.
4699         * modules/stdlib (Depends-on): Update.
4700         * modules/string (Depends-on): Update.
4701         * modules/strings (Depends-on): Update.
4702         * modules/sys_ioctl (Depends-on): Update.
4703         * modules/sys_select (Depends-on): Update.
4704         * modules/sys_socket (Depends-on): Update.
4705         * modules/sys_stat (Depends-on): Update.
4706         * modules/sys_time (Depends-on): Update.
4707         * modules/sys_wait (Depends-on): Update.
4708         * modules/termios (Depends-on): Update.
4709         * modules/time (Depends-on): Update.
4710         * modules/unistd (Depends-on): Update.
4711         * modules/wchar (Depends-on): Update.
4712         * modules/wctype-h (Depends-on): Update.
4713
4714         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4715         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4716         (Files, Makefile.am): Update.
4717         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4718         * modules/argv-iter (Depends-on): Update.
4719         * modules/arpa_inet (Depends-on): Update.
4720         * modules/dirent (Depends-on): Update.
4721         * modules/fcntl-h (Depends-on): Update.
4722         * modules/fnmatch (Depends-on): Update.
4723         * modules/getopt-posix (Depends-on): Update.
4724         * modules/glob (Depends-on): Update.
4725         * modules/iconv-h (Depends-on): Update.
4726         * modules/inttypes-incomplete (Depends-on): Update.
4727         * modules/locale (Depends-on): Update.
4728         * modules/math (Depends-on): Update.
4729         * modules/netdb (Depends-on): Update.
4730         * modules/search (Depends-on): Update.
4731         * modules/signal (Depends-on): Update.
4732         * modules/spawn (Depends-on): Update.
4733         * modules/stdio (Depends-on): Update.
4734         * modules/stdlib (Depends-on): Update.
4735         * modules/string (Depends-on): Update.
4736         * modules/strings (Depends-on): Update.
4737         * modules/sys_socket (Depends-on): Update.
4738         * modules/sys_stat (Depends-on): Update.
4739         * modules/sys_time (Depends-on): Update.
4740         * modules/sys_times (Depends-on): Update.
4741         * modules/sys_utsname (Depends-on): Update.
4742         * modules/time (Depends-on): Update.
4743         * modules/unistd (Depends-on): Update.
4744         * modules/wchar (Depends-on): Update.
4745         * MODULES.html.sh (Support for building libraries and executables):
4746         Update.
4747
4748 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4749
4750         Improvements on _Noreturn and related modules.
4751
4752         modules/_Exit-tests: test _Noreturn too
4753         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4754         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4755         (main): Use them.
4756
4757         stdnoreturn, stdnoreturn-tests: remove modules
4758         They're not needed here and a bit premature for use elsewhere.  See
4759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4760         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4761         * tests/test-stdnoreturn.c: Remove files.
4762         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4763         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4764         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4765         and using noreturn.
4766         * modules/openat, modules/sigpipe-die, modules/xalloc:
4767         * modules/xmemdup0, modules/xstrtol:
4768         Remove dependency on stdnoreturn.
4769
4770         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4771         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4772         Reparenthesize to avoid GCC warning.
4773         Support Microsoft's syntax.
4774         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4775
4776         _Noreturn-tests: remove module
4777         * modules/_Noreturn-tests: Remove.
4778         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4779         * tests/test-_Noreturn.c: Remove.
4780         * tests/test-stdnoreturn.c: Merge from the old
4781         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4782
4783 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4784
4785         _Noreturn, stdnoreturn, and related modules.
4786
4787         * top/maint.mk: Adjust to new noreturn support.
4788         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4789         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4790
4791         xalloc: use stdnoreturn.h
4792         * lib/xalloc.h: Include <stdnoreturn.h>.
4793         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4794         * modules/xalloc (Depends-on): Add stdnoreturn.
4795
4796         xstrtol: use stdnoreturn.h
4797         * lib/xstrtol.h: Include <stdnoreturn.h>.
4798         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4799         * modules/xstrtol (Depends-on): Add stdnoreturn.
4800
4801         xmemdup0: use stdnoreturn.h
4802         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4803         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4804         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4805
4806         sigpipe-die: use stdnoreturn.h
4807         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4808         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4809         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4810
4811         openat: use stdnoreturn.h
4812         * lib/openat.h: Include <stdnoreturn.h>.
4813         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4814         * modules/openat (Depends-on): Add stdnoreturn.
4815
4816         * lib/openat-die.c (openat_save_fail): Modernize comment.
4817
4818         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4819
4820         * lib/glthread/thread.h: Modernize comment.
4821
4822         obstack: use _Noreturn
4823         * lib/obstack.c (__attribute__): Remove macro.
4824         (print_and_abort): Use _Noreturn.
4825
4826         c-stack: use _Noreturn
4827         * lib/c-stack.c (die, overflow_handler, segv_handler):
4828         Use _Noreturn rather than __attribute__((noreturn)).
4829
4830         argmatch-tests, exclude_tests: use _Noreturn
4831         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4832         Remove.
4833         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4834
4835         stdlib: use _Noreturn
4836         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4837         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4838         * modules/stdlib (Depends-on): Add _Noreturn.
4839         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4840
4841         stdnoreturn-tests: new module
4842         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4843
4844         stdnoreturn: new module
4845         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4846         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4847
4848         _Noreturn-tests: new module
4849         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4850
4851         _Noreturn: new module
4852         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4853         New section, mentioning it.
4854         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4855
4856         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4857
4858 2011-07-11  Eric Blake  <eblake@redhat.com>
4859
4860         ffs: new module
4861         * modules/ffs: New file.
4862         * m4/ffs.m4: Likewise.
4863         * lib/ffs.c: Likewise.
4864         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4865         * modules/strings (Makefile.am): Substitute witness.
4866         (Depends-on): Add c++defs.
4867         * lib/strings.in.h (ffs): Declare.
4868         * modules/ffs-tests: New test file.
4869         * tests/test-ffs.c: Test new module.
4870         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4871         * doc/posix-functions/ffs.texi (ffs): Likewise.
4872
4873         regex: avoid compiler warning
4874         * lib/regex.c (includes): Include <strings.h>, for use of
4875         strcasecmp in regcomp.c.
4876         Reported by Joachim Schmitz.
4877
4878 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4879
4880         stdint: respect system's intmax_t if INTMAX_MAX
4881         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4882         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4883         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4884         long but int64_t is long long, and where we will clash with the
4885         system intmax_t if we override it.  See
4886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4887         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4888         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4889         similarly for UINTMAX_C.
4890
4891 2011-07-08  Bruno Haible  <bruno@clisp.org>
4892
4893         pthread_sigmask tests: Avoid a compiler warning.
4894         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4895         non-zero.
4896
4897         sigprocmask tests: A better way to avoid a compiler warning.
4898         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4899         (main): Complain if system() returns non-zero.
4900         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4901
4902 2011-07-08  Bruno Haible  <bruno@clisp.org>
4903
4904         pthread_sigmask: Work around IRIX bug.
4905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4906         bug.
4907         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4908         there may be unblocked pending signals.
4909         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4910
4911 2011-07-08  Bruno Haible  <bruno@clisp.org>
4912
4913         pthread_sigmask: Work around Cygwin bug.
4914         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4915         bug.
4916         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4917         the system's pthread_sigmask function.
4918         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4919
4920 2011-07-08  Bruno Haible  <bruno@clisp.org>
4921
4922         pthread_sigmask: Work around bug in single-threaded implementation.
4923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4924         FreeBSD, HP-UX, Solaris bug.
4925         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4926         * lib/pthread_sigmask.c: Include <stddef.h>.
4927         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4928         the system's pthread_sigmask function.
4929         * modules/pthread_sigmask (configure.ac): Invoke
4930         gl_PREREQ_PTHREAD_SIGMASK.
4931         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4932         HP-UX, Solaris.
4933
4934 2011-07-08  Eric Blake  <eblake@redhat.com>
4935
4936         test-sigprocmask: avoid compiler warning
4937         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4938         * tests/test-sigprocmask.c (main): Use it to silence warning.
4939         Reported by Jim Meyering.
4940
4941         test-snprintf: avoid compiler warning
4942         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4943         * tests/test-vsnprintf.c (main): Likewise.
4944         Reported by Jim Meyering.
4945
4946 2011-07-08  Bruno Haible  <bruno@clisp.org>
4947
4948         Tests for module 'pthread_sigmask'.
4949         * modules/pthread_sigmask-tests: New file.
4950         * tests/test-pthread_sigmask1.c: New file, based on
4951         tests/test-sigprocmask.c.
4952         * tests/test-pthread_sigmask2.c: New file.
4953
4954 2011-07-08  Jim Meyering  <meyering@redhat.com>
4955
4956         test-getopt.h: avoid warning about an unused variable
4957         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4958
4959 2011-07-07  Jim Meyering  <meyering@redhat.com>
4960
4961         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4962         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4963         now that it no longer contains leading TABs.
4964         Remove unused "url=FIXME" statement.
4965
4966 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4967
4968         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4969         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4970         When gl_THREADLIB is not in use, assume that the POSIX sematics
4971         are desired.  This is better for Emacs, which uses POSIX semantics
4972         on GNUish and/or POSIXish platforms, and does not use threads at
4973         all otherwise.
4974
4975         pthread_sigmask: fix typo when testing for libraries
4976         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4977         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4978
4979 2011-07-08  Eric Blake  <eblake@redhat.com>
4980
4981         fts: introduce FTS_NOATIME
4982         * lib/fts_.h (FTS_NOATIME): New bit flag.
4983         (FTS_OPTIONMASK): Adjust.
4984         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4985         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4986
4987 2011-07-08  Bruno Haible  <bruno@clisp.org>
4988
4989         Tests for module 'thread'.
4990         * modules/thread-tests: New file.
4991         * tests/test-thread_self.c: New file.
4992         * tests/test-thread_create.cc: New file.
4993
4994 2011-07-08  Bruno Haible  <bruno@clisp.org>
4995
4996         thread: Avoid gcc warnings when using gl_thread_self().
4997         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4998         'void *'.
4999         (gl_thread_self_pointer): Update.
5000
5001 2011-07-07  Bruno Haible  <bruno@clisp.org>
5002
5003         signal-c++-tests: Check declaration of pthread_sigmask.
5004         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5005         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5006         $(LIB_PTHREAD_SIGMASK).
5007
5008 2011-07-07  Bruno Haible  <bruno@clisp.org>
5009
5010         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5011         * lib/signal.in.h (pthread_sigmask): Override if
5012         REPLACE_PTHREAD_SIGMASK is 1.
5013         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5014         REPLACE_PTHREAD_SIGMASK.
5015         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5016         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5017         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5018         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5019         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5020
5021 2011-07-07  Bruno Haible  <bruno@clisp.org>
5022
5023         pthread_sigmask: Ensure declaration in <signal.h>.
5024         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5025         include <pthread.h>.
5026         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5027         problem.
5028
5029 2011-07-07  Bruno Haible  <bruno@clisp.org>
5030
5031         pthread_sigmask: Document the module.
5032         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5033
5034 2011-07-07  Bruno Haible  <bruno@clisp.org>
5035
5036         pthread_sigmask: Follow gnulib conventions.
5037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5038         gl_PTHREAD_SIGMASK.
5039         * modules/pthread_sigmask (configure.ac): Update.
5040
5041 2011-07-07  Bruno Haible  <bruno@clisp.org>
5042
5043         pthread_sigmask: Make declaration C++ safe.
5044         * lib/signal.in.h: In two special conditions, just do an #include_next.
5045         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5046         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5047         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5048         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5049         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5050         not REPLACE_PTHREAD_MASK.
5051         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5052         not REPLACE_PTHREAD_MASK.
5053         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5054
5055 2011-07-07  Bruno Haible  <bruno@clisp.org>
5056
5057         pthread_sigmask: Fix return value.
5058         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5059         * lib/pthread_sigmask.c: New file.
5060         * modules/pthread_sigmask (Files): Add it.
5061         (configure.ac): Invoke AC_LIBOBJ.
5062
5063 2011-07-07  Eric Blake  <eblake@redhat.com>
5064
5065         getopt: more portable argv creation
5066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5067         const, use char arrays rather than strings.
5068         Suggested by Paul Eggert.
5069
5070 2011-07-07  Bruno Haible  <bruno@clisp.org>
5071
5072         Tests for module 'sigprocmask'.
5073         * modules/sigprocmask-tests: New file.
5074         * tests/test-sigprocmask.c: New file.
5075
5076 2011-07-07  Bruno Haible  <bruno@clisp.org>
5077
5078         float tests: Tweak.
5079         * tests/test-float.c (main): Tweak skip message.
5080
5081 2011-07-07  Eric Blake  <eblake@redhat.com>
5082
5083         getopt: avoid compiler warning during configure
5084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5085         assigning string literals to non-const pointer.
5086
5087         getopt-gnu: avoid crash in glibc getopt
5088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5089         * tests/test-getopt.h (test_getopt): Enhance test.
5090         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5091         * doc/posix-functions/getopt.texi (getopt): Document it.
5092         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5093         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5094         Likewise.
5095
5096 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5097
5098         getopt: handle W; without long options in getopt [BZ #12922]
5099         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5100         but no long options are defined, just return 'W'.
5101
5102 2011-07-07  Bruno Haible  <bruno@clisp.org>
5103
5104         Avoid literal tabs.
5105         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5106         variable containing a tab instead of a literal tab.
5107         Reported by Jim Meyering.
5108
5109 2011-07-07  Bruno Haible  <bruno@clisp.org>
5110
5111         Comments.
5112         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5113
5114 2011-07-06  Bruno Haible  <bruno@clisp.org>
5115
5116         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5117         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5118         <winsock2.h>.
5119         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5120         lib/sys_socket.in.h.
5121         (close, gethostname): Hide declarations from <winsock2.h>.
5122         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5123         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5124         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5125         (select): Don't override if gnulib's <sys/select.h> was already
5126         included.
5127         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5128         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5129         setsockopt, shutdown, select): Tweak indentation.
5130
5131 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5132
5133         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5134         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5135         in an application that does not use the sys_select module.
5136
5137 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5138
5139         poll: do not return 0 on timeout=-1
5140         * lib/poll.c: Loop with yield if no events occured
5141
5142 2011-07-06  Eric Blake  <eblake@redhat.com>
5143
5144         pthread_sigmask: always replace when not using pthread
5145         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5146         replacement when using some threading other than pthread.  Fix
5147         logic bug.
5148
5149 2011-07-06  Bruno Haible  <bruno@clisp.org>
5150
5151         Comments.
5152         * m4/printf.m4: Update comments about mingw.
5153
5154 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5155
5156         sys_select: define sigset_t more portably
5157         * lib/sys_select.in.h: Always include <sys/types.h>, since
5158         we now need sigset_t and mingw defines it there.
5159         Include <signal.h> before split inclusion guard, to avoid
5160         mishaps on Solaris, whose <signal.h> eventually includes us.
5161         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5162         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5163         which come from ...
5164         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5165         gl_CHECK_TYPE_SIGSET_T.
5166         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5167         does the real work.
5168         * modules/sys_select (Depends-on): Add 'signal'.
5169
5170         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5171         Suggested by Bruno Haible.
5172
5173         pselect: Use pthread_sigmask, not sigprocmask.
5174         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5175         multithreaded apps better than sigprocmask does.
5176         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5177         sigprocmask directly.
5178
5179 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5180
5181         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5182         Don't #undef,  since we don't need any underlying pselect.
5183         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5184         (Depends-on): Add select.
5185         (Link): Add $(LIBSOCKET).
5186         These changes suggested by Bruno Haible.
5187
5188         pselect: document better
5189         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5190         * doc/posix-functions/pselect.texi (pselect): Document new module.
5191
5192         pthread_sigmask: new module
5193         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5194         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5195         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5196         This is done only as a macro; I don't know how well that'll
5197         work for C++.  Move <sys/types.h> include before the include_next,
5198         to avoid mishap on Solaris.
5199         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5200         * modules/signal (Makefile.am): Substitute the check's results.
5201         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5202
5203         test-pselect: new module
5204         * modules/pselect-tests, tests/test-pselect.c: New files.
5205         * tests/test-select.c, tests/test-sys_select-c++.cc:
5206         If TEST_PSELECT is defined, test pselect instead of testing select.
5207
5208         * tests/test-sys_select.c (sigset_t): Test for it, too.
5209         Suggested by Bruno Haible.
5210
5211 2011-07-05  Eric Blake  <eblake@redhat.com>
5212
5213         snprintf: guarantee %1$d, for libintl
5214         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5215         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5216         * doc/posix-functions/snprintf.texi (snprintf): Update.
5217         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5218         * tests/test-snprintf.c (main): Enhance test.
5219         * tests/test-vsnprintf.c (main): Likewise.
5220
5221 2011-07-05  Jim Meyering  <meyering@redhat.com>
5222
5223         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5224         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5225         per Bruno's request, to accommodate this idiom (no space after "#")
5226         even when the function is inside an #if block:
5227         char *
5228         gets (char *s)
5229         #undef gets
5230         {
5231           ...
5232         }
5233
5234 2011-07-04  Jim Meyering  <meyering@redhat.com>
5235
5236         maint: indent with spaces, not TABs, and add a rule to check this
5237         * tests/test-userspec.c: Indent with spaces, not TABs.
5238         * tests/test-argp.c: Likewise.
5239         * tests/test-c-stack2.sh: Likewise.
5240         * tests/test-parse-duration.sh: Likewise
5241         * m4/strtod.m4: Likewise.
5242         * m4/alloca.m4: Likewise.
5243         * m4/pselect.m4: Likewise.
5244         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5245
5246 2011-07-03  Jim Meyering  <meyering@redhat.com>
5247
5248         maint.mk: correct omissions in prohibit_argmatch_without_use check
5249         This rule would mistakenly report that argmatch.h is included without
5250         use even when both the argmatch and invalid_arg macro were used.
5251         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5252         of argmatch and invalid_arg.
5253
5254 2011-07-03  Bruno Haible  <bruno@clisp.org>
5255
5256         Comments about EINTR.
5257         * lib/safe-read.h: Explain the purpose of this module.
5258         * lib/safe-write.h: Likewise.
5259         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5260         module.
5261         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5262         module.
5263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5264
5265 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5266
5267         xnanosleep: Rewrite to use new dtotimespec module.
5268         It has the conversion code that used to be in xnanosleep.
5269         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5270         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5271         (TIME_T_MAX): Remove.
5272         (xnanosleep): Rewrite in terms of dtotimespec.
5273         * modules/xnanosleep (Depends-on): Add dtotimespec.
5274         Remove intprops, stdbool.
5275
5276         timespec-add, timespec-sub: new modules
5277         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5278         * lib/timespec-add.c, lib/timespec-sub.c:
5279         * modules/timespec-add, modules/timespec-sub: New files.
5280
5281         dtotimespec: new module
5282         * lib/timespec.h (dtotimespec): New decl.
5283         * lib/dtotimespec.c, modules/dtotimespec: New files.
5284
5285         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5286
5287         pselect: new module
5288         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5289         (pselect): New decls.
5290         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5291         since the standard pselect decl uses 'restrict'.
5292         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5293         HAVE_PSELECT, REPLACE_PSELECT.
5294         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5295         HAVE_PSELECT, REPLACE_PSELECT.
5296         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5297
5298         sys_select: don't depend on sys_socket
5299         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5301         This fix works on GNU and GNU-like platforms, but has not been tested
5302         on native Windows.
5303         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5305         gl_HEADER_SYS_SOCKET.
5306         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5307         gl_PREREQ_SYS_H_WINSOCK2.
5308
5309 2011-06-29  Eric Blake  <eblake@redhat.com>
5310
5311         pipe2: fix C89 compile problem
5312         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5313         Reported by Bruno Haible.
5314
5315         pipe, pipe2: don't corrupt fd on error
5316         * lib/pipe.c (pipe): Leave fd unchanged on error.
5317         * lib/pipe2.c (pipe2): Likewise.
5318         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5319         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5320
5321 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5322
5323         mmap-anon: do not use regular expressions inadvertently
5324         * m4/mmap-anon.m4: Remove trailing period from strings sought
5325         in the output.
5326
5327 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5328
5329         nanosleep: fix integer overflow problem
5330         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5331         arithmetic wraps around on overflow.
5332
5333         nanosleep: simplify carrying
5334         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5335         first call to the underyling nanosleep, not for the last one.
5336         This doesn't fix any bugs, but it simplifies the computation of
5337         the remaining delay.  Found while auditing integer overflow issues.
5338
5339         dup2: remove test for existence of fcntl
5340         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5341         "#if HAVE_FCNTL", in the configure-time test program.
5342         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5343         and therefore speeds up "configure" a bit.  Found while
5344         adding the dup2 module to Emacs.
5345
5346 2011-06-24  Eric Blake  <eblake@redhat.com>
5347
5348         maint.mk: enhance useless header checks
5349         * top/maint.mk (_sc_header_without_use): Check both include
5350         styles.
5351         (sc_prohibit_assert_without_use)
5352         (sc_prohibit_close_stream_without_use)
5353         (sc_prohibit_getopt_without_use)
5354         (sc_prohibit_quotearg_without_use)
5355         (sc_prohibit_quote_without_use)
5356         (sc_prohibit_long_options_without_use)
5357         (sc_prohibit_inttostr_without_use)
5358         (sc_prohibit_ignore_value_without_use)
5359         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5360         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5361         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5362         (sc_prohibit_hash_pjw_without_use)
5363         (sc_prohibit_safe_read_without_use)
5364         (sc_prohibit_argmatch_without_use)
5365         (sc_prohibit_canonicalize_without_use)
5366         (sc_prohibit_root_dev_ino_without_use)
5367         (sc_prohibit_openat_without_use)
5368         (sc_prohibit_c_ctype_without_use)
5369         (sc_prohibit_signal_without_use)
5370         (sc_prohibit_stdio--_without_use)
5371         (sc_prohibit_stdio-safer_without_use)
5372         (sc_prohibit_strings_without_use)
5373         (sc_prohibit_intprops_without_use)
5374         (sc_prohibit_stddef_without_use)
5375         (sc_prohibit_xfreopen_without_use): Update clients.
5376
5377 2011-06-24  Jim Meyering  <meyering@redhat.com>
5378
5379         syntax-check: keep one maint.mk rule in sync with its header
5380         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5381         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5382         I prefer to avoid temporary files here, so use <(...), but that
5383         is not supported by /bin/sh, so...
5384         (SHELL): Define to /bin/bash.
5385
5386 2011-06-24  Eric Blake  <eblake@redhat.com>
5387
5388         maint.mk: update sc_prohibit_intprops_without_use
5389         * top/maint.mk (_intprops_names): Match recent changes.
5390
5391 2011-06-24  Bruno Haible  <bruno@clisp.org>
5392
5393         strerror-override: No-op tweak.
5394         * lib/strerror-override.h (strerror_override): Reorder conditions,
5395         for consistency with lib/strerror-override.c.
5396
5397 2011-06-23  Eric Blake  <eblake@redhat.com>
5398
5399         maint.mk: test further PATH_MAX issues
5400         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5401         (sc_prohibit_path_max_allocation): ...and also test alloca.
5402         Suggested by Jim Meyering.
5403
5404 2011-06-22  Eric Blake  <eblake@redhat.com>
5405
5406         maint.mk: add syntax-check to avoid char[PATH_MAX]
5407         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5408
5409         stat: be robust to PATH_MAX definition
5410         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5411         * modules/stat (Depends-on): Add verify.
5412
5413         link: work around IRIX bug
5414         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5415         * lib/link.c (rpl_link): Work around it.
5416         * tests/test-link.h (test_link): Enhance test.
5417         * doc/posix-functions/link.texi (link): Document the bug.
5418
5419         getopt: silence clang warning
5420         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5421         dereference.
5422         Reported by Gustavo Martin Domato.
5423
5424 2011-06-22  Jim Meyering  <meyering@redhat.com>
5425
5426         bootstrap: do not insert a blank line into each .gitignore file
5427         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5428
5429 2011-06-21  Eric Blake  <eblake@redhat.com>
5430
5431         perror: test for output mismatch
5432         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5433         perror on IRIX.
5434
5435         strerror_r: fix OpenBSD behavior on out-of-range
5436         * lib/strerror_r.c (strerror_r): Always use maximal string.
5437         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5438
5439         strerror_r: fix OpenBSD behavior on 0
5440         * lib/strerror-override.c (strerror_override): Also override 0
5441         when needed.
5442         * lib/strerror-override.h (strerror_override): Likewise.
5443         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5444         earlier.
5445         * lib/strerror_r.c (strerror_r): Likewise.
5446         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5447         behavior...
5448         (gl_FUNC_STRERROR_0): ...into new macro.
5449         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5450         is overridden.
5451         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5452         * modules/strerror-override (Files): Add strerror.m4.
5453         (configure.ac): Also provide override for 0 when needed.
5454         * doc/posix-functions/strerror.texi (strerror): Document this.
5455         * doc/posix-functions/perror.texi (perror): Likewise.
5456
5457         perror: adjust array size
5458         * modules/perror (Depends-on): Add strerror-override.
5459         * lib/perror.c (perror): Use it to avoid magic number.
5460
5461         strerror-override: reduce size
5462         * lib/strerror-override.c (strerror_override): Use fewer lines.
5463
5464 2011-06-20  Bruno Haible  <bruno@clisp.org>
5465
5466         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5467         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5468
5469 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5470
5471         alloca: port to compilers that can optimize like GCC 4.6.0
5472         * lib/alloca.c (find_stack_direction): New signature, taken from
5473         Autoconf git.  This works with GCC 4.6.0.  This code should never
5474         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5475         be used with other compilers that optimize as well as GCC 4.6.0 does.
5476         (alloca): Adjust to new signature.
5477         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5478         New macro, which patches Autoconf in a similar way.
5479
5480         c-stack: stop worrying about stack direction
5481         * lib/c-stack.c (find_stack_direction): Remove.
5482         (segv_handler): Don't worry about stack direction growth, as it's
5483         too much of a pain to configure this correctly, given how compilers
5484         are optimizing-away our stack-growth detection code.  Instead, assume
5485         that any access to just before or just after the stack is OK.
5486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5487         Don't require AC_FUNC_ALLOCA; no longer needed.
5488
5489 2011-06-20  Eric Blake  <eblake@redhat.com>
5490
5491         test-stat: don't allocate PATH_MAX bytes
5492         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5493         PATH_MAX-sized buffer.
5494         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5495         * modules/stat-tests (Depends-on): Likewise.
5496         * tests/test-fstatat.c (includes): Drop pathmax.h.
5497         * tests/test-stat.c (includes): Likewise.
5498         Reported by Bruno Haible.
5499
5500 2011-06-20  Bruno Haible  <bruno@clisp.org>
5501
5502         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5503         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5504         * lib/float.c: New file.
5505         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5506         REPLACE_FLOAT_LDBL.
5507         * modules/float (Files): Add lib/float.c.
5508         (configure.ac): Invoke AC_LIBOBJ.
5509         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5510
5511 2011-06-20  Bruno Haible  <bruno@clisp.org>
5512
5513         Tests for module 'float'.
5514         * modules/float-tests: New file.
5515         * tests/test-float.c: New file.
5516
5517 2011-06-19  Bruno Haible  <bruno@clisp.org>
5518
5519         isinf: Coding style.
5520         * lib/isinf.c: Use GNU coding style.
5521
5522 2011-06-19  Bruno Haible  <bruno@clisp.org>
5523
5524         linkat test: Avoid test failure on AIX 7.1.
5525         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5526         * tests/test-link.h (test_link): Likewise.
5527
5528 2011-06-19  Bruno Haible  <bruno@clisp.org>
5529
5530         pread test: Avoid test failure on OpenBSD 4.9.
5531         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5532
5533 2011-06-19  Bruno Haible  <bruno@clisp.org>
5534
5535         sprintf-posix: Fix test failure on AIX 7.1.
5536         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5537         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5538         on AIX.
5539         * doc/posix-functions/fprintf.texi: Likewise.
5540         * doc/posix-functions/printf.texi: Likewise.
5541         * doc/posix-functions/snprintf.texi: Likewise.
5542         * doc/posix-functions/sprintf.texi: Likewise.
5543         * doc/posix-functions/vdprintf.texi: Likewise.
5544         * doc/posix-functions/vfprintf.texi: Likewise.
5545         * doc/posix-functions/vprintf.texi: Likewise.
5546         * doc/posix-functions/vsnprintf.texi: Likewise.
5547         * doc/posix-functions/vsprintf.texi: Likewise.
5548
5549 2011-06-19  Bruno Haible  <bruno@clisp.org>
5550
5551         roundl-ieee: Fix test failure on AIX 7.1.
5552         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5553         * doc/posix-functions/roundl.texi: Mention problem with negative
5554         arguments.
5555
5556 2011-06-19  Bruno Haible  <bruno@clisp.org>
5557
5558         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5559         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5560         * doc/posix-functions/round.texi: Mention problem with negative
5561         arguments.
5562         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5563
5564 2011-06-19  Bruno Haible  <bruno@clisp.org>
5565
5566         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5568         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5569         * doc/posix-functions/roundf.texi: Mention problem with negative
5570         arguments.
5571         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5572
5573 2011-06-19  Bruno Haible  <bruno@clisp.org>
5574
5575         ceilf-ieee: Work around bug on MacOS X 10.5.
5576         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5577
5578         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5579         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5580         IEEE compliant, avoid compiler optimizations.
5581         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5582         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5583         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5584         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5585         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5586         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5587         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5588         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5589         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5590         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5591
5592 2011-06-19  Bruno Haible  <bruno@clisp.org>
5593
5594         ceilf-ieee: Work around bug on AIX 7.1.
5595         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5596         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5597
5598 2011-06-19  Bruno Haible  <bruno@clisp.org>
5599
5600         ceil-ieee: Work around bug on AIX 7.1.
5601         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5602         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5603
5604 2011-06-18  Bruno Haible  <bruno@clisp.org>
5605
5606         fsync test: Avoid test failure on MacOS X and AIX.
5607         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5608         EINVAL.
5609
5610 2011-06-18  Bruno Haible  <bruno@clisp.org>
5611
5612         openat, fdopendir tests: Fix link errors.
5613         * modules/openat-tests (Depends-on): Add progname.
5614         * modules/fdopendir-tests (Depends-on): Likewise.
5615         * tests/test-fchownat.c: Include progname.h.
5616         (main): Call set_program_name.
5617         * tests/test-fstatat.c: Include progname.h.
5618         (main): Call set_program_name.
5619         * tests/test-mkdirat.c: Include progname.h.
5620         (main): Call set_program_name.
5621         * tests/test-openat.c: Include progname.h.
5622         (main): Call set_program_name.
5623         * tests/test-unlinkat.c: Include progname.h.
5624         (main): Call set_program_name.
5625         * tests/test-fdopendir.c: Include progname.h.
5626         (main): Call set_program_name.
5627
5628 2011-06-18  Bruno Haible  <bruno@clisp.org>
5629
5630         Doc update.
5631         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5632         HP-UX.
5633         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5634
5635 2011-06-18  Bruno Haible  <bruno@clisp.org>
5636
5637         getcwd tests: Avoid compilation error on HP-UX 11.31.
5638         * modules/getcwd-tests (Depends-on): Add pathmax.
5639         * tests/test-getcwd.c: Include pathmax.h.
5640
5641 2011-06-18  Bruno Haible  <bruno@clisp.org>
5642
5643         isfinite, isinf: Fix link error on AIX 6 and 7.
5644         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5645         needed, also test the macro with a 'float' argument.
5646         * m4/isinf.m4 (gl_ISINF): Likewise.
5647
5648 2011-06-18  Bruno Haible  <bruno@clisp.org>
5649
5650         getloadavg: Don't clobber LIBS. Regression from previous commit.
5651         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5652         AC_CHECK_LIB from here...
5653         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5654         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5655         gl_func_getloadavg_done.
5656         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5657
5658 2011-06-18  Bruno Haible  <bruno@clisp.org>
5659
5660         clean-temp: Improve documentation.
5661         * lib/clean-temp.h: Explain better how to use this module.
5662         Reported by John Darrington <john@darrington.wattle.id.au>.
5663
5664 2011-06-17  Bruno Haible  <bruno@clisp.org>
5665
5666         pread, pwrite: Avoid cc warning on AIX.
5667         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5668         (pwrite): Likewise.
5669
5670 2011-06-17  Bruno Haible  <bruno@clisp.org>
5671
5672         spawn-pipe tests: Fix link error.
5673         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5675
5676 2011-06-17  Bruno Haible  <bruno@clisp.org>
5677
5678         Tests: Remove unnecessary dependency.
5679         * modules/canonicalize-tests (Depends-on): Remove progname.
5680         * modules/chown-tests (Depends-on): Likewise.
5681         * modules/dirname-tests (Depends-on): Likewise.
5682         * modules/fdopendir-tests (Depends-on): Likewise.
5683         * modules/fdutimensat-tests (Depends-on): Likewise.
5684         * modules/hash-tests (Depends-on): Likewise.
5685         * modules/lchown-tests (Depends-on): Likewise.
5686         * modules/linkat-tests (Depends-on): Likewise.
5687         * modules/renameat-tests (Depends-on): Likewise.
5688         * modules/spawn-pipe-tests (Depends-on): Likewise.
5689         * modules/utimensat-tests (Depends-on): Likewise.
5690
5691 2011-06-17  Bruno Haible  <bruno@clisp.org>
5692
5693         spawn-pipe tests: Fix link error.
5694         * tests/test-spawn-pipe-child.c: Undefine fflush.
5695
5696 2011-06-17  Bruno Haible  <bruno@clisp.org>
5697
5698         Fix tests link errors.
5699         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5700         * modules/chown-tests (Makefile.am): Don't link test-chown with
5701         LIBINTL.
5702         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5703         LIBINTL.
5704         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5705         LIBINTL.
5706         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5707         LIBINTL.
5708
5709 2011-06-16  Bruno Haible  <bruno@clisp.org>
5710
5711         crypto/gc-sha1: Fix recent regression.
5712         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5713         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5714
5715         crypto/gc-md5: Fix recent regression.
5716         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5717
5718         crypto/gc-md4: Fix recent regression.
5719         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5720         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5721
5722         crypto/gc-arctwo: Fix recent regression.
5723         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5724         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5725
5726         crypto/gc-rijndael: Fix recent regression.
5727         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5728         (configure.ac): Invoke AC_LIBOBJ here.
5729         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5731
5732         crypto/gc-hmac-sha1: Fix recent regression.
5733         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5734         (configure.ac): Invoke AC_LIBOBJ here.
5735         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5737
5738         crypto/gc-hmac-md5: Fix recent regression.
5739         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5740         (configure.ac): Invoke AC_LIBOBJ here.
5741         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5743
5744         crypto/gc-des: Fix recent regression.
5745         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5746         (configure.ac): Invoke AC_LIBOBJ here.
5747         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5749
5750         crypto/gc-arcfour: Fix recent regression.
5751         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5752         (configure.ac): Invoke AC_LIBOBJ here.
5753         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5755
5756 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5757
5758         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5759         After the 2011-05-21 change, this macro requires
5760         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5761         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5762
5763 2011-06-16  Bruno Haible  <bruno@clisp.org>
5764
5765         fprintftime: Move AC_LIBOBJ invocations to module description.
5766         * m4/fprintftime.m4: Remove file.
5767         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5768         (configure.ac): Remove gl_FPRINTFTIME call.
5769         (Makefile.am): Augment lib_SOURCES.
5770         Reported by Jim Meyering.
5771
5772 2011-06-16  Bruno Haible  <bruno@clisp.org>
5773
5774         tmpfile-safer: Finish 2011-05-23 commit.
5775         * m4/stdio-safer.m4: Really remove file.
5776         Reported by Jim Meyering.
5777
5778 2011-06-16  Bruno Haible  <bruno@clisp.org>
5779
5780         syntax-check: Fix typo.
5781         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5782         printf-posix.m4.
5783         Reported by Jim Meyering.
5784
5785 2011-06-13  Jim Meyering  <meyering@redhat.com>
5786
5787         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5788         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5789
5790 2011-05-23  Bruno Haible  <bruno@clisp.org>
5791
5792         yesno: Move AC_LIBOBJ invocations to module description.
5793         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5794         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5795
5796 2011-05-23  Bruno Haible  <bruno@clisp.org>
5797
5798         xstrtol: Move AC_LIBOBJ invocations to module description.
5799         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5800         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5801
5802 2011-05-23  Bruno Haible  <bruno@clisp.org>
5803
5804         xstrtold: Move AC_LIBOBJ invocations to module description.
5805         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5806         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5807
5808 2011-05-23  Bruno Haible  <bruno@clisp.org>
5809
5810         xstrtod: Move AC_LIBOBJ invocations to module description.
5811         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5812         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5813
5814 2011-05-23  Bruno Haible  <bruno@clisp.org>
5815
5816         xnanosleep: Move AC_LIBOBJ invocations to module description.
5817         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5818         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5819
5820 2011-05-23  Bruno Haible  <bruno@clisp.org>
5821
5822         xgetcwd: Move AC_LIBOBJ invocations to module description.
5823         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5824         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5825
5826 2011-05-23  Bruno Haible  <bruno@clisp.org>
5827
5828         xalloc: Move AC_LIBOBJ invocations to module description.
5829         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5830         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5831
5832 2011-05-23  Bruno Haible  <bruno@clisp.org>
5833
5834         write-any-file: Move AC_LIBOBJ invocations to module description.
5835         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5836         invocation.
5837         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5838
5839 2011-05-23  Bruno Haible  <bruno@clisp.org>
5840
5841         utimens: Move AC_LIBOBJ invocations to module description.
5842         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5843         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5844
5845 2011-05-23  Bruno Haible  <bruno@clisp.org>
5846
5847         utimecmp: Move AC_LIBOBJ invocations to module description.
5848         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5849         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5850
5851 2011-05-23  Bruno Haible  <bruno@clisp.org>
5852
5853         userspec: Move AC_LIBOBJ invocations to module description.
5854         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5855         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5856
5857 2011-05-23  Bruno Haible  <bruno@clisp.org>
5858
5859         unlinkdir: Move AC_LIBOBJ invocations to module description.
5860         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5861         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5862
5863 2011-05-23  Bruno Haible  <bruno@clisp.org>
5864
5865         unistd-safer: Move AC_LIBOBJ invocations to module description.
5866         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5867         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5868
5869 2011-05-23  Bruno Haible  <bruno@clisp.org>
5870
5871         tempname: Move AC_LIBOBJ invocations to module description.
5872         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5873         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5874
5875 2011-05-23  Bruno Haible  <bruno@clisp.org>
5876
5877         strftime: Move AC_LIBOBJ invocations to module description.
5878         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5879         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5880
5881 2011-05-23  Bruno Haible  <bruno@clisp.org>
5882
5883         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5884         * m4/stdlib-safer.m4: Remove file.
5885         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5886         (configure.ac): Remove gl_STDLIB_SAFER call.
5887         (Makefile.am): Augment lib_SOURCES.
5888
5889 2011-05-23  Bruno Haible  <bruno@clisp.org>
5890
5891         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5892         * m4/stdio-safer.m4: Remove file.
5893         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5894         (configure.ac): Remove gl_TMPFILE_SAFER call.
5895         (Makefile.am): Augment lib_SOURCES.
5896
5897 2011-05-23  Bruno Haible  <bruno@clisp.org>
5898
5899         popen-safer: Move AC_LIBOBJ invocations to module description.
5900         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5901         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5902         (configure.ac): Remove gl_POPEN_SAFER call.
5903         (Makefile.am): Augment lib_SOURCES.
5904
5905 2011-05-23  Bruno Haible  <bruno@clisp.org>
5906
5907         freopen-safer: Move AC_LIBOBJ invocations to module description.
5908         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5909         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5910         (configure.ac): Remove gl_FREOPEN_SAFER call.
5911         (Makefile.am): Augment lib_SOURCES.
5912
5913 2011-05-23  Bruno Haible  <bruno@clisp.org>
5914
5915         fopen-safer: Move AC_LIBOBJ invocations to module description.
5916         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5917         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5918         (configure.ac): Remove gl_FOPEN_SAFER call.
5919         (Makefile.am): Augment lib_SOURCES.
5920
5921 2011-05-23  Bruno Haible  <bruno@clisp.org>
5922
5923         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5924         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5925         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5926
5927 2011-05-23  Bruno Haible  <bruno@clisp.org>
5928
5929         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5930         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5931         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5932
5933 2011-05-23  Bruno Haible  <bruno@clisp.org>
5934
5935         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5936         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5937         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5938
5939 2011-05-23  Bruno Haible  <bruno@clisp.org>
5940
5941         settime: Move AC_LIBOBJ invocations to module description.
5942         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5943         * modules/settime (Makefile.am): Augment lib_SOURCES.
5944
5945 2011-05-23  Bruno Haible  <bruno@clisp.org>
5946
5947         savedir: Move AC_LIBOBJ invocations to module description.
5948         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5949         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5950
5951 2011-05-23  Bruno Haible  <bruno@clisp.org>
5952
5953         save-cwd: Move AC_LIBOBJ invocations to module description.
5954         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5955         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5956
5957 2011-05-23  Bruno Haible  <bruno@clisp.org>
5958
5959         same: Move AC_LIBOBJ invocations to module description.
5960         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5961         * modules/same (Makefile.am): Augment lib_SOURCES.
5962
5963 2011-05-23  Bruno Haible  <bruno@clisp.org>
5964
5965         safe-write: Move AC_LIBOBJ invocations to module description.
5966         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5967         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5968         instead of gl_SAFE_WRITE.
5969         (Makefile.am): Augment lib_SOURCES.
5970
5971 2011-05-23  Bruno Haible  <bruno@clisp.org>
5972
5973         safe-read: Move AC_LIBOBJ invocations to module description.
5974         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5975         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5976         of gl_SAFE_READ.
5977         (Makefile.am): Augment lib_SOURCES.
5978
5979 2011-05-23  Bruno Haible  <bruno@clisp.org>
5980
5981         safe-alloc: Move AC_LIBOBJ invocations to module description.
5982         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5983         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5984
5985 2011-05-23  Bruno Haible  <bruno@clisp.org>
5986
5987         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5988         * m4/rijndael.m4: Remove file.
5989         * modules/crypto/rijndael (Files): Remove it.
5990         (configure.ac): Remove gl_RIJNDAEL call.
5991         (Makefile.am): Augment lib_SOURCES.
5992
5993 2011-05-23  Bruno Haible  <bruno@clisp.org>
5994
5995         readtokens: Move AC_LIBOBJ invocations to module description.
5996         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5997         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5998
5999 2011-05-23  Bruno Haible  <bruno@clisp.org>
6000
6001         read-file: Move AC_LIBOBJ invocations to module description.
6002         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6003         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6004         of gl_FUNC_READ_FILE.
6005         (Makefile.am): Augment lib_SOURCES.
6006
6007 2011-05-23  Bruno Haible  <bruno@clisp.org>
6008
6009         quotearg: Move AC_LIBOBJ invocations to module description.
6010         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6011         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6012
6013 2011-05-23  Bruno Haible  <bruno@clisp.org>
6014
6015         quote: Move AC_LIBOBJ invocations to module description.
6016         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6017         * modules/quote (Makefile.am): Augment lib_SOURCES.
6018
6019 2011-05-23  Bruno Haible  <bruno@clisp.org>
6020
6021         posixver: Move AC_LIBOBJ invocations to module description.
6022         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6023         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6024
6025 2011-05-23  Bruno Haible  <bruno@clisp.org>
6026
6027         posixtm: Move AC_LIBOBJ invocations to module description.
6028         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6029         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6030
6031 2011-05-23  Bruno Haible  <bruno@clisp.org>
6032
6033         physmem: Move AC_LIBOBJ invocations to module description.
6034         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6035         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6036
6037 2011-05-23  Bruno Haible  <bruno@clisp.org>
6038
6039         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6040         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6041         invocation.
6042         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6043
6044 2011-05-23  Bruno Haible  <bruno@clisp.org>
6045
6046         mpsort: Move AC_LIBOBJ invocations to module description.
6047         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6048         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6049
6050 2011-05-23  Bruno Haible  <bruno@clisp.org>
6051
6052         modechange: Move AC_LIBOBJ invocations to module description.
6053         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6054         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6055
6056 2011-05-23  Bruno Haible  <bruno@clisp.org>
6057
6058         mkdir-p: Move AC_LIBOBJ invocations to module description.
6059         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6060         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6061
6062 2011-05-23  Bruno Haible  <bruno@clisp.org>
6063
6064         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6065         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6066         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6067
6068 2011-05-23  Bruno Haible  <bruno@clisp.org>
6069
6070         mgetgroups: Move AC_LIBOBJ invocations to module description.
6071         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6072         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6073
6074 2011-05-23  Bruno Haible  <bruno@clisp.org>
6075
6076         memxor: Move AC_LIBOBJ invocations to module description.
6077         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6078         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6079
6080 2011-05-23  Bruno Haible  <bruno@clisp.org>
6081
6082         memcoll: Move AC_LIBOBJ invocations to module description.
6083         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6084         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6085
6086 2011-05-23  Bruno Haible  <bruno@clisp.org>
6087
6088         memcasecmp: Move AC_LIBOBJ invocations to module description.
6089         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6090         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6091
6092 2011-05-23  Bruno Haible  <bruno@clisp.org>
6093
6094         crypto/md5: Move AC_LIBOBJ invocations to module description.
6095         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6096         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6097
6098 2011-05-23  Bruno Haible  <bruno@clisp.org>
6099
6100         crypto/md4: Move AC_LIBOBJ invocations to module description.
6101         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6102         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6103
6104 2011-05-23  Bruno Haible  <bruno@clisp.org>
6105
6106         crypto/md2: Move AC_LIBOBJ invocations to module description.
6107         * m4/md2.m4: Remove file.
6108         * modules/crypto/md2 (Files): Remove it.
6109         (configure.ac): Remove gl_MD2 call.
6110         (Makefile.am): Augment lib_SOURCES.
6111
6112 2011-05-23  Bruno Haible  <bruno@clisp.org>
6113
6114         long-options: Move AC_LIBOBJ invocations to module description.
6115         * m4/long-options.m4: Remove file.
6116         * modules/long-options (Files): Remove it.
6117         (configure.ac): Remove gl_LONG_OPTIONS call.
6118         (Makefile.am): Augment lib_SOURCES.
6119
6120 2011-05-23  Bruno Haible  <bruno@clisp.org>
6121
6122         i-ring: Move AC_LIBOBJ invocations to module description.
6123         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6124         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6125
6126 2011-05-23  Bruno Haible  <bruno@clisp.org>
6127
6128         idcache: Move AC_LIBOBJ invocations to module description.
6129         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6130         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6131
6132 2011-05-23  Bruno Haible  <bruno@clisp.org>
6133
6134         human: Move AC_LIBOBJ invocations to module description.
6135         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6136         * modules/human (Makefile.am): Augment lib_SOURCES.
6137
6138 2011-05-23  Bruno Haible  <bruno@clisp.org>
6139
6140         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6141         * m4/hmac-sha1.m4: Remove file.
6142         * modules/crypto/hmac-sha1 (Files): Remove it.
6143         (configure.ac): Remove gl_HMAC_SHA1 call.
6144         (Makefile.am): Augment lib_SOURCES.
6145
6146 2011-05-23  Bruno Haible  <bruno@clisp.org>
6147
6148         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6149         * m4/hmac-md5.m4: Remove file.
6150         * modules/crypto/hmac-md5 (Files): Remove it.
6151         (configure.ac): Remove gl_HMAC_MD5 call.
6152         (Makefile.am): Augment lib_SOURCES.
6153
6154 2011-05-23  Bruno Haible  <bruno@clisp.org>
6155
6156         hash: Move AC_LIBOBJ invocations to module description.
6157         * m4/hash.m4: Remove file.
6158         * modules/hash (Files): Remove it.
6159         (configure.ac): Remove gl_HASH call.
6160         (Makefile.am): Augment lib_SOURCES.
6161
6162 2011-05-23  Bruno Haible  <bruno@clisp.org>
6163
6164         hard-locale: Move AC_LIBOBJ invocations to module description.
6165         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6166         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6167
6168 2011-05-23  Bruno Haible  <bruno@clisp.org>
6169
6170         getugroups: Move AC_LIBOBJ invocations to module description.
6171         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6172         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6173
6174 2011-05-23  Bruno Haible  <bruno@clisp.org>
6175
6176         gettime: Move AC_LIBOBJ invocations to module description.
6177         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6178         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6179
6180 2011-05-23  Bruno Haible  <bruno@clisp.org>
6181
6182         getndelim2: Move AC_LIBOBJ invocations to module description.
6183         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6184         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6185
6186 2011-05-23  Bruno Haible  <bruno@clisp.org>
6187
6188         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6189         * m4/gc-pbkdf2-sha1.m4: Remove file.
6190         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6191         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6192         (Makefile.am): Augment lib_SOURCES.
6193
6194 2011-05-23  Bruno Haible  <bruno@clisp.org>
6195
6196         fts: Move AC_LIBOBJ invocations to module description.
6197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6198         * modules/fts (configure.ac): ... to here.
6199
6200 2011-05-23  Bruno Haible  <bruno@clisp.org>
6201
6202         file-type: Move AC_LIBOBJ invocations to module description.
6203         * m4/file-type.m4: Remove file.
6204         * modules/file-type (Files): Remove it.
6205         (configure.ac): Remove gl_FILE_TYPE call.
6206         (Makefile.am): Augment lib_SOURCES.
6207
6208 2011-05-23  Bruno Haible  <bruno@clisp.org>
6209
6210         filenamecat*: Respect rules for use of AC_LIBOBJ.
6211         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6212         Remove AC_LIBOBJ invocation.
6213         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6214         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6215
6216 2011-05-23  Bruno Haible  <bruno@clisp.org>
6217
6218         filemode: Move AC_LIBOBJ invocations to module description.
6219         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6220         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6221
6222 2011-05-23  Bruno Haible  <bruno@clisp.org>
6223
6224         openat-safer: Move AC_LIBOBJ invocations to module description.
6225         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6226         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6227
6228 2011-05-23  Bruno Haible  <bruno@clisp.org>
6229
6230         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6231         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6232         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6233
6234 2011-05-23  Bruno Haible  <bruno@clisp.org>
6235
6236         exclude: Move AC_LIBOBJ invocations to module description.
6237         * m4/exclude.m4: Remove file.
6238         * modules/exclude (Files): Remove it.
6239         (configure.ac): Remove gl_EXCLUDE call.
6240         (Makefile.am): Augment lib_SOURCES.
6241
6242 2011-05-23  Bruno Haible  <bruno@clisp.org>
6243
6244         dirname*: Respect rules for use of AC_LIBOBJ.
6245         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6246         invocations.
6247         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6248         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6249
6250 2011-05-23  Bruno Haible  <bruno@clisp.org>
6251
6252         dirent-safer: Move AC_LIBOBJ invocations to module description.
6253         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6254         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6255
6256 2011-05-23  Bruno Haible  <bruno@clisp.org>
6257
6258         crypto/des: Move AC_LIBOBJ invocations to module description.
6259         * m4/des.m4: Remove file.
6260         * modules/crypto/des (Files): Remove it.
6261         (configure.ac): Remove gl_DES call.
6262         (Makefile.am): Augment lib_SOURCES.
6263
6264 2011-05-23  Bruno Haible  <bruno@clisp.org>
6265
6266         cycle-check: Move AC_LIBOBJ invocations to module description.
6267         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6268         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6269
6270 2011-05-23  Bruno Haible  <bruno@clisp.org>
6271
6272         c-strtold: Move AC_LIBOBJ invocations to module description.
6273         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6274         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6275
6276 2011-05-23  Bruno Haible  <bruno@clisp.org>
6277
6278         c-strtod: Move AC_LIBOBJ invocations to module description.
6279         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6280         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6281
6282 2011-05-23  Bruno Haible  <bruno@clisp.org>
6283
6284         crc: Move AC_LIBOBJ invocations to module description.
6285         * m4/crc.m4: Remove file.
6286         * modules/crc (Files): Remove it.
6287         (configure.ac): Remove gl_CRC call.
6288         (Makefile.am): Augment lib_SOURCES.
6289
6290 2011-05-23  Bruno Haible  <bruno@clisp.org>
6291
6292         close-stream: Move AC_LIBOBJ invocations to module description.
6293         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6294         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6295
6296 2011-05-23  Bruno Haible  <bruno@clisp.org>
6297
6298         closeout: Move AC_LIBOBJ invocations to module description.
6299         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6300         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6301
6302 2011-05-23  Bruno Haible  <bruno@clisp.org>
6303
6304         closein: Move AC_LIBOBJ invocations to module description.
6305         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6306         * modules/closein (Makefile.am): Augment lib_SOURCES.
6307
6308 2011-05-23  Bruno Haible  <bruno@clisp.org>
6309
6310         cloexec: Move AC_LIBOBJ invocations to module description.
6311         * m4/cloexec.m4: Remove file.
6312         * modules/cloexec (Files): Remove it.
6313         (configure.ac): Remove gl_CLOEXEC call.
6314         (Makefile.am): Augment lib_SOURCES.
6315
6316 2011-05-23  Bruno Haible  <bruno@clisp.org>
6317
6318         check-version: Move AC_LIBOBJ invocations to module description.
6319         * m4/check-version.m4: Remove file.
6320         * modules/check-version (Files): Remove it.
6321         (configure.ac): Remove gl_CHECK_VERSION call.
6322         (Makefile.am): Augment lib_SOURCES.
6323
6324 2011-05-23  Bruno Haible  <bruno@clisp.org>
6325
6326         chdir-safer: Move AC_LIBOBJ invocations to module description.
6327         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6328         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6329
6330 2011-05-23  Bruno Haible  <bruno@clisp.org>
6331
6332         canonicalize: Move AC_LIBOBJ invocations to module description.
6333         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6334         AC_LIBOBJ invocation.
6335         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6336
6337 2011-05-23  Bruno Haible  <bruno@clisp.org>
6338
6339         canon-host: Move AC_LIBOBJ invocations to module description.
6340         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6341         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6342         instead of gl_CANON_HOST.
6343         (Makefile.am): Augment lib_SOURCES.
6344
6345 2011-05-23  Bruno Haible  <bruno@clisp.org>
6346
6347         backupfile: Move AC_LIBOBJ invocations to module description.
6348         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6349         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6350
6351 2011-05-23  Bruno Haible  <bruno@clisp.org>
6352
6353         argmatch: Move AC_LIBOBJ invocations to module description.
6354         * m4/argmatch.m4: Remove file.
6355         * modules/argmatch (Files): Remove it.
6356         (configure.ac): Remove gl_ARGMATCH call.
6357         (Makefile.am): Augment lib_SOURCES.
6358
6359 2011-05-23  Bruno Haible  <bruno@clisp.org>
6360
6361         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6362         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6363         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6364
6365 2011-05-23  Bruno Haible  <bruno@clisp.org>
6366
6367         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6368         * m4/arcfour.m4: Remove file.
6369         * modules/crypto/arcfour (Files): Remove it.
6370         (configure.ac): Remove gl_ARCFOUR call.
6371         (Makefile.am): Augment lib_SOURCES.
6372
6373 2011-05-22  Bruno Haible  <bruno@clisp.org>
6374
6375         write: Move AC_LIBOBJ invocations to module description.
6376         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6377         * modules/write (configure.ac): ... to here.
6378
6379 2011-05-22  Bruno Haible  <bruno@clisp.org>
6380
6381         wmemset: Move AC_LIBOBJ invocations to module description.
6382         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6383         here...
6384         * modules/wmemset (configure.ac): ... to here.
6385
6386 2011-05-22  Bruno Haible  <bruno@clisp.org>
6387
6388         wmemmove: Move AC_LIBOBJ invocations to module description.
6389         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6390         here...
6391         * modules/wmemmove (configure.ac): ... to here.
6392
6393 2011-05-22  Bruno Haible  <bruno@clisp.org>
6394
6395         wmemcpy: Move AC_LIBOBJ invocations to module description.
6396         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6397         here...
6398         * modules/wmemcpy (configure.ac): ... to here.
6399
6400 2011-05-22  Bruno Haible  <bruno@clisp.org>
6401
6402         wmemcmp: Move AC_LIBOBJ invocations to module description.
6403         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6404         here...
6405         * modules/wmemcmp (configure.ac): ... to here.
6406
6407 2011-05-22  Bruno Haible  <bruno@clisp.org>
6408
6409         wmemchr: Move AC_LIBOBJ invocations to module description.
6410         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6411         here...
6412         * modules/wmemchr (configure.ac): ... to here.
6413
6414 2011-05-22  Bruno Haible  <bruno@clisp.org>
6415
6416         wcswidth: Move AC_LIBOBJ invocations to module description.
6417         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6418         here...
6419         * modules/wcswidth (configure.ac): ... to here.
6420
6421 2011-05-22  Bruno Haible  <bruno@clisp.org>
6422
6423         wcwidth: Respect rules for use of AC_LIBOBJ.
6424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6425         invocation from here...
6426         * modules/wcwidth (configure.ac): ... to here.
6427         (Depends-on): Update conditions.
6428
6429 2011-05-22  Bruno Haible  <bruno@clisp.org>
6430
6431         wctype: Move AC_LIBOBJ invocations to module description.
6432         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6433         invocation from here...
6434         * modules/wctype (configure.ac): ... to here.
6435         (Depends-on): Update conditions.
6436
6437 2011-05-22  Bruno Haible  <bruno@clisp.org>
6438
6439         wctrans: Move AC_LIBOBJ invocations to module description.
6440         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6441         invocation from here...
6442         * modules/wctrans (configure.ac): ... to here.
6443
6444 2011-05-22  Bruno Haible  <bruno@clisp.org>
6445
6446         wctomb: Move AC_LIBOBJ invocations to module description.
6447         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6448         invocations from here...
6449         * modules/wctomb (configure.ac): ... to here.
6450
6451 2011-05-22  Bruno Haible  <bruno@clisp.org>
6452
6453         wctob: Move AC_LIBOBJ invocations to module description.
6454         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6455         gl_PREREQ_WCTOB invocations from here...
6456         * modules/wctob (configure.ac): ... to here.
6457         (Depends-on): Update conditions.
6458
6459 2011-05-22  Bruno Haible  <bruno@clisp.org>
6460
6461         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6462         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6463         here...
6464         * modules/wcsxfrm (configure.ac): ... to here.
6465
6466 2011-05-22  Bruno Haible  <bruno@clisp.org>
6467
6468         wcstok: Move AC_LIBOBJ invocations to module description.
6469         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6470         * modules/wcstok (configure.ac): ... to here.
6471
6472 2011-05-22  Bruno Haible  <bruno@clisp.org>
6473
6474         wcsstr: Move AC_LIBOBJ invocations to module description.
6475         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6476         * modules/wcsstr (configure.ac): ... to here.
6477
6478 2011-05-22  Bruno Haible  <bruno@clisp.org>
6479
6480         wcsspn: Move AC_LIBOBJ invocations to module description.
6481         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6482         * modules/wcsspn (configure.ac): ... to here.
6483
6484 2011-05-22  Bruno Haible  <bruno@clisp.org>
6485
6486         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6487         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6488         gl_PREREQ_WCSRTOMBS invocations from here...
6489         * modules/wcsrtombs (configure.ac): ... to here.
6490
6491 2011-05-22  Bruno Haible  <bruno@clisp.org>
6492
6493         wcsrchr: Move AC_LIBOBJ invocations to module description.
6494         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6495         here...
6496         * modules/wcsrchr (configure.ac): ... to here.
6497
6498 2011-05-22  Bruno Haible  <bruno@clisp.org>
6499
6500         wcspbrk: Move AC_LIBOBJ invocations to module description.
6501         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6502         here...
6503         * modules/wcspbrk (configure.ac): ... to here.
6504
6505 2011-05-22  Bruno Haible  <bruno@clisp.org>
6506
6507         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6508         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6509         gl_PREREQ_WCSNRTOMBS invocations from here...
6510         * modules/wcsnrtombs (configure.ac): ... to here.
6511
6512 2011-05-22  Bruno Haible  <bruno@clisp.org>
6513
6514         wcsnlen: Move AC_LIBOBJ invocations to module description.
6515         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6516         here...
6517         * modules/wcsnlen (configure.ac): ... to here.
6518
6519 2011-05-22  Bruno Haible  <bruno@clisp.org>
6520
6521         wcsncpy: Move AC_LIBOBJ invocations to module description.
6522         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6523         here...
6524         * modules/wcsncpy (configure.ac): ... to here.
6525
6526 2011-05-22  Bruno Haible  <bruno@clisp.org>
6527
6528         wcsncmp: Move AC_LIBOBJ invocations to module description.
6529         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6530         here...
6531         * modules/wcsncmp (configure.ac): ... to here.
6532
6533 2011-05-22  Bruno Haible  <bruno@clisp.org>
6534
6535         wcsncat: Move AC_LIBOBJ invocations to module description.
6536         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6537         here...
6538         * modules/wcsncat (configure.ac): ... to here.
6539
6540 2011-05-22  Bruno Haible  <bruno@clisp.org>
6541
6542         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6543         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6544         from here...
6545         * modules/wcsncasecmp (configure.ac): ... to here.
6546
6547 2011-05-22  Bruno Haible  <bruno@clisp.org>
6548
6549         wcslen: Move AC_LIBOBJ invocations to module description.
6550         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6551         * modules/wcslen (configure.ac): ... to here.
6552
6553 2011-05-22  Bruno Haible  <bruno@clisp.org>
6554
6555         wcsdup: Move AC_LIBOBJ invocations to module description.
6556         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6557         * modules/wcsdup (configure.ac): ... to here.
6558
6559 2011-05-22  Bruno Haible  <bruno@clisp.org>
6560
6561         wcscspn: Move AC_LIBOBJ invocations to module description.
6562         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6563         here...
6564         * modules/wcscspn (configure.ac): ... to here.
6565
6566 2011-05-22  Bruno Haible  <bruno@clisp.org>
6567
6568         wcscpy: Move AC_LIBOBJ invocations to module description.
6569         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6570         * modules/wcscpy (configure.ac): ... to here.
6571
6572 2011-05-22  Bruno Haible  <bruno@clisp.org>
6573
6574         wcscoll: Move AC_LIBOBJ invocations to module description.
6575         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6576         here...
6577         * modules/wcscoll (configure.ac): ... to here.
6578
6579 2011-05-22  Bruno Haible  <bruno@clisp.org>
6580
6581         wcscmp: Move AC_LIBOBJ invocations to module description.
6582         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6583         * modules/wcscmp (configure.ac): ... to here.
6584
6585 2011-05-22  Bruno Haible  <bruno@clisp.org>
6586
6587         wcschr: Move AC_LIBOBJ invocations to module description.
6588         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6589         * modules/wcschr (configure.ac): ... to here.
6590
6591 2011-05-22  Bruno Haible  <bruno@clisp.org>
6592
6593         wcscat: Move AC_LIBOBJ invocations to module description.
6594         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6595         * modules/wcscat (configure.ac): ... to here.
6596
6597 2011-05-22  Bruno Haible  <bruno@clisp.org>
6598
6599         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6600         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6601         here...
6602         * modules/wcscasecmp (configure.ac): ... to here.
6603
6604 2011-05-22  Bruno Haible  <bruno@clisp.org>
6605
6606         wcrtomb: Move AC_LIBOBJ invocations to module description.
6607         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6608         invocations from here...
6609         * modules/wcrtomb (configure.ac): ... to here.
6610
6611 2011-05-22  Bruno Haible  <bruno@clisp.org>
6612
6613         wcpncpy: Move AC_LIBOBJ invocations to module description.
6614         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6615         here...
6616         * modules/wcpncpy (configure.ac): ... to here.
6617
6618 2011-05-22  Bruno Haible  <bruno@clisp.org>
6619
6620         wcpcpy: Move AC_LIBOBJ invocations to module description.
6621         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6622         * modules/wcpcpy (configure.ac): ... to here.
6623
6624 2011-05-22  Bruno Haible  <bruno@clisp.org>
6625
6626         waitpid: Move AC_LIBOBJ invocations to module description.
6627         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6628         invocation from here...
6629         * modules/waitpid (configure.ac): ... to here.
6630
6631 2011-05-22  Bruno Haible  <bruno@clisp.org>
6632
6633         utimensat: Move AC_LIBOBJ invocations to module description.
6634         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6635         here...
6636         * modules/utimensat (configure.ac): ... to here.
6637
6638 2011-05-22  Bruno Haible  <bruno@clisp.org>
6639
6640         usleep: Move AC_LIBOBJ invocations to module description.
6641         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6642         here...
6643         * modules/usleep (configure.ac): ... to here.
6644
6645 2011-05-22  Bruno Haible  <bruno@clisp.org>
6646
6647         unlockpt: Move AC_LIBOBJ invocations to module description.
6648         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6649         gl_PREREQ_UNLOCKPT invocations from here...
6650         * modules/unlockpt (configure.ac): ... to here.
6651
6652 2011-05-22  Bruno Haible  <bruno@clisp.org>
6653
6654         unlink: Respect rules for use of AC_LIBOBJ.
6655         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6656         * modules/unlink (configure.ac): ... to here.
6657
6658 2011-05-22  Bruno Haible  <bruno@clisp.org>
6659
6660         uname: Move AC_LIBOBJ invocations to module description.
6661         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6662         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6663         here...
6664         * modules/uname (configure.ac): ... to here.
6665
6666 2011-05-22  Bruno Haible  <bruno@clisp.org>
6667
6668         ttyname_r: Move AC_LIBOBJ invocations to module description.
6669         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6670         gl_PREREQ_TTYNAME_R invocations from here...
6671         * modules/ttyname_r (configure.ac): ... to here.
6672
6673 2011-05-22  Bruno Haible  <bruno@clisp.org>
6674
6675         tsearch: Move AC_LIBOBJ invocations to module description.
6676         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6677         invocations from here...
6678         * modules/tsearch (configure.ac): ... to here.
6679
6680 2011-05-22  Bruno Haible  <bruno@clisp.org>
6681
6682         towctrans: Move AC_LIBOBJ invocations to module description.
6683         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6684         AC_LIBOBJ invocation from here...
6685         * modules/towctrans (configure.ac): ... to here.
6686
6687 2011-05-22  Bruno Haible  <bruno@clisp.org>
6688
6689         tmpfile: Move AC_LIBOBJ invocations to module description.
6690         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6691         invocations from here...
6692         * modules/tmpfile (configure.ac): ... to here.
6693
6694 2011-05-22  Bruno Haible  <bruno@clisp.org>
6695
6696         times: Move AC_LIBOBJ invocations to module description.
6697         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6698         * modules/times (configure.ac): ... to here.
6699
6700 2011-05-22  Bruno Haible  <bruno@clisp.org>
6701
6702         time_r: Move AC_LIBOBJ invocations to module description.
6703         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6704         invocations from here...
6705         * modules/time_r (configure.ac): ... to here.
6706
6707 2011-05-22  Bruno Haible  <bruno@clisp.org>
6708
6709         timegm: Move AC_LIBOBJ invocations to module description.
6710         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6711         invocations from here...
6712         * modules/timegm (configure.ac): ... to here.
6713
6714 2011-05-22  Bruno Haible  <bruno@clisp.org>
6715
6716         tcgetsid: Move AC_LIBOBJ invocations to module description.
6717         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6718         and gl_PREREQ_TCGETSID invocations from here...
6719         * modules/tcgetsid (configure.ac): ... to here.
6720         (Depends-on): Update conditions.
6721
6722 2011-05-22  Bruno Haible  <bruno@clisp.org>
6723
6724         symlinkat: Move AC_LIBOBJ invocations to module description.
6725         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6726         here...
6727         * modules/symlinkat (configure.ac): ... to here.
6728
6729 2011-05-22  Bruno Haible  <bruno@clisp.org>
6730
6731         symlink: Move AC_LIBOBJ invocations to module description.
6732         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6733         here...
6734         * modules/symlink (configure.ac): ... to here.
6735
6736 2011-05-22  Bruno Haible  <bruno@clisp.org>
6737
6738         strverscmp: Move AC_LIBOBJ invocations to module description.
6739         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6741         from here...
6742         * modules/strverscmp (configure.ac): ... to here.
6743
6744 2011-05-22  Bruno Haible  <bruno@clisp.org>
6745
6746         strtok_r: Move AC_LIBOBJ invocations to module description.
6747         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6748         and gl_PREREQ_STRTOK_R invocations from here...
6749         * modules/strtok_r (configure.ac): ... to here.
6750         (Depends-on): Update conditions.
6751
6752 2011-05-22  Bruno Haible  <bruno@clisp.org>
6753
6754         strtoumax: Move AC_LIBOBJ invocations to module description.
6755         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6757         from here...
6758         * modules/strtoumax (configure.ac): ... to here.
6759
6760 2011-05-22  Bruno Haible  <bruno@clisp.org>
6761
6762         strtoimax: Move AC_LIBOBJ invocations to module description.
6763         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6765         from here...
6766         * modules/strtoimax (configure.ac): ... to here.
6767
6768 2011-05-22  Bruno Haible  <bruno@clisp.org>
6769
6770         strtoull: Move AC_LIBOBJ invocations to module description.
6771         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6773         from here...
6774         * modules/strtoull (configure.ac): ... to here.
6775
6776 2011-05-22  Bruno Haible  <bruno@clisp.org>
6777
6778         strtoll: Move AC_LIBOBJ invocations to module description.
6779         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6781         here...
6782         * modules/strtoll (configure.ac): ... to here.
6783
6784 2011-05-22  Bruno Haible  <bruno@clisp.org>
6785
6786         strtoul: Move AC_LIBOBJ invocations to module description.
6787         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6788         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6789         * modules/strtoul (configure.ac): ... to here.
6790
6791 2011-05-22  Bruno Haible  <bruno@clisp.org>
6792
6793         strtol: Move AC_LIBOBJ invocations to module description.
6794         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6795         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6796         * modules/strtol (configure.ac): ... to here.
6797
6798 2011-05-22  Bruno Haible  <bruno@clisp.org>
6799
6800         strtod: Move AC_LIBOBJ invocations to module description.
6801         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6802         invocations from here...
6803         * modules/strtod (configure.ac): ... to here.
6804
6805 2011-05-22  Bruno Haible  <bruno@clisp.org>
6806
6807         strstr*: Move AC_LIBOBJ invocations to module description.
6808         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6809         invocations from here...
6810         * modules/strstr-simple (configure.ac): ... to here.
6811         * modules/strstr (configure.ac): ... and here.
6812
6813 2011-05-22  Bruno Haible  <bruno@clisp.org>
6814
6815         strsignal: Move AC_LIBOBJ invocations to module description.
6816         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6817         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6818         * modules/strsignal (configure.ac): ... to here.
6819         (Depends-on): Update conditions.
6820
6821 2011-05-22  Bruno Haible  <bruno@clisp.org>
6822
6823         strsep: Move AC_LIBOBJ invocations to module description.
6824         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6826         here...
6827         * modules/strsep (configure.ac): ... to here.
6828
6829 2011-05-22  Bruno Haible  <bruno@clisp.org>
6830
6831         strptime: Move AC_LIBOBJ invocations to module description.
6832         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6833         gl_PREREQ_STRPTIME invocations from here...
6834         * modules/strptime (configure.ac): ... to here.
6835
6836 2011-05-22  Bruno Haible  <bruno@clisp.org>
6837
6838         strpbrk: Move AC_LIBOBJ invocations to module description.
6839         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6841         here...
6842         * modules/strpbrk (configure.ac): ... to here.
6843
6844 2011-05-22  Bruno Haible  <bruno@clisp.org>
6845
6846         strnlen: Move AC_LIBOBJ invocations to module description.
6847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6848         invocations from here...
6849         * modules/strnlen (configure.ac): ... to here.
6850
6851 2011-05-22  Bruno Haible  <bruno@clisp.org>
6852
6853         strndup: Move AC_LIBOBJ invocations to module description.
6854         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6855         invocations from here...
6856         * modules/strndup (configure.ac): ... to here.
6857         (Depends-on): Update conditions.
6858
6859 2011-05-22  Bruno Haible  <bruno@clisp.org>
6860
6861         strncat: Move AC_LIBOBJ invocations to module description.
6862         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6863         invocations from here...
6864         * modules/strncat (configure.ac): ... to here.
6865
6866 2011-05-22  Bruno Haible  <bruno@clisp.org>
6867
6868         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6869         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6870         invocations from here...
6871         * modules/strdup (configure.ac): ... to here.
6872         * modules/strdup-posix (configure.ac): ... and here.
6873
6874 2011-05-22  Bruno Haible  <bruno@clisp.org>
6875
6876         strcspn: Move AC_LIBOBJ invocations to module description.
6877         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6879         here...
6880         * modules/strcspn (configure.ac): ... to here.
6881
6882 2011-05-22  Bruno Haible  <bruno@clisp.org>
6883
6884         strchrnul: Move AC_LIBOBJ invocations to module description.
6885         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6886         gl_PREREQ_STRCHRNUL invocations from here...
6887         * modules/strchrnul (configure.ac): ... to here.
6888
6889 2011-05-22  Bruno Haible  <bruno@clisp.org>
6890
6891         strcasestr*: Move AC_LIBOBJ invocations to module description.
6892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6893         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6894         * modules/strcasestr-simple (configure.ac): ... to here.
6895         * modules/strcasestr (configure.ac): ... and here.
6896
6897 2011-05-22  Bruno Haible  <bruno@clisp.org>
6898
6899         strcase: Move AC_LIBOBJ invocations to module description.
6900         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6901         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6902         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6903         gl_PREREQ_STRNCASECMP invocations from here...
6904         * modules/strcase (configure.ac): ... to here.
6905
6906 2011-05-22  Bruno Haible  <bruno@clisp.org>
6907
6908         stpncpy: Move AC_LIBOBJ invocations to module description.
6909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6910         here...
6911         * modules/stpncpy (configure.ac): ... to here.
6912
6913 2011-05-22  Bruno Haible  <bruno@clisp.org>
6914
6915         stpcpy: Move AC_LIBOBJ invocations to module description.
6916         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6917         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6918         here...
6919         * modules/stpcpy (configure.ac): ... to here.
6920
6921 2011-05-21  Bruno Haible  <bruno@clisp.org>
6922
6923         stat: Move AC_LIBOBJ invocations to module description.
6924         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6925         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6926         here...
6927         * modules/stat (configure.ac): ... to here.
6928
6929 2011-05-21  Bruno Haible  <bruno@clisp.org>
6930
6931         sleep: Move AC_LIBOBJ invocations to module description.
6932         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6933         * modules/sleep (configure.ac): ... to here.
6934
6935 2011-05-21  Bruno Haible  <bruno@clisp.org>
6936
6937         signbit: Move AC_LIBOBJ invocations to module description.
6938         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6939         * modules/signbit (configure.ac): ... to here.
6940
6941 2011-05-21  Bruno Haible  <bruno@clisp.org>
6942
6943         sigprocmask: Move AC_LIBOBJ invocations to module description.
6944         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6945         gl_PREREQ_SIGPROMASK invocations from here...
6946         * modules/sigprocmask (configure.ac): ... to here.
6947
6948 2011-05-21  Bruno Haible  <bruno@clisp.org>
6949
6950         sigaction: Move AC_LIBOBJ invocations to module description.
6951         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6952         gl_PREREQ_SIGACTION invocations from here...
6953         * modules/sigaction (configure.ac): ... to here.
6954
6955 2011-05-21  Bruno Haible  <bruno@clisp.org>
6956
6957         sig2str: Move AC_LIBOBJ invocations to module description.
6958         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6959         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6960         here...
6961         * modules/sig2str (configure.ac): ... to here.
6962
6963 2011-05-21  Bruno Haible  <bruno@clisp.org>
6964
6965         setlocale: Move AC_LIBOBJ invocations to module description.
6966         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6967         gl_PREREQ_SETLOCALE invocations from here...
6968         * modules/setlocale (configure.ac): ... to here.
6969
6970 2011-05-21  Bruno Haible  <bruno@clisp.org>
6971
6972         unsetenv: Move AC_LIBOBJ invocations to module description.
6973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6974         and gl_PREREQ_UNSETENV invocations from here...
6975         * modules/unsetenv (configure.ac): ... to here.
6976         (Depends-on): Update.
6977
6978 2011-05-21  Bruno Haible  <bruno@clisp.org>
6979
6980         setenv: Move AC_LIBOBJ invocations to module description.
6981         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6982         here...
6983         * modules/setenv (configure.ac): ... to here.
6984
6985 2011-05-21  Bruno Haible  <bruno@clisp.org>
6986
6987         selinux-h: Move AC_LIBOBJ invocations to module description.
6988         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6989         AC_LIBOBJ invocation from here...
6990         * modules/selinux-h (configure.ac): ... to here.
6991
6992 2011-05-21  Bruno Haible  <bruno@clisp.org>
6993
6994         select: Respect rules for use of AC_LIBOBJ.
6995         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6996         here...
6997         * modules/select (configure.ac): ... to here.
6998
6999 2011-05-21  Bruno Haible  <bruno@clisp.org>
7000
7001         scandir: Move AC_LIBOBJ invocations to module description.
7002         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7003         invocations from here...
7004         * modules/scandir (configure.ac): ... to here.
7005
7006 2011-05-21  Bruno Haible  <bruno@clisp.org>
7007
7008         rpmatch: Move AC_LIBOBJ invocations to module description.
7009         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7011         here...
7012         * modules/rpmatch (configure.ac): ... to here.
7013
7014 2011-05-21  Bruno Haible  <bruno@clisp.org>
7015
7016         rmdir: Respect rules for use of AC_LIBOBJ.
7017         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7018         * modules/rmdir (configure.ac): ... to here.
7019
7020 2011-05-21  Bruno Haible  <bruno@clisp.org>
7021
7022         renameat: Move AC_LIBOBJ invocations to module description.
7023         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7024         here...
7025         * modules/renameat (configure.ac): ... to here.
7026
7027 2011-05-21  Bruno Haible  <bruno@clisp.org>
7028
7029         rename: Respect rules for use of AC_LIBOBJ.
7030         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7031         here...
7032         * modules/rename (configure.ac): ... to here.
7033
7034 2011-05-21  Bruno Haible  <bruno@clisp.org>
7035
7036         remove: Move AC_LIBOBJ invocations to module description.
7037         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7038         here...
7039         * modules/remove (configure.ac): ... to here.
7040
7041 2011-05-21  Bruno Haible  <bruno@clisp.org>
7042
7043         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7044         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7045         macro.
7046         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7047         * modules/relocatable-lib (configure.ac): ... to here.
7048         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7049         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7050
7051 2011-05-21  Bruno Haible  <bruno@clisp.org>
7052
7053         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7054         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7055         here...
7056         * modules/relocatable-prog (configure.ac): ... to here.
7057
7058 2011-05-21  Bruno Haible  <bruno@clisp.org>
7059
7060         regex: Move AC_LIBOBJ invocations to module description.
7061         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7062         invocations from here...
7063         * modules/regex (configure.ac): ... to here.
7064
7065 2011-05-21  Bruno Haible  <bruno@clisp.org>
7066
7067         realloc-*: Move AC_LIBOBJ invocations to module description.
7068         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7069         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7070         AC_LIBOBJ invocations from here...
7071         * modules/realloc-gnu (configure.ac): ... to here.
7072         * modules/realloc-posix (configure.ac): ... and here.
7073
7074 2011-05-21  Bruno Haible  <bruno@clisp.org>
7075
7076         readutmp: Move AC_LIBOBJ invocations to module description.
7077         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7078         * modules/readutmp (configure.ac): ... to here.
7079
7080 2011-05-21  Bruno Haible  <bruno@clisp.org>
7081
7082         readlinkat: Move AC_LIBOBJ invocations to module description.
7083         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7084         here...
7085         * modules/readlinkat (configure.ac): ... to here.
7086
7087 2011-05-21  Bruno Haible  <bruno@clisp.org>
7088
7089         readlink: Move AC_LIBOBJ invocations to module description.
7090         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7091         gl_PREREQ_READLINK invocations from here...
7092         * modules/readlink (configure.ac): ... to here.
7093
7094 2011-05-21  Bruno Haible  <bruno@clisp.org>
7095
7096         readline: Move AC_LIBOBJ invocations to module description.
7097         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7098         gl_PREREQ_READLINE invocations from here...
7099         * modules/readline (configure.ac): ... to here.
7100
7101 2011-05-21  Bruno Haible  <bruno@clisp.org>
7102
7103         read: Move AC_LIBOBJ invocations to module description.
7104         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7105         * modules/read (configure.ac): ... to here.
7106
7107 2011-05-21  Bruno Haible  <bruno@clisp.org>
7108
7109         rawmemchr: Move AC_LIBOBJ invocations to module description.
7110         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7112         from here...
7113         * modules/rawmemchr (configure.ac): ... to here.
7114
7115 2011-05-21  Bruno Haible  <bruno@clisp.org>
7116
7117         random_r: Move AC_LIBOBJ invocations to module description.
7118         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7119         gl_PREREQ_RANDOM_R invocations from here...
7120         * modules/random_r (configure.ac): ... to here.
7121
7122 2011-05-21  Bruno Haible  <bruno@clisp.org>
7123
7124         pwrite: Move AC_LIBOBJ invocations to module description.
7125         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7126         * modules/pwrite (configure.ac): ... to here.
7127
7128 2011-05-21  Bruno Haible  <bruno@clisp.org>
7129
7130         putenv: Move AC_LIBOBJ invocations to module description.
7131         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7132         * modules/putenv (configure.ac): ... to here.
7133
7134 2011-05-21  Bruno Haible  <bruno@clisp.org>
7135
7136         login_tty: Move AC_LIBOBJ invocations to module description.
7137         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7138         * modules/login_tty (configure.ac): ... to here.
7139
7140 2011-05-21  Bruno Haible  <bruno@clisp.org>
7141
7142         openpty: Move AC_LIBOBJ invocations to module description.
7143         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7144         * modules/openpty (configure.ac): ... to here.
7145
7146 2011-05-21  Bruno Haible  <bruno@clisp.org>
7147
7148         forkpty: Move AC_LIBOBJ invocations to module description.
7149         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7150         * modules/forkpty (configure.ac): ... to here.
7151
7152 2011-05-21  Bruno Haible  <bruno@clisp.org>
7153
7154         ptsname: Move AC_LIBOBJ invocations to module description.
7155         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7156         invocations from here...
7157         * modules/ptsname (configure.ac): ... to here.
7158
7159 2011-05-21  Bruno Haible  <bruno@clisp.org>
7160
7161         pread: Move AC_LIBOBJ invocations to module description.
7162         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7163         * modules/pread (configure.ac): ... to here.
7164
7165 2011-05-21  Bruno Haible  <bruno@clisp.org>
7166
7167         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7168         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7169         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7170         * modules/posix_spawn (configure.ac): ... to here.
7171         * modules/posix_spawnp (configure.ac): ... and here.
7172
7173 2011-05-21  Bruno Haible  <bruno@clisp.org>
7174
7175         popen: Move AC_LIBOBJ invocations to module description.
7176         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7177         invocations from here...
7178         * modules/popen (configure.ac): ... to here.
7179
7180 2011-05-21  Bruno Haible  <bruno@clisp.org>
7181
7182         poll: Move AC_LIBOBJ invocations to module description.
7183         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7184         invocations from here...
7185         * modules/poll (configure.ac): ... to here.
7186
7187 2011-05-21  Bruno Haible  <bruno@clisp.org>
7188
7189         pipe-posix: Move AC_LIBOBJ invocations to module description.
7190         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7191         * modules/pipe-posix (configure.ac): ... to here.
7192
7193 2011-05-21  Bruno Haible  <bruno@clisp.org>
7194
7195         openat: Respect rules for use of AC_LIBOBJ.
7196         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7197         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7198         * modules/openat (configure.ac): ... to here.
7199
7200 2011-05-21  Bruno Haible  <bruno@clisp.org>
7201
7202         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7203         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7204         invocation from here...
7205         * modules/obstack-printf (configure.ac): ... to here.
7206         * modules/obstack-printf-posix (configure.ac): ... and here.
7207
7208 2011-05-21  Bruno Haible  <bruno@clisp.org>
7209
7210         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7211         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7212         from here...
7213         * modules/nl_langinfo (configure.ac): ... to here.
7214
7215 2011-05-21  Bruno Haible  <bruno@clisp.org>
7216
7217         nanosleep: Move AC_LIBOBJ invocations to module description.
7218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7219         gl_PREREQ_NANOSLEEP invocations from here...
7220         * modules/nanosleep (configure.ac): ... to here.
7221
7222 2011-05-21  Bruno Haible  <bruno@clisp.org>
7223
7224         mountlist: Move AC_LIBOBJ invocations to module description.
7225         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7226         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7227         * modules/mountlist (configure.ac): ... to here.
7228
7229 2011-05-21  Bruno Haible  <bruno@clisp.org>
7230
7231         mktime: Respect rules for use of AC_LIBOBJ.
7232         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7233         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7234         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7235         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7236         * modules/mktime (configure.ac): ... to here.
7237         * modules/mktime-internal (configure.ac): ... and here.
7238         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7239
7240 2011-05-21  Bruno Haible  <bruno@clisp.org>
7241
7242         mkstemps: Move AC_LIBOBJ invocations to module description.
7243         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7244         here...
7245         * modules/mkstemps (configure.ac): ... to here.
7246
7247 2011-05-21  Bruno Haible  <bruno@clisp.org>
7248
7249         mkstemp: Move AC_LIBOBJ invocations to module description.
7250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7251         gl_PREREQ_MKSTEMP invocations from here...
7252         * modules/mkstemp (configure.ac): ... to here.
7253
7254 2011-05-21  Bruno Haible  <bruno@clisp.org>
7255
7256         mkostemps: Move AC_LIBOBJ invocations to module description.
7257         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7258         here...
7259         * modules/mkostemps (configure.ac): ... to here.
7260
7261 2011-05-21  Bruno Haible  <bruno@clisp.org>
7262
7263         mkostemp: Move AC_LIBOBJ invocations to module description.
7264         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7265         gl_PREREQ_MKOSTEMP invocations from here...
7266         * modules/mkostemp (configure.ac): ... to here.
7267
7268 2011-05-21  Bruno Haible  <bruno@clisp.org>
7269
7270         mknod: Move AC_LIBOBJ invocations to module description.
7271         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7272         * modules/mknod (configure.ac): ... to here.
7273
7274 2011-05-21  Bruno Haible  <bruno@clisp.org>
7275
7276         mkfifoat: Move AC_LIBOBJ invocations to module description.
7277         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7278         here...
7279         * modules/mkfifoat (configure.ac): ... to here.
7280
7281 2011-05-21  Bruno Haible  <bruno@clisp.org>
7282
7283         mkfifo: Respect rules for use of AC_LIBOBJ.
7284         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7285         here...
7286         * modules/mkfifo (configure.ac): ... to here.
7287
7288 2011-05-21  Bruno Haible  <bruno@clisp.org>
7289
7290         mkdtemp: Move AC_LIBOBJ invocations to module description.
7291         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7292         invocations from here...
7293         * modules/mkdtemp (configure.ac): ... to here.
7294
7295 2011-05-21  Bruno Haible  <bruno@clisp.org>
7296
7297         mkdir: Move AC_LIBOBJ invocations to module description.
7298         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7299         * modules/mkdir (configure.ac): ... to here.
7300
7301 2011-05-21  Bruno Haible  <bruno@clisp.org>
7302
7303         memset: Move AC_LIBOBJ invocations to module description.
7304         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7306         here...
7307         * modules/memset (configure.ac): ... to here.
7308
7309 2011-05-21  Bruno Haible  <bruno@clisp.org>
7310
7311         memrchr: Move AC_LIBOBJ invocations to module description.
7312         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7314         here...
7315         * modules/memrchr (configure.ac): ... to here.
7316
7317 2011-05-21  Bruno Haible  <bruno@clisp.org>
7318
7319         mempcpy: Move AC_LIBOBJ invocations to module description.
7320         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7322         here...
7323         * modules/mempcpy (configure.ac): ... to here.
7324
7325 2011-05-21  Bruno Haible  <bruno@clisp.org>
7326
7327         memmove: Move AC_LIBOBJ invocations to module description.
7328         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7330         here...
7331         * modules/memmove (configure.ac): ... to here.
7332
7333 2011-05-21  Bruno Haible  <bruno@clisp.org>
7334
7335         memmem*: Move AC_LIBOBJ invocations to module description.
7336         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7337         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7338         here...
7339         (gl_FUNC_MEMMEM): ... and here...
7340         * modules/memmem-simple (configure.ac): ... to here.
7341         * modules/memmem (configure.ac): ... and here.
7342
7343 2011-05-21  Bruno Haible  <bruno@clisp.org>
7344
7345         memcpy: Move AC_LIBOBJ invocations to module description.
7346         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7347         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7348         here...
7349         * modules/memcpy (configure.ac): ... to here.
7350
7351 2011-05-21  Bruno Haible  <bruno@clisp.org>
7352
7353         memcmp: Simplify autoconf macro.
7354         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7355         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7356         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7357
7358 2011-05-21  Bruno Haible  <bruno@clisp.org>
7359
7360         memcmp: Move AC_LIBOBJ invocations to module description.
7361         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7362         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7363         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7364         * modules/memcmp (configure.ac): ... to here.
7365         (Depends-on): Update conditions.
7366
7367 2011-05-21  Bruno Haible  <bruno@clisp.org>
7368
7369         memchr: Respect rules for use of AC_LIBOBJ.
7370         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7371         invocations from here...
7372         * modules/memchr (configure.ac): ... to here.
7373
7374 2011-05-21  Bruno Haible  <bruno@clisp.org>
7375
7376         mbtowc: Move AC_LIBOBJ invocations to module description.
7377         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7378         invocations from here...
7379         * modules/mbtowc (configure.ac): ... to here.
7380
7381 2011-05-21  Bruno Haible  <bruno@clisp.org>
7382
7383         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7384         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7385         gl_PREREQ_MBSRTOWCS invocations from here...
7386         * modules/mbsrtowcs (configure.ac): ... to here.
7387
7388 2011-05-21  Bruno Haible  <bruno@clisp.org>
7389
7390         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7391         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7392         gl_PREREQ_MBSNRTOWCS invocations from here...
7393         * modules/mbsnrtowcs (configure.ac): ... to here.
7394
7395 2011-05-21  Bruno Haible  <bruno@clisp.org>
7396
7397         mbsinit: Move AC_LIBOBJ invocations to module description.
7398         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7399         invocations from here...
7400         * modules/mbsinit (configure.ac): ... to here.
7401
7402 2011-05-21  Bruno Haible  <bruno@clisp.org>
7403
7404         mbrlen: Move AC_LIBOBJ invocations to module description.
7405         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7406         invocations from here...
7407         * modules/mbrlen (configure.ac): ... to here.
7408
7409 2011-05-21  Bruno Haible  <bruno@clisp.org>
7410
7411         mbrtowc: Respect rules for use of AC_LIBOBJ.
7412         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7413         invocations from here...
7414         * modules/mbrtowc (configure.ac): ... to here.
7415
7416 2011-05-21  Bruno Haible  <bruno@clisp.org>
7417
7418         malloc-*: Move AC_LIBOBJ invocations to module description.
7419         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7420         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7421         AC_LIBOBJ invocations from here...
7422         * modules/malloc-gnu (configure.ac): ... to here.
7423         * modules/malloc-posix (configure.ac): ... and here.
7424
7425 2011-05-21  Bruno Haible  <bruno@clisp.org>
7426
7427         lstat, openat: Respect rules for use of AC_LIBOBJ.
7428         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7429         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7430         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7431         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7432         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7433         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7434         here.
7435         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7436
7437 2011-05-21  Bruno Haible  <bruno@clisp.org>
7438
7439         lseek: Move AC_LIBOBJ invocations to module description.
7440         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7441         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7442         * modules/lseek (configure.ac): ... to here.
7443
7444 2011-05-21  Bruno Haible  <bruno@clisp.org>
7445
7446         linkat: Move AC_LIBOBJ invocations to module description.
7447         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7448         here...
7449         * modules/linkat (configure.ac): ... to here.
7450
7451 2011-05-21  Bruno Haible  <bruno@clisp.org>
7452
7453         link: Respect rules for use of AC_LIBOBJ.
7454         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7455         * modules/link (configure.ac): ... to here.
7456
7457 2011-05-21  Bruno Haible  <bruno@clisp.org>
7458
7459         lchown: Move AC_LIBOBJ invocations to module description.
7460         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7461         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7462         * modules/lchown (configure.ac): ... to here.
7463
7464 2011-05-21  Bruno Haible  <bruno@clisp.org>
7465
7466         iswctype: Move AC_LIBOBJ invocations to module description.
7467         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7468         here...
7469         * modules/iswctype (configure.ac): ... to here.
7470
7471 2011-05-21  Bruno Haible  <bruno@clisp.org>
7472
7473         iswblank: Move AC_LIBOBJ invocations to module description.
7474         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7475         here...
7476         * modules/iswblank (configure.ac): ... to here.
7477
7478 2011-05-21  Bruno Haible  <bruno@clisp.org>
7479
7480         atanl: Move AC_LIBOBJ invocations to module description.
7481         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7482         * modules/atanl (configure.ac): ... to here.
7483
7484 2011-05-21  Bruno Haible  <bruno@clisp.org>
7485
7486         acosl: Move AC_LIBOBJ invocations to module description.
7487         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7488         * modules/acosl (configure.ac): ... to here.
7489
7490 2011-05-21  Bruno Haible  <bruno@clisp.org>
7491
7492         asinl: Respect rules for use of AC_LIBOBJ.
7493         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7494         * modules/asinl (configure.ac): ... to here.
7495
7496 2011-05-21  Bruno Haible  <bruno@clisp.org>
7497
7498         tanl: Move AC_LIBOBJ invocations to module description.
7499         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7500         * modules/tanl (configure.ac): ... to here.
7501
7502 2011-05-21  Bruno Haible  <bruno@clisp.org>
7503
7504         cosl: Move AC_LIBOBJ invocations to module description.
7505         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7506         * modules/cosl (configure.ac): ... to here.
7507
7508 2011-05-21  Bruno Haible  <bruno@clisp.org>
7509
7510         sinl: Move AC_LIBOBJ invocations to module description.
7511         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7512         * modules/sinl (configure.ac): ... to here.
7513
7514 2011-05-21  Bruno Haible  <bruno@clisp.org>
7515
7516         logl: Move AC_LIBOBJ invocations to module description.
7517         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7518         * modules/logl (configure.ac): ... to here.
7519
7520 2011-05-21  Bruno Haible  <bruno@clisp.org>
7521
7522         expl: Move AC_LIBOBJ invocations to module description.
7523         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7524         * modules/expl (configure.ac): ... to here.
7525
7526 2011-05-21  Bruno Haible  <bruno@clisp.org>
7527
7528         roundl: Move AC_LIBOBJ invocations to module description.
7529         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7530         * modules/roundl (configure.ac): ... to here.
7531
7532 2011-05-21  Bruno Haible  <bruno@clisp.org>
7533
7534         round: Move AC_LIBOBJ invocations to module description.
7535         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7536         * modules/round (configure.ac): ... to here.
7537
7538 2011-05-21  Bruno Haible  <bruno@clisp.org>
7539
7540         roundf: Move AC_LIBOBJ invocations to module description.
7541         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7542         * modules/roundf (configure.ac): ... to here.
7543
7544 2011-05-21  Bruno Haible  <bruno@clisp.org>
7545
7546         truncl: Move AC_LIBOBJ invocations to module description.
7547         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7548         * modules/truncl (configure.ac): ... to here.
7549
7550 2011-05-21  Bruno Haible  <bruno@clisp.org>
7551
7552         trunc: Move AC_LIBOBJ invocations to module description.
7553         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7554         * modules/trunc (configure.ac): ... to here.
7555
7556 2011-05-21  Bruno Haible  <bruno@clisp.org>
7557
7558         truncf: Move AC_LIBOBJ invocations to module description.
7559         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7560         * modules/truncf (configure.ac): ... to here.
7561
7562 2011-05-21  Bruno Haible  <bruno@clisp.org>
7563
7564         ceill: Move AC_LIBOBJ invocations to module description.
7565         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7566         * modules/ceill (configure.ac): ... to here.
7567
7568 2011-05-21  Bruno Haible  <bruno@clisp.org>
7569
7570         ceil: Move AC_LIBOBJ invocations to module description.
7571         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7572         * modules/ceil (configure.ac): ... to here.
7573
7574 2011-05-21  Bruno Haible  <bruno@clisp.org>
7575
7576         ceilf: Move AC_LIBOBJ invocations to module description.
7577         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7578         * modules/ceilf (configure.ac): ... to here.
7579
7580 2011-05-21  Bruno Haible  <bruno@clisp.org>
7581
7582         floorl: Respect rules for use of AC_LIBOBJ.
7583         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7584         * modules/floorl (configure.ac): ... to here.
7585
7586 2011-05-21  Bruno Haible  <bruno@clisp.org>
7587
7588         floor: Respect rules for use of AC_LIBOBJ.
7589         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7590         * modules/floor (configure.ac): ... to here.
7591
7592 2011-05-21  Bruno Haible  <bruno@clisp.org>
7593
7594         floorf: Move AC_LIBOBJ invocations to module description.
7595         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7596         * modules/floorf (configure.ac): ... to here.
7597
7598 2011-05-20  Bruno Haible  <bruno@clisp.org>
7599
7600         sqrtl: Respect rules for use of AC_LIBOBJ.
7601         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7602         * modules/sqrtl (configure.ac): ... to here.
7603
7604 2011-05-20  Bruno Haible  <bruno@clisp.org>
7605
7606         ldexpl: Respect rules for use of AC_LIBOBJ.
7607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7608         * modules/ldexpl (configure.ac): ... to here.
7609
7610 2011-05-20  Bruno Haible  <bruno@clisp.org>
7611
7612         frexpl*: Respect rules for use of AC_LIBOBJ.
7613         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7614         invocation from here...
7615         * modules/frexpl (configure.ac): ... to here.
7616         * modules/frexpl-nolibm (configure.ac): ... and here.
7617
7618 2011-05-20  Bruno Haible  <bruno@clisp.org>
7619
7620         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7621         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7622         invocation from here...
7623         * modules/frexp (configure.ac): ... to here.
7624         * modules/frexp-nolibm (configure.ac): ... and here.
7625
7626 2011-05-20  Bruno Haible  <bruno@clisp.org>
7627
7628         isnan: Respect rules for use of AC_LIBOBJ.
7629         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7630         invocations here.
7631         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7632         REPLACE_ISNAN.
7633         * modules/isnand (configure.ac): Likewise.
7634         * modules/isnanl (configure.ac): Likewise.
7635
7636 2011-05-20  Bruno Haible  <bruno@clisp.org>
7637
7638         isnanl*: Respect rules for use of AC_LIBOBJ.
7639         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7640         invocation from here...
7641         * modules/isnanl (configure.ac): ... to here.
7642         * modules/isnanl-nolibm (configure.ac): ... and here.
7643
7644 2011-05-20  Bruno Haible  <bruno@clisp.org>
7645
7646         isnand*: Move AC_LIBOBJ invocations to module description.
7647         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7648         invocation from here...
7649         * modules/isnand (configure.ac): ... to here.
7650         * modules/isnand-nolibm (configure.ac): ... and here.
7651
7652 2011-05-20  Bruno Haible  <bruno@clisp.org>
7653
7654         isnanf*: Move AC_LIBOBJ invocations to module description.
7655         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7656         invocation from here...
7657         * modules/isnanf (configure.ac): ... to here.
7658         * modules/isnanf-nolibm (configure.ac): ... and here.
7659
7660 2011-05-20  Bruno Haible  <bruno@clisp.org>
7661
7662         isnan*: Separate the AC_LIBOBJ invocations.
7663         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7664         AC_LIBOBJ invocation.
7665         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7666         here.
7667         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7668         AC_LIBOBJ invocation.
7669         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7670         here.
7671         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7672         AC_LIBOBJ invocation.
7673         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7674         here.
7675         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7676
7677 2011-05-08  Bruno Haible  <bruno@clisp.org>
7678
7679         isinf: Move AC_LIBOBJ invocations to module description.
7680         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7681         * modules/isinf (configure.ac): ... to here.
7682
7683 2011-05-08  Bruno Haible  <bruno@clisp.org>
7684
7685         isfinite: Move AC_LIBOBJ invocations to module description.
7686         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7687         * modules/isfinite (configure.ac): ... to here.
7688
7689 2011-05-08  Bruno Haible  <bruno@clisp.org>
7690
7691         isblank: Move AC_LIBOBJ invocations to module description.
7692         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7693         here...
7694         * modules/isblank (configure.ac): ... to here.
7695
7696 2011-05-08  Bruno Haible  <bruno@clisp.org>
7697
7698         isapipe: Move AC_LIBOBJ invocations to module description.
7699         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7700         gl_PREREQ_ISAPIPE invocations from here...
7701         * modules/isapipe (configure.ac): ... to here.
7702         (Depends-on): Update condition.
7703
7704 2011-05-08  Bruno Haible  <bruno@clisp.org>
7705
7706         ioctl: Move AC_LIBOBJ invocations to module description.
7707         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7708         invocations from here...
7709         * modules/ioctl (configure.ac): ... to here.
7710         (Depends-on): Update condition.
7711
7712 2011-05-08  Bruno Haible  <bruno@clisp.org>
7713
7714         imaxdiv: Move AC_LIBOBJ invocations to module description.
7715         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7716         invocations from here...
7717         * modules/imaxdiv (configure.ac): ... to here.
7718
7719 2011-05-08  Bruno Haible  <bruno@clisp.org>
7720
7721         imaxabs: Move AC_LIBOBJ invocations to module description.
7722         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7723         invocations from here...
7724         * modules/imaxabs (configure.ac): ... to here.
7725
7726 2011-05-08  Bruno Haible  <bruno@clisp.org>
7727
7728         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7730         AC_LIBOBJ invocations from here...
7731         * modules/getaddrinfo (configure.ac): ... to here.
7732         (Depends-on): Add conditions.
7733
7734 2011-05-08  Bruno Haible  <bruno@clisp.org>
7735
7736         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7737         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7738         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7739         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7740         (gl_PREREQ_INET_PTON): ... from here.
7741         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7742         gl_PREREQ_INET_PTON here.
7743         (Depends-on): Update condition.
7744
7745 2011-05-08  Bruno Haible  <bruno@clisp.org>
7746
7747         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7748         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7749         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7750         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7751         (gl_PREREQ_INET_NTOP): ... from here.
7752         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7753         gl_PREREQ_INET_NTOP here.
7754         (Depends-on): Update condition.
7755
7756 2011-05-08  Bruno Haible  <bruno@clisp.org>
7757
7758         iconv_open: Move AC_LIBOBJ invocations to module description.
7759         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7760         AC_LIBOBJ invocations from here...
7761         * modules/iconv_open (configure.ac): ... to here.
7762
7763 2011-05-08  Bruno Haible  <bruno@clisp.org>
7764
7765         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7766         If module 'iconv_open' is among the main modules and module
7767         'iconv_open-utf' is among the tests dependencies, then
7768         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7769         return the special iconv_t values. Therefore iconv() and iconv_close()
7770         must support these special iconv_t values, already in lib, not only in
7771         tests.
7772         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7774         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7775         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7776         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7777         (Depends-on): Add the dependencies of iconv_open-utf.
7778         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7779         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7780         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7781
7782 2011-05-08  Bruno Haible  <bruno@clisp.org>
7783
7784         group-member: Move AC_LIBOBJ invocations to module description.
7785         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7786         gl_PREREQ_GROUP_MEMBER invocations from here...
7787         * modules/group-member (configure.ac): ... to here.
7788
7789 2011-05-08  Bruno Haible  <bruno@clisp.org>
7790
7791         grantpt: Move AC_LIBOBJ invocations to module description.
7792         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7793         invocations from here...
7794         * modules/grantpt (configure.ac): ... to here.
7795
7796 2011-05-08  Bruno Haible  <bruno@clisp.org>
7797
7798         glob: Move AC_LIBOBJ invocations to module description.
7799         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7800         from here...
7801         * modules/glob (configure.ac): ... to here.
7802
7803 2011-05-08  Bruno Haible  <bruno@clisp.org>
7804
7805         getusershell: Move AC_LIBOBJ invocations to module description.
7806         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7807         Move AC_LIBOBJ invocation from here...
7808         * modules/getusershell (configure.ac): ... to here.
7809         (Depends-on): Update condition.
7810
7811 2011-05-08  Bruno Haible  <bruno@clisp.org>
7812
7813         gettimeofday: Move AC_LIBOBJ invocations to module description.
7814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7815         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7816         gl_PREREQ_GETTIMEOFDAY invocations from here...
7817         * modules/gettimeofday (configure.ac): ... to here.
7818
7819 2011-05-08  Bruno Haible  <bruno@clisp.org>
7820
7821         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7822         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7823         just gl_FUNC_TZSET.
7824         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7825         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7826         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7827         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7828
7829 2011-05-08  Bruno Haible  <bruno@clisp.org>
7830
7831         getsubopt: Move AC_LIBOBJ invocations to module description.
7832         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7833         gl_PREREQ_GETSUBOPT invocations from here...
7834         * modules/getsubopt (configure.ac): ... to here.
7835
7836 2011-05-08  Bruno Haible  <bruno@clisp.org>
7837
7838         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7839         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7840         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7841         * modules/getpass-gnu (configure.ac): ... to here.
7842
7843 2011-05-08  Bruno Haible  <bruno@clisp.org>
7844
7845         getpass: Move AC_LIBOBJ invocations to module description.
7846         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7847         gl_PREREQ_GETPASS invocations from here...
7848         * modules/getpass (configure.ac): ... to here.
7849
7850 2011-05-08  Bruno Haible  <bruno@clisp.org>
7851
7852         getpagesize: Move AC_LIBOBJ invocations to module description.
7853         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7854         from here...
7855         * modules/getpagesize (configure.ac): ... to here.
7856
7857 2011-05-08  Bruno Haible  <bruno@clisp.org>
7858
7859         getopt: Move AC_LIBOBJ invocations to module description.
7860         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7861         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7862         invocations from here...
7863         * modules/getopt-gnu (configure.ac): ... to here.
7864         * modules/getopt-posix (configure.ac): ... and here.
7865         (Depends-on): Update condition.
7866
7867 2011-05-08  Bruno Haible  <bruno@clisp.org>
7868
7869         getopt, argp: Respect rules for use of AC_LIBOBJ.
7870         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7871         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7872         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7873         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7874
7875 2011-05-08  Bruno Haible  <bruno@clisp.org>
7876
7877         getlogin_r: Move AC_LIBOBJ invocations to module description.
7878         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7879         gl_PREREQ_GETLOGIN_R invocations from here...
7880         * modules/getlogin_r (configure.ac): ... to here.
7881
7882 2011-05-08  Bruno Haible  <bruno@clisp.org>
7883
7884         getlogin: Move AC_LIBOBJ invocations to module description.
7885         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7886         here...
7887         * modules/getlogin (configure.ac): ... to here.
7888
7889 2011-05-08  Bruno Haible  <bruno@clisp.org>
7890
7891         getloadavg: Move AC_LIBOBJ invocations to module description.
7892         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7893         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7894         * modules/getloadavg (configure.ac): ... to here.
7895
7896 2011-05-08  Bruno Haible  <bruno@clisp.org>
7897
7898         gethrxtime: Move AC_LIBOBJ invocations to module description.
7899         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7900         LIB_GETHRXTIME from here...
7901         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7902         invocations from here...
7903         * modules/gethrxtime (configure.ac): ... to here.
7904
7905 2011-05-08  Bruno Haible  <bruno@clisp.org>
7906
7907         gethostname: Move AC_LIBOBJ invocations to module description.
7908         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7909         gl_PREREQ_GETHOSTNAME invocations from here...
7910         * modules/gethostname (configure.ac): ... to here.
7911
7912 2011-05-08  Bruno Haible  <bruno@clisp.org>
7913
7914         getgroups: Move AC_LIBOBJ invocations to module description.
7915         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7916         here...
7917         * modules/getgroups (configure.ac): ... to here.
7918
7919 2011-05-08  Bruno Haible  <bruno@clisp.org>
7920
7921         getdtablesize: Move AC_LIBOBJ invocations to module description.
7922         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7923         invocation from here...
7924         * modules/getdtablesize (configure.ac): ... to here.
7925
7926 2011-05-08  Bruno Haible  <bruno@clisp.org>
7927
7928         getdomainname: Move AC_LIBOBJ invocations to module description.
7929         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7930         gl_PREREQ_GETDOMAINNAME invocations from here...
7931         * modules/getdomainname (configure.ac): ... to here.
7932
7933 2011-05-08  Bruno Haible  <bruno@clisp.org>
7934
7935         getline: Move AC_LIBOBJ invocations to module description.
7936         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7937         invocations from here...
7938         * modules/getline (configure.ac): ... to here.
7939
7940 2011-05-08  Bruno Haible  <bruno@clisp.org>
7941
7942         getline: Simplify.
7943         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7944         It's already handled through the module dependency.
7945
7946 2011-05-08  Bruno Haible  <bruno@clisp.org>
7947
7948         getdelim: Move AC_LIBOBJ invocations to module description.
7949         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7950         and gl_PREREQ_GETDELIM invocations from here...
7951         * modules/getdelim (configure.ac): ... to here.
7952         (Depends-on): Fix condition.
7953
7954 2011-05-08  Bruno Haible  <bruno@clisp.org>
7955
7956         getcwd: Move AC_LIBOBJ invocations to module description.
7957         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7958         invocations from here...
7959         * modules/getcwd (configure.ac): ... to here.
7960
7961 2011-05-08  Bruno Haible  <bruno@clisp.org>
7962
7963         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7964         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7965         here...
7966         * modules/getcwd-lgpl (configure.ac): ... to here.
7967
7968 2011-05-07  Bruno Haible  <bruno@clisp.org>
7969
7970         crypto/gc: Move AC_LIBOBJ invocations to module description.
7971         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7972         * modules/crypto/gc (configure.ac): ... to here.
7973
7974 2011-05-07  Bruno Haible  <bruno@clisp.org>
7975
7976         fwriting: Move AC_LIBOBJ invocations to module description.
7977         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7978         here...
7979         * modules/fwriting (configure.ac): ... to here.
7980
7981 2011-05-07  Bruno Haible  <bruno@clisp.org>
7982
7983         fwritable: Move AC_LIBOBJ invocations to module description.
7984         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7985         here...
7986         * modules/fwritable (configure.ac): ... to here.
7987
7988 2011-05-07  Bruno Haible  <bruno@clisp.org>
7989
7990         futimens: Move AC_LIBOBJ invocations to module description.
7991         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7992         here...
7993         * modules/futimens (configure.ac): ... to here.
7994
7995 2011-05-07  Bruno Haible  <bruno@clisp.org>
7996
7997         ftruncate: Move AC_LIBOBJ invocations to module description.
7998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7999         gl_PREREQ_FTRUNCATE invocations from here...
8000         * modules/ftruncate (configure.ac): ... to here.
8001
8002 2011-05-07  Bruno Haible  <bruno@clisp.org>
8003
8004         fsync: Move AC_LIBOBJ invocations to module description.
8005         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8006         invocations from here...
8007         * modules/fsync (configure.ac): ... to here.
8008
8009 2011-05-07  Bruno Haible  <bruno@clisp.org>
8010
8011         fsusage: Move AC_LIBOBJ invocations to module description.
8012         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8013         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8014         * modules/fsusage (configure.ac): ... to here.
8015
8016 2011-05-07  Bruno Haible  <bruno@clisp.org>
8017
8018         freopen: Move AC_LIBOBJ invocations to module description.
8019         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8020         invocations from here...
8021         * modules/freopen (configure.ac): ... to here.
8022
8023 2011-05-07  Bruno Haible  <bruno@clisp.org>
8024
8025         free: Move AC_LIBOBJ invocations to module description.
8026         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8027         invocations from here...
8028         * modules/free (configure.ac): ... to here.
8029
8030 2011-05-07  Bruno Haible  <bruno@clisp.org>
8031
8032         freadable: Move AC_LIBOBJ invocations to module description.
8033         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8034         here...
8035         * modules/freadable (configure.ac): ... to here.
8036
8037 2011-05-07  Bruno Haible  <bruno@clisp.org>
8038
8039         fpurge: Move AC_LIBOBJ invocations to module description.
8040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8041         invocations from here...
8042         * modules/fpurge (configure.ac): ... to here.
8043
8044 2011-05-07  Bruno Haible  <bruno@clisp.org>
8045
8046         fpending: Move AC_LIBOBJ invocations to module description.
8047         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8048         gl_FUNC_FPENDING.
8049         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8050         invocations from here...
8051         * modules/fpending (configure.ac): ... to here.
8052
8053 2011-05-07  Bruno Haible  <bruno@clisp.org>
8054
8055         fopen: Move AC_LIBOBJ invocations to module description.
8056         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8057         invocations from here...
8058         * modules/fopen (configure.ac): ... to here.
8059
8060 2011-05-07  Bruno Haible  <bruno@clisp.org>
8061
8062         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8063         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8064         gl_FUNC_FNMATCH_POSIX.
8065         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8066         invocations from here...
8067         * modules/fnmatch (configure.ac): ... to here.
8068         * modules/fnmatch-gnu (configure.ac): ... and here.
8069
8070 2011-05-07  Bruno Haible  <bruno@clisp.org>
8071
8072         flock: Move AC_LIBOBJ invocations to module description.
8073         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8074         invocations from here...
8075         * modules/flock (configure.ac): ... to here.
8076
8077 2011-05-07  Bruno Haible  <bruno@clisp.org>
8078
8079         fileblocks: Move AC_LIBOBJ invocations to module description.
8080         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8081         gl_PREREQ_FILEBLOCKS invocations from here...
8082         * modules/fileblocks (configure.ac): ... to here.
8083
8084 2011-05-06  Bruno Haible  <bruno@clisp.org>
8085
8086         fflush: Move AC_LIBOBJ invocations to module description.
8087         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8088         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8089         invocations from here...
8090         * modules/fflush (configure.ac): ... to here.
8091
8092 2011-05-06  Bruno Haible  <bruno@clisp.org>
8093
8094         fdopendir: Move AC_LIBOBJ invocations to module description.
8095         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8096         here...
8097         * modules/fdopendir (configure.ac): ... to here.
8098         (Depends-on): Improve conditions.
8099
8100 2011-05-06  Bruno Haible  <bruno@clisp.org>
8101
8102         _Exit: Move AC_LIBOBJ invocations to module description.
8103         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8104         invocations from here...
8105         * modules/_Exit (configure.ac): ... to here.
8106
8107 2011-05-21  Bruno Haible  <bruno@clisp.org>
8108
8109         euidaccess: Respect rules for use of AC_LIBOBJ.
8110         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8112         from here...
8113         * modules/euidaccess (configure.ac): ... to here.
8114
8115 2011-05-06  Bruno Haible  <bruno@clisp.org>
8116
8117         error: Move AC_LIBOBJ invocations to module description.
8118         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8119         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8120         invocations from here...
8121         * modules/error (configure.ac): ... to here.
8122
8123 2011-05-06  Bruno Haible  <bruno@clisp.org>
8124
8125         duplocale: Move AC_LIBOBJ invocations to module description.
8126         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8127         gl_PREREQ_DUPLOCALE invocations from here...
8128         * modules/duplocale (configure.ac): ... to here.
8129
8130 2011-05-05  Bruno Haible  <bruno@clisp.org>
8131
8132         dirfd: Move AC_LIBOBJ invocations to module description.
8133         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8134         gl_FUNC_DIRFD.
8135         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8136         here...
8137         * modules/dirfd (configure.ac): ... to here.
8138         (Depends-on): Fix condition.
8139
8140 2011-05-05  Bruno Haible  <bruno@clisp.org>
8141
8142         chown: Respect rules for use of AC_LIBOBJ.
8143         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8144         * modules/chown (configure.ac): ... to here.
8145
8146 2011-05-05  Bruno Haible  <bruno@clisp.org>
8147
8148         chdir-long: Move AC_LIBOBJ invocations to module description.
8149         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8150         gl_PREREQ_CHDIR_LONG invocations from here...
8151         * modules/chdir-long (configure.ac): ... to here.
8152
8153 2011-05-05  Bruno Haible  <bruno@clisp.org>
8154
8155         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8156         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8157         from here...
8158         * modules/canonicalize-lgpl (configure.ac): ... to here.
8159
8160 2011-05-05  Bruno Haible  <bruno@clisp.org>
8161
8162         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8163         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8164         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8165         REPLACE_CALLOC.
8166         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8167         * modules/calloc-gnu (configure.ac): Likewise.
8168
8169 2011-05-05  Bruno Haible  <bruno@clisp.org>
8170
8171         btowc: Move AC_LIBOBJ invocations to module description.
8172         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8173         invocations from here...
8174         * modules/btowc (configure.ac): ... to here.
8175
8176 2011-05-21  Bruno Haible  <bruno@clisp.org>
8177
8178         atexit: Move AC_LIBOBJ invocations to module description.
8179         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8181         here...
8182         * modules/atexit (configure.ac): ... to here.
8183
8184 2011-05-05  Bruno Haible  <bruno@clisp.org>
8185
8186         atoll: Move AC_LIBOBJ invocations to module description.
8187         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8188         invocations from here...
8189         * modules/atoll (configure.ac): ... to here.
8190
8191 2011-05-05  Bruno Haible  <bruno@clisp.org>
8192
8193         argz: Move AC_LIBOBJ invocations to module description.
8194         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8195         * modules/argz (configure.ac): ... to here.
8196
8197 2011-05-05  Bruno Haible  <bruno@clisp.org>
8198
8199         alphasort: Move AC_LIBOBJ invocations to module description.
8200         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8201         gl_PREREQ_ALPHASORT invocations from here...
8202         * modules/alphasort (configure.ac): ... to here.
8203
8204 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8205
8206         verify: new macro verify_expr; verify_true deprecated
8207         * NEWS: Mention this.
8208         * doc/verify.texi (Compile-time Assertions): Document this.
8209         * lib/verify.h (verify_true): Deprecate.
8210         (verify_expr): New macro.
8211         * tests/test-verify.c (function): Test verify_expr.
8212
8213 2011-06-14  Jim Meyering  <meyering@redhat.com>
8214
8215         init.sh: give more portable redirection-related advice in a comment
8216         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8217         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8218         for lots of discussion.  Stefano Lattarini suggested the solution
8219         of putting "9>&2" after the command.  Reported by Bruno Haible.
8220
8221 2011-06-13  Bruno Haible  <bruno@clisp.org>
8222
8223         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8224         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8225         'none'.
8226
8227 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         ftoastr: use strtof only if HAVE_STRTOF
8230         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8232         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8233         * modules/ftoastr (configure.ac): Check for strtof.
8234
8235 2011-06-13  Bruno Haible  <bruno@clisp.org>
8236
8237         gnulib-tool: Addendum to 2011-06-08 commit.
8238         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8239         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8240
8241 2011-06-13  Bruno Haible  <bruno@clisp.org>
8242
8243         fseeko: Provide a non-inline replacement of fseek().
8244         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8245         * modules/fseeko (Depends-on): Add fseek.
8246         * modules/fseek (License): Change to LGPLv2+.
8247
8248 2011-06-13  Bruno Haible  <bruno@clisp.org>
8249
8250         ftello: Provide a non-inline replacement of ftell().
8251         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8252         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8253         not have ftello() (such as on mingw).
8254         * modules/ftello (Depends-on): Add ftell.
8255         * modules/ftell (License): Change to LGPLv2+.
8256
8257 2011-05-07  Bruno Haible  <bruno@clisp.org>
8258
8259         ftell: Move AC_LIBOBJ invocations to module description.
8260         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8261         * modules/ftell (configure.ac): ... to here.
8262
8263 2011-05-07  Bruno Haible  <bruno@clisp.org>
8264
8265         ftello: Respect rules for use of AC_LIBOBJ.
8266         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8267         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8268         here...
8269         * modules/ftello (configure.ac): ... to here.
8270
8271 2011-05-07  Bruno Haible  <bruno@clisp.org>
8272
8273         fseeko: Simplify.
8274         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8275         (gl_FUNC_FSEEKO): Inline it here.
8276
8277 2011-05-07  Bruno Haible  <bruno@clisp.org>
8278
8279         fseek: Move AC_LIBOBJ invocations to module description.
8280         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8281         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8282         * modules/fseek (configure.ac): ... to here.
8283
8284 2011-05-07  Bruno Haible  <bruno@clisp.org>
8285
8286         fseek: Respect rules for use of AC_LIBOBJ.
8287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8288         here...
8289         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8290
8291 2011-05-07  Bruno Haible  <bruno@clisp.org>
8292
8293         fseeko: Respect rules for use of AC_LIBOBJ.
8294         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8295         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8296         here...
8297         * modules/fseeko (configure.ac): ... to here.
8298
8299 2011-06-13  Bruno Haible  <bruno@clisp.org>
8300
8301         gnulib-tool: Allow comments in the 'Depends-on' section.
8302         * doc/gnulib.texi (Module description): Mention comment syntax in the
8303         Depends-on section.
8304         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8305
8306 2011-06-13  Bruno Haible  <bruno@clisp.org>
8307
8308         file-set.h: guard __attibute__ use, now that it's not always defined
8309         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8310         versions that support it.  This fixes a coreutils build failure with
8311         the vendor cc on HP-UX 11.31.
8312
8313 2011-06-12  Bruno Haible  <bruno@clisp.org>
8314
8315         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8316         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8317         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8318         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8319         (acl, aclsort): New declarations.
8320         (aclv_nontrivial): New declaration.
8321         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8322         (file_has_acl): Read also the second kind of HP-UX ACLs.
8323         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8324         kind of HP-UX ACLs if the first kind fails.
8325         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8326         second kind of HP-UX ACLs.
8327         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8328         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8329         agree.
8330         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8331         hpuxjfs.
8332         Handle hpuxjfs.
8333         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8334         hpuxjfs.
8335         Handle hpuxjfs.
8336         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8337         (func_test_same_acls): Use both lsacl and getacl.
8338         Handle hpuxjfs.
8339         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8340         (func_test_same_acls): Use both lsacl and getacl.
8341         Handle hpuxjfs.
8342
8343 2011-06-12  Bruno Haible  <bruno@clisp.org>
8344
8345         acl: Complete the 2010-08-10 fix.
8346         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8347         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8348         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8349         explicitly.
8350         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8351         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8352
8353 2011-06-12  Bruno Haible  <bruno@clisp.org>
8354
8355         spawn-pipe tests: Comments.
8356         * tests/test-spawn-pipe-child.c (main): Update comment.
8357         Reported by James Youngman <jay@gnu.org>.
8358
8359 2011-06-11  James Youngman  <jay@gnu.org>
8360
8361         New module 'stat-size'.
8362         * modules/stat-size: New module.  Provides macros for accessing
8363         file size information in instances of struct stat.  Depends on the
8364         fileblocks module because it calls st_blocks.
8365         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8366         * doc/gnulib.texi: Include stat-size.texi.
8367         * doc/stat-size.texi: Documentation for this module.
8368         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8369         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8370         AC_STRUCT_ST_BLOCKS.
8371
8372 2011-06-09  Bruno Haible  <bruno@clisp.org>
8373
8374         thread: Support pthreads-win32.
8375         * lib/glthread/thread.h (gl_thread_self): Define differently on
8376         pthreads-win32.
8377         (gl_null_thread): New declaration.
8378         (gl_thread_self_pointer): New macro.
8379         * lib/glthread/thread.c (gl_null_thread): New constant.
8380         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8381         gl_thread_self.
8382         * tests/test-tls.c: Likewise.
8383         Suggested by Paul Eggert. Reported by Eric Blake.
8384
8385 2011-06-09  Bruno Haible  <bruno@clisp.org>
8386
8387         thread: Fix confusion between NULL and 0.
8388         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8389         Reported by Paul Eggert.
8390
8391 2011-06-09  Bruno Haible  <bruno@clisp.org>
8392
8393         spawn-pipe tests: Avoid test failure on HP-UX 11.
8394         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8395         is closed.
8396
8397 2011-06-09  Bruno Haible  <bruno@clisp.org>
8398
8399         acl tests: Fix compilation error on HP-UX 11.
8400         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8401
8402 2011-06-09  Bruno Haible  <bruno@clisp.org>
8403
8404         rmdir: Avoid test failure on HP-UX 10.20.
8405         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8406         EEXIST.
8407
8408 2011-06-08  Eric Blake  <eblake@redhat.com>
8409
8410         perror: fix test on mingw
8411         * modules/perror-tests (Depends-on): Add dup2.
8412
8413         strerror_r-posix: fix on MacOS
8414         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8415         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8416         logic bug.
8417         * lib/strerror_r.c (strerror_r): Fix the bug.
8418         * lib/strerror.c (strerror): Likewise.
8419         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8420         problem.
8421         * doc/posix-functions/strerror.texi (strerror): Likewise.
8422         * doc/posix-functions/perror.texi (perror): Likewise.
8423         * tests/test-strerror.c (main): Enhance test.
8424         * tests/test-strerror_r.c (main): Likewise.
8425
8426 2011-06-08  Bruno Haible  <bruno@clisp.org>
8427
8428         gnulib-tool: Better isolation between different gnulib-tool invocations.
8429         * gnulib-tool: New option --witness-c-macro.
8430         (witness_c_macro): New variable.
8431         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8432         AM_CPPFLAGS define it as a C macro.
8433         (func_emit_tests_Makefile_am): Likewise.
8434         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8435         read it from there.
8436         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8437         m4_define, not AC_DEFUN.
8438         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8439         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8440         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8441         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8442         s|...|...|, to substitute the values of the GNULIB_* module indicator
8443         variables.
8444         * modules/dirent (Makefile.am): Likewise.
8445         * modules/fcntl-h (Makefile.am): Likewise.
8446         * modules/iconv-h (Makefile.am): Likewise.
8447         * modules/langinfo (Makefile.am): Likewise.
8448         * modules/locale (Makefile.am): Likewise.
8449         * modules/math (Makefile.am): Likewise.
8450         * modules/netdb (Makefile.am): Likewise.
8451         * modules/poll-h (Makefile.am): Likewise.
8452         * modules/pty (Makefile.am): Likewise.
8453         * modules/search (Makefile.am): Likewise.
8454         * modules/signal (Makefile.am): Likewise.
8455         * modules/spawn (Makefile.am): Likewise.
8456         * modules/stdio (Makefile.am): Likewise.
8457         * modules/stdlib (Makefile.am): Likewise.
8458         * modules/string (Makefile.am): Likewise.
8459         * modules/sys_ioctl (Makefile.am): Likewise.
8460         * modules/sys_select (Makefile.am): Likewise.
8461         * modules/sys_socket (Makefile.am): Likewise.
8462         * modules/sys_stat (Makefile.am): Likewise.
8463         * modules/sys_times (Makefile.am): Likewise.
8464         * modules/sys_utsname (Makefile.am): Likewise.
8465         * modules/sys_wait (Makefile.am): Likewise.
8466         * modules/termios (Makefile.am): Likewise.
8467         * modules/time (Makefile.am): Likewise.
8468         * modules/unistd (Makefile.am): Likewise.
8469         * modules/wchar (Makefile.am): Likewise.
8470
8471 2011-06-08  Eric Blake  <eblake@redhat.com>
8472
8473         strerror: simplify replacement
8474         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8475         * modules/strerror (configure.ac): No prereqs needed here...
8476         * modules/strerror-override (configure.ac): ...but this needs it.
8477         (Files): Add file for needed prereq macro.
8478
8479 2011-06-08  Bruno Haible  <bruno@clisp.org>
8480
8481         strerror_r-posix: Tweaks.
8482         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8483         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8485         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8486         (gl_FUNC_STRERROR_R): ... to here.
8487         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8488
8489 2011-06-07  Eric Blake  <eblake@redhat.com>
8490
8491         perror: document fixed bugs
8492         * doc/posix-functions/perror.texi (perror): Document recent
8493         patches.
8494
8495 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8496
8497         stat-time: get_stat_birthtime failure is better-defined
8498         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8499         return a timestamp whose tv_sec and tv_nsec values are both -1.
8500         Previously, the spec said only that the tv_nsec value was negative.
8501         This upward-compatible change simplifies GNU tar a bit.
8502
8503 2011-06-07  Eric Blake  <eblake@redhat.com>
8504
8505         strerror_r-posix: work around cygwin 1.7.9
8506         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8507         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8508         bug without replacing strerror_r.
8509         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8510         strerror_r is buggy, but without requiring strerror_r compilation.
8511         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8512
8513         test-perror: relax test to ignore cygwin bug
8514         * tests/test-perror2.c (main): Relax test on requiring detection
8515         of stream errors, and use unbuffered stream.
8516         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8517         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8518         * doc/posix-functions/fputc.texi (fputc): Likewise.
8519         * doc/posix-functions/fputs.texi (fputs): Likewise.
8520         * doc/posix-functions/fputws.texi (fputws): Likewise.
8521         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8522         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8523         * doc/posix-functions/getopt.texi (getopt): Likewise.
8524         * doc/posix-functions/perror.texi (perror): Likewise.
8525         * doc/posix-functions/printf.texi (printf): Likewise.
8526         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8527         * doc/posix-functions/psignal.texi (psignal): Likewise.
8528         * doc/posix-functions/putc.texi (putc): Likewise.
8529         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8530         Likewise.
8531         * doc/posix-functions/putchar.texi (putchar): Likewise.
8532         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8533         Likewise.
8534         * doc/posix-functions/puts.texi (puts): Likewise.
8535         * doc/posix-functions/putwc.texi (putwc): Likewise.
8536         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8537         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8538         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8539         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8540         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8541         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8542         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8543         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8544
8545 2011-05-22  Bruno Haible  <bruno@clisp.org>
8546
8547         strerror: Move AC_LIBOBJ invocations to module description.
8548         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8549         gl_PREREQ_STRERROR invocations from here...
8550         * modules/strerror (configure.ac): ... to here.
8551
8552 2011-05-21  Bruno Haible  <bruno@clisp.org>
8553
8554         perror: Use common idiom.
8555         * modules/perror (configure.ac): Reorder statements.
8556
8557 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8558
8559         tests: fix usage message in 'mktempd_'
8560         * tests/init.sh (mktempd_): In the usage message, use literal
8561         'mktempd_', not '$ME' (which is even undefined), as the name of
8562         the subroutine.
8563
8564 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8565
8566         tests init: new function 'fatal_', for hard errors
8567         Before this patch, the only way offered by tests/init.sh to
8568         properly signal a hard error was the `framework_failure_'
8569         function.  But the error message issued by that function,
8570         as its name would suggest, refers to a set-up failure in the
8571         testsuite, while hard errors can obviously also be due to
8572         other reasons.  The best way to fix this inconsistency is to
8573         introduce a new function with a more general error message.
8574         * tests/init.sh (fatal_): New function.
8575
8576 2011-06-06  Eric Blake  <eblake@redhat.com>
8577
8578         canonicalize-lgpl: use common idiom
8579         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8580         over newer POSIX -Rf.
8581         Reported by Bruno Haible.
8582
8583         canonicalize-lgpl: work around AIX realpath bug
8584         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8585         * doc/posix-functions/realpath.texi (realpath): Document it.
8586         Reported by Bruno Haible.
8587
8588         strerror: work around FreeBSD bug
8589         * lib/strerror.c (strerror): Special case 0.
8590         Reported by Bruno Haible.
8591
8592         strerror-override: avoid bloating errno module
8593         * modules/errno (Files, configure.ac): Move replacement strings...
8594         * modules/strerror-override: ...to new module.
8595         * modules/strerror (Depends-on): Add strerror-override.
8596         * modules/strerror_r-posix (Depends-on): Likewise.
8597         * MODULES.html.sh: Document new module.
8598         Reported by Bruno Haible.
8599
8600 2011-06-06  Bruno Haible  <bruno@clisp.org>
8601
8602         spawn-pipe tests: Rename program.
8603         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8604         * tests/test-spawn-pipe-child.c: Update comment.
8605         * tests/test-spawn-pipe.sh: Update.
8606         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8607
8608         spawn-pipe tests: Link the child program only against libc.
8609         * tests/test-spawn-pipe-child.c: New file, extracted from
8610         tests/test-spawn-pipe.c.
8611         (main): Expect only one argument.
8612         (is_open): New function, copied from tests/test-pipe.c.
8613         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8614         (child_main): Remove function.
8615         (test_pipe): Pass only one argument to the child program.
8616         (main): Remove child process code. Expect the child program's name as
8617         first argument.
8618         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8619         argument.
8620         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8621         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8622         test-spawn-pipe-child against no libraries.
8623
8624 2011-06-06  Bruno Haible  <bruno@clisp.org>
8625
8626         careadlinkat: Avoid mismatch between ssize_t and int.
8627         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8628         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8629
8630 2011-06-06  Jim Meyering  <meyering@redhat.com>
8631
8632         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8633         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8634         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8635
8636 2011-06-05  Bruno Haible  <bruno@clisp.org>
8637
8638         ansi-c++-opt: Interoperability with libtool.
8639         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8640         set the variable to "no", not to ":".
8641         * NEWS: Mention the change.
8642
8643 2011-06-05  Bruno Haible  <bruno@clisp.org>
8644
8645         acl: Fix test failure on AIX 7.
8646         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8647         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8648
8649 2011-06-05  Bruno Haible  <bruno@clisp.org>
8650
8651         pipe-filter-ii: Fix test failure on AIX and IRIX.
8652         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8653         with EAGAIN, retry with a smaller buffer size.
8654
8655 2011-06-05  Bruno Haible  <bruno@clisp.org>
8656
8657         localename: Fix link dependencies.
8658         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8659         * modules/localename-tests (Makefile.am): Link test-localename with
8660         $(LIBTHREAD).
8661
8662 2011-06-05  Bruno Haible  <bruno@clisp.org>
8663
8664         error: Avoid gcc warning.
8665         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8666
8667 2011-06-05  Bruno Haible  <bruno@clisp.org>
8668
8669         unsetenv: Avoid gcc warning.
8670         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8671
8672 2011-06-05  Bruno Haible  <bruno@clisp.org>
8673
8674         setenv: Avoid gcc warning.
8675         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8676
8677 2011-06-05  Bruno Haible  <bruno@clisp.org>
8678
8679         sys_select: Ensure memset is declared also on AIX 7.
8680         * lib/sys_select.in.h: Include <string.h> also on AIX.
8681         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8682         self-contained also on AIX 7.1.
8683
8684 2011-06-04  Jim Meyering  <meyering@redhat.com>
8685
8686         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8687         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8688         function name, "error".
8689         (_gl_translatable_diag_func_re): New configurable variable.
8690
8691 2011-06-04  Bruno Haible  <bruno@clisp.org>
8692
8693         getopt: Avoid gcc warning.
8694         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8695
8696 2011-06-04  Bruno Haible  <bruno@clisp.org>
8697
8698         strerror_r: Fix comments.
8699         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8700         commit.
8701
8702 2011-06-04  Bruno Haible  <bruno@clisp.org>
8703
8704         perror: Fix compilation error.
8705         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8706         Undefine fprintf, not sprintf.
8707         * modules/perror (Depends-on): Remove intprops, verify.
8708
8709 2011-06-04  Bruno Haible  <bruno@clisp.org>
8710
8711         setlocale: Enable replacement on Cygwin 1.5.
8712         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8713         Cygwin 1.5.x.
8714         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8715         LC_CTYPE category also exists on Cygwin 1.5.x.
8716
8717 2011-06-04  Bruno Haible  <bruno@clisp.org>
8718
8719         strerror-override: Don't disable symbol renamings.
8720         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8721         * lib/strerror-override.c: Include config.h.
8722         (strerror_override): Don't undefine.
8723
8724 2011-06-03  Bruno Haible  <bruno@clisp.org>
8725
8726         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8727         * lib/localename.h: Update copyright header.
8728         * lib/localename.c: Likewise.
8729         * lib/relocatable.h: Likewise.
8730         * lib/relocatable.c: Likewise.
8731
8732 2011-06-02  Bruno Haible  <bruno@clisp.org>
8733
8734         doc: Fix a module name.
8735         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8736
8737 2011-06-02  Bruno Haible  <bruno@clisp.org>
8738
8739         pipe2: Remove dependency on 'nonblocking' module.
8740         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8741         O_NONBLOCK is defined by gnulib.
8742         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8743         is zero.
8744         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8745         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8746         defined by gnulib.
8747         (get_nonblocking_flag): New function.
8748         (main): Test O_NONBLOCK flag only if it is nonzero.
8749         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8750
8751 2011-06-03  Jim Meyering  <meyering@redhat.com>
8752
8753         maint: three new prohibit-header-without-use rules
8754         Prohibit use of cloexec.h, posixver.h, same.h without use.
8755         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8756         (sc_prohibit_posixver_without_use): Likewise.
8757         (sc_prohibit_same_without_use): Likewise.
8758
8759 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8760
8761         allocator: 'die' routine is now given requested size
8762         * lib/allocator.h (struct allocator.die): New size arg.
8763         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8764         If the actual problem is an ssize_t limitation, not a size_t or
8765         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8766
8767 2011-06-01  Eric Blake  <eblake@redhat.com>
8768
8769         strerror: drop strerror_r dependency
8770         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8771         * lib/strerror-override.c (strerror_override): ...to new file.
8772         * lib/strerror-override.h: Add prototype.
8773         * lib/strerror-impl.h: Delete.
8774         * lib/strerror.c (strerror): New implementation.
8775         * modules/errno (Files): Add new files.
8776         (configure.ac): Compile new file as appropriate.
8777         * modules/strerror (Files): Drop unused file.
8778         (Depends-on): Drop strerror_r-posix.
8779         * MODULES.html.sh: Document strerror_r-posix.
8780         Requested by Sam Steingold.
8781
8782         perror: call strerror_r directly
8783         * modules/perror (Files): Drop strerror-impl.h.
8784         * lib/perror.c (perror): Use our own stack buffer, rather than
8785         calling a wrapper that uses static storage.
8786         * doc/posix-functions/perror.texi (perror): Document a limitation
8787         of our replacement.
8788
8789         strerror_r: fix includes for FreeBSD
8790         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8791         since we use abort on some platforms.
8792         Reported by Matthias Bolte.
8793
8794 2011-05-31  Bruno Haible  <bruno@clisp.org>
8795
8796         Fix link errors in tests: openat-die uses gettext-h.
8797         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8798         against $(LIBINTL).
8799         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8800         against $(LIBINTL).
8801         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8802         $(LIBINTL).
8803         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8804         against $(LIBINTL).
8805         * modules/linkat-tests (Makefile.am): Link test-linkat against
8806         $(LIBINTL).
8807         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8808         $(LIBINTL).
8809         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8810         against $(LIBINTL).
8811         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8812         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8813         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8814         $(LIBINTL).
8815         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8816         $(LIBINTL).
8817         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8818         $(LIBINTL).
8819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8820
8821 2011-05-31  Bruno Haible  <bruno@clisp.org>
8822
8823         Fix link errors in tests: wait-process uses gettext-h.
8824         * modules/nonblocking-pipe-tests (Makefile.am): Set
8825         test_nonblocking_pipe_main_LDADD.
8826         * modules/nonblocking-socket-tests (Makefile.am): Link
8827         test-nonblocking-socket-main against $(LIBINTL).
8828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8829
8830 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8831
8832         assert-h: work around 'verify' incompatibility
8833         * lib/verify.h: Use @...@ directives, not ifdef.
8834         * modules/assert-h (assert.h): Implement the directives.
8835         (assert.h): Substitute the symbol-prefix more consistently.
8836
8837 2011-05-29  Jim Meyering  <meyering@redhat.com>
8838
8839         trim: remove three superfluous assignments
8840         * lib/trim.c (trim2): Remove three superfluous assignments
8841         and correct brace positioning.
8842
8843 2011-05-29  Bruno Haible  <bruno@clisp.org>
8844
8845         wctype-h: Avoid namespace pollution on Solaris 2.6.
8846         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8847         identifiers.
8848         * doc/posix-headers/wctype.texi: Mention the problem.
8849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8850
8851 2011-05-28  Jim Meyering  <meyering@redhat.com>
8852
8853         parse-datetime.y: accommodate -Wstrict-overflow
8854         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8855         placate -Wstrict-overflow.
8856
8857         trim: avoid a warning from -O2 -Wstrict-overflow
8858         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8859
8860 2011-05-29  Bruno Haible  <bruno@clisp.org>
8861
8862         gnulib-tool: Fix bug in yesterday's commit.
8863         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8864         twice.
8865
8866 2011-05-29  Bruno Haible  <bruno@clisp.org>
8867
8868         Allow multiple gnulib generated include files to be combined.
8869         * gnulib-tool (func_compute_include_guard_prefix): New function.
8870         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8871         ${gl_include_guard_prefix} references.
8872         (func_import, func_create_testdir): Invoke
8873         func_compute_include_guard_prefix.
8874         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8875         * lib/ctype.in.h: Likewise.
8876         * lib/dirent.in.h: Likewise.
8877         * lib/errno.in.h: Likewise.
8878         * lib/fcntl.in.h: Likewise.
8879         * lib/float.in.h: Likewise.
8880         * lib/getopt.in.h: Likewise.
8881         * lib/iconv.in.h: Likewise.
8882         * lib/langinfo.in.h: Likewise.
8883         * lib/locale.in.h: Likewise.
8884         * lib/math.in.h: Likewise.
8885         * lib/netdb.in.h: Likewise.
8886         * lib/netinet_in.in.h: Likewise.
8887         * lib/poll.in.h: Likewise.
8888         * lib/pthread.in.h: Likewise.
8889         * lib/pty.in.h: Likewise.
8890         * lib/sched.in.h: Likewise.
8891         * lib/se-selinux.in.h: Likewise.
8892         * lib/search.in.h: Likewise.
8893         * lib/signal.in.h: Likewise.
8894         * lib/spawn.in.h: Likewise.
8895         * lib/stdarg.in.h: Likewise.
8896         * lib/stddef.in.h: Likewise.
8897         * lib/stdint.in.h: Likewise.
8898         * lib/stdio.in.h: Likewise.
8899         * lib/stdlib.in.h: Likewise.
8900         * lib/string.in.h: Likewise.
8901         * lib/strings.in.h: Likewise.
8902         * lib/sys_file.in.h: Likewise.
8903         * lib/sys_ioctl.in.h: Likewise.
8904         * lib/sys_select.in.h: Likewise.
8905         * lib/sys_socket.in.h: Likewise.
8906         * lib/sys_stat.in.h: Likewise.
8907         * lib/sys_time.in.h: Likewise.
8908         * lib/sys_times.in.h: Likewise.
8909         * lib/sys_uio.in.h: Likewise.
8910         * lib/sys_utsname.in.h: Likewise.
8911         * lib/sys_wait.in.h: Likewise.
8912         * lib/sysexits.in.h: Likewise.
8913         * lib/termios.in.h: Likewise.
8914         * lib/time.in.h: Likewise.
8915         * lib/unistd.in.h: Likewise.
8916         * lib/wchar.in.h: Likewise.
8917         * lib/wctype.in.h: Likewise.
8918         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8919         * modules/ctype (Makefile.am): Likewise.
8920         * modules/dirent (Makefile.am): Likewise.
8921         * modules/errno (Makefile.am): Likewise.
8922         * modules/fcntl-h (Makefile.am): Likewise.
8923         * modules/float (Makefile.am): Likewise.
8924         * modules/getopt-posix (Makefile.am): Likewise.
8925         * modules/iconv-h (Makefile.am): Likewise.
8926         * modules/langinfo (Makefile.am): Likewise.
8927         * modules/locale (Makefile.am): Likewise.
8928         * modules/math (Makefile.am): Likewise.
8929         * modules/netdb (Makefile.am): Likewise.
8930         * modules/netinet_in (Makefile.am): Likewise.
8931         * modules/poll-h (Makefile.am): Likewise.
8932         * modules/pthread (Makefile.am): Likewise.
8933         * modules/pty (Makefile.am): Likewise.
8934         * modules/sched (Makefile.am): Likewise.
8935         * modules/search (Makefile.am): Likewise.
8936         * modules/selinux-h (Makefile.am): Likewise.
8937         * modules/signal (Makefile.am): Likewise.
8938         * modules/spawn (Makefile.am): Likewise.
8939         * modules/stdarg (Makefile.am): Likewise.
8940         * modules/stddef (Makefile.am): Likewise.
8941         * modules/stdint (Makefile.am): Likewise.
8942         * modules/stdio (Makefile.am): Likewise.
8943         * modules/stdlib (Makefile.am): Likewise.
8944         * modules/string (Makefile.am): Likewise.
8945         * modules/strings (Makefile.am): Likewise.
8946         * modules/sys_file (Makefile.am): Likewise.
8947         * modules/sys_ioctl (Makefile.am): Likewise.
8948         * modules/sys_select (Makefile.am): Likewise.
8949         * modules/sys_socket (Makefile.am): Likewise.
8950         * modules/sys_stat (Makefile.am): Likewise.
8951         * modules/sys_time (Makefile.am): Likewise.
8952         * modules/sys_times (Makefile.am): Likewise.
8953         * modules/sys_uio (Makefile.am): Likewise.
8954         * modules/sys_utsname (Makefile.am): Likewise.
8955         * modules/sys_wait (Makefile.am): Likewise.
8956         * modules/sysexits (Makefile.am): Likewise.
8957         * modules/termios (Makefile.am): Likewise.
8958         * modules/time (Makefile.am): Likewise.
8959         * modules/unistd (Makefile.am): Likewise.
8960         * modules/wchar (Makefile.am): Likewise.
8961         * modules/wctype-h (Makefile.am): Likewise.
8962         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8963
8964 2011-05-29  Bruno Haible  <bruno@clisp.org>
8965
8966         assert-h: Allow multiple gnulib generated replacements to coexist.
8967         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8968
8969 2011-05-29  Bruno Haible  <bruno@clisp.org>
8970
8971         argp: Allow coexistence with strerror_r-posix module.
8972         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8973         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8974         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8975         not the glibc signature.
8976
8977 2011-05-28  Bruno Haible  <bruno@clisp.org>
8978
8979         gnulib-tool: Alternative structure of testdirs, similar to --import.
8980         * gnulib-tool: New option --single-configure.
8981         (func_usage): Document it.
8982         (single_configure): New variable.
8983         (func_modules_transitive_closure_separately,
8984         func_modules_transitive_closure_separately,
8985         func_determine_use_libtests, func_modules_add_dummy_separately,
8986         func_modules_to_filelist_separately): New functions, extracted from
8987         func_import.
8988         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8989         (func_import): Use the new functions.
8990         (func_create_testdir): Set final_modules. Handle $single_configure =
8991         true case.
8992
8993 2011-05-28  Bruno Haible  <bruno@clisp.org>
8994
8995         getloadavg: Remove an unreliable safety check.
8996         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8997         getloadavg.c is in place.
8998         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8999         Reported by Sam Steingold <sds@gnu.org>.
9000
9001 2011-05-28  Bruno Haible  <bruno@clisp.org>
9002
9003         doc: Cleanup yet another file produced by texinfo.tex.
9004         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9005
9006 2011-05-28  Bruno Haible  <bruno@clisp.org>
9007
9008         Finish the conditional dependencies mechanism.
9009         * gnulib-tool: New option --no-conditional-dependencies.
9010         (func_usage): Document it. Don't mark --conditional-dependencies as
9011         experimental.
9012         (cond_dependencies): The possible values can now be true, false, empty.
9013         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9014         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9015         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9016
9017 2011-05-28  Bruno Haible  <bruno@clisp.org>
9018
9019         doc: Use a recent texinfo.tex.
9020         * doc/Makefile (tex_opts): New variable.
9021         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9022
9023 2011-05-28  Jim Meyering  <meyering@redhat.com>
9024
9025         intprops.h: adjust comment to match code change
9026         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9027         only once, it *may* have side effects.  Also fix an unrelated typo.
9028         (_GL_INT_SIGNED): Likewise.
9029
9030 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9031
9032         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9033
9034 2011-05-26  Bruno Haible  <bruno@clisp.org>
9035
9036         mbsrchr: Avoid collision with system function on Interix.
9037         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9038         Reported by Markus Duft <mduft@gentoo.org>.
9039
9040 2011-05-15  James Youngman  <jay@gnu.org>
9041
9042         getopt: for ambiguous options, enumerate the possibilities.
9043         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9044         the ambiguous options when an ambiguous prefix is given. This was
9045         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9046         glibc change was
9047         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9048
9049 2011-05-25  Eric Blake  <eblake@redhat.com>
9050
9051         getcwd: work around mingw bug
9052         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9053         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9054         Reported by Matthias Bolte.
9055
9056 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9057
9058         test-intprops: disable -Wtype-limits diagnostics
9059         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9060         diagnostics.  Otherwise, the integer overflow macros generate many
9061         diagnostics.  Reported by Jim Meyering in
9062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9063
9064         intprops: shorten, to pacify gcc -Woverlength-strings
9065         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9066         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9067         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9068         likely to run afoul of C compiler limits for string constant lengths.
9069         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9070
9071 2011-05-24  Eric Blake  <eblake@redhat.com>
9072
9073         docs: document recently fixed glibc printf bug
9074         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9075         * doc/posix-functions/printf.texi (printf): Likewise.
9076         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9077         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9078
9079         closein-tests: convert to init.sh
9080         * modules/closein-tests (Files): Add init.sh
9081         * tests/test-closein.sh Use it.
9082
9083         yesno-tests: convert to init.sh
9084         * modules/yesno-tests (Files): Add init.sh.
9085         * tests/test-yesno.sh: Use it.
9086
9087         atexit-tests: ensure reliable exit status
9088         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9089         Reported by Bruno Haible.
9090
9091 2011-05-24  Bruno Haible  <bruno@clisp.org>
9092
9093         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9095         gl_PREREQ_STRERROR_R invocations from here...
9096         * modules/strerror_r-posix (configure.ac): ... to here.
9097
9098 2011-05-24  Eric Blake  <eblake@redhat.com>
9099
9100         strerror_r: fix missing header
9101         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9102
9103         strerror_r: fix AIX test failures
9104         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9105         ERANGE failure.
9106
9107         strerror_r: fix Solaris test failures
9108         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9109         failures.
9110         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9111
9112         strerror_r: enforce POSIX recommendations
9113         * lib/strerror_r.c (safe_copy): New helper method.
9114         (strerror_r): Guarantee a non-empty string.
9115         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9116         recent POSIX rulings and to match our strerror guarantees.
9117         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9118
9119 2011-05-24  Jim Meyering  <meyering@redhat.com>
9120
9121         test-perror2.c: avoid warning about unused variable
9122         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9123
9124 2011-05-24  Eric Blake  <eblake@redhat.com>
9125
9126         perror: avoid spurious test failure on HP-UX
9127         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9128
9129         tests: fix logic bug in init.sh
9130         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9131         shell.
9132
9133 2011-05-24  Jim Meyering  <meyering@redhat.com>
9134
9135         utimensat: do not reference an out-of-scope buffer
9136         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9137         declared in an inner scope, yet "times" would be dereferenced outside
9138         the scope in which "ts" was valid.
9139         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9140         of ts[2] "out/up", so that the use of aliased "times" (via
9141         "times = ts;") does not end up referencing an out-of-scope "ts"
9142
9143         opendir-safer.c: don't clobber errno; don't close negative FD
9144         * lib/opendir-safer.c (opendir_safer):
9145         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9146         file descriptor, and more importantly, don't clobber the
9147         offending errno value with EINVAL.  Before, upon failure
9148         of dup_safer, we would pass the negative file descriptor to
9149         fdopendir, which would clobber errno.
9150
9151 2011-05-23  Bruno Haible  <bruno@clisp.org>
9152
9153         idcache: Fix module description.
9154         * modules/idcache (Include): Set to "idcache.h".
9155
9156 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9157
9158         gnulib-tool: fix portability problem with MacOS sed
9159         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9160         before the "}".  Problem reported by Leo in
9161         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9162         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9163         sed_extract_condition1, sed_extract_condition2.
9164
9165 2011-05-23  Bruno Haible  <bruno@clisp.org>
9166
9167         hash: Simplify autoconf macro.
9168         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9169
9170 2011-05-23  Bruno Haible  <bruno@clisp.org>
9171
9172         getugroups: Fix module description.
9173         * modules/getugroups (Include): Set to "getugroups.h".
9174
9175 2011-05-23  Bruno Haible  <bruno@clisp.org>
9176
9177         linkat: Simplify autoconf macro.
9178         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9179
9180 2011-05-23  Bruno Haible  <bruno@clisp.org>
9181             Eric Blake  <eblake@redhat.com>
9182
9183         linkat, renameat: Update dependencies.
9184         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9185         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9186         symlinkat.
9187
9188 2011-05-23  Jim Meyering  <meyering@redhat.com>
9189
9190         maint.mk: more tight_scope improvements
9191         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9192         (_gl_TS_headers): Define only in if-0'd block.
9193         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9194         sometimes we must *not* use it.  Adjust uses accordingly.
9195         (sc_tight_scope): Use much simpler grep-based test to determine
9196         whether we skip this rule.
9197
9198         maint.mk: generalize/improve the tight-scope rule
9199         * top/maint.mk: Emit a warning when the test is skipped.
9200         (_gl_TS_dir): Add $(srcdir)/ prefix.
9201         (_gl_TS_function_match): Simplify, rather than trying
9202         to enumerate common types.  Otherwise, it would fail to match an
9203         "extern unsigned char const *" declaration in idutils.
9204         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9205         a way to support use of that type of macro.
9206         (_gl_TS_var_match): Simplify regexp.
9207         (_gl_TS_obj_files): New configurable variable.
9208         (_gl_TS_headers): Likewise.
9209
9210 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9211
9212         verify: fix bug when gnulib <assert.h> is also included
9213         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9214         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9215         Perhaps there's a better way, but this fixes the immediate problem.
9216         Problem reported by Bruno Haible in
9217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9218
9219 2011-05-22  Bruno Haible  <bruno@clisp.org>
9220
9221         xgetcwd: Simplify autoconf macro.
9222         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9223
9224 2011-05-22  Bruno Haible  <bruno@clisp.org>
9225
9226         New module 'mktime-internal'.
9227         * modules/mktime-internal: New file.
9228         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9229         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9230         mktime_internal as a C macro if libc has __mktime_internal.
9231         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9232         conditions.
9233         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9234
9235 2011-05-22  Bruno Haible  <bruno@clisp.org>
9236
9237         timegm: Correct mktime replacement statements.
9238         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9239         defining mktime as a C macro. This completes a 2009-07-28 commit.
9240
9241 2011-05-22  Bruno Haible  <bruno@clisp.org>
9242
9243         timegm: Simplify autoconf macro.
9244         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9245
9246 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9247
9248         clock-time: change to LGPLv2+.
9249         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9250         BSD-like but we have no mark for that; this is good enough for now.
9251
9252 2011-05-21  Bruno Haible  <bruno@clisp.org>
9253
9254         strerror_r: Fix comments.
9255         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9256
9257 2011-05-21  Bruno Haible  <bruno@clisp.org>
9258
9259         relocatable-prog-wrapper: Fix possible link error.
9260         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9261         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9262         (gl_FUNC_SETENV): ... to here.
9263         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9265
9266 2011-05-21  Bruno Haible  <bruno@clisp.org>
9267
9268         relocatable-prog-wrapper: Assume strerror() exists.
9269         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9270         m4/strerror.m4.
9271         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9272         * lib/relocwrapper.c: Remove mention of strerror module.
9273         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9274         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9275         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9276         C macro.
9277
9278 2011-05-21  Bruno Haible  <bruno@clisp.org>
9279
9280         select: Simplify replacement idiom.
9281         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9282         Win32 platforms.
9283         * lib/sys_select.in.h (select): Simplify accordingly.
9284         * modules/select (Depends-on): Likewise.
9285
9286 2011-05-21  Bruno Haible  <bruno@clisp.org>
9287
9288         mkdir-p: Simplify autoconf macro.
9289         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9290         gl_FUNC_LCHOWN.
9291
9292 2011-05-21  Eric Blake  <eblake@redhat.com>
9293
9294         strerror_r: avoid clobbering strerror on cygwin
9295         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9296         fall back instead to sys_errlist.
9297         * modules/strerror (configure.ac): Add witness.
9298         * tests/test-strerror_r.c (main): Enhance test.
9299         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9300         * tests/test-perror2.c (main): Free memory before exit.
9301
9302 2011-05-21  Bruno Haible  <bruno@clisp.org>
9303
9304         mkdtemp: Use gnulib naming conventions.
9305         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9306         * modules/mkdtemp (configure.ac): Update.
9307
9308 2011-05-20  Eric Blake  <eblake@redhat.com>
9309
9310         strerror_r: avoid corrupting errno on Solaris
9311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9312         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9313
9314         strerror_r: avoid compiler warning
9315         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9316
9317         strerror_r: simplify AIX code
9318         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9319
9320         test-perror: avoid spurious failure on FreeBSD
9321         * modules/perror-tests (Depends-on): Add strerror, now that
9322         strerror_r no longer pulls it in.
9323
9324 2011-05-20  Bruno Haible  <bruno@clisp.org>
9325
9326         strerror_r-posix: Remove unused dependencies.
9327         * modules/strerror_r-posix (Depends-on): Remove strerror.
9328         Reported by Eric Blake.
9329
9330 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9331
9332         intprops: remove assumption about A|B representation
9333         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9334         is a valid integer if both A and B are.  Although this is true for
9335         all known practical hosts, the C standard doesn't guarantee it,
9336         and the code need not assume it.  Also, this change may work around
9337         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9339
9340 2011-05-20  Eric Blake  <eblake@redhat.com>
9341
9342         perror: work around FreeBSD bug
9343         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9344         is broken.  Move AC_LIBOBJ...
9345         * modules/perror (configure.ac): Here.
9346         * doc/posix-functions/perror.texi (perror): Document this.
9347         * tests/test-perror2.c (main): Enhance test.
9348
9349         test-perror: check for strerror interactions
9350         * tests/macros.h (STREQ): Add macro.
9351         * modules/perror-tests (Files): Add second test.
9352         * tests/test-perror2.c (main): New file.
9353         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9354
9355         test-perror: rewrite to use init script
9356         * modules/perror-tests (Files): Add init.sh.
9357         * tests/test-perror.sh: Use temporary directory.
9358
9359 2011-05-20  Jim Meyering  <meyering@redhat.com>
9360
9361         maint: replace misused "a" with "an"
9362         * doc/intprops.texi: "a integer"
9363         * doc/regex.texi: "a explanation"
9364         * lib/alignof.h: "a object"
9365         * lib/argmatch.h: "a explanation"
9366         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9367         * lib/stdint.in.h: "a integer"
9368         * lib/userspec.c: "a owner"
9369         * doc/gnulib.texi: Fix "a idea", and reword.
9370
9371 2011-05-19  Jim Meyering  <meyering@redhat.com>
9372
9373         maint: correct misuse of "a" and "an"
9374         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9375         * lib/argp-help.c: "an docum...": s/an/a/
9376         * lib/argp-parse.c: "An vector": s/An/A/
9377         * lib/execute.c: "an native": s/an/a/
9378         * lib/spawn-pipe.c: Likewise.
9379         * lib/gc.h: "an Gc_rc": s/an/a/
9380         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9381         * lib/fts.c: "an stat.st_dev": s/an/a/
9382
9383 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9384
9385         intprops-tests: work around HP-UX 11.23 cc bug with constants
9386         * tests/test-intprops.c (VERIFY): New macro.
9387         (main): Use it, instead of verify, to work around the compiler bug; see
9388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9389
9390         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9391         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9392         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9393         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9394         (_GL_REMAINDER_OVERFLOW): Use it.
9395
9396         intprops-tests: revert unsigned part of previous change
9397         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9398         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9399         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9401
9402 2011-05-19  Bruno Haible  <bruno@clisp.org>
9403
9404         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9405         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9406         strerror_r() returned without filling the buffer.
9407         Reported by Eric Blake.
9408
9409 2011-05-19  Eric Blake  <eblake@redhat.com>
9410
9411         strerror_r: guarantee unchanged errno
9412         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9413         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9414         failure.
9415         * tests/test-strerror_r.c (main): Enhance test.
9416
9417 2011-05-19  Bruno Haible  <bruno@clisp.org>
9418
9419         strerror_r: Reorder #if blocks.
9420         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9421         for consistency with the previous commit.
9422
9423 2011-05-19  Bruno Haible  <bruno@clisp.org>
9424
9425         perror: Avoid clobbering the strerror buffer when possible.
9426         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9427         * lib/strerror.c: Include it.
9428         * modules/strerror (Files): Add lib/strerror-impl.h.
9429         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9430         (my_strerror): New function, defined through lib/strerror-impl.h.
9431         (perror): Use it instead of strerror.
9432         * modules/perror (Files): Add lib/strerror-impl.h.
9433         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9434
9435 2011-05-19  Eric Blake  <eblake@redhat.com>
9436
9437         strerror_r: fix on newer cygwin
9438         * lib/strerror_r.c (strerror_r): Cygwin now has
9439         __xpg_strerror_r, use it.
9440
9441 2011-05-19  Bruno Haible  <bruno@clisp.org>
9442
9443         strerror_r: Avoid clobbering the strerror buffer when possible.
9444         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9445         (sys_nerr, sys_errlist): New declarations.
9446         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9447         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9448         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9449
9450 2011-05-19  Bruno Haible  <bruno@clisp.org>
9451
9452         strerror_r: Fix test failure on mingw.
9453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9454         EXTEND_STRERROR_R.
9455         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9456         macros from errno.in.h instead.
9457
9458 2011-05-19  Eric Blake  <eblake@redhat.com>
9459
9460         strerror: relax test for Solaris
9461         * tests/test-strerror.c (main): Permit Solaris behavior.
9462         * tests/test-strerror_r.c (main): Likewise.
9463
9464         strerror: enforce POSIX ruling on strerror(0)
9465         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9466         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9467         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9468         * doc/posix-functions/strerror.texi (strerror): Document it.
9469         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9470         * tests/test-strerror.c (main): Strengthen test.
9471         * tests/test-strerror_r.c (main): Likewise.
9472
9473 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9474
9475         intprop-tests: port to older and more-pedantic compilers
9476         * modules/intprops-tests (Files): Add tests/macros.h.
9477         * tests/test-intprops.c: Include macros.h.
9478         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9479         it's no longer documented to expand to an integer constant expression.
9480         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9481         argument is floating point, as it's no longer documented to expand
9482         to an integer constant expression in that case.
9483         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9484         compiler bugs reported by Bruno Haible.  See
9485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9486         (U0, U1): New constants, to work around the same bugs.  Also,
9487         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9488
9489         intprops: work around C compiler bugs
9490         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9491         bug in Sun C 5.11 2010/08/13 and other compilers; see
9492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9493
9494         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9495         * doc/intprops.texi (Integer Type Determination): Fix
9496         documentation for TYPE_IS_INTEGER: it returns an constant
9497         expression, not an integer constant expression.  Fix doc for
9498         TYPE_SIGNED: it returns an integer constant expression only if its
9499         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9500         hardly worth documented that way....)
9501
9502 2011-05-18  Bruno Haible  <bruno@clisp.org>
9503
9504         strerror_r: Avoid clobbering the strerror buffer when possible.
9505         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9506         Handle gnulib defined errno values here. When strerror() returns NULL
9507         or an empty string, return EINVAL.
9508         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9509         gnulib defined errno values here.
9510         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9511
9512 2011-05-18  Eric Blake  <eblake@redhat.com>
9513
9514         fnmatch: avoid compiler warning
9515         * lib/fnmatch_loop.c (FCT): Use correct type.
9516         Reported by Matthias Bolte.
9517
9518 2011-05-13  Jim Meyering  <meyering@redhat.com>
9519
9520         maint.mk: three new prohibit_<HDR>_without_use rules
9521         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9522         (sc_prohibit_stdio-safer_without_use): Likewise.
9523         (sc_prohibit_xfreopen_without_use): Likewise.
9524
9525 2011-05-17  Jim Meyering  <meyering@redhat.com>
9526
9527         announce-gen: fail if the NEWS delta is empty
9528         If there's nothing noteworthy in NEWS, then either you forgot
9529         or you shouldn't be releasing.
9530         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9531
9532 2011-05-17  Pádraig Brady <P@draigBrady.com>
9533
9534         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9535         reserved symbols starting with double underscore from the check.
9536
9537 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9538
9539         intprops: add doc
9540         * doc/intprops.texi: New file, documenting intprops.
9541         * doc/gnulib.texi (Particular Modules): Include it.
9542
9543         verify: add doc to gnulib manual and fix example
9544         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9545         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9546         (Compile-time Assertions): Fix example so it can't overflow.
9547
9548 2011-05-17  Jim Meyering  <meyering@redhat.com>
9549
9550         warnings.m4: don't usurp save_CPPFLAGS variable name
9551         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9552
9553         doc: fix typo
9554         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9555
9556 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9557             Bruno Haible  <bruno@clisp.org>
9558
9559         doc: Tweak recent change.
9560         * README (Portability guidelines): Tweak new text.
9561         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9562         Interix 6.1.
9563
9564 2011-05-16  Eric Blake  <eblake@redhat.com>
9565
9566         inttypes: avoid autoconf warning
9567         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9568         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9569
9570 2011-05-16  Sam Steingold <sds@gnu.org>
9571         and Eric Blake  <eblake@redhat.com>
9572
9573         vc-list-files: accept multiple directory operands
9574         * build-aux/vc-list-files: Iterate over all remaining operands.
9575
9576 2011-05-16  Bruno Haible  <bruno@clisp.org>
9577
9578         Fix confusion regarding deprecated modules.
9579         * modules/calloc (Status, Notice): Mark module as deprecated, not
9580         obsolete.
9581         * modules/fnmatch-posix (Status, Notice): Likewise.
9582         * modules/getdate (Status, Notice): Likewise.
9583         * modules/getopt (Status, Notice): Likewise.
9584         * modules/malloc (Status, Notice): Likewise.
9585         * modules/pipe (Status, Notice): Likewise.
9586         * modules/realloc (Status, Notice): Likewise.
9587         * modules/rename-dest-slash (Status, Notice): Likewise.
9588         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9589         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9590         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9591         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9592         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9593
9594 2011-05-16  Bruno Haible  <bruno@clisp.org>
9595
9596         doc: List the target platforms.
9597         * doc/gnulib-intro.texi (Target Platforms): New section.
9598         * doc/gnulib.texi (Introduction): Update menu.
9599         * README (Portability guidelines): Refer to the new section. Update
9600         statement about oldest supported environment. Remove rationale why
9601         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9602         unportable C89 function.
9603         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9604         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9605
9606 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9607
9608         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9609
9610 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9611
9612         intprops-tests: new module
9613         * modules/intprops-tests, tests/test-intprops.c: New files.
9614
9615         intprops: add safe, portable integer overflow checking
9616         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9617         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9618         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9619         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9620         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9621         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9622         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9623         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9624         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9625         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9626         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9627
9628 2011-05-12  James Youngman  <jay@gnu.org>
9629
9630         Add a test for glibc's Bugzilla bug #12378.
9631         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9632         doesn't allow the literal matching of a lone "[" (which is
9633         required by POSIX).
9634         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9635
9636 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9637
9638         Sync glibc change fixing Bugzilla bug #12378.
9639         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9640         beginning and fall back to matching as normal character if the
9641         string ends before the matching ']' is found.  This is what POSIX
9642         requires.
9643
9644 2011-05-13  Eric Blake  <eblake@redhat.com>
9645
9646         getcwd-lgpl: relax test for FreeBSD
9647         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9648         issue.
9649         * tests/test-getcwd-lgpl.c (main): Relax test.
9650         Reported by Matthias Bolte.
9651
9652 2011-05-11  Eric Blake  <eblake@redhat.com>
9653
9654         test-fflush: silence compiler warning
9655         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9656
9657 2011-05-11  Bruno Haible  <bruno@clisp.org>
9658
9659         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9660         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9661         * modules/canonicalize (Depends-on): Add 'nocrash'.
9662         * modules/canonicalize-lgpl (Depends-on): Likewise.
9663         * doc/posix-functions/realpath.texi: Update platforms list.
9664         Reported by Ryan Schmidt <ryandesign@macports.org>.
9665
9666 2011-05-11  Bruno Haible  <bruno@clisp.org>
9667
9668         group-member: Declare function in <unistd.h>.
9669         * lib/unistd.in.h (group_member): New declaration.
9670         * lib/group-member.h: Remove file.
9671         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9672         * tests/test-unistd-c++.cc: Check signature of group_member.
9673         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9674         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9675         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9676         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9677         HAVE_GROUP_MEMBER.
9678         * modules/group-member (Files): Remove lib/group-member.h.
9679         (Depends-on): Add unistd. Specify conditions.
9680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9681         (Include): Change to <unistd.h>.
9682         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9683         HAVE_GROUP_MEMBER.
9684         * NEWS: Mention the change.
9685         * lib/euidaccess.c: Don't include group-member.h.
9686
9687 2011-05-11  Bruno Haible  <bruno@clisp.org>
9688
9689         group-member: Document module.
9690         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9691         module.
9692
9693 2011-05-11  Bruno Haible  <bruno@clisp.org>
9694
9695         fclose: Fix mistake earlier today.
9696         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9697
9698 2011-05-11  Eric Blake  <eblake@redhat.com>
9699
9700         fclose: preserve fflush errors
9701         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9702         Reported by Jim Meyering.
9703
9704         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9705         * build-aux/bootstrap (check_versions): When no specific version
9706         is required, merely check that the app produces an exit status
9707         that indicates its existence.
9708
9709         maint.mk: drop redundant check
9710         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9711         the same but better.
9712
9713 2011-05-11  Bruno Haible  <bruno@clisp.org>
9714
9715         fclose: Fix possible link error.
9716         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9717         unregister_shadow_fd. Improve comments.
9718         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9719         Eric Blake.
9720
9721 2011-05-11  Jim Meyering  <meyering@redhat.com>
9722
9723         maint.mk: improve "can not" detection and generalize rule name
9724         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9725         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9726         Use the same technique as in sc_prohibit_doubled_word, so that
9727         we recognize "can not" also when the words are separated by a newline.
9728         Suggested by Eric Blake.
9729         (perl_filename_lineno_text_): Define.  Factored out of...
9730         (prohibit_doubled_word_): ...here.  Use the new definition.
9731         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9732         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9733         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9734
9735 2011-05-10  Eric Blake  <eblake@redhat.com>
9736
9737         fclose: avoid double close race when possible
9738         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9739         all but WINDOWS_SOCKETS.
9740
9741 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9742
9743         openat: correct new comment
9744         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9745
9746 2011-05-10  Jim Meyering  <meyering@redhat.com>
9747
9748         openat: add comments
9749         * lib/openat-proc.c (openat_proc_name): Add comments,
9750         mostly from Eric Blake.
9751
9752 2011-05-09  Eric Blake  <eblake@redhat.com>
9753
9754         openat: reduce syscalls in first probe of /proc
9755         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9756         be a directory.  Simplify the probe for .. bugs.
9757         * modules/openat (Depends-on): Drop same-inode.
9758         Reported by Bastien ROUCARIES.
9759
9760 2011-05-09  Jim Meyering  <meyering@redhat.com>
9761
9762         maint.mk: change semantics/name of tight_scope variables
9763         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9764         Rename variables to align with semantics that make them more useful.
9765
9766         maint.mk: tweak new rule's name not to impinge
9767         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9768         (sc_tight_scope): Use new rule name rather than $@-0.
9769
9770         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9771         * top/maint.mk (sc_tight_scope): New rule.
9772         (sc_tight_scope-0): New rule, ifdef'd out.
9773         (_gl_TS_dir): Default.
9774         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9775         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9776
9777 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9778
9779         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9780         Haible <bruno@clisp.org>.
9781
9782 2011-05-08  Bruno Haible  <bruno@clisp.org>
9783
9784         Comments.
9785         * m4/isnanf.m4: Add comment.
9786         * m4/isnanl.m4: Likewise.
9787
9788 2011-05-08  Bruno Haible  <bruno@clisp.org>
9789
9790         glob: Remove obsolete macro.
9791         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9792
9793 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9794
9795         intprops: Sun C 5.11 supports __typeof__
9796         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9797         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9798         which is new.
9799         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9800
9801         intprops: switch to usual gnulib indenting and naming
9802         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9803         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9804
9805         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9806
9807 2011-05-08  Jim Meyering  <meyering@redhat.com>
9808
9809         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9810         * top/maint.mk (release-prep): Use make's --no-print-directory
9811         option when generating the announcement.  This eliminates the
9812         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9813         generated announcement template.
9814
9815 2011-05-08  Bruno Haible  <bruno@clisp.org>
9816
9817         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9818         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9819         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9820
9821 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9822
9823         ignore-value, verify: Omit include files from lib_SOURCES.
9824         * modules/ignore-value, modules/verify (Makefile.am):
9825         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9826         that leads Automake to duplicate use of am__objects_... variables
9827         in Makefile.in.  See
9828         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9829
9830 2011-05-07  Bruno Haible  <bruno@clisp.org>
9831
9832         fclose: Simplify autoconf macro.
9833         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9834         defined.
9835
9836 2011-05-07  Bruno Haible  <bruno@clisp.org>
9837
9838         canonicalize-lgpl: Fix autoconf macro ordering bug.
9839         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9840         gl_STDLIB_H_DEFAULTS.
9841
9842 2011-05-06  Eric Blake  <eblake@redhat.com>
9843
9844         maintainer-makefile: make sc_po_check easier to tune
9845         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9846         to probe for strings, such as an alternate location for gnulib.
9847
9848         fclose: guarantee behavior on seekable stdin
9849         * modules/fclose (Depends-on): Add fflush.
9850         * doc/posix-functions/fclose.texi (fclose): Document this.
9851         * tests/test-fclose.c (main): Make test for this unconditional.
9852
9853 2011-05-06  Bruno Haible  <bruno@clisp.org>
9854
9855         fflush, fpurge: Relicense under LGPLv2+.
9856         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9857         * modules/fpurge (License): Likewise.
9858         With permission from Eric Blake and Jim Meyering.
9859         Suggested by Eric Blake.
9860
9861 2011-05-06  Karl Berry  <karl@gnu.org>
9862
9863         * MODULES.html.sh (func_all_modules): remove exit.
9864
9865 2011-05-06  Jim Meyering  <meyering@redhat.com>
9866
9867         maint.mk: use info-gnu@ as the default only for a stable release
9868         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9869         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9870         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9871         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9872
9873 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9874
9875         assert-h: new module, which supports C1X-style static_assert
9876         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9877         * lib/verify.h: Revamp so that this can be copied into assert.h,
9878         while retaining the ability to use it standalone as before.
9879         Rename private identifiers so as not to encroach on the
9880         standard C namespace, since this is now used by assert.h.
9881         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9882         the old verify_true.
9883         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9884         the old verify_true.  Use _GL_VERIFY_TYPE.
9885         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9886         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9887         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9888         defined when this file is copied into the replacement assert.h.
9889         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9890         and _Static_assert is not built in.
9891         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9892         defined, and use the new macros mentioned above.
9893         * doc/posix-headers/assert.texi: Document this.
9894
9895 2011-05-05  Bruno Haible  <bruno@clisp.org>
9896
9897         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9898         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9899         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9900         gl_REPLACE_FCLOSE here.
9901         * modules/fflush (Depends-on): Remove fclose.
9902         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9903         combination with module 'fclose'.
9904
9905 2011-05-05  Bruno Haible  <bruno@clisp.org>
9906
9907         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9908         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9909         gl_FUNC_FFLUSH.
9910         (gl_FUNC_FFLUSH): Use it.
9911         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9913         gl_REPLACE_FSEEKO here.
9914
9915 2011-05-05  Bruno Haible  <bruno@clisp.org>
9916
9917         tzset: Relicense under LGPL.
9918         * modules/tzset (License): Change to LGPL.
9919         No agreement needed; it's a no-op.
9920
9921         strtoimax, strtoumax: Relicense under LGPL.
9922         * modules/strtoimax (License): Change to LGPL.
9923         * modules/strtoumax (License): Likewise.
9924         With permission from Jim Meyering, Paul Eggert:
9925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9927
9928         getgroups: Relicense under LGPL.
9929         * modules/getgroups (License): Change to LGPL.
9930         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9934
9935         nanosleep: Relicense under LGPL.
9936         * modules/nanosleep (License): Change to LGPL.
9937         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9938         Haible:
9939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9943
9944         futimens: Relicense under LGPL.
9945         * modules/futimens (License): Change to LGPL.
9946         With permission from Eric Blake:
9947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9948
9949         fflush: Relicense under LGPL.
9950         * modules/fflush (License): Change to LGPL.
9951         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9955
9956         tmpfile: Relicense under LGPL.
9957         * modules/tmpfile (License): Change to LGPL.
9958         With permission from Ben Pfaff:
9959         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9960
9961         isfinite: Relicense under LGPL.
9962         * modules/isfinite (License): Change to LGPL.
9963         With permission from Ben Pfaff, Bruno Haible:
9964         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9966
9967         acosl..tanl: Relicense under LGPL.
9968         * modules/acosl (License): Change to LGPL.
9969         * modules/asinl (License): Likewise.
9970         * modules/atanl (License): Likewise.
9971         * modules/cosl (License): Likewise.
9972         * modules/expl (License): Likewise.
9973         * modules/logl (License): Likewise.
9974         * modules/sinl (License): Likewise.
9975         * modules/sqrtl (License): Likewise.
9976         * modules/tanl (License): Likewise.
9977         Source code originally from glibc and Paolo Bonzini. Agreements:
9978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9980
9981 2011-05-05  Bruno Haible  <bruno@clisp.org>
9982
9983         signal: Define sighandler_t.
9984         * lib/signal.in.h (sighandler_t): New type.
9985         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9986         whether sighandler_t is defined.
9987         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9988         * modules/signal (Depends-on): Add extensions.
9989         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9990         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9991         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9992
9993 2011-05-05  Eric Blake  <eblake@redhat.com>
9994
9995         maint: remove useless REPLACE_*_H macros
9996         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9997         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9998         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9999         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10000         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10001         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10002         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10003         * m4/btowc.m4: Update callers.
10004         * m4/dirfd.m4: Likewise.
10005         * m4/duplocale.m4: Likewise.
10006         * m4/fchdir.m4: Likewise.
10007         * m4/fdopendir.m4: Likewise.
10008         * m4/inet_ntop.m4: Likewise.
10009         * m4/inet_pton.m4: Likewise.
10010         * m4/ioctl.m4: Likewise.
10011         * m4/mbrlen.m4: Likewise.
10012         * m4/mbrtowc.m4: Likewise.
10013         * m4/mbsinit.m4: Likewise.
10014         * m4/mbsnrtowcs.m4: Likewise.
10015         * m4/mbsrtowcs.m4: Likewise.
10016         * m4/poll.m4: Likewise.
10017         * m4/setlocale.m4: Likewise.
10018         * m4/wcrtomb.m4: Likewise.
10019         * m4/wcsnrtombs.m4: Likewise.
10020         * m4/wcsrtombs.m4: Likewise.
10021         * m4/wctob.m4: Likewise.
10022         * m4/wcwidth.m4: Likewise.
10023         * modules/posix_spawn: Likewise.
10024         * modules/posix_spawn_file_actions_addclose: Likewise.
10025         * modules/posix_spawn_file_actions_adddup2: Likewise.
10026         * modules/posix_spawn_file_actions_addopen: Likewise.
10027         * modules/posix_spawn_file_actions_destroy: Likewise.
10028         * modules/posix_spawn_file_actions_init: Likewise.
10029         * modules/posix_spawnattr_destroy: Likewise.
10030         * modules/posix_spawnattr_getflags: Likewise.
10031         * modules/posix_spawnattr_getpgroup: Likewise.
10032         * modules/posix_spawnattr_getschedparam: Likewise.
10033         * modules/posix_spawnattr_getschedpolicy: Likewise.
10034         * modules/posix_spawnattr_getsigdefault: Likewise.
10035         * modules/posix_spawnattr_getsigmask: Likewise.
10036         * modules/posix_spawnattr_init: Likewise.
10037         * modules/posix_spawnattr_setflags: Likewise.
10038         * modules/posix_spawnattr_setpgroup: Likewise.
10039         * modules/posix_spawnattr_setschedparam: Likewise.
10040         * modules/posix_spawnattr_setschedpolicy: Likewise.
10041         * modules/posix_spawnattr_setsigdefault: Likewise.
10042         * modules/posix_spawnattr_setsigmask: Likewise.
10043         * modules/posix_spawnp: Likewise.
10044
10045 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10046
10047         Add option to do-release-commit-and-tag to specify branch.
10048         * build-aux/do-release-commit-and-tag: Add --branch.
10049
10050 2011-05-03  Bruno Haible  <bruno@clisp.org>
10051
10052         Avoid unnecessary compilation units, through conditional dependencies.
10053         * modules/accept (Depends-on): Add conditions to the dependencies.
10054         * modules/acosl (Depends-on): Likewise.
10055         * modules/argz (Depends-on): Likewise.
10056         * modules/asinl (Depends-on): Likewise.
10057         * modules/atanl (Depends-on): Likewise.
10058         * modules/atoll (Depends-on): Likewise.
10059         * modules/bind (Depends-on): Likewise.
10060         * modules/btowc (Depends-on): Likewise.
10061         * modules/canonicalize-lgpl (Depends-on): Likewise.
10062         * modules/ceil (Depends-on): Likewise.
10063         * modules/ceilf (Depends-on): Likewise.
10064         * modules/ceill (Depends-on): Likewise.
10065         * modules/chdir-long (Depends-on): Likewise.
10066         * modules/chown (Depends-on): Likewise.
10067         * modules/close (Depends-on): Likewise.
10068         * modules/connect (Depends-on): Likewise.
10069         * modules/cosl (Depends-on): Likewise.
10070         * modules/dirfd (Depends-on): Likewise.
10071         * modules/dprintf (Depends-on): Likewise.
10072         * modules/dprintf-posix (Depends-on): Likewise.
10073         * modules/error (Depends-on): Likewise.
10074         * modules/euidaccess (Depends-on): Likewise.
10075         * modules/expl (Depends-on): Likewise.
10076         * modules/faccessat (Depends-on): Likewise.
10077         * modules/fchdir (Depends-on): Likewise.
10078         * modules/fclose (Depends-on): Likewise.
10079         * modules/fcntl (Depends-on): Likewise.
10080         * modules/fdopendir (Depends-on): Likewise.
10081         * modules/fflush (Depends-on): Likewise.
10082         * modules/floor (Depends-on): Likewise.
10083         * modules/floorf (Depends-on): Likewise.
10084         * modules/floorl (Depends-on): Likewise.
10085         * modules/fnmatch (Depends-on): Likewise.
10086         * modules/fopen (Depends-on): Likewise.
10087         * modules/fprintf-posix (Depends-on): Likewise.
10088         * modules/frexp (Depends-on): Likewise.
10089         * modules/frexp-nolibm (Depends-on): Likewise.
10090         * modules/frexpl (Depends-on): Likewise.
10091         * modules/frexpl-nolibm (Depends-on): Likewise.
10092         * modules/fseek (Depends-on): Likewise.
10093         * modules/fsusage (Depends-on): Likewise.
10094         * modules/ftell (Depends-on): Likewise.
10095         * modules/ftello (Depends-on): Likewise.
10096         * modules/futimens (Depends-on): Likewise.
10097         * modules/getcwd (Depends-on): Likewise.
10098         * modules/getcwd-lgpl (Depends-on): Likewise.
10099         * modules/getdelim (Depends-on): Likewise.
10100         * modules/getdomainname (Depends-on): Likewise.
10101         * modules/getgroups (Depends-on): Likewise.
10102         * modules/gethostname (Depends-on): Likewise.
10103         * modules/getline (Depends-on): Likewise.
10104         * modules/getlogin_r (Depends-on): Likewise.
10105         * modules/getopt-posix (Depends-on): Likewise.
10106         * modules/getpeername (Depends-on): Likewise.
10107         * modules/getsockname (Depends-on): Likewise.
10108         * modules/getsockopt (Depends-on): Likewise.
10109         * modules/getsubopt (Depends-on): Likewise.
10110         * modules/getusershell (Depends-on): Likewise.
10111         * modules/glob (Depends-on): Likewise.
10112         * modules/grantpt (Depends-on): Likewise.
10113         * modules/iconv_open (Depends-on): Likewise.
10114         * modules/iconv_open-utf (Depends-on): Likewise.
10115         * modules/inet_ntop (Depends-on): Likewise.
10116         * modules/inet_pton (Depends-on): Likewise.
10117         * modules/ioctl (Depends-on): Likewise.
10118         * modules/isapipe (Depends-on): Likewise.
10119         * modules/isfinite (Depends-on): Likewise.
10120         * modules/isinf (Depends-on): Likewise.
10121         * modules/lchown (Depends-on): Likewise.
10122         * modules/ldexpl (Depends-on): Likewise.
10123         * modules/link (Depends-on): Likewise.
10124         * modules/linkat (Depends-on): Likewise.
10125         * modules/listen (Depends-on): Likewise.
10126         * modules/logl (Depends-on): Likewise.
10127         * modules/lstat (Depends-on): Likewise.
10128         * modules/mbrlen (Depends-on): Likewise.
10129         * modules/mbrtowc (Depends-on): Likewise.
10130         * modules/mbsinit (Depends-on): Likewise.
10131         * modules/mbsnrtowcs (Depends-on): Likewise.
10132         * modules/mbsrtowcs (Depends-on): Likewise.
10133         * modules/mbtowc (Depends-on): Likewise.
10134         * modules/memcmp (Depends-on): Likewise.
10135         * modules/mkdir (Depends-on): Likewise.
10136         * modules/mkdtemp (Depends-on): Likewise.
10137         * modules/mkfifo (Depends-on): Likewise.
10138         * modules/mkfifoat (Depends-on): Likewise.
10139         * modules/mknod (Depends-on): Likewise.
10140         * modules/mkostemp (Depends-on): Likewise.
10141         * modules/mkostemps (Depends-on): Likewise.
10142         * modules/mkstemp (Depends-on): Likewise.
10143         * modules/mkstemps (Depends-on): Likewise.
10144         * modules/mktime (Depends-on): Likewise.
10145         * modules/nanosleep (Depends-on): Likewise.
10146         * modules/open (Depends-on): Likewise.
10147         * modules/openat (Depends-on): Likewise.
10148         * modules/perror (Depends-on): Likewise.
10149         * modules/poll (Depends-on): Likewise.
10150         * modules/popen (Depends-on): Likewise.
10151         * modules/posix_spawn (Depends-on): Likewise.
10152         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10153         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10154         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10155         * modules/posix_spawnp (Depends-on): Likewise.
10156         * modules/pread (Depends-on): Likewise.
10157         * modules/printf-posix (Depends-on): Likewise.
10158         * modules/ptsname (Depends-on): Likewise.
10159         * modules/putenv (Depends-on): Likewise.
10160         * modules/pwrite (Depends-on): Likewise.
10161         * modules/readline (Depends-on): Likewise.
10162         * modules/readlink (Depends-on): Likewise.
10163         * modules/readlinkat (Depends-on): Likewise.
10164         * modules/recv (Depends-on): Likewise.
10165         * modules/recvfrom (Depends-on): Likewise.
10166         * modules/regex (Depends-on): Likewise.
10167         * modules/remove (Depends-on): Likewise.
10168         * modules/rename (Depends-on): Likewise.
10169         * modules/renameat (Depends-on): Likewise.
10170         * modules/rmdir (Depends-on): Likewise.
10171         * modules/round (Depends-on): Likewise.
10172         * modules/roundf (Depends-on): Likewise.
10173         * modules/roundl (Depends-on): Likewise.
10174         * modules/rpmatch (Depends-on): Likewise.
10175         * modules/select (Depends-on): Likewise.
10176         * modules/send (Depends-on): Likewise.
10177         * modules/sendto (Depends-on): Likewise.
10178         * modules/setenv (Depends-on): Likewise.
10179         * modules/setlocale (Depends-on): Likewise.
10180         * modules/setsockopt (Depends-on): Likewise.
10181         * modules/shutdown (Depends-on): Likewise.
10182         * modules/sigaction (Depends-on): Likewise.
10183         * modules/signbit (Depends-on): Likewise.
10184         * modules/sigprocmask (Depends-on): Likewise.
10185         * modules/sinl (Depends-on): Likewise.
10186         * modules/sleep (Depends-on): Likewise.
10187         * modules/snprintf (Depends-on): Likewise.
10188         * modules/snprintf-posix (Depends-on): Likewise.
10189         * modules/socket (Depends-on): Likewise.
10190         * modules/sprintf-posix (Depends-on): Likewise.
10191         * modules/sqrtl (Depends-on): Likewise.
10192         * modules/stat (Depends-on): Likewise.
10193         * modules/strchrnul (Depends-on): Likewise.
10194         * modules/strdup-posix (Depends-on): Likewise.
10195         * modules/strerror (Depends-on): Likewise.
10196         * modules/strerror_r-posix (Depends-on): Likewise.
10197         * modules/strndup (Depends-on): Likewise.
10198         * modules/strnlen (Depends-on): Likewise.
10199         * modules/strptime (Depends-on): Likewise.
10200         * modules/strsep (Depends-on): Likewise.
10201         * modules/strsignal (Depends-on): Likewise.
10202         * modules/strstr-simple (Depends-on): Likewise.
10203         * modules/strtod (Depends-on): Likewise.
10204         * modules/strtoimax (Depends-on): Likewise.
10205         * modules/strtok_r (Depends-on): Likewise.
10206         * modules/strtoumax (Depends-on): Likewise.
10207         * modules/symlink (Depends-on): Likewise.
10208         * modules/symlinkat (Depends-on): Likewise.
10209         * modules/tanl (Depends-on): Likewise.
10210         * modules/tcgetsid (Depends-on): Likewise.
10211         * modules/tmpfile (Depends-on): Likewise.
10212         * modules/trunc (Depends-on): Likewise.
10213         * modules/truncf (Depends-on): Likewise.
10214         * modules/truncl (Depends-on): Likewise.
10215         * modules/uname (Depends-on): Likewise.
10216         * modules/unlink (Depends-on): Likewise.
10217         * modules/unlockpt (Depends-on): Likewise.
10218         * modules/unsetenv (Depends-on): Likewise.
10219         * modules/usleep (Depends-on): Likewise.
10220         * modules/utimensat (Depends-on): Likewise.
10221         * modules/vasprintf (Depends-on): Likewise.
10222         * modules/vdprintf (Depends-on): Likewise.
10223         * modules/vdprintf-posix (Depends-on): Likewise.
10224         * modules/vfprintf-posix (Depends-on): Likewise.
10225         * modules/vprintf-posix (Depends-on): Likewise.
10226         * modules/vsnprintf (Depends-on): Likewise.
10227         * modules/vsnprintf-posix (Depends-on): Likewise.
10228         * modules/vsprintf-posix (Depends-on): Likewise.
10229         * modules/wcrtomb (Depends-on): Likewise.
10230         * modules/wcscasecmp (Depends-on): Likewise.
10231         * modules/wcscspn (Depends-on): Likewise.
10232         * modules/wcsdup (Depends-on): Likewise.
10233         * modules/wcsncasecmp (Depends-on): Likewise.
10234         * modules/wcsnrtombs (Depends-on): Likewise.
10235         * modules/wcspbrk (Depends-on): Likewise.
10236         * modules/wcsrtombs (Depends-on): Likewise.
10237         * modules/wcsspn (Depends-on): Likewise.
10238         * modules/wcsstr (Depends-on): Likewise.
10239         * modules/wcstok (Depends-on): Likewise.
10240         * modules/wcswidth (Depends-on): Likewise.
10241         * modules/wctob (Depends-on): Likewise.
10242         * modules/wctomb (Depends-on): Likewise.
10243         * modules/wctype (Depends-on): Likewise.
10244         * modules/wcwidth (Depends-on): Likewise.
10245         * modules/write (Depends-on): Likewise.
10246
10247 2011-05-03  Bruno Haible  <bruno@clisp.org>
10248
10249         Support for conditional dependencies.
10250         * doc/gnulib.texi (Module description): Document the syntax of
10251         conditional dependencies.
10252         * gnulib-tool: New option --conditional-dependencies.
10253         (func_usage): Document it.
10254         (cond_dependencies): New variable.
10255         (func_get_automake_snippet_conditional,
10256         func_get_automake_snippet_unconditional): New functions, extracted from
10257         func_get_automake_snippet.
10258         (func_get_automake_snippet): Use them.
10259         (sed_first_32_chars): New variable.
10260         (func_module_shellfunc_name): New function.
10261         (func_module_shellvar_name): New function.
10262         (func_module_conditional_name): New function.
10263         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10264         func_cond_module_condition): New functions.
10265         (func_modules_transitive_closure): Add support for conditional
10266         dependencies.
10267         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10268         conditional automake snippet in an automake conditional.
10269         (func_emit_autoconf_snippets): Emit shell functions that contain the
10270         code for conditional modules.
10271         (func_import, func_create_testdir): Update specification.
10272
10273 2011-05-03  Eric Blake  <eblake@redhat.com>
10274
10275         test-getaddrinfo: report error information
10276         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10277
10278 2011-05-03  Jim Meyering  <meyering@redhat.com>
10279
10280         bootstrap: avoid build failure when $GZIP is set
10281         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10282         program name.  If defined at all, it is supposed to list gzip options.
10283         Reported by Alan Curry in http://debbugs.gnu.org/8609
10284
10285 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10286
10287         readme-release: new module with release instructions
10288         * modules/readme-release: New module.
10289         * top/README-release: New file, from coreutils, grep, diffutils.
10290         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10291
10292 2011-05-02  Eric Blake  <eblake@redhat.com>
10293
10294         fflush: also replace fclose when fixing fflush
10295         * modules/fflush (Depends-on): Add fclose.
10296         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10297         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10298         memstreams with no backing fd.
10299         * doc/posix-functions/fclose.texi (fclose): Document the use of
10300         fflush module to fix the bug.
10301         * tests/test-fclose.c (main): Relax test when fclose is used in
10302         isolation.
10303
10304         fclose: add some tests
10305         * modules/fclose-tests: New test module.
10306         * tests/test-fclose.c: New file.
10307         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10308
10309         fclose: reduced dependencies
10310         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10311         simpler lseek.
10312         * lib/fclose.c (rpl_fclose): Likewise.
10313         Reported by Simon Josefsson.
10314
10315         exit: drop remaining clients
10316         * modules/argmatch (Depends-on): Replace exit with stdlib.
10317         * modules/copy-file (Depends-on): Likewise.
10318         * modules/execute (Depends-on): Likewise.
10319         * modules/exitfail (Depends-on): Likewise.
10320         * modules/obstack (Depends-on): Likewise.
10321         * modules/pagealign_alloc (Depends-on): Likewise.
10322         * modules/pipe-filter-gi (Depends-on): Likewise.
10323         * modules/pipe-filter-ii (Depends-on): Likewise.
10324         * modules/savewd (Depends-on): Likewise.
10325         * modules/spawn-pipe (Depends-on): Likewise.
10326         * modules/wait-process (Depends-on): Likewise.
10327         * modules/xsetenv (Depends-on): Likewise.
10328         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10329         * modules/git-merge-changelog (Depends-on): Likewise.
10330         * modules/long-options (Depends-on): Likewise.
10331         * modules/pt_chown (Depends-on): Likewise.
10332         * modules/sysexits (Depends-on): Likewise.
10333
10334         freading: relax license from LGPLv3+ to LGPLv2+
10335         * modules/freading (License): Relax LGPL version.
10336
10337 2011-05-02  Bruno Haible  <bruno@clisp.org>
10338
10339         fchdir: Remove unused dependencies.
10340         * modules/fchdir (Depends-on): Remove include_next.
10341
10342 2011-05-02  Bruno Haible  <bruno@clisp.org>
10343
10344         gnulib-tool: Refactor.
10345         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10346         from func_emit_autoconf_snippets.
10347         (func_emit_autoconf_snippets): Use it.
10348
10349 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10350
10351         * NEWS: Document removal of 'exit'.
10352         * modules/exit: Remove file.
10353
10354 2011-05-01  Bruno Haible  <bruno@clisp.org>
10355
10356         Update DEPENDENCIES.
10357         * DEPENDENCIES (gettext): Recommend the newest release.
10358         Reported by Simon Josefsson.
10359
10360 2011-05-01  Bruno Haible  <bruno@clisp.org>
10361
10362         gnulib-tool: Reduce code duplication.
10363         * gnulib-tool (func_emit_autoconf_snippets): New function.
10364         (func_import, func_create_testdir): Use it.
10365
10366 2011-04-30  Eric Blake  <eblake@redhat.com>
10367
10368         fclose: don't fail on non-seekable input stream
10369         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10370         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10371         since fflush is allowed to fail in that case.
10372
10373 2011-04-30  Bruno Haible  <bruno@clisp.org>
10374
10375         dup3: cleanup
10376         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10377
10378 2011-04-30  Bruno Haible  <bruno@clisp.org>
10379
10380         netdb: Make it work in C++ mode.
10381         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10382         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10383         module.
10384         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10385         gl_MODULE_INDICATOR_FOR_TESTS.
10386         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10387         * modules/netdb-c++-tests: New file.
10388         * tests/test-netdb-c++.cc: New file.
10389
10390 2011-04-30  Bruno Haible  <bruno@clisp.org>
10391
10392         New modules 'vfscanf', 'vscanf'.
10393         * modules/vfscanf: New file.
10394         * modules/vscanf: New file.
10395         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10396         here.
10397         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10398         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10399
10400 2011-04-30  Bruno Haible  <bruno@clisp.org>
10401
10402         passfd: Add comments.
10403         * lib/passfd.c: Add comments about platforms.
10404
10405 2011-04-30  Bruno Haible  <bruno@clisp.org>
10406
10407         sys_uio: Make <sys/uio.h> self-contained.
10408         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10409         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10410
10411 2011-04-30  Bruno Haible  <bruno@clisp.org>
10412
10413         sys_socket: Ensure 'struct iovec' definition.
10414         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10415         <sys/socket.h>.
10416         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10417
10418 2011-04-30  Bruno Haible  <bruno@clisp.org>
10419
10420         sys_uio: Protect definition of 'struct iovec'.
10421         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10422         it as a C struct.
10423
10424 2011-04-30  Bruno Haible  <bruno@clisp.org>
10425
10426         manywarnings: fix indentation
10427         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10428
10429 2011-04-30  Pádraig Brady <P@draigBrady.com>
10430
10431         manywarnings: add -Wno-missing-field-initializers if needed.
10432         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10433         option if it's needed to allow initialization with { 0, }
10434
10435 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10436
10437         announce-gen: cosmetic improvement
10438         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10439
10440 2011-04-29  Jim Meyering  <meyering@redhat.com>
10441
10442         vc-list-files: indent with spaces, not TABs
10443         * build-aux/vc-list-files: Convert leading TABs to spaces,
10444         to match the style of most other files in gnulib.
10445
10446         announce-gen: indent with spaces, not TABs
10447         * build-aux/announce-gen: Convert all TABs to spaces, to match
10448         the style of most other files in gnulib.
10449
10450 2011-04-29  Eric Blake  <eblake@redhat.com>
10451
10452         quotearg: avoid uninitialized variable use
10453         * lib/quotearg.c (quoting_options_from_style): Initialize
10454         remaining fields, and ensure that custom styles are only used via
10455         quoting_options rather than quoting_style.
10456
10457 2011-04-29  Jim Meyering  <meyering@redhat.com>
10458
10459         maint.mk: remove unused VC-tag variable
10460         * top/maint.mk (VC-tag): Remove unused variable.
10461
10462 2011-04-29  Bruno Haible  <bruno@clisp.org>
10463
10464         netdb: fix gai_strerror replacements
10465         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10466         * modules/netdb: Substitute it.
10467
10468 2011-04-29  Jim Meyering  <meyering@redhat.com>
10469
10470         test-getcwd.c: avoid new set-but-not-used warning
10471         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10472         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10473         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10474         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10475
10476         test-hash.c: avoid a new shadowing warning
10477         * tests/test-hash.c (main): Don't shadow "dup".
10478
10479 2011-04-28  Eric Blake  <eblake@redhat.com>
10480
10481         getaddrinfo: fix gai_strerror signature
10482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10483         and work around mingw with UNICODE defined.
10484         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10485         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10486         * modules/netdb (Makefile.am): Substitute it.
10487         * lib/netdb.in.h (gai_strerror): Declare replacement.
10488         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10489         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10490         the fix.
10491
10492         getsockopt: avoid compiler warning
10493         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10494         Reported by Matthias Bolte.
10495
10496         tests: drop unused link dependency
10497         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10498         * modules/dirent-safer-tests (Makefile.am): Likewise.
10499         * modules/fdopendir-tests (Makefile.am): Likewise.
10500         * modules/mkfifoat-tests (Makefile.am): Likewise.
10501         * modules/openat-safer-tests (Makefile.am): Likewise.
10502         * modules/openat-tests (Makefile.am): Likewise.
10503         * modules/readlinkat-tests (Makefile.am): Likewise.
10504         * modules/symlinkat-tests (Makefile.am): Likewise.
10505         * modules/linkat-tests (Makefile.am): Likewise.
10506         (Depends-on): Switch to filenamecat-lgpl.
10507         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10508         LIBINTL.
10509         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10510         * tests/test-linkat.c (main): Don't require xalloc.
10511
10512         hash, mgetgroups: drop xalloc dependency
10513         * lib/hash.c (includes): Adjust includes.
10514         * lib/mgetgroups.c (includes): Likewise.
10515         (xgetgroups): Move...
10516         * lib/xgetgroups.c: ...to new file.
10517         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10518         * modules/xgetgroups: New file, split from...
10519         * modules/mgetgroups: ...here.
10520         (Depends-on): Add xalloc-oversized.
10521         * modules/hash (Depends-on): Likewise.
10522         * modules/hash-tests (Depends-on): Drop xalloc.
10523         (test_hash_LDADD): Drop unused library.
10524         * tests/test-hash.c (main): Break xalloc dependency.
10525         (includes): Drop unused include.
10526
10527         xalloc-oversized: new module
10528         * modules/xalloc-oversized: New module.
10529         * modules/xalloc (Depends-on): Add it.
10530         * lib/xalloc.h (xalloc_oversized): Move...
10531         * lib/xalloc-oversized.h: ...into new file.
10532
10533         utimecmp: drop dependency on xmalloc
10534         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10535         due to memory pressure.
10536         * modules/utimecmp (Depends-on): Drop xalloc.
10537
10538 2011-04-27  Eric Blake  <eblake@redhat.com>
10539
10540         getcwd: fix mingw bugs
10541         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10542         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10543         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10544
10545 2011-04-27  Bruno Haible  <bruno@clisp.org>
10546
10547         mkstemps: Ensure declaration on MacOS X 10.5.
10548         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10549         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10550         MacOS X.
10551
10552 2011-04-27  Bruno Haible  <bruno@clisp.org>
10553
10554         mkstemp: More documentation.
10555         * doc/posix-functions/mkstemp.texi: Document header file problem on
10556         MacOS X.
10557
10558 2011-04-27  Bruno Haible  <bruno@clisp.org>
10559
10560         mkstemp: Tweak configure message when cross-compiling.
10561         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10562         result as a guess.
10563
10564 2011-04-27  Bruno Haible  <bruno@clisp.org>
10565
10566         clean-temp: Clarify what it does.
10567         * lib/clean-temp.h: Add more comments.
10568         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10569         module.
10570         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10571         * doc/glibc-functions/mkstemps.texi: Likewise.
10572         * doc/glibc-functions/mkostemps.texi: Likewise.
10573
10574 2011-04-27  Eric Blake  <eblake@redhat.com>
10575
10576         fchdir: avoid extra chdir and fix test
10577         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10578         getcwd-lgpl.
10579         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10580         have to be canonical.
10581         (canonicalize_file_name): Drop unused macro.
10582         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10583
10584         filenamecat-lgpl: fix licence
10585         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10586         when it was first created.
10587
10588         linkat, renameat: add missing dependency
10589         * modules/linkat (Depends-on): Require getcwd-lgpl.
10590         * modules/renameat (Depends-on): Likewise.
10591
10592         tests: reduce dependencies
10593         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10594         * tests/test-renameat.c (main): Likewise.
10595         * modules/linkat-tests (Depends-on): Relax dependency.
10596         * modules/renameat-tests (Depends-on): Likewise.
10597         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10598         dependency explicit.
10599
10600         save-cwd: reduce default dependency
10601         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10602         * lib/save-cwd.c: Update comments.
10603         * NEWS: Document the semantic change.
10604
10605         getcwd: enhance tests
10606         * tests/test-getcwd-lgpl.c: New file, taken from...
10607         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10608         repeat long path stress tests from m4 probe.
10609         * modules/getcwd-lgpl-tests: New module.
10610         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10611         * m4/getcwd-abort-bug.m4: Update comment.
10612         * m4/getcwd-path-max.m4: Likewise.
10613
10614         getcwd-lgpl: new module
10615         * modules/getcwd-lgpl: New module.
10616         * lib/getcwd-lgpl.c: New file.
10617         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10618         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10619         * modules/getcwd (configure.ac): Set C witness.
10620         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10621
10622         getcwd: tweak comments
10623         * m4/getcwd-abort-bug.m4: Fix comments.
10624         * m4/getcwd-path-max.m4: Likewise.
10625         * m4/getcwd.m4: Likewise.
10626
10627 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10628         and Eric Blake  <eblake@redhat.com>
10629
10630         mkstemp: replace if system version uses wrong permissions
10631         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10632         read/write mode bits set in file created by mkstemp.
10633         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10634
10635 2011-04-27  Eric Blake  <eblake@redhat.com>
10636
10637         passfd: avoid compiler warning
10638         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10639         Reported by Laine Stump.
10640
10641 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10642
10643         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10644         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10645
10646 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10647         and Eric Blake  <eblake@redhat.com>
10648
10649         mkstemp: mention clean-temp module
10650         * lib/mkstemp.c: Add comment.
10651         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10652
10653 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10654
10655         inttypes: also provide default values for 32-bit tests
10656         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10657         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10658
10659 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         strtoumax: remove dependency on strtoimax
10662         This is like the strtoull change of yesterday.
10663         * modules/strtoumax (Files): Add lib/strtoimax.c.
10664         (Depends-on): Remove strtoimax and add verify.
10665
10666         inttypes-incomplete: new module
10667         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10668         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10669         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10670         of gl_INTTYPES_H.
10671         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10672         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10673         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10674         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10675         * modules/strtoumax, modules/xstrtol (Depends-on):
10676         Depend on inttypes-incomplete, not inttypes.
10677         * modules/inttypes-incomplete: New module, containing the contents
10678         of the old modules/inttypes module, except that the Files: section
10679         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10680         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10681         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10682         (Depends-on): Depend only on inttypes-incomplete.
10683         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10684
10685         inttypes: omit now-redundant strtoimax and strtoumax work
10686         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10687         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10688
10689         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10690         This supports apps that need pointers to strtoimax and strtoumax,
10691         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10692         nonexistent functions.  See
10693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10694         et seq.
10695         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10696         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10697         a macro.
10698         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10699
10700 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10701
10702         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10703
10704 2011-04-25  Bruno Haible  <bruno@clisp.org>
10705
10706         strtol, strtoul: Mark modules as obsolete.
10707         * modules/strtol (Status, Notice): New sections.
10708         * modules/strtoul (Status, Notice): New sections.
10709
10710 2011-04-25  Bruno Haible  <bruno@clisp.org>
10711
10712         strtod: Remove check for strtod, unless supporting old platforms.
10713         * modules/strtod-obsolete: New file.
10714         * m4/strtod-obsolete.m4: New file.
10715         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10716         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10717         * modules/strtod (Depends-on): Add strtod-obsolete.
10718         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10719
10720 2011-04-25  Bruno Haible  <bruno@clisp.org>
10721
10722         strcase: Make module obsolete.
10723         * modules/strcase (Status, Notice): New sections.
10724
10725 2011-04-25  Bruno Haible  <bruno@clisp.org>
10726
10727         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10728         * modules/dup2-obsolete: New file.
10729         * m4/dup2-obsolete.m4: New file.
10730         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10731         gl_FUNC_DUP2_OBSOLETE is not also defined.
10732         * modules/dup2 (Depends-on): Add dup2-obsolete.
10733         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10734
10735 2011-04-25  Bruno Haible  <bruno@clisp.org>
10736
10737         strnlen: Avoid memchr related link error on old obsolete platforms.
10738         * modules/memchr-obsolete: New file.
10739         * m4/memchr-obsolete.m4: New file.
10740         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10741         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10742         * modules/memchr (Depends-on): Add memchr-obsolete.
10743         * modules/strnlen (Depends-on): Likewise.
10744         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10745
10746 2011-04-25  Jim Meyering  <meyering@redhat.com>
10747
10748         maint.mk: makefile_at_at_check extend and clean up
10749         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10750         in addition to */Makefile.am.
10751         Exempt legitimate uses of @VAR@ notation, e.g.,
10752         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10753         Remove obsolete coreutils-specific comment.
10754         Prompted by discussion here:
10755         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10756
10757 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10758
10759         strtoul: remove dependency on strtol
10760         This is so that 'configure' need not check for strtol merely because
10761         the application needs strtoul.
10762         * modules/strtoul (Files): Add lib/strtol.c.
10763         (Depends-on): Remove strtol.
10764
10765         strtoull: remove dependency on strtoul
10766         This is like the strtoll change.
10767         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10768         (Depends-on): Remove strtoul.
10769
10770         strtoll: remove dependency on strtol
10771         This is so that 'configure' need not check for strtol merely because
10772         the application needs strtoll.
10773         * modules/strtoll (Files): Add lib/strtol.c.
10774         (Depends-on): Remove strtol.
10775
10776 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10777
10778         inttypes: Move some configure check to module 'imaxdiv'.
10779         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10780         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10781         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10782
10783 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10784
10785         inttypes: Move some configure check to module 'imaxabs'.
10786         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10787         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10788         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10789
10790 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10791
10792         inttypes: Remove configure tests that are not needed since 2009-12-31.
10793         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10794         gl_cv_header_working_inttypes_h.
10795
10796 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10797
10798         * modules/strnlen (Depends-on): Remove memchr.
10799         The strnlen implementation doesn't need the memchr module's fixes; see
10800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10801
10802         strtol: remove dependency on wchar
10803         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10804         * modules/strtol (Depends-on): Remove wchar.
10805
10806 2011-04-21  Eric Blake  <eblake@redhat.com>
10807
10808         passfd: fix test regression on Linux
10809         * modules/passfd-tests (configure.ac): Correct socketpair check.
10810
10811         passfd: speed up configure and drop unused code
10812         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10813         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10814         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10815         Instead of probing at configure for unix_scm_rights_bsd44_way,
10816         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10817         check to a struct member probe.
10818         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10819         (sendfd, recvfd): Update preprocessor checks.
10820         * modules/passfd (Files): Reflect rename, and drop unused file.
10821         (Depends-on): Drop unused dependency.
10822
10823         passfd: allow compilation on mingw
10824         * modules/sys_socket (Depends-on): Add sys_uio.
10825         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10826         iovec and a minimal struct msghdr.
10827         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10828         * tests/test-sys_socket.c (main): Enhance test.
10829         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10830         guaranteed to provide what we need.
10831         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10832         * modules/passfd-tests (Depends-on): Add sys_wait.
10833         * tests/test-passfd.c (main): Skip test on mingw, for now.
10834         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10835         partial 'struct msghdr' implementation.
10836
10837         sys_uio: new module
10838         * modules/sys_uio: New module.
10839         * modules/sys_uio-tests: Likewise.
10840         * lib/sys_uio.in.h: New file.
10841         * m4/sys_uio_h.m4: Likewise.
10842         * tests/test-sys_uio.c: Likewise.
10843         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10844         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10845
10846 2011-04-20  Jim Meyering  <meyering@redhat.com>
10847
10848         useless-if-before-free: avoid false-positive
10849         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10850         disjunct so that it too requires a terminating ";".  Without that,
10851         this script would identify as useless one statement from gcc that
10852         was not:
10853           if (aligned_ptr)
10854             free (((void **) aligned_ptr) [-1]);
10855
10856 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10857
10858         doc: update users.txt.
10859         * users.txt: Add barcode.
10860
10861 2011-04-19  Bruno Haible  <bruno@clisp.org>
10862
10863         ioctl: Remove link dependency on native Windows.
10864         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10865         (gl_close_fn, gl_ioctl_fn): New types.
10866         (struct fd_hook): Renamed from struct close_hook. Change type of
10867         private_close_fn field. Add private_ioctl_fn field.
10868         (close_hook_fn): Add parameter for primary close method.
10869         (execute_close_hooks, execute_all_close_hooks): Likewise.
10870         (ioctl_hook_fn): New type.
10871         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10872         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10873         argument.
10874         (unregister_fd_hook): Renamed from unregister_close_hook.
10875         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10876         Don't include <unistd.h>.
10877         (close): Remove undef.
10878         (anchor): Update.
10879         (execute_close_hooks): Add argument for primary close method.
10880         (execute_all_close_hooks): Likewise.
10881         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10882         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10883         argument. Allow each argument to be NULL.
10884         (unregister_fd_hook): Renamed from unregister_close_hook.
10885         * lib/close.c (rpl_close): Pass 'close' function pointer to
10886         execute_all_close_hooks.
10887         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10888         (primary_ioctl): New function.
10889         (ioctl): Don't call ioctlsocket here. Instead, call
10890         execute_all_ioctl_hooks.
10891         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10892         close method.
10893         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10894         (fd_sockets_hook): Renamed from close_sockets_hook.
10895         (gl_sockets_startup, gl_sockets_cleanup): Update.
10896         * modules/fd-hook: Renamed from modules/close-hook. Update.
10897         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10898         * modules/sockets (Depends-on): Likewise.
10899         * modules/ioctl (Depends-on): Add fd-hook.
10900         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10901         GNULIB_SOCKET.
10902
10903 2011-04-19  Bruno Haible  <bruno@clisp.org>
10904
10905         Move the support of O_NONBLOCK in open() to the 'open' module.
10906         * modules/nonblocking (Depends-on): Remove 'open'.
10907         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10908         gl_cv_have_open_O_NONBLOCK.
10909         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10910         O_NONBLOCK support.
10911         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10912
10913 2011-04-17  Bruno Haible  <bruno@clisp.org>
10914
10915         pipe2: Simplify code.
10916         * lib/pipe2.c (pipe2): Reduce code duplication.
10917
10918 2011-04-17  Bruno Haible  <bruno@clisp.org>
10919
10920         nonblocking: Add comment.
10921         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10922
10923 2011-04-17  Bruno Haible  <bruno@clisp.org>
10924
10925         nonblocking: Add tests for sockets.
10926         * tests/test-nonblocking-socket.sh: New file.
10927         * tests/test-nonblocking-socket-main.c: New file.
10928         * tests/test-nonblocking-socket-child.c: New file.
10929         * tests/test-nonblocking-socket.h: New file.
10930         * tests/socket-server.h: New file.
10931         * tests/socket-client.h: New file.
10932         * modules/nonblocking-socket-tests: New file.
10933         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10934
10935 2011-04-17  Bruno Haible  <bruno@clisp.org>
10936
10937         nonblocking: Add tests for pipes.
10938         * tests/test-nonblocking-pipe.sh: New file.
10939         * tests/test-nonblocking-pipe-main.c: New file.
10940         * tests/test-nonblocking-pipe-child.c: New file.
10941         * tests/test-nonblocking-pipe.h: New file.
10942         * tests/test-nonblocking-writer.h: New file.
10943         * tests/test-nonblocking-reader.h: New file.
10944         * tests/test-nonblocking-misc.h: New file.
10945         * modules/nonblocking-pipe-tests: New file.
10946         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10947
10948 2011-04-16  Bruno Haible  <bruno@clisp.org>
10949
10950         gettext: Clarify the needed programmer actions.
10951         * modules/gettext (Notice): New field.
10952         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10953
10954 2011-04-16  Bruno Haible  <bruno@clisp.org>
10955
10956         strchrnul: Tweak last commit.
10957         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10958         bug.
10959         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10960         as in _GL_FUNCDECL_SYS.
10961         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10962         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10963
10964 2011-04-15  Eric Blake  <eblake@redhat.com>
10965
10966         strchrnul: work around cygwin bug
10967         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10968         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10970         * modules/string (Makefile.am): Substitute it.
10971         * lib/string.in.h (strchrnul): Use it.
10972
10973 2011-04-15  Bruno Haible  <bruno@clisp.org>
10974
10975         Don't require lib/stdio-write.c when only module 'stdio' is used.
10976         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10977         invocation.
10978         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10979
10980 2011-04-14  Bruno Haible  <bruno@clisp.org>
10981
10982         Support non-blocking pipe I/O in read() on native Windows.
10983         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10984         (read): New declaration.
10985         * lib/read.c: New file.
10986         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10987         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10988         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10989         vscanf): New declarations.
10990         * lib/stdio-read.c: New file.
10991         * m4/read.m4: New file.
10992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10993         REPLACE_READ.
10994         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10995         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10996         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10997         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10998         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10999         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11000         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11001         * modules/read: New file.
11002         * modules/nonblocking (Files): Add lib/stdio-read.c.
11003         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11004         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11005         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11006         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11007         * modules/pread (Depends-on): Add read.
11008         * modules/safe-read (Depends-on): Likewise.
11009         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11010         gets, scanf, vfscanf, vscanf): Verify signatures.
11011         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11012         problem with non-blocking pipes.
11013         * doc/posix-functions/fgetc.texi: Likewise.
11014         * doc/posix-functions/fgets.texi: Likewise.
11015         * doc/posix-functions/fread.texi: Likewise.
11016         * doc/posix-functions/fscanf.texi: Likewise.
11017         * doc/posix-functions/getc.texi: Likewise.
11018         * doc/posix-functions/getchar.texi: Likewise.
11019         * doc/posix-functions/gets.texi: Likewise.
11020         * doc/posix-functions/scanf.texi: Likewise.
11021         * doc/posix-functions/vfscanf.texi: Likewise.
11022         * doc/posix-functions/vscanf.texi: Likewise.
11023
11024 2011-04-14  Bruno Haible  <bruno@clisp.org>
11025
11026         Support non-blocking pipe I/O in write() on native Windows.
11027         * lib/write.c (rpl_write): Split a write request that failed merely
11028         because the byte count was larger than the pipe buffer's size.
11029         * doc/posix-functions/write.texi: Mention the problem with large byte
11030         counts.
11031
11032 2011-04-14  Bruno Haible  <bruno@clisp.org>
11033
11034         wchar: Ensure that wchar_t gets defined on uClibc.
11035         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11036         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11037
11038 2011-04-13  Bruno Haible  <bruno@clisp.org>
11039
11040         safe-write, full-read: Avoid unnecessary compilation units.
11041         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11042         (Depends-on): Remove safe-read. Add ssize_t.
11043         * modules/full-read (Files): Add lib/full-write.c.
11044         (Depends-on): Add full-write.
11045
11046 2011-04-13  Bruno Haible  <bruno@clisp.org>
11047
11048         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11049         * modules/pwrite (Depends-on): Add 'write'.
11050
11051 2011-04-13  Bruno Haible  <bruno@clisp.org>
11052
11053         Support non-blocking pipe I/O in write() on native Windows.
11054         * lib/unistd.in.h (write): Enable replacement also if
11055         GNULIB_UNISTD_H_NONBLOCKING is 1.
11056         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11057         (rpl_write): When failing to write on a non-blocking pipe, change
11058         errno from ENOSPC to EAGAIN.
11059         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11060         putchar, puts, vfprintf, vprintf): Enable replacement also if
11061         GNULIB_STDIO_H_NONBLOCKING is 1.
11062         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11063         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11064         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11065         CALL_WITH_SIGPIPE_EMULATION.
11066         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11067         * m4/nonblocking.m4: New file.
11068         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11069         for non-blocking I/O support.
11070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11071         GNULIB_UNISTD_H_NONBLOCKING.
11072         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11073         required for non-blocking I/O support.
11074         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11075         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11076         lib/stdio-write.c, m4/asm-underscore.m4.
11077         (Depends-on): Add stdio, unistd.
11078         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11079         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11080         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11081         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11082         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11083         problem with non-blocking pipes.
11084         * doc/posix-functions/fputc.texi: Likewise.
11085         * doc/posix-functions/fputs.texi: Likewise.
11086         * doc/posix-functions/fwrite.texi: Likewise.
11087         * doc/posix-functions/printf.texi: Likewise.
11088         * doc/posix-functions/putc.texi: Likewise.
11089         * doc/posix-functions/putchar.texi: Likewise.
11090         * doc/posix-functions/puts.texi: Likewise.
11091         * doc/posix-functions/vfprintf.texi: Likewise.
11092         * doc/posix-functions/vprintf.texi: Likewise.
11093         * doc/posix-functions/write.texi: Likewise.
11094
11095 2011-04-10  Jim Meyering  <meyering@redhat.com>
11096
11097         maint.mk: prohibit doubled words
11098         Detect them also when they're separated by a newline.
11099         There are 3 ways to customize it:
11100           - disable the test on a per file basis, as usual with rules using
11101             $(VC_LIST_EXCEPT)
11102           - replace the default doubled-word-selecting regexp (affects all files)
11103           - ignore a particular file-vs-doubled-word match
11104         I nearly used that last one to ignore the "is is" match in
11105         coreutils' NEWS file, since the text was "ls -is is ..."
11106         To do that, I would have added this line to cfg.mk:
11107           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11108         but it would have ignored any "is is" match in NEWS.
11109         Low probability, but still...
11110         Instead, I changed the text, slightly:
11111           -  ls -is is now consistent with ls -lis in ignoring values returned
11112           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11113         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11114         (prohibit_doubled_word_): Define.
11115         (sc_prohibit_doubled_word): New rule.
11116         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11117
11118 2011-04-10  Jim Meyering  <meyering@redhat.com>
11119
11120         maint: fix doubled-word typo in comment
11121         * m4/gethostname.m4: s/is is/it is/
11122         * m4/getdomainname.m4: Likewise.
11123
11124 2011-04-10  Jim Meyering  <meyering@redhat.com>
11125
11126         maint: remove doubled word: s/it it/it/
11127         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11128
11129 2011-04-10  Jim Meyering  <meyering@redhat.com>
11130
11131         maint.mk: remove useless semicolon and backslash
11132         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11133         semicolon and backslash.
11134
11135 2011-04-10  Bruno Haible  <bruno@clisp.org>
11136
11137         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11138         * modules/stdint-tests (Depends-on): Add wchar.
11139
11140 2011-04-10  Jim Meyering  <meyering@redhat.com>
11141
11142         maint: remove doubled words in comments, e.g., s/a a/a/
11143         * lib/strptime.c (day_of_the_week): s/the the/the/
11144         * tests/test-chown.h (test_chown): s/a a/a/
11145
11146         test-chown.h: correct a cast
11147         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11148         when the destination is a stat.st_gid.
11149
11150 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11151
11152         getaddrinfo: Fix test for sa_len member.
11153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11154         include <sys/types.h> before <sys/socket.h>.
11155
11156 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11157
11158         maint: change "can not" to "cannot"
11159         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11160         boundaries.
11161
11162 2011-04-09  Jim Meyering  <meyering@redhat.com>
11163
11164         maint: change "a a" to "a"
11165         * tests/test-lchown.h (test_lchown): s/a a/a/
11166
11167         maint.mk: prohibit \<the the\>
11168         * top/maint.mk (sc_prohibit_the_the): New rule.
11169
11170         maint: fix "the the" in comment
11171         * lib/count-one-bits.h: s/the the/the/
11172
11173         maint: change "can not" to "cannot"
11174         But do not change the occurrences in maintain.texi or in
11175         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11176         * doc/gnulib-tool.texi: s/can not/cannot/
11177         * doc/posix-functions/accept.texi (accept): Likewise.
11178         * doc/posix-functions/socket.texi (socket): Likewise.
11179         * lib/mbrtowc.c: Likewise.
11180
11181         maint.mk: prohibit use of "can not"
11182         * top/maint.mk (sc_prohibit_can_not): New rule.
11183         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11184
11185 2011-04-09  Bruno Haible  <bruno@clisp.org>
11186
11187         careadlinkat: Guard against misuse of careadlinkatcwd.
11188         * lib/careadlinkat.c: Include <stdlib.h>.
11189         (careadlinkatcwd): Check that the fd argument is as expected.
11190
11191 2011-04-09  Bruno Haible  <bruno@clisp.org>
11192
11193         careadlinkat: Use common coding style.
11194         * lib/careadlinkat.c: Move gnulib includes after system includes.
11195
11196 2011-04-09  Bruno Haible  <bruno@clisp.org>
11197
11198         careadlinkat: Clarify specification.
11199         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11200         (careadlinkatcwd): Add comment.
11201         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11202
11203 2011-04-09  Bruno Haible  <bruno@clisp.org>
11204
11205         areadlinkat: Avoid link error on many platforms.
11206         * modules/areadlinkat (Depends-on): Add areadlink.
11207
11208 2011-04-09  Bruno Haible  <bruno@clisp.org>
11209
11210         allocator, careadlinkat: Fix double-inclusion guard.
11211         * lib/allocator.h: Fix double-inclusion guard.
11212         * lib/careadlinkat.h: Likewise.
11213
11214 2011-04-09  Bruno Haible  <bruno@clisp.org>
11215
11216         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11217         * lib/relocwrapper.c: Update dependencies hierarchy.
11218         * build-aux/install-reloc: Update list of files to be compiled.
11219         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11220         lib/allocator.[hc].
11221
11222 2011-04-08  Eric Blake  <eblake@redhat.com>
11223
11224         strftime: silence gnulib-tool warning
11225         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11226
11227 2011-04-08  Bruno Haible  <bruno@clisp.org>
11228
11229         verify: Fix syntax error with GCC 4.6 in C++ mode.
11230         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11231         (HAVE_STATIC_ASSERT): New macro.
11232         (verify_true, verify): Use 'static_assert' if it is supported and
11233         '_Static_assert' is not supported.
11234
11235 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11236
11237         allocator: New module.
11238         * modules/allocator, lib/allocator.c: New files.
11239         * lib/allocator.h (stdlib_allocator): New decl.
11240         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11241         Remove.  Do not include <stdlib.h>.
11242         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11243         * modules/careadlinkat (Files): Remove lib/allocator.h.
11244         (Depends-on): Add allocator.
11245
11246         stdlib: let modules use system malloc, realloc
11247         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11248         if !_GL_USE_STDLIB_ALLOC.
11249         (malloc, realloc): Limit this change to a smaller scope.
11250
11251         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11252         (malloc, realloc): Don't #undef; no longer needed.
11253         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11254         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11255         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11256         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11257         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11258         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11259         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11260         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11261
11262         careadlinkat: rename members to avoid problem
11263         * lib/allocator.h (struct allocator): Rename members from
11264         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11265         and realloc are #define'd.  Reported by Eric Blake in
11266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11267         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11268
11269 2011-04-08  Eric Blake  <eblake@redhat.com>
11270
11271         nonblocking: reduce dependency
11272         * tests/test-nonblocking.c: Only test sockets when in use.
11273         * modules/nonblocking-tests (Depends-on): Drop socket.
11274         (Makefile.am): Link even if sockets are not present.
11275         * modules/pipe2-tests (Makefile.am): Likewise.
11276         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11277
11278         pipe2: fix O_NONBLOCK support on mingw
11279         * modules/pipe2 (Depends-on): Add nonblocking.
11280         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11281         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11282         * tests/test-nonblocking.c (main): Likewise.
11283         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11284
11285         fcntl-h: fix O_ACCMODE on cygwin
11286         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11287         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11288
11289         pipe-filter: drop O_NONBLOCK workarounds
11290         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11291         * modules/pipe-filter-ii (Depends-on): Likewise.
11292         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11293
11294         nonblocking: provide O_NONBLOCK for mingw
11295         * modules/nonblocking (Depends-on): Add open.
11296         (configure.ac): Set new witness macro.
11297         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11298         * modules/fcntl-h (Makefile.am): Substitute it.
11299         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11300         nonblocking module is in use.
11301         * lib/nonblocking.c: Adjust portability test.
11302         * lib/open.c (open): Don't let native open see gnulib flag.
11303         * tests/test-fcntl-h.c (main): Enhance test.
11304         * tests/test-open.h (test_open): Likewise.
11305         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11306
11307         careadlinkat: fix compilation error on mingw
11308         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11309         within struct allocator.
11310
11311 2011-04-06  Eric Blake  <eblake@redhat.com>
11312
11313         binary-io: relicense under LGPLv2+
11314         * modules/binary-io (License): Relax to LGPLv2+.
11315         Requested for libvirt, and required by pipe2.
11316
11317 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11318
11319         verify: use _Static_assert if available
11320         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11321         (verify_true, verify): Use it if available.  This generates better
11322         diagnostics with GCC 4.6.0 and later.
11323
11324 2011-04-05  Bruno Haible  <bruno@clisp.org>
11325
11326         Remove leftover generated .h files after config.status changed.
11327
11328         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11329         GL_GENERATE_ALLOCA_H.
11330         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11331         GL_GENERATE_ALLOCA_H evaluates to false.
11332
11333         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11334         GL_GENERATE_ARGZ_H.
11335         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11336         evaluates to false.
11337
11338         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11339         GL_GENERATE_BYTESWAP_H.
11340         * modules/byteswap (Makefile.am): Remove byteswap.h if
11341         GL_GENERATE_BYTESWAP_H evaluates to false.
11342
11343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11344         GL_GENERATE_ERRNO_H.
11345         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11346         evaluates to false.
11347
11348         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11349         GL_GENERATE_FLOAT_H.
11350         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11351         evaluates to false.
11352
11353         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11354         GL_GENERATE_FNMATCH_H.
11355         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11356         GL_GENERATE_FNMATCH_H evaluates to false.
11357
11358         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11359         GL_GENERATE_GLOB_H.
11360         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11361         evaluates to false.
11362
11363         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11364         automake conditional GL_GENERATE_ICONV_H.
11365         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11366         evaluates to false.
11367
11368         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11369         GL_GENERATE_NETINET_IN_H.
11370         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11371         GL_GENERATE_NETINET_IN_H evaluates to false.
11372
11373         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11374         conditional GL_GENERATE_PTHREAD_H.
11375         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11376         * modules/pthread (Makefile.am): Remove pthread.h if
11377         GL_GENERATE_PTHREAD_H evaluates to false.
11378
11379         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11380         GL_GENERATE_SCHED_H.
11381         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11382         evaluates to false.
11383
11384         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11385         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11386         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11387         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11388
11389         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11390         GL_GENERATE_STDARG_H.
11391         * modules/stdarg (Makefile.am): Remove stdarg.h if
11392         GL_GENERATE_STDARG_H evaluates to false.
11393
11394         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11395         GL_GENERATE_STDBOOL_H.
11396         * modules/stdbool (Makefile.am): Remove stdbool.h if
11397         GL_GENERATE_STDBOOL_H evaluates to false.
11398
11399         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11400         conditional GL_GENERATE_STDDEF_H.
11401         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11402         * modules/stddef (Makefile.am): Remove stddef.h if
11403         GL_GENERATE_STDDEF_H evaluates to false.
11404
11405         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11406         GL_GENERATE_STDINT_H.
11407         * modules/stdint (Makefile.am): Remove stdint.h if
11408         GL_GENERATE_STDINT_H evaluates to false.
11409
11410         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11411         GL_GENERATE_SYSEXITS_H.
11412         * modules/sysexits (Makefile.am): Remove sysexits.h if
11413         GL_GENERATE_SYSEXITS_H evaluates to false.
11414
11415         Reported by Karl Berry and Ralf Wildenhues.
11416
11417 2011-04-05  Bruno Haible  <bruno@clisp.org>
11418
11419         Ensure to rebuild generated .h files when config.status has changed.
11420         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11421         config.status.
11422         * modules/ctype (Makefile.am): Likewise.
11423         * modules/dirent (Makefile.am): Likewise.
11424         * modules/errno (Makefile.am): Likewise.
11425         * modules/fcntl-h (Makefile.am): Likewise.
11426         * modules/float (Makefile.am): Likewise.
11427         * modules/getopt-posix (Makefile.am): Likewise.
11428         * modules/glob (Makefile.am): Likewise.
11429         * modules/iconv-h (Makefile.am): Likewise.
11430         * modules/inttypes (Makefile.am): Likewise.
11431         * modules/langinfo (Makefile.am): Likewise.
11432         * modules/locale (Makefile.am): Likewise.
11433         * modules/math (Makefile.am): Likewise.
11434         * modules/netdb (Makefile.am): Likewise.
11435         * modules/netinet_in (Makefile.am): Likewise.
11436         * modules/poll-h (Makefile.am): Likewise.
11437         * modules/pthread (Makefile.am): Likewise.
11438         * modules/pty (Makefile.am): Likewise.
11439         * modules/sched (Makefile.am): Likewise.
11440         * modules/search (Makefile.am): Likewise.
11441         * modules/selinux-h (Makefile.am): Likewise.
11442         * modules/signal (Makefile.am): Likewise.
11443         * modules/spawn (Makefile.am): Likewise.
11444         * modules/stdarg (Makefile.am): Likewise.
11445         * modules/stdbool (Makefile.am): Likewise.
11446         * modules/stddef (Makefile.am): Likewise.
11447         * modules/stdint (Makefile.am): Likewise.
11448         * modules/stdio (Makefile.am): Likewise.
11449         * modules/stdlib (Makefile.am): Likewise.
11450         * modules/string (Makefile.am): Likewise.
11451         * modules/strings (Makefile.am): Likewise.
11452         * modules/sys_file (Makefile.am): Likewise.
11453         * modules/sys_ioctl (Makefile.am): Likewise.
11454         * modules/sys_select (Makefile.am): Likewise.
11455         * modules/sys_socket (Makefile.am): Likewise.
11456         * modules/sys_stat (Makefile.am): Likewise.
11457         * modules/sys_time (Makefile.am): Likewise.
11458         * modules/sys_times (Makefile.am): Likewise.
11459         * modules/sys_utsname (Makefile.am): Likewise.
11460         * modules/sys_wait (Makefile.am): Likewise.
11461         * modules/sysexits (Makefile.am): Likewise.
11462         * modules/termios (Makefile.am): Likewise.
11463         * modules/time (Makefile.am): Likewise.
11464         * modules/unistd (Makefile.am): Likewise.
11465         * modules/wchar (Makefile.am): Likewise.
11466         * modules/wctype-h (Makefile.am): Likewise.
11467         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11468
11469 2011-04-05  Bruno Haible  <bruno@clisp.org>
11470
11471         pipe2: Relicense under LGPLv2+.
11472         * modules/pipe2 (License): Change to LGPLv2+.
11473         Requested by Eric Blake, for libvirt.
11474
11475 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11476
11477         bootstrap: compute gnulib_extra_files after updating build_aux
11478         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11479         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11480
11481 2011-04-05  Eric Blake  <eblake@redhat.com>
11482
11483         bootstrap: preserve git whitelist item sorting
11484         * build-aux/bootstrap (sort_patterns): New function.
11485         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11486
11487 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11488
11489         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11490         sc_space_tab check.
11491
11492 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11493
11494         areadlink, areadlinkat: rewrite in terms of careadlinkat
11495         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11496         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11497         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11498         (malloc, realloc): Remove #undefs.
11499         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11500         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11501         readlink, ssize_t, stdint, unistd.
11502         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11503         areadlink, stdint.
11504
11505         careadlinkat: new module
11506         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11507         * modules/careadlinkat: New files, written by me with
11508         a review and feedback from Ben Pfaff in
11509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11510
11511 2011-04-01  Bruno Haible  <bruno@clisp.org>
11512
11513         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11514         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11515         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11516         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11517         Reported by Bruce Korb <bruce.korb@gmail.com>.
11518
11519 2011-04-01  Bruno Haible  <bruno@clisp.org>
11520
11521         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11522         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11523         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11524         * modules/wcpcpy (Depends-on): Add extensions.
11525         * modules/wcpncpy (Depends-on): Likewise.
11526         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11527         systems.
11528         * doc/posix-functions/wcpncpy.texi: Likewise.
11529         * doc/posix-functions/wcwidth.texi: Likewise.
11530
11531 2011-03-31  Eric Blake  <eblake@redhat.com>
11532
11533         nonblocking: fix mingw test failures
11534         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11535         non-blocking flag on regular file.
11536         (get_nonblocking_flag): Set errno on invalid fd.
11537         * tests/test-nonblocking.c (main): Avoid test failure on
11538         directories if fchdir is not active.
11539         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11540
11541 2011-03-31  Bruno Haible  <bruno@clisp.org>
11542
11543         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11544         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11545         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11546         Reported by Simon Josefsson <simon@josefsson.org>.
11547
11548 2011-03-31  Bruno Haible  <bruno@clisp.org>
11549         and Eric Blake  <eblake@redhat.com>
11550
11551         nonblocking: new module
11552         * modules/nonblocking: New module.
11553         * modules/nonblocking-tests: Likewise.
11554         * lib/nonblocking.h: New file.
11555         * lib/nonblocking.c: Likewise.
11556         * tests/test-nonblocking.c: New test.
11557         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11558
11559 2011-03-30  Bruno Haible  <bruno@clisp.org>
11560
11561         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11562         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11563         instead of 'printf' format for GCC >= 4.4.
11564         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11565         (fprintf, printf, vfprintf, vprintf): Declare with
11566         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11567         the system's vfprintf() function.
11568         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11569
11570 2011-03-30  Eric Blake  <eblake@redhat.com>
11571
11572         passfd: fix scoping bug
11573         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11574         before sendmsg/recvmsg.
11575
11576         passfd: standardize coding conventions
11577         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11578         can be learned at compile time.
11579         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11580         ifdefs.
11581         (sendfd, recvfd): Follow gnulib code conventions.
11582
11583         passfd: fix incorrect sendmsg arguments
11584         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11585         incorrect msg_controllen value.
11586         * modules/passfd-tests (Depends-on): Check for alarm.
11587         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11588         Reported by Bastien ROUCARIES.
11589
11590 2011-03-30  Bruno Haible  <bruno@clisp.org>
11591
11592         c-strcasestr: Relicense under LGPLv2+.
11593         * modules/c-strcasestr (License): Change to LGPLv2+.
11594         Requested by Eric Blake, for libvirt.
11595
11596 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11597
11598         * users.txt: Add libidn2.  Fix libtasn1 link.
11599
11600 2011-03-30  Jim Meyering  <meyering@redhat.com>
11601
11602         tests: readlink* ("",... fails with EINVAL on newer kernels
11603         readlink and readlinkat have typically failed with ENOENT for
11604         the invalid, empty file name,  "".  However, with the advent
11605         of linux-2.6.39, they fail with EINVAL.
11606         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11607         when operating on the empty file name.
11608         * tests/test-readlink.h (test_readlink): Likewise.
11609
11610 2011-03-29  Bruno Haible  <bruno@clisp.org>
11611
11612         Relicense some modules under LGPLv2+, for libidn2.
11613         * modules/array-mergesort (License): Change to LGPLv2+.
11614         * modules/c-strcaseeq (License): Likewise.
11615         * modules/striconveh (License): Likewise.
11616         * modules/striconveha (License): Likewise.
11617         * modules/uniconv/base (License): Likewise.
11618         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11619         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11620         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11621         * modules/unictype/base (License): Likewise.
11622         * modules/unictype/bidiclass-of (License): Likewise.
11623         * modules/unictype/category-M (License): Likewise.
11624         * modules/unictype/category-none (License): Likewise.
11625         * modules/unictype/category-of (License): Likewise.
11626         * modules/unictype/category-test (License): Likewise.
11627         * modules/unictype/category-test-withtable (License): Likewise.
11628         * modules/unictype/combining-class (License): Likewise.
11629         * modules/unictype/joiningtype-of (License): Likewise.
11630         * modules/unictype/scripts (License): Likewise.
11631         * modules/uninorm/base (License): Likewise.
11632         * modules/uninorm/canonical-decomposition (License): Likewise.
11633         * modules/uninorm/composition (License): Likewise.
11634         * modules/uninorm/decompose-internal (License): Likewise.
11635         * modules/uninorm/decomposition-table (License): Likewise.
11636         * modules/uninorm/nfc (License): Likewise.
11637         * modules/uninorm/nfd (License): Likewise.
11638         * modules/uninorm/u32-normalize (License): Likewise.
11639         * modules/unistr/base (License): Likewise.
11640         * modules/unistr/u32-cpy (License): Likewise.
11641         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11642         * modules/unistr/u32-to-u8 (License): Likewise.
11643         * modules/unistr/u32-uctomb (License): Likewise.
11644         * modules/unistr/u8-check (License): Likewise.
11645         * modules/unistr/u8-mblen (License): Likewise.
11646         * modules/unistr/u8-mbtouc (License): Likewise.
11647         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11648         * modules/unistr/u8-mbtoucr (License): Likewise.
11649         * modules/unistr/u8-prev (License): Likewise.
11650         * modules/unistr/u8-strlen (License): Likewise.
11651         * modules/unistr/u8-to-u32 (License): Likewise.
11652         * modules/unistr/u8-uctomb (License): Likewise.
11653         * modules/unitypes (License): Likewise.
11654         Requested by Simon Josefsson.
11655
11656 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11657
11658         lib-symbol-visibility: Add a notice.
11659         * modules/lib-symbol-visibility (Notice): New field.
11660
11661 2011-03-29  Bruno Haible  <bruno@clisp.org>
11662
11663         getaddrinfo: Doc fix.
11664         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11665         section "fixed in Gnulib".
11666
11667 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11668
11669         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11670         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11671
11672 2011-03-26  Bruno Haible  <bruno@clisp.org>
11673
11674         unictype/property-byname: Reduce the number of load-time relocations.
11675         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11676         (UC_PROPERTY_INDEX_*): New enumeration values.
11677         (uc_property_byname): Convert an index from the lookup table to an
11678         uc_property_t.
11679         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11680         values.
11681
11682 2011-03-26  Bruno Haible  <bruno@clisp.org>
11683
11684         unictype/property-byname: Allow omitted word separators and aliases.
11685         * lib/unictype/pr_byname.gperf: Add property names without word
11686         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11687         for 'space'.
11688
11689 2011-03-26  Bruno Haible  <bruno@clisp.org>
11690
11691         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11692         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11693         also hyphens to space.
11694         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11695         without spaces.
11696         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11697
11698 2011-03-26  Bruno Haible  <bruno@clisp.org>
11699
11700         unictype/joiningtype-byname: Recognize long names as well.
11701         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11702         a long name.
11703         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11704         unictype/joiningtype_byname.h.
11705         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11706         * lib/unictype/joiningtype_byname.gperf: New file.
11707         * modules/unictype/joiningtype-byname (Files): Add
11708         lib/unictype/joiningtype_byname.gperf.
11709         (Depends-on): Add gperf.
11710         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11711         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11712         long names.
11713
11714         Tests for module 'unictype/joiningtype-longname'.
11715         * modules/unictype/joiningtype-longname-tests: New file.
11716         * tests/unictype/test-joiningtype_longname.c: New file.
11717
11718         New module 'unictype/joiningtype-longname'.
11719         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11720         * lib/unictype/joiningtype_longname.c: New file.
11721         * modules/unictype/joiningtype-longname: New file.
11722         * modules/unictype/joiningtype-all (Depends-on): Add
11723         unictype/joiningtype-longname.
11724
11725 2011-03-26  Bruno Haible  <bruno@clisp.org>
11726
11727         unictype/bidiclass-byname: Recognize long names as well.
11728         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11729         name.
11730         * lib/unictype/bidi_byname.c: Include <string.h>,
11731         unictype/bidi_byname.h.
11732         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11733         * lib/unictype/bidi_byname.gperf: New file.
11734         * modules/unictype/bidiclass-byname (Files): Add
11735         lib/unictype/bidi_byname.gperf.
11736         (Depends-on): Add gperf.
11737         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11738         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11739         long names.
11740
11741         Tests for module 'unictype/bidiclass-longname'.
11742         * modules/unictype/bidiclass-longname-tests: New file.
11743         * tests/unictype/test-bidi_longname.c: New file.
11744
11745         New module 'unictype/bidiclass-longname'.
11746         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11747         * lib/unictype/bidi_longname.c: New file.
11748         * modules/unictype/bidiclass-longname: New file.
11749         * modules/unictype/bidiclass-all (Depends-on): Add
11750         unictype/bidiclass-longname.
11751
11752 2011-03-26  Bruno Haible  <bruno@clisp.org>
11753
11754         unictype/bidi*: Rename modules.
11755         * modules/unictype/bidiclass-all: Renamed from
11756         modules/unictype/bidicategory-all.
11757         * modules/unictype/bidiclass-name: Renamed from
11758         modules/unictype/bidiclass-name.
11759         (Description): Update.
11760         * modules/unictype/bidiclass-name-tests: Renamed from
11761         modules/unictype/bidicategory-name-tests.
11762         * modules/unictype/bidiclass-byname: Renamed from
11763         modules/unictype/bidicategory-byname.
11764         (Description): Update.
11765         * modules/unictype/bidiclass-byname-tests: Renamed from
11766         modules/unictype/bidicategory-byname-tests.
11767         * modules/unictype/bidiclass-of: Renamed from
11768         modules/unictype/bidicategory-of.
11769         (Description): Update.
11770         * modules/unictype/bidiclass-of-tests: Renamed from
11771         modules/unictype/bidicategory-of-tests.
11772         * modules/unictype/bidiclass-test: Renamed from
11773         modules/unictype/bidicategory-test.
11774         (Description): Update.
11775         * modules/unictype/bidiclass-test-tests: Renamed from
11776         modules/unictype/bidicategory-test-tests.
11777         * modules/unictype/bidicategory-all: New file, a simple redirection.
11778         * modules/unictype/bidicategory-name: Likewise.
11779         * modules/unictype/bidicategory-byname: Likewise.
11780         * modules/unictype/bidicategory-of: Likewise.
11781         * modules/unictype/bidicategory-test: Likewise.
11782         * modules/unictype/property-bidi-* (Dependencies): Update.
11783         * lib/unictype/bidi_*.c: Update comment.
11784
11785 2011-03-26  Bruno Haible  <bruno@clisp.org>
11786
11787         unictype/bidi*: Rename functions, part 2.
11788         * modules/unictype/bidicategory-name (configure.ac): Update required
11789         libunistring version.
11790         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11791
11792 2011-03-25  Bruno Haible  <bruno@clisp.org>
11793
11794         New module 'unictype/combining-class-all'.
11795         * modules/unictype/combining-class-all: New file.
11796
11797         Tests for module 'unictype/combining-class-byname'.
11798         * modules/unictype/combining-class-byname-tests: New file.
11799         * tests/unictype/test-combiningclass_byname.c: New file.
11800
11801         New module 'unictype/combining-class-byname'.
11802         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11803         * lib/unictype/combiningclass_byname.c: New file.
11804         * lib/unictype/combiningclass_byname.gperf: New file.
11805         * modules/unictype/combining-class-byname: New file.
11806
11807         Tests for module 'unictype/combining-class-longname'.
11808         * modules/unictype/combining-class-longname-tests: New file.
11809         * tests/unictype/test-combiningclass_longname.c: New file.
11810
11811         New module 'unictype/combining-class-longname'.
11812         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11813         * lib/unictype/combiningclass_longname.c: New file.
11814         * modules/unictype/combining-class-longname: New file.
11815
11816         Tests for module 'unictype/combining-class-name'.
11817         * modules/unictype/combining-class-name-tests: New file.
11818         * tests/unictype/test-combiningclass_name.c: New file.
11819
11820         New module 'unictype/combining-class-name'.
11821         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11822         * lib/unictype/combiningclass_name.c: New file.
11823         * modules/unictype/combining-class-name: New file.
11824
11825 2011-03-25  Bruno Haible  <bruno@clisp.org>
11826
11827         unictype/combining-class: Rename source files.
11828         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11829         of unictype/combining.h.
11830         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11831         Update.
11832         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11833         * modules/unictype/combining-class (Description): Fix.
11834         (Files, Makefile.am): Update.
11835         * tests/unictype/test-combiningclass.c: Renamed from
11836         tests/unictype/test-combining.c.
11837         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11838
11839 2011-03-25  Bruno Haible  <bruno@clisp.org>
11840
11841         unictype: Update list of canonical combining classes.
11842         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11843
11844 2011-03-25  Bruno Haible  <bruno@clisp.org>
11845
11846         unictype/category-byname: Recognize long names as well.
11847         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11848         a long name.
11849         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11850         unictype/categ_byname.h.
11851         (UC_CATEGORY_INDEX_*): New enumeration values.
11852         (uc_general_category_byname): Use uc_general_category_lookup and
11853         convert from index to value.
11854         * lib/unictype/categ_byname.gperf: New file.
11855         * modules/unictype/category-byname (Files): Add
11856         lib/unictype/categ_byname.gperf.
11857         (Depends-on): Add gperf.
11858         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11859         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11860         long names.
11861
11862         Tests for module 'unictype/category-longname'.
11863         * modules/unictype/category-longname-tests: New file.
11864         * tests/unictype/test-categ_longname.c: New file.
11865
11866         New module 'unictype/category-longname'.
11867         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11868         * lib/unictype/categ_longname.c: New file.
11869         * modules/unictype/category-longname: New file.
11870         * modules/unictype/category-all (Depends-on): Add it.
11871
11872 2011-03-25  Bruno Haible  <bruno@clisp.org>
11873
11874         Tests for module 'unictype/category-LC'.
11875         * modules/unictype/category-LC-tests: New file.
11876         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11877
11878         New module 'unictype/category-LC'.
11879         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11880         (UC_CATEGORY_LC): New declaration.
11881         (UC_CASED_LETTER): New macro.
11882         * lib/gen-uni-tables.c (is_category_LC): New function.
11883         (output_categories): Also handle category LC.
11884         (UC_CATEGORY_MASK_LC): New enumeration value.
11885         (general_category_byname): Also handle category LC.
11886         * lib/unictype/categ_LC.c: New file.
11887         * lib/unictype/categ_LC.h: New file, automatically generated.
11888         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11889         category LC.
11890         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11891         * modules/unictype/category-LC: New file.
11892         * modules/unictype/category-byname (Depends-on): Add
11893         unictype/category-LC.
11894         * modules/unictype/category-all (Depends-on): Likewise.
11895
11896 2011-03-25  Eric Blake  <eblake@redhat.com>
11897
11898         xmalloc: revert yesterday's regression
11899         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11900         realloc's underlying behavior (allowing allocation of zero-size
11901         objects, especially if malloc-gnu is also in use).
11902
11903 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11904
11905         maint.mk: add missing version to VC-tag
11906         * top/maint.mk: git tag was missing actual tag name; add it.
11907
11908         valgrind: do leak checking, and exit with code 1 on error (not 0)
11909         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11910         to VALGRIND.
11911
11912 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11913
11914         posix-modules: say what it does.
11915         * posix-modules: Add a line to the --help output saying what it does.
11916
11917 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11918
11919         xmalloc: Do not leak if underlying realloc is C99 compatible.
11920         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11921         This avoids a leak on C99-based systems.  See
11922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11923
11924 2011-03-24  Eric Blake  <eblake@redhat.com>
11925
11926         realloc: document portability problem
11927         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11928         passing 0 size to realloc.
11929
11930 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11931
11932         doc: update users.txt
11933         * users.txt: Add cvsps, tmpwatch
11934
11935 2011-03-23  Matt Rice  <ratmice@gmail.com>
11936
11937         doc: update users.txt
11938         * users.txt: Add gdb.
11939
11940 2011-03-23  Jim Meyering  <meyering@redhat.com>
11941
11942         doc: update users.txt
11943         Looking through matches up to the following URL (there are still
11944         several more pages), I found several projects that use gnulib:
11945         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11946         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11947         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11948
11949 2011-03-22  Bruno Haible  <bruno@clisp.org>
11950
11951         unictype/bidi*: Rename functions.
11952         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11953         uc_bidi_class, uc_is_bidi_class): New declarations.
11954         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11955         uc_bidi_category_byname.
11956         (uc_bidi_category_byname): New function.
11957         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11958         u_bidi_category_name.
11959         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11960         (uc_bidi_category_name): New function.
11961         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11962         uc_bidi_category.
11963         (uc_bidi_category): New function.
11964         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11965         uc_is_bidi_category. Invoke uc_bidi_class.
11966         (uc_is_bidi_category): New function.
11967         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11968         instead of uc_bidi_category_byname.
11969         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11970         instead of uc_bidi_category_name.
11971         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11972         uc_bidi_category.
11973         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11974         instead of uc_is_bidi_category.
11975
11976 2011-03-21  Bruno Haible  <bruno@clisp.org>
11977
11978         New module 'unictype/joininggroup-all'.
11979         * modules/unictype/joininggroup-all: New file.
11980
11981         Tests for module 'unictype/joininggroup-of'.
11982         * modules/unictype/joininggroup-of-tests: New file.
11983         * tests/unictype/test-joininggroup_of.c: New file.
11984         * tests/unictype/test-joininggroup_of.h: New file, automatically
11985         generated by gen-uni-tables.
11986
11987         New module 'unictype/joininggroup-of'.
11988         * modules/unictype/joininggroup-of: New file.
11989         * lib/unictype/joininggroup_of.c: New file.
11990         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11991         gen-uni-tables.
11992
11993         Tests for module 'unictype/joininggroup-byname'.
11994         * modules/unictype/joininggroup-byname-tests: New file.
11995         * tests/unictype/test-joininggroup_byname.c: New file.
11996
11997         New module 'unictype/joininggroup-byname'.
11998         * modules/unictype/joininggroup-byname: New file.
11999         * lib/unictype/joininggroup_byname.c: New file.
12000         * lib/unictype/joininggroup_byname.gperf: New file.
12001
12002         Tests for module 'unictype/joininggroup-name'.
12003         * modules/unictype/joininggroup-name-tests: New file.
12004         * tests/unictype/test-joininggroup_name.c: New file.
12005
12006         New module 'unictype/joininggroup-name'.
12007         * modules/unictype/joininggroup-name: New file.
12008         * lib/unictype/joininggroup_name.c: New file.
12009         * lib/unictype/joininggroup_name.h: New file.
12010
12011         New module 'unictype/joiningtype-all'.
12012         * modules/unictype/joiningtype-all: New file.
12013
12014         Tests for module 'unictype/joiningtype-of'.
12015         * modules/unictype/joiningtype-of-tests: New file.
12016         * tests/unictype/test-joiningtype_of.c: New file.
12017         * tests/unictype/test-joiningtype_of.h: New file, automatically
12018         generated by gen-uni-tables.
12019
12020         New module 'unictype/joiningtype-of'.
12021         * modules/unictype/joiningtype-of: New file.
12022         * lib/unictype/joiningtype_of.c: New file.
12023         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12024         gen-uni-tables.
12025
12026         Tests for module 'unictype/joiningtype-byname'.
12027         * modules/unictype/joiningtype-byname-tests: New file.
12028         * tests/unictype/test-joiningtype_byname.c: New file.
12029
12030         New module 'unictype/joiningtype-byname'.
12031         * modules/unictype/joiningtype-byname: New file.
12032         * lib/unictype/joiningtype_byname.c: New file.
12033
12034         Tests for module 'unictype/joiningtype-name'.
12035         * modules/unictype/joiningtype-name-tests: New file.
12036         * tests/unictype/test-joiningtype_name.c: New file.
12037
12038         New module 'unictype/joiningtype-name'.
12039         * modules/unictype/joiningtype-name: New file.
12040         * lib/unictype/joiningtype_name.c: New file.
12041
12042         unictype: Add support for Arabic shaping properties.
12043         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12044         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12045         declarations.
12046         (UC_JOINING_GROUP_*): New enumeration values.
12047         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12048         declarations.
12049         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12050         (unicode_joining_type): New variable.
12051         (UC_JOINING_GROUP_*): New enumeration values.
12052         (unicode_joining_group): New variable.
12053         (fill_arabicshaping, joining_type_as_c_identifier,
12054         output_joining_type_test, output_joining_type,
12055         joining_group_as_c_identifier, output_joining_group_test,
12056         output_joining_group): New functions.
12057         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12058         fill_arabicshaping and output_joining_type_test, output_joining_type,
12059         output_joining_group_test, output_joining_group.
12060         Reported by Simon Josefsson.
12061
12062 2011-03-21  Jim Meyering  <meyering@redhat.com>
12063
12064         strftime: fix a bug in yesterday's change
12065         * lib/strftime.c (add): Accommodate width's initial value of -1.
12066         Otherwise, nstrftime would copy uninitialized data into
12067         the result buffer.
12068
12069 2011-03-21  Jim Meyering  <meyering@redhat.com>
12070
12071         tests: add strftime-tests module
12072         * tests/test-strftime.c: New file.
12073         * modules/strftime-tests: New module.
12074
12075 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12076
12077         strftime: don't assume a byte count fits in 'int'
12078         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12079         found this problem by static analysis, using gcc -Wstrict-overflow
12080         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12081         on an integer overflow having undefined behavior, but it turns out
12082         that the argument is a size, which might not fit in 'int' anyway,
12083
12084 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12085
12086         stdio: don't require ignore_value around fwrite
12087
12088         This patch works around libc bug 11959
12089         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12090         Without this patch, applications must often write
12091         ignore_value (fwrite (...)) even though the ignore_value is
12092         not helpful here.  It's common to write many objects, using
12093         fwrite/printf/etc., and then use ferror to detect output error.
12094
12095         I considered making this patch optional, but decided against it,
12096         because libc is obviously being inconsistent here: there is no
12097         reason libc should insist that user code must inspect fwrite
12098         return's value without also insisting that it inspect printf's,
12099         putchar's, etc.  If user code wants to have a strict style where
12100         all these functions' values are checked (so that ferror need not
12101         be checked), we could add support for that style in a new gnulib
12102         module, but in the meantime it's better to be consistent and to
12103         support common usage.
12104
12105         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12106         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12107         that we are compiling in checking mode, and if not C++, and
12108         if not already wrapping fwrite for some other reason.
12109         (fwrite): #define to rpl_fwrite if the latter is defined.
12110
12111 2011-03-20  Bruno Haible  <bruno@clisp.org>
12112
12113         verror: Fix compilation error introduced on 2011-02-13.
12114         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12115         instead of __attribute__.
12116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12117
12118 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12119             Bruno Haible  <bruno@clisp.org>
12120
12121         socklen: do not depend on sys_socket
12122         While trying to modify Emacs to use gnulib's socklen module,
12123         I discovered a circular dependency: socklen depends on sys_socket
12124         and vice versa.  Emacs can use socklen, but it does not need
12125         sys_socket because it has its own substitute for sys/socket.h.
12126         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12127         gl_TYPE_SOCKLEN_T.
12128         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12129         gl_PREREQ_SYS_H_SOCKET.
12130         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12131         gl_PREREQ_SYS_H_SOCKET.
12132         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12133         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12134         * modules/socklen (Depends-on): Do not depend on sys_socket.
12135         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12136
12137 2011-03-20  Jim Meyering  <meyering@redhat.com>
12138
12139         maint.mk: sort file names *after* new transformation
12140         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12141         prefix would have led to an unwarranted failure in GNU parted.
12142         Sort after that transformation.
12143
12144 2011-03-19  Jim Meyering  <meyering@redhat.com>
12145
12146         maint.mk: fix po-file syntax-check rule
12147         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12148         Patch by Bruno Haible.
12149
12150 2011-03-19  Bruno Haible  <bruno@clisp.org>
12151
12152         socklen: Update comment.
12153         * m4/socklen.m4: Update comment about platforms.
12154
12155 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12156             Bruno Haible  <bruno@clisp.org>
12157
12158         inet_ntop, inet_pton: Simplify.
12159         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12160         documented to provide socklen_t and we already depend on sys_socket.
12161         * modules/inet_pton (Depends-on): Likewise.
12162         * lib/arpa_inet.in.h: Adjust comment.
12163
12164 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12165             Bruno Haible  <bruno@clisp.org>
12166
12167         netdb: Simplify.
12168         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12169         documented to provide socklen_t and we already depend on sys_socket.
12170         * lib/netdb.in.h: Adjust comment.
12171
12172 2011-03-19  Bruno Haible  <bruno@clisp.org>
12173
12174         sys_socket, netdb: Document problem with socklen_t.
12175         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12176         platforms.
12177         * doc/posix-headers/netdb.texi: Likewise.
12178
12179 2011-03-18  Eric Blake  <eblake@redhat.com>
12180
12181         maint.mk: let po check work in VPATH build
12182         * top/maint.mk (po_file): Allow cfg.mk override.
12183         (sc_po_check): Allow VPATH use.
12184         Reported by Jiri Denemark.
12185
12186 2011-03-16  Jim Meyering  <meyering@redhat.com>
12187
12188         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12189         Before, you would have had to create one .x-sc_ file per rule in order
12190         to exempt offending files.  Now, you may instead use a Make variable --
12191         usually defined in cfg.mk -- whose name identifies the affected rule.
12192         * top/maint.mk (_sc_excl): Define.
12193         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12194         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12195
12196 2011-03-13  Bruno Haible  <bruno@clisp.org>
12197
12198         ignore-value tests: Avoid warnings.
12199         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12200         empty for gcc < 3.4.
12201
12202 2011-03-13  Bruno Haible  <bruno@clisp.org>
12203
12204         passfd: Fix link error on Solaris.
12205         * modules/passfd (Description): Correct.
12206         (Depends-on): Add socketlib.
12207         (Link): New section.
12208         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12209
12210 2011-03-13  Bruno Haible  <bruno@clisp.org>
12211
12212         passfd: Fix link error on AIX 5.2.
12213         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12214
12215 2011-03-13  Bruno Haible  <bruno@clisp.org>
12216
12217         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12218         * lib/sys_socket.in.h: Include <stddef.h>.
12219         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12220         CMSG_FIRSTHDR. Remove unused variable.
12221
12222 2011-03-13  Bruno Haible  <bruno@clisp.org>
12223
12224         passfd: Fix compilation error on OpenBSD.
12225         * lib/passfd.c: Include <sys/uio.h>.
12226
12227 2011-03-13  Bruno Haible  <bruno@clisp.org>
12228
12229         passfd test: Fix warnings.
12230         * tests/test-passfd.c: Include <sys/wait.h>.
12231         (main): Fix typo.
12232
12233 2011-03-13  Bruno Haible  <bruno@clisp.org>
12234
12235         passfd module, part 4, tweaks.
12236         * tests/test-passfd.c: Reorder includes.
12237         (main): Fix perror and printf calls.
12238
12239 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12240
12241         passfd module, part 4.
12242         * modules/passfd-tests: New file.
12243         * tests/test-passfd.c: New file.
12244
12245 2011-03-13  Jim Meyering  <meyering@redhat.com>
12246
12247         Makefile: rely on GNU make; derive syntax-check rule names
12248         Rather than requiring that each sc_ rule be listed as a dependent
12249         of "check", use features of GNU make to derive the list.
12250         * Makefile (syntax-check-rules): Define.
12251         (check): Depend on the new variable, not the hard-coded list.
12252
12253 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12254             Bruno Haible  <bruno@clisp.org>
12255
12256         passfd module, part 3.
12257         * lib/passfd.h (recvfd): Add a flags argument.
12258         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12259         (recvfd): Add a flags argument.
12260         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12261         exists.
12262         * modules/passfd (Depends-on): Add cloexec.
12263         Suggested by Eric Blake.
12264
12265 2011-03-13  Bruno Haible  <bruno@clisp.org>
12266
12267         passfd module, part 2, tweaks.
12268         * modules/passfd (Files): Reorder.
12269         (Depends-on): Remove errno.
12270         (Include): Remove <sys/socket.h>, <sys/un.h>.
12271         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12272         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12273         specification header. Include <sys/socket.h> always. Don't include
12274         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12275         (sendfd): Clarify that it sets errno when it fails.
12276         (recvfd): Fix specification.
12277
12278 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12279
12280         passfd module, part 2.
12281         * modules/passfd: New file.
12282         * lib/passfd.h: New file.
12283         * lib/passfd.c: New file.
12284
12285 2011-03-12  Bruno Haible  <bruno@clisp.org>
12286
12287         wcswidth, mbswidth: Avoid integer overflow.
12288         * lib/wcswidth.c: Include <limits.h>.
12289         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12290         * lib/mbswidth.c: Include <limits.h>.
12291         (mbsnwidth): Avoid 'int' overflow.
12292         Reported by Jim Meyering.
12293
12294 2011-03-12  Bruno Haible  <bruno@clisp.org>
12295
12296         futimens, utimensat: Avoid endless recursion on Solaris 10.
12297         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12298         Solaris.
12299         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12300         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12301
12302 2011-03-11  Jim Meyering  <meyering@redhat.com>
12303
12304         maint.mk: relax a regexp to accommodate other formatting styles
12305         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12306         between "ngettext" and the following "(".
12307
12308 2011-03-11  Pádraig Brady <P@draigBrady.com>
12309
12310         maint.mk: suppress a false positive warning
12311         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12312         diagnostics are marked with ngettext.
12313
12314 2011-03-10  Eric Blake  <eblake@redhat.com>
12315
12316         wchar: add explicit dependencies, for Tru64
12317         * modules/mbmemcasecoll (Depends-on): Add wchar.
12318         * modules/mbtowc (Depends-on): Likewise.
12319         * modules/vasnprintf (Depends-on): Likewise.
12320         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12321         * modules/wctomb (Depends-on): Likewise.
12322         Reported by Peter O'Gorman.
12323
12324 2011-03-08  Bruno Haible  <bruno@clisp.org>
12325
12326         passfd module, part 1, tweaks.
12327         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12328         Improve indentation. Improve AC_MSG_CHECKING messages.
12329         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12330         gl_SOCKET_FAMILIES.
12331
12332 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12333
12334         passfd module, part 1.
12335         * m4/afunix.m4: New file.
12336         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12337         sockets.
12338
12339 2011-03-08  Bruno Haible  <bruno@clisp.org>
12340
12341         regex-quote: New API.
12342         * lib/regex-quote.h: Include <stdbool.h>.
12343         (struct regex_quote_spec): New type.
12344         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12345         New declarations.
12346         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12347         'const struct regex_quote_spec *' argument.
12348         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12349         (pcre_special): New constant.
12350         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12351         New functions.
12352         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12353         'const struct regex_quote_spec *' argument.
12354         * modules/regex-quote (Depends-on): Add stdbool.
12355         * tests/test-regex-quote.c (check): Update for new API. Add test for
12356         anchored results.
12357         * NEWS: Mention the API change.
12358         Reported by Reuben Thomas and Eric Blake.
12359
12360 2011-03-06  Bruno Haible  <bruno@clisp.org>
12361
12362         regex-quote: Fix creation of POSIX extended regular expressions.
12363         * lib/regex-quote.c (ere_special): Add grouping and alternation
12364         operators.
12365
12366 2011-03-05  Bruno Haible  <bruno@clisp.org>
12367
12368         doc: Improve doc regarding autopoint vs. gnulib.
12369         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12370         disable autopoint while running autoreconf.
12371         Suggested by Ralf Wildenhues.
12372
12373 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12374
12375         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12376         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12377
12378 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12379
12380         parse-duration: remove xalloc.h dependency
12381         * lib/parse-duration.c (parse_period): handle NULL return from
12382         strdup instead of calling xstrdup().
12383         * modules/parse-duration: remove "xalloc" dependency
12384
12385 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12386
12387         bootstrap: honor m4_base when running aclocal
12388         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12389
12390 2011-03-02  Jim Meyering  <meyering@redhat.com>
12391
12392         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12393         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12394         on request from Matt Booth.
12395
12396 2011-03-01  Eric Blake  <eblake@redhat.com>
12397
12398         test-link: work on Hurd
12399         * tests/test-link.h (test_link): Hurd rejects linking directories
12400         with EISDIR instead of the POSIX-mandated EPERM.
12401
12402 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12403
12404         stdio: simplify by moving files to printf-posix, sigpipe
12405         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12406         since this symbol is needed only if printf is replaced.
12407         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12408         Require gl_ASM_SYMBOL_PREFIX.
12409         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12410         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12411         (Depends-on): Add 'raise'.
12412         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12413         * modules/stdio (Files): Remove lib/stdio-write.c,
12414         m4/asm-underscore.m4.
12415         (Depends-on): Remove 'raise'.
12416
12417         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12418         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12419         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12420         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12421
12422 2011-02-28  Bruno Haible  <bruno@clisp.org>
12423
12424         localcharset: Assume ANSI C behaviour of free().
12425         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12426         calling free().
12427         Suggested by Simon Josefsson <simon@josefsson.org>.
12428
12429 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12430             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12431             Bruno Haible  <bruno@clisp.org>  (tiny change)
12432
12433         On Cygwin, use /proc file system instead of win32 API.
12434         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12435         Win32 file names.
12436         (DllMain): Simplify by removing Cygwin specific code.
12437         (find_shared_library_fullname): Use Linux specific implementation also
12438         for Cygwin.
12439         (get_shared_library_fullname): Update accordingly.
12440         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12441         Win32 file names.
12442         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12443         Cygwin specific code.
12444
12445 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12446             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12447
12448         Fix OpenMP flag detection for various Fortran compilers.
12449         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12450         OpenMP-conditional compilation construct, to force compile
12451         failure with missing OpenMP flag.
12452         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12453
12454 2011-02-25  Eric Blake  <eblake@redhat.com>
12455
12456         strstr: expand test coverage
12457         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12458         compilation.
12459         * tests/test-memmem.c (main): Duplicate tests.
12460         * tests/test-strcasestr.c (main): Likewise.
12461         * tests/test-c-strcasestr.c (main): Likewise.
12462
12463 2011-02-25  Jim Meyering  <meyering@redhat.com>
12464
12465         maint.mk: detect missing-NL-at-EOF, too
12466         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12467         it also detects when a file lacks a newline at EOF.
12468         (require_exactly_one_NL_at_EOF_): Renamed from
12469         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12470         since people may well have .x-sc_... file names tied to the
12471         existing name.  Suggested by Eric Blake.
12472
12473 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12474
12475         dirname: move m4/dos.m4 functionality into lib/dosname.h
12476
12477         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12478         extracts symbols from it, puts them into config.h; but it's much
12479         easier to use the symbols directly.  filename.h already does this,
12480         but it disagrees with dos.m4 in some respects.  This patch
12481         introduces a different include file dosname.h that packages up
12482         dos.m4, and then later we can work on merging filename.h and
12483         dosname.h.  Applications that need only the easy-to-configure
12484         symbols should consider including dosname.h rather than dirname.h.
12485         * NEWS: Mention incompatible changes.
12486         * m4/dos.m4: Remove.
12487         * lib/dosname.h, modules/dosname: New files.
12488         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12489         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12490         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12491         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12492         Include dosname.h, not dirname.h.
12493         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12494         Include dosname.h, for definitions of symbols like ISSLASH
12495         that used to be in config.h.
12496         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12498         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12499         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12500         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12501         * modules/rmdir (Files): Likewise.
12502         * modules/stat (Files): Likewise.
12503         * modules/unlink (Files): Likewise.
12504         * modules/dirname-lgpl (Depends-on): Add dosname.
12505         * modules/lstat (Depends-on): Likewise.
12506         * modules/openat (Depends-on): Likewise.
12507         * modules/rmdir (Depends-on): Likewise.
12508         * modules/savewd (Depends-on): Likewise.
12509         * modules/stat (Depends-on): Likewise.
12510         * modules/unlink (Depends-on): Likewise.
12511         * modules/openat (Depends-on): Remove dirname-lgpl.
12512         * modules/savewd (Depends-on): Likewise.
12513         * tests/test-dirname.c: Do not use removed symbols like
12514         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12515         the remaining symbols, e.g., ISSLASH ('\\').
12516
12517 2011-02-25  Eric Blake  <eblake@redhat.com>
12518
12519         strstr: revert patches that introduced bug and pessimization
12520         * lib/str-two-way.h: Add another reference.
12521         (two_way_short_needle, two_way_long_needle): Revert changes from
12522         2011-02-24; they pessimize search speed.
12523         (critical_factorization): Partially revert changes from
12524         2010-06-22; they violate the requirement that the left half of the
12525         needle be smaller than the period of the needle.
12526
12527 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12528
12529         filenamecat: remove unnecessary dependency on dirname-lgpl
12530         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12531         is no direct dependency, just an indirect one via filenamecat-lgpl.
12532
12533         remove: remove unnecessary use of m4/dos.m4
12534         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12535         * modules/remove (FILES): Remove m4/dos.m4.
12536
12537         * lib/openat-proc.c: Don't include dirname.h; not needed.
12538
12539         backupfile: remove unnecessary use of m4/dos.m4
12540         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12541         of its symbols are used by the backupfile code.  backupfile.c does
12542         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12543         for the rare case of programs that want all their backup file
12544         names to live within 8+3 limits, and dos.m4 doesn't address that.
12545         * modules/backupfile (Files): Remove m4/dos.m4.
12546
12547 2011-02-24  Jim Meyering  <meyering@redhat.com>
12548
12549         strstr: fix a bug whereby strstr would mistakenly return NULL
12550         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12551         in period calculation.
12552         (two_way_long_needle): Likewise.
12553         The original problem was reported by Mike Stump in
12554         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12555         Ralf Wildenhues provided the short needle and haystack.
12556         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12557         Add a more involved test to trigger the bug in two_way_long_needle.
12558
12559 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12560
12561         gnulib-tool: remove use of bold display in help screen
12562         * gnulib-tool (func_usage): Do not use bold display anymore in the
12563         help screen.  That was just meant to be a temporary emphasis for a
12564         backward-incompatible change.
12565
12566 2011-02-23  Bruno Haible  <bruno@clisp.org>
12567
12568         Fix misindentation of preprocessor directives.
12569         * lib/argp-namefrob.h: Reindent preprocessor directives.
12570         * lib/getopt_int.h (struct _getopt_data): Likewise.
12571         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12572         * lib/vasnprintf.c (decode_long_double): Likewise.
12573         * tests/test-argmatch.c: Insert blank lines, for clarity.
12574         * tests/test-exclude.c: Likewise.
12575
12576 2011-02-22  Bruno Haible  <bruno@clisp.org>
12577
12578         ioctl: Fix for MacOS X in 64-bit mode.
12579         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12580         value.
12581         Suggested by Eric Blake.
12582         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12583
12584 2011-02-22  Jim Meyering  <meyering@redhat.com>
12585
12586         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12587         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12588         in lib/.
12589
12590 2011-02-22  Eric Blake  <eblake@redhat.com>
12591
12592         maint: avoid any CDPATH issue
12593         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12594
12595         maint: adjust cpp indentation for my modules, as well
12596         * Makefile (sc_cpp_indent_check): Add my name.
12597         * lib/fbufmode.c: Filter through cppi.
12598         * lib/fpurge.c: Likewise.
12599         * lib/freadable.c: Likewise.
12600         * lib/freading.c: Likewise.
12601         * lib/fwritable.c: Likewise.
12602         * lib/fwriting.c: Likewise.
12603         * lib/sigaction.c: Likewise.
12604
12605 2011-02-22  Jim Meyering  <meyering@redhat.com>
12606
12607         maint: adjust cpp indentation to reflect nesting depth
12608         I.e., in a block of code that begins with an unnested "#if",
12609         put one space between the "#" in column 1 and following token.
12610         For example,
12611         -#include <sys/vfs.h>
12612         +# include <sys/vfs.h>
12613         Do this only in .c files that are part of a module I maintain.
12614         * lib/linkat.c: Filter through cppi.
12615         * lib/nanosleep.c: Likewise.
12616         * lib/openat.c: Likewise.
12617         * lib/openat-die.c: Likewise.
12618         * lib/dup3.c: Likewise.
12619         * lib/fchownat.c: Likewise.
12620         * lib/flock.c: Likewise.
12621         * lib/fsync.c: Likewise.
12622         * lib/fts.c: Likewise.
12623         * lib/getpass.c: Likewise.
12624         * lib/gettimeofday.c: Likewise.
12625         * lib/userspec.c: Likewise.
12626         * Makefile (sc_cpp_indent_check): New rule, to check this.
12627
12628 2011-02-22  Bruno Haible  <bruno@clisp.org>
12629
12630         New module 'wctomb'.
12631         * lib/stdlib.in.h (wctomb): New declaration.
12632         * lib/wctomb.c: New file.
12633         * lib/wctomb-impl.h: New file.
12634         * m4/wctomb.m4: New file.
12635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12636         REPLACE_WCTOMB.
12637         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12638         REPLACE_WCTOMB.
12639         * modules/wctomb: New file.
12640         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12641         * doc/posix-functions/wctomb.texi: Mention the new module.
12642         * modules/wctob (Depends-on): Add wctomb.
12643
12644 2011-02-22  Bruno Haible  <bruno@clisp.org>
12645
12646         New module 'mbtowc'.
12647         * lib/stdlib.in.h (mbtowc): New declaration.
12648         * lib/mbtowc.c: New file.
12649         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12650         * m4/mbtowc.m4: New file.
12651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12652         REPLACE_MBTOWC.
12653         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12654         REPLACE_MBTOWC.
12655         * modules/mbtowc: New file.
12656         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12657         * doc/posix-functions/mbtowc.texi: Mention the new module.
12658         * modules/btowc (Depends-on): Add mbtowc.
12659
12660 2011-02-22  Bruno Haible  <bruno@clisp.org>
12661
12662         wcrtomb: Add more tests for native Windows platforms.
12663         * tests/test-wcrtomb-w32-1.sh: New file.
12664         * tests/test-wcrtomb-w32-2.sh: New file.
12665         * tests/test-wcrtomb-w32-3.sh: New file.
12666         * tests/test-wcrtomb-w32-4.sh: New file.
12667         * tests/test-wcrtomb-w32-5.sh: New file.
12668         * tests/test-wcrtomb-w32.c: New file.
12669         * modules/wcrtomb-tests (Files): Add them.
12670         (Makefile.am): Arrange to run these tests.
12671         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12672         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12673
12674 2011-02-20  Bruno Haible  <bruno@clisp.org>
12675
12676         wcrtomb: Enhance test.
12677         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12678
12679 2011-02-20  Bruno Haible  <bruno@clisp.org>
12680
12681         mbrtowc: Tiny optimization.
12682         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12683
12684 2011-02-20  Jim Meyering  <meyering@redhat.com>
12685
12686         test-exclude.c: remove unmatched #endif
12687         * tests/test-exclude.c: Remove stray #endif, left over from
12688         the change of a week ago.
12689
12690 2011-02-19  Jim Meyering  <meyering@redhat.com>
12691
12692         git-version-gen: skip "-dirty" check when appropriate
12693         * build-aux/git-version-gen: Don't run any git commands when the
12694         version string comes from .tarball-version.  Prior to this, we
12695         would run git update-index --refresh even from a just-unpacked
12696         tarball directory, and that could affect a .git/ directory in a
12697         parent of the build directory.  Reported by Mike Frysinger.
12698
12699 2011-02-19  Bruno Haible  <bruno@clisp.org>
12700
12701         unictype/property-byname: Reduce the size of the 'data' segment.
12702         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12703
12704 2011-02-19  Bruno Haible  <bruno@clisp.org>
12705
12706         unictype/scripts: Reduce the size of the 'data' segment.
12707         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12708         '%pic'.
12709         * lib/unictype/scripts_byname.gperf: Regenerated.
12710
12711 2011-02-19  Bruno Haible  <bruno@clisp.org>
12712
12713         stdint: Update documentation.
12714         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12715
12716 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12717
12718         stdint: omit redundant check for wchar.h
12719         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12720         always tests whether wchar.h exists, so remove the now-redundant test.
12721
12722 2011-02-18  Bruno Haible  <bruno@clisp.org>
12723
12724         stdint: Cut dependency to module 'wchar'.
12725         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12726         include the necessary prerequisites.
12727         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12728         * modules/stdint (Depends-on): Remove wchar.
12729         (Makefile.am): Substitute HAVE_WCHAR_H.
12730         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12731
12732 2011-02-18  Eric Blake  <eblake@redhat.com>
12733
12734         longlong: skip, rather than fail, on cross-compilation
12735         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12736         when cross-compiling; regression from 2011-02-16.
12737
12738 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12739
12740         * NEWS: Mention 2011-02-08 change to stdlib.
12741
12742 2011-02-17  Bruno Haible  <bruno@clisp.org>
12743
12744         getloadavg: Add comments about platforms.
12745         * m4/getloadavg.m4: Add comment.
12746         * lib/getloadavg.c: Likewise.
12747
12748 2011-02-17  Bruno Haible  <bruno@clisp.org>
12749
12750         getloadavg: Fix link error on Solaris 2.6.
12751         * modules/getloadavg (Link): New section.
12752         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12753         linking test-getloadavg.
12754         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12755         getloadavg.
12756
12757 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12758
12759         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12760         It was 'int', but this doesn't match the IRIX 6.5 manual.
12761         Suggested by Bruno Haible in
12762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12763
12764 2011-02-17  Bruno Haible  <bruno@clisp.org>
12765
12766         havelib: Fix comments.
12767         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12768         change.
12769
12770 2011-02-17  Bruno Haible  <bruno@clisp.org>
12771
12772         havelib: Update config.rpath.
12773         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12774
12775 2011-02-17  Bruno Haible  <bruno@clisp.org>
12776
12777         getloadavg test: Add some plausibility checks.
12778         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12779         is improbable.
12780
12781 2011-02-16  Eric Blake  <eblake@redhat.com>
12782
12783         maintainer-makefile: make syntax-check a no-op from tarballs
12784         * top/maint.mk (no-vc-detected): New rule.
12785         (local-checks-available): Use it to avoid hanging if someone tries
12786         'make syntax-check' from a tarball.  Also append to any non-syntax
12787         checks already defined in cfg.mk.
12788
12789 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12790
12791         longlong: tune, particularly for common case of c99
12792
12793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12794         or running anything if c99, or if unsigned long long int does not
12795         work.  In either case, we know the answer without further tests.
12796         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12797         it at most once, and use its results for both long long int and
12798         unsigned long long int.  This is more likely to be efficient in
12799         the common case where the program wants to check for both long
12800         long int and unsigned long long int.
12801         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12802         since the answer is already known.
12803
12804 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12805
12806         getloadavg: set errno
12807         * lib/getloadavg.c: Set errno when returning -1.  If no other
12808         error number looks appropriate, set it to ENOSYS if the getloadavg
12809         looks like it can't possibly ever work, ENOTSUP otherwise.
12810         Suggested by Bruno Haible in
12811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12812
12813         getloadavg: trim unused parts and speed up 'configure'
12814         * NEWS: Document this.
12815         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12816         always compiled if getloadavg is absent.
12817         Move test code to ...
12818         * tests/test-getloadavg.c: New file, containing previous
12819         contents of test from lib/getloadavg.c.  It also contains
12820         suggestions by Bruno Haible in
12821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12822         * modules/getloadavg-tests: New file.
12823         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12824         Do tests in the same order as they're needed for getloadavg.c.
12825         Omit setgid-related tests that generate symbols KMEM_GROUP,
12826         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12827         Do only the tests that are needed to see whether the system has
12828         getloadavg, moving the other tests into ...
12829         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12830         NLIST_NAME_UNION; nobody should be using it.  Do not define
12831         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12832         relevant, as the user of this module shouldn't care how getloadavg
12833         is implemented.
12834
12835         getloadavg: omit unused var
12836         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12837
12838 2011-02-15  Jim Meyering  <meyering@redhat.com>
12839
12840         doc: update users.txt
12841         * users.txt: Update iwhd's URL.
12842
12843 2011-02-13  Bruno Haible  <bruno@clisp.org>
12844
12845         Consistent macro naming for macros that use GCC __attribute__.
12846         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12847         _ATTRIBUTE_NONNULL_.
12848         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12849         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12850         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12851         ATTRIBUTE_DEPRECATED.
12852         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12853         ATTRIBUTE_NORETURN.
12854         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12855         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12856         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12857         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12858         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12859         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12860         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12861         ATTRIBUTE_SENTINEL.
12862         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12863         ATTRIBUTE_RETURN_CHECK.
12864         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12865         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12866         ATTRIBUTE_NORETURN.
12867         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12868         Reported by Paul Eggert.
12869
12870 2011-02-13  Bruno Haible  <bruno@clisp.org>
12871
12872         Don't interfere with a program's definition of __attribute__.
12873         * lib/argp.h (__attribute__): Remove definition.
12874         (_GL_ATTRIBUTE_FORMAT): New macro.
12875         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12876         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12877         (_GL_ATTRIBUTE_FORMAT): New macro.
12878         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12879         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12880         GCC 3 or newer.
12881         * lib/error.h (__attribute__): Remove definition.
12882         (_GL_ATTRIBUTE_FORMAT): New macro.
12883         (error, error_at_line): Use it.
12884         * lib/hash.h (__attribute__): Remove definition.
12885         (ATTRIBUTE_WUR): Update definition. Define always.
12886         * lib/openat.h (__attribute__): Remove definition.
12887         (ATTRIBUTE_NORETURN): Update definition. Define always.
12888         * lib/sigpipe-die.h (__attribute__): Remove definition.
12889         (ATTRIBUTE_NORETURN): Update definition. Define always.
12890         * lib/vasnprintf.h (__attribute__): Remove definition.
12891         (_GL_ATTRIBUTE_FORMAT): New macro.
12892         (asnprintf, vasnprintf): Use it.
12893         * lib/xalloc.h (__attribute__): Remove definition.
12894         (ATTRIBUTE_NORETURN): Update definition. Define always.
12895         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12896         * lib/xmemdup0.h (__attribute__): Remove definition.
12897         (ATTRIBUTE_NORETURN): Update definition. Define always.
12898         * lib/xprintf.h (__attribute__): Remove definition.
12899         (_GL_ATTRIBUTE_FORMAT): New macro.
12900         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12901         * lib/xstrtol.h (__attribute__): Remove definition.
12902         (ATTRIBUTE_NORETURN): Update definition. Define always.
12903         * lib/xvasprintf.h (__attribute__): Remove definition.
12904         (_GL_ATTRIBUTE_FORMAT): New macro.
12905         (xasprintf, xvasprintf): Use it.
12906         * tests/test-argmatch.c (__attribute__): Remove definition.
12907         (ATTRIBUTE_NORETURN): Update definition. Define always.
12908         * tests/test-exclude.c (__attribute__): Remove definition.
12909         (ATTRIBUTE_NORETURN): Update definition. Define always.
12910         Reported by Paul Eggert.
12911
12912 2011-02-13  Bruno Haible  <bruno@clisp.org>
12913
12914         mbrtowc: Add more tests for native Windows platforms.
12915         * tests/test-mbrtowc-w32-1.sh: New file.
12916         * tests/test-mbrtowc-w32-2.sh: New file.
12917         * tests/test-mbrtowc-w32-3.sh: New file.
12918         * tests/test-mbrtowc-w32-4.sh: New file.
12919         * tests/test-mbrtowc-w32-5.sh: New file.
12920         * tests/test-mbrtowc-w32.c: New file.
12921         * modules/mbrtowc-tests (Files): Add them.
12922         (Makefile.am): Arrange to run these tests.
12923         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12924         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12925
12926 2011-02-13  Bruno Haible  <bruno@clisp.org>
12927
12928         mbrtowc: Work around native Windows bug.
12929         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12930         guess when no suitable locale for testing was found.
12931         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12932
12933 2011-02-13  Bruno Haible  <bruno@clisp.org>
12934
12935         mbsinit: Work around mingw bug.
12936         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12937         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12938         Windows.
12939         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12940
12941 2011-02-13  Bruno Haible  <bruno@clisp.org>
12942
12943         mbsinit: Don't crash for a NULL argument.
12944         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12945         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12946
12947 2011-02-13  Bruno Haible  <bruno@clisp.org>
12948
12949         Don't interfere with a program's definition of __attribute__.
12950         * lib/stdio.in.h (__attribute__): Remove definition.
12951         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12952         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12953         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12954         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12955         * lib/string.in.h (__attribute__): Remove definition.
12956         Reported by Paul Eggert.
12957
12958 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12959
12960         stdlib: don't get in the way of non-GCC __attribute__
12961         See thread starting at
12962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12963         Revert previous stdlib change, installing the following instead:
12964         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12965         to get in the way of a non-GCC compiler that supports __attribute__.
12966         (_GL_ATTRIBUTE_RETURN): New macro.
12967         (_Exit): Use it instead of __attribute__.
12968
12969 2011-02-12  Bruno Haible  <bruno@clisp.org>
12970
12971         quotearg test: Avoid test failure on mingw.
12972         * tests/test-quotearg.sh: Convert the locale identifier from native
12973         Windows syntax to Unix syntax.
12974
12975 2011-02-12  Bruno Haible  <bruno@clisp.org>
12976
12977         setlocale: Prefer gnulib's override over libintl's override.
12978         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12979         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12980         GNULIB_defined_setlocale is set.
12981
12982 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12983
12984         stdlib: support non-GCC __attribute__
12985
12986         Fix a serious and tricky problem encountered when attempting to
12987         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12988         5.5, but it crashed due to memory corruption on Solaris 10 with
12989         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12990         bits that are otherwise zero.  This tagging is optional inside
12991         Emacs but is preferred and is used when __attribute__ ((__aligned
12992         (8))) works, as it does with both recent-enough GCC and with Sun C
12993         5.11.  However, Sun C 5.11 is not GCC and does not #define
12994         __GNUC__ and __GNUC_MINOR__.
12995
12996         When I added the getloadavg module to Emacs, it brought in
12997         stdlib.in.h, which contained this fragment:
12998
12999            #ifndef __attribute__
13000            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13001            #  define __attribute__(Spec)   /* empty */
13002            # endif
13003            #endif
13004
13005         When files that include <stdlib.h> were compiled with Sun C 5.11,
13006         the above code disabled __attribute__ ((__aligned (8))), which
13007         caused variables to not be properly aligned, which eventually led
13008         to the pointer corruption mentioned above.  (This was a bit hard
13009         to diagnose, unfortunately.)
13010
13011         Several "#define __attribute__(X) /* empty */" code snippets need
13012         to be eradicated from Gnulib to work with non-GCC compilers that
13013         support __attribute__.  The Autoconf way to do this is to test for
13014         each kind of attribute that we want support for, and selectively
13015         enable that in source code.
13016
13017         Fix this problem just for stdlib.h, by adding a test for the
13018         __noreturn__ attribute, and change stdlib.in.h to use that test
13019         when needed.  This technique can be easily generalized to the
13020         other *.in.h files and attributes, and a similar technique can be
13021         used for *.h and *.c files.  This patch is enough to solve the
13022         problem for Emacs + getloadavg, and I thought I'd publish it for
13023         feedback before undertaking further, similar fixes in other
13024         modules.
13025
13026         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13027         because it's not needed for stdlib.h.  It merely substitutes the
13028         value directly into stdlib.h.  We may well need to #define it, or
13029         similar symbols, for other modules, but it's nice to also have an
13030         option to not #define it for applications like Emacs that do not
13031         need it.
13032
13033         * lib/stdlib.in.h (__attribute__): Do not #define.
13034         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13035         be defined only if the _Exit module is also used.
13036         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13038         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13039         platforms.
13040         * modules/_Exit (Files): Add m4/attribute.m4.
13041         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13042         * m4/attribute.m4: New file.
13043
13044 2011-02-12  Bruno Haible  <bruno@clisp.org>
13045
13046         wcsrtombs: Work around bug on native Windows.
13047         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13048         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13049         instead of len.
13050         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13051
13052 2011-02-12  Bruno Haible  <bruno@clisp.org>
13053
13054         mbsrtowcs: Work around bug on native Windows.
13055         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13056         against mingw bug.
13057         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13058
13059 2011-02-12  Bruno Haible  <bruno@clisp.org>
13060
13061         Avoid setlocale bugs in tests.
13062         * modules/btowc (Dependencies): Add setlocale.
13063         * modules/c-strcase (Dependencies): Likewise.
13064         * modules/mbmemcasecmp (Dependencies): Likewise.
13065         * modules/mbmemcasecoll (Dependencies): Likewise.
13066         * modules/mbrtowc (Dependencies): Likewise.
13067         * modules/mbscasecmp (Dependencies): Likewise.
13068         * modules/mbscasestr (Dependencies): Likewise.
13069         * modules/mbschr (Dependencies): Likewise.
13070         * modules/mbscspn (Dependencies): Likewise.
13071         * modules/mbsinit (Dependencies): Likewise.
13072         * modules/mbsncasecmp (Dependencies): Likewise.
13073         * modules/mbsnrtowcs (Dependencies): Likewise.
13074         * modules/mbspbrk (Dependencies): Likewise.
13075         * modules/mbspcasecmp (Dependencies): Likewise.
13076         * modules/mbsrchr (Dependencies): Likewise.
13077         * modules/mbsrtowcs (Dependencies): Likewise.
13078         * modules/mbsspn (Dependencies): Likewise.
13079         * modules/mbsstr (Dependencies): Likewise.
13080         * modules/nl_langinfo (Dependencies): Likewise.
13081         * modules/quotearg (Dependencies): Likewise.
13082         * modules/unicase/locale-language (Dependencies): Likewise.
13083         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13084         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13085         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13086         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13087         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13088         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13089         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13090         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13091         * modules/vasnprintf-posix (Dependencies): Likewise.
13092         * modules/wcrtomb (Dependencies): Likewise.
13093         * modules/wcsnrtombs (Dependencies): Likewise.
13094         * modules/wcsrtombs (Dependencies): Likewise.
13095
13096 2011-02-12  Bruno Haible  <bruno@clisp.org>
13097
13098         setlocale: Workaround native Windows bug.
13099         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13100         succeeds but sets LC_CTYPE to "C", report a failure.
13101         * tests/test-setlocale2.sh: New file.
13102         * tests/test-setlocale2.c: New file.
13103         * modules/setlocale-tests (Files): Add the new files.
13104         (Makefile.am): Enable test-setlocale2.sh test.
13105         * doc/posix-functions/setlocale.texi: Mention workaround.
13106
13107 2011-02-11  Bruno Haible  <bruno@clisp.org>
13108
13109         Tests for module 'setlocale'.
13110         * modules/setlocale-tests: New file.
13111         * tests/test-setlocale1.sh: New file.
13112         * tests/test-setlocale1.c: New file.
13113
13114         New module 'setlocale'.
13115         * lib/locale.in.h (setlocale): New declaration.
13116         * lib/setlocale.c: New file, based on
13117         gettext/gettext-runtime/intl/setlocale.c.
13118         * m4/setlocale.m4: New file.
13119         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13120         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13121         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13122         REPLACE_SETLOCALE.
13123         * modules/setlocale: New file.
13124         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13125         * doc/posix-functions/setlocale.texi: Mention the new module.
13126
13127 2011-02-11  Bruno Haible  <bruno@clisp.org>
13128
13129         Prepare for locale dependent tests on mingw.
13130         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13131         because it has the wrong locale encoding.
13132         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13133         French_France.1252 instead of "fr".
13134         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13135         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13136         because it has the wrong locale encoding.
13137         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13138         native Windows, try Turkish_Turkey.65001.
13139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13140         Chinese_China.54936.
13141
13142         Prepare for locale dependent tests on mingw.
13143         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13144         differently.
13145         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13146         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13147         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13148         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13149
13150 2011-02-11  Eric Blake  <eblake@redhat.com>
13151
13152         strptime: avoid compiler warnings
13153         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13154         compiler warnings about dead code.
13155         Reported by Daniel P. Berrange.
13156
13157 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13158
13159         doc: update users.txt
13160         * users.txt: Add rcs.
13161
13162 2011-02-10  John W. Eaton  <jwe@gnu.org>
13163
13164         doc: update users.txt
13165         * users.txt: Add octave.
13166
13167 2011-02-10  Jim Meyering  <meyering@redhat.com>
13168
13169         doc: update users.txt
13170         * users.txt: Add iwhd.
13171
13172 2011-02-09  Bruno Haible  <bruno@clisp.org>
13173
13174         gnulib-tool: Make copyright notice adjustment more robust.
13175         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13176         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13177         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13178         License".
13179         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13180
13181 2011-02-06  Bruno Haible  <bruno@clisp.org>
13182
13183         New module 'towctrans'.
13184         * modules/towctrans: New file.
13185         * lib/wctype.in.h (towctrans): New declaration.
13186         * lib/towctrans.c: New file.
13187         * lib/towctrans-impl.h: New file.
13188         * m4/towctrans.m4: New file.
13189         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13190         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13191         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13192         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13193         * doc/posix-functions/towctrans.texi: Mention the new module.
13194
13195 2011-02-06  Bruno Haible  <bruno@clisp.org>
13196
13197         New module 'wctrans'.
13198         * modules/wctrans: New file.
13199         * lib/wctype.in.h (wctrans): New declaration.
13200         * lib/wctrans.c: New file.
13201         * lib/wctrans-impl.h: New file.
13202         * m4/wctrans.m4: New file.
13203         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13204         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13205         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13206         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13207         * doc/posix-functions/wctrans.texi: Mention the new module.
13208
13209 2011-02-06  Bruno Haible  <bruno@clisp.org>
13210
13211         New module 'iswctype'.
13212         * modules/iswctype: New file.
13213         * lib/wctype.in.h (iswctype): New declaration.
13214         * lib/iswctype.c: New file.
13215         * lib/iswctype-impl.h: New file.
13216         * m4/iswctype.m4: New file.
13217         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13218         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13219         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13220         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13221         * doc/posix-functions/iswctype.texi: Mention the new module and the
13222         HP-UX 11.00 problem.
13223
13224 2011-02-06  Bruno Haible  <bruno@clisp.org>
13225
13226         New module 'wctype'.
13227         * modules/wctype: Change to represent the wctype() substitute.
13228         * lib/wctype.in.h (wctype): New declaration.
13229         * lib/wctype.c: New file.
13230         * lib/wctype-impl.h: New file.
13231         * m4/wctype.m4: New file.
13232         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13233         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13234         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13235         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13236         * doc/posix-functions/wctype.texi: Mention the new module and the
13237         HP-UX 11.00 problem.
13238
13239 2011-02-06  Bruno Haible  <bruno@clisp.org>
13240
13241         wctype-h: Ensure wctype_t and wctrans_t are defined.
13242         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13243         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13244         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13245         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13246         HAVE_WCTRANS_T.
13247         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13248
13249 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13250
13251         flock: fix license typo
13252
13253         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13254         omitted.
13255
13256 2011-02-08  Bruno Haible  <bruno@clisp.org>
13257
13258         Split large sed scripts, for HP-UX sed.
13259         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13260         to avoid HP-UX limit of 99 commands, in the near future.
13261         * modules/stdlib (Makefile.am): Likewise.
13262         * modules/unistd (Makefile.am): Likewise.
13263         * modules/wchar (Makefile.am): Likewise.
13264         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13265         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13267
13268 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13269             Bruno Haible  <bruno@clisp.org>
13270
13271         stdlib: improve random_r modularization
13272         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13273         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13274         you also need the random_r module to get this material right.
13275         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13276         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13277         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13278
13279 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13280
13281         stdlib: don't depend on stdint
13282         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13283         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13284         be independent of whether stdint.h is needed.
13285         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13286         here, instead of ...
13287         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13288         struct random_data should be using the random_r module, not just
13289         the stdlib module (which wouldn't make sense: what package needs
13290         just struct random_data without also needing random_r?).
13291         * modules/stdlib (Depends-on): Remove stdint.
13292
13293         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13294         See the thread rooted at
13295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13296         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13297         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13298         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13299         __VMS)); previously it was always included (via fcntl--.h).
13300         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13301         hand; this is good enough for load averages.  Also, do not use
13302         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13303         flags directly if available and don't bother otherwise.  (Packages
13304         that need the extra reliability should use the modules that define
13305         these flags on older platforms that lack them.)
13306         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13307         fcntl-safer.
13308
13309 2011-02-08  Jim Meyering  <meyering@redhat.com>
13310
13311         di-set.h, ino-map.h: add multiple-inclusion guard
13312         Technically, the guard is required only for ino-map.h, due to its
13313         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13314         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13315         * lib/ino-map.h: Likewise.
13316
13317 2011-02-06  Bruno Haible  <bruno@clisp.org>
13318
13319         iswblank: Ensure declaration on glibc systems.
13320         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13321         * modules/iswblank (Dependencies): Add 'extensions'.
13322         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13323
13324 2011-02-06  Bruno Haible  <bruno@clisp.org>
13325
13326         New module 'iswblank'.
13327         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13328         * modules/iswblank: New file.
13329         * modules/wctype-h (Files): Remove lib/iswblank.c.
13330         (Makefile.am): Substitute GNULIB_ISWBLANK.
13331         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13332         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13333         (gl_WCTYPE_H_DEFAULTS): New macro.
13334         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13335         * modules/iswblank-tests: New file.
13336         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13337         * tests/test-wctype-h.c (main): Remove iswblank tests.
13338         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13339         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13340         of 'wctype-h'.
13341         * NEWS: Mention the change.
13342         * modules/mbchar (Depends-on): Add iswblank.
13343
13344 2011-02-08  Bruno Haible  <bruno@clisp.org>
13345
13346         di-set tests: Refactor.
13347         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13348         unnecessary includes.
13349         (ASSERT): Remove macro.
13350         (main): Make C90 compliant by avoiding variable declaration after
13351         statement.
13352         * modules/di-set-tests (Files): Add tests/macros.h.
13353
13354 2011-02-08  Bruno Haible  <bruno@clisp.org>
13355
13356         ino-map tests: Refactor.
13357         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13358         unnecessary includes.
13359         (ASSERT): Remove macro.
13360         (main): Make C90 compliant by avoiding variable declaration after
13361         statement.
13362         * modules/ino-map-tests (Files): Add tests/macros.h.
13363
13364 2011-02-08  Jim Meyering  <meyering@redhat.com>
13365
13366         di-set: add "const" to a cast
13367         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13368         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13369
13370 2011-02-06  Bruno Haible  <bruno@clisp.org>
13371
13372         Rename module 'wctype' to 'wctype-h'.
13373         * modules/wctype-h: Renamed from modules/wctype.
13374         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13375         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13376         (Files, Depends-on, Makefile.am): Update.
13377         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13378         (Files, Makefile.am): Update.
13379         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13380         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13381         * doc/posix-headers/wctype.texi: Update.
13382         * doc/posix-functions/iswalnum.texi: Update.
13383         * doc/posix-functions/iswalpha.texi: Update.
13384         * doc/posix-functions/iswblank.texi: Update.
13385         * doc/posix-functions/iswcntrl.texi: Update.
13386         * doc/posix-functions/iswdigit.texi: Update.
13387         * doc/posix-functions/iswgraph.texi: Update.
13388         * doc/posix-functions/iswlower.texi: Update.
13389         * doc/posix-functions/iswprint.texi: Update.
13390         * doc/posix-functions/iswpunct.texi: Update.
13391         * doc/posix-functions/iswspace.texi: Update.
13392         * doc/posix-functions/iswupper.texi: Update.
13393         * doc/posix-functions/iswxdigit.texi: Update.
13394         * doc/posix-functions/towlower.texi: Update.
13395         * doc/posix-functions/towupper.texi: Update.
13396         * NEWS: Mention the change.
13397         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13398         * modules/mbchar (Dependencies): Likewise.
13399         * modules/mbswidth (Dependencies): Likewise.
13400         * modules/quotearg (Dependencies): Likewise.
13401         * modules/regex (Dependencies): Likewise.
13402         * modules/wcscasecmp (Dependencies): Likewise.
13403         * modules/wcsncasecmp (Dependencies): Likewise.
13404         * modules/wcwidth (Dependencies): Likewise.
13405
13406 2011-02-06  Bruno Haible  <bruno@clisp.org>
13407
13408         New module 'wcswidth'.
13409         * modules/wcswidth: New file.
13410         * lib/wchar.in.h (wcswidth): New declaration.
13411         * lib/wcswidth.c: New file.
13412         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13413         * m4/wcswidth.m4: New file.
13414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13416         REPLACE_WCSWIDTH.
13417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13418         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13419         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13420         * doc/posix-functions/wcswidth.texi: Mention the new module.
13421
13422 2011-02-06  Bruno Haible  <bruno@clisp.org>
13423
13424         New module 'wcstok'.
13425         * modules/wcstok: New file.
13426         * lib/wchar.in.h (wcstok): New declaration.
13427         * lib/wcstok.c: New file.
13428         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13429         * m4/wcstok.m4: New file.
13430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13433         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13434         * doc/posix-functions/wcstok.texi: Mention the new module.
13435
13436 2011-02-06  Bruno Haible  <bruno@clisp.org>
13437
13438         New module 'wcsstr'.
13439         * modules/wcsstr: New file.
13440         * lib/wchar.in.h (wcsstr): New declaration.
13441         * lib/wcsstr.c: New file.
13442         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13443         * m4/wcsstr.m4: New file.
13444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13447         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13448         * doc/posix-functions/wcsstr.texi: Mention the new module.
13449
13450 2011-02-06  Bruno Haible  <bruno@clisp.org>
13451
13452         New module 'wcspbrk'.
13453         * modules/wcspbrk: New file.
13454         * lib/wchar.in.h (wcspbrk): New declaration.
13455         * lib/wcspbrk.c: New file.
13456         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13457         * m4/wcspbrk.m4: New file.
13458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13461         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13462         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13463
13464 2011-02-06  Bruno Haible  <bruno@clisp.org>
13465
13466         New module 'wcsspn'.
13467         * modules/wcsspn: New file.
13468         * lib/wchar.in.h (wcsspn): New declaration.
13469         * lib/wcsspn.c: New file.
13470         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13471         * m4/wcsspn.m4: New file.
13472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13475         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13476         * doc/posix-functions/wcsspn.texi: Mention the new module.
13477
13478 2011-02-06  Bruno Haible  <bruno@clisp.org>
13479
13480         New module 'wcscspn'.
13481         * modules/wcscspn: New file.
13482         * lib/wchar.in.h (wcscspn): New declaration.
13483         * lib/wcscspn.c: New file.
13484         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13485         * m4/wcscspn.m4: New file.
13486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13489         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13490         * doc/posix-functions/wcscspn.texi: Mention the new module.
13491
13492 2011-02-06  Bruno Haible  <bruno@clisp.org>
13493
13494         New module 'wcsrchr'.
13495         * modules/wcsrchr: New file.
13496         * lib/wchar.in.h (wcsrchr): New declaration.
13497         * lib/wcsrchr.c: New file.
13498         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13499         * m4/wcsrchr.m4: New file.
13500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13503         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13504         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13505
13506 2011-02-06  Bruno Haible  <bruno@clisp.org>
13507
13508         New module 'wcschr'.
13509         * modules/wcschr: New file.
13510         * lib/wchar.in.h (wcschr): New declaration.
13511         * lib/wcschr.c: New file.
13512         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13513         * m4/wcschr.m4: New file.
13514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13517         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13518         * doc/posix-functions/wcschr.texi: Mention the new module.
13519
13520 2011-02-06  Bruno Haible  <bruno@clisp.org>
13521
13522         New module 'wcsdup'.
13523         * modules/wcsdup: New file.
13524         * lib/wchar.in.h (wcsdup): New declaration.
13525         * lib/wcsdup.c: New file.
13526         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13527         * m4/wcsdup.m4: New file.
13528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13531         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13532         * doc/posix-functions/wcsdup.texi: Mention the new module.
13533
13534 2011-02-06  Bruno Haible  <bruno@clisp.org>
13535
13536         New module 'wcsxfrm'.
13537         * modules/wcsxfrm: New file.
13538         * lib/wchar.in.h (wcsxfrm): New declaration.
13539         * lib/wcsxfrm.c: New file.
13540         * lib/wcsxfrm-impl.h: New file.
13541         * m4/wcsxfrm.m4: New file.
13542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13545         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13546         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13547
13548 2011-02-06  Bruno Haible  <bruno@clisp.org>
13549
13550         New module 'wcscoll'.
13551         * modules/wcscoll: New file.
13552         * lib/wchar.in.h (wcscoll): New declaration.
13553         * lib/wcscoll.c: New file.
13554         * lib/wcscoll-impl.h: New file.
13555         * m4/wcscoll.m4: New file.
13556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13559         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13560         * doc/posix-functions/wcscoll.texi: Mention the new module.
13561
13562 2011-02-06  Bruno Haible  <bruno@clisp.org>
13563
13564         New module 'wcsncasecmp'.
13565         * modules/wcsncasecmp: New file.
13566         * lib/wchar.in.h (wcsncasecmp): New declaration.
13567         * lib/wcsncasecmp.c: New file.
13568         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13569         * m4/wcsncasecmp.m4: New file.
13570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13573         HAVE_WCSNCASECMP.
13574         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13575         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13576
13577 2011-02-06  Bruno Haible  <bruno@clisp.org>
13578
13579         New module 'wcscasecmp'.
13580         * modules/wcscasecmp: New file.
13581         * lib/wchar.in.h (wcscasecmp): New declaration.
13582         * lib/wcscasecmp.c: New file.
13583         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13584         * m4/wcscasecmp.m4: New file.
13585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13588         HAVE_WCSCASECMP.
13589         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13590         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13591
13592 2011-02-05  Bruno Haible  <bruno@clisp.org>
13593
13594         New module 'wcsncmp'.
13595         * modules/wcsncmp: New file.
13596         * lib/wchar.in.h (wcsncmp): New declaration.
13597         * lib/wcsncmp.c: New file.
13598         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13599         * m4/wcsncmp.m4: New file.
13600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13603         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13604         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13605
13606 2011-02-05  Bruno Haible  <bruno@clisp.org>
13607
13608         New module 'wcscmp'.
13609         * modules/wcscmp: New file.
13610         * lib/wchar.in.h (wcscmp): New declaration.
13611         * lib/wcscmp.c: New file.
13612         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13613         * m4/wcscmp.m4: New file.
13614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13617         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13618         * doc/posix-functions/wcscmp.texi: Mention the new module.
13619
13620 2011-02-05  Bruno Haible  <bruno@clisp.org>
13621
13622         New module 'wcsncat'.
13623         * modules/wcsncat: New file.
13624         * lib/wchar.in.h (wcsncat): New declaration.
13625         * lib/wcsncat.c: New file.
13626         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13627         * m4/wcsncat.m4: New file.
13628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13631         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13632         * doc/posix-functions/wcsncat.texi: Mention the new module.
13633
13634 2011-02-05  Bruno Haible  <bruno@clisp.org>
13635
13636         New module 'wcscat'.
13637         * modules/wcscat: New file.
13638         * lib/wchar.in.h (wcscat): New declaration.
13639         * lib/wcscat.c: New file.
13640         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13641         * m4/wcscat.m4: New file.
13642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13645         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13646         * doc/posix-functions/wcscat.texi: Mention the new module.
13647
13648 2011-02-05  Bruno Haible  <bruno@clisp.org>
13649
13650         New module 'wcpncpy'.
13651         * modules/wcpncpy: New file.
13652         * lib/wchar.in.h (wcpncpy): New declaration.
13653         * lib/wcpncpy.c: New file.
13654         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13655         * m4/wcpncpy.m4: New file.
13656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13658         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13659         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13660         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13661
13662 2011-02-05  Bruno Haible  <bruno@clisp.org>
13663
13664         New module 'wcsncpy'.
13665         * modules/wcsncpy: New file.
13666         * lib/wchar.in.h (wcsncpy): New declaration.
13667         * lib/wcsncpy.c: New file.
13668         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13669         * m4/wcsncpy.m4: New file.
13670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13673         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13674         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13675
13676 2011-02-05  Bruno Haible  <bruno@clisp.org>
13677
13678         New module 'wcpcpy'.
13679         * modules/wcpcpy: New file.
13680         * lib/wchar.in.h (wcpcpy): New declaration.
13681         * lib/wcpcpy.c: New file.
13682         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13683         * m4/wcpcpy.m4: New file.
13684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13686         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13687         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13688         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13689
13690 2011-02-05  Bruno Haible  <bruno@clisp.org>
13691
13692         New module 'wcscpy'.
13693         * modules/wcscpy: New file.
13694         * lib/wchar.in.h (wcscpy): New declaration.
13695         * lib/wcscpy.c: New file.
13696         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13697         * m4/wcscpy.m4: New file.
13698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13701         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13702         * doc/posix-functions/wcscpy.texi: Mention the new module.
13703
13704 2011-02-05  Bruno Haible  <bruno@clisp.org>
13705
13706         New module 'wcsnlen'.
13707         * modules/wcsnlen: New file.
13708         * lib/wchar.in.h (wcsnlen): New declaration.
13709         * lib/wcsnlen.c: New file.
13710         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13711         * m4/wcsnlen.m4: New file.
13712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13715         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13716         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13717
13718 2011-02-05  Bruno Haible  <bruno@clisp.org>
13719
13720         New module 'wcslen'.
13721         * modules/wcslen: New file.
13722         * lib/wchar.in.h (wcslen): New declaration.
13723         * lib/wcslen.c: New file.
13724         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13725         * m4/wcslen.m4: New file.
13726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13729         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13730         * doc/posix-functions/wcslen.texi: Mention the new module.
13731
13732 2011-02-05  Bruno Haible  <bruno@clisp.org>
13733
13734         New module 'wmemset'.
13735         * modules/wmemset: New file.
13736         * lib/wchar.in.h (wmemset): New declaration.
13737         * lib/wmemset.c: New file.
13738         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13739         * m4/wmemset.m4: New file.
13740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13742         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13743         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13744         * doc/posix-functions/wmemset.texi: Mention the new module.
13745
13746 2011-02-05  Bruno Haible  <bruno@clisp.org>
13747
13748         New module 'wmemmove'.
13749         * modules/wmemmove: New file.
13750         * lib/wchar.in.h (wmemmove): New declaration.
13751         * lib/wmemmove.c: New file.
13752         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13753         * m4/wmemmove.m4: New file.
13754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13756         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13757         HAVE_WMEMMOVE.
13758         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13759         * doc/posix-functions/wmemmove.texi: Mention the new module.
13760
13761 2011-02-05  Bruno Haible  <bruno@clisp.org>
13762
13763         New module 'wmemcpy'.
13764         * modules/wmemcpy: New file.
13765         * lib/wchar.in.h (wmemcpy): New declaration.
13766         * lib/wmemcpy.c: New file.
13767         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13768         * m4/wmemcpy.m4: New file.
13769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13771         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13772         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13773         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13774
13775 2011-02-05  Bruno Haible  <bruno@clisp.org>
13776
13777         New module 'wmemcmp'.
13778         * modules/wmemcmp: New file.
13779         * lib/wchar.in.h (wmemcmp): New declaration.
13780         * lib/wmemcmp.c: New file.
13781         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13782         * m4/wmemcmp.m4: New file.
13783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13785         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13786         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13787         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13788
13789 2011-02-07  Jim Meyering  <meyering@redhat.com>
13790
13791         di-set, ino-map: new modules, from coreutils
13792         * lib/di-set.c: New file.
13793         * lib/di-set.h: Likewise.
13794         * lib/ino-map.c: Likewise.
13795         * lib/ino-map.h: Likewise.
13796         * modules/di-set: Likewise.
13797         * modules/di-set-tests: Likewise.
13798         * modules/ino-map: Likewise.
13799         * modules/ino-map-tests: Likewise.
13800         * tests/test-di-set.c: Likewise.
13801         * tests/test-ino-map.c: Likewise.
13802
13803 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13804
13805         getloadavg: merge minor changes from Emacs
13806
13807         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13808         (getloadavg): Use memset, not bzero.
13809
13810         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13811         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13812         clash (bug#86).
13813
13814 2010-11-14  Bruno Haible  <bruno@clisp.org>
13815
13816         Allow multiple gnulib generated replacements to coexist.
13817         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13818         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13819         * lib/langinfo.in.h (nl_item): Likewise.
13820         * lib/math.in.h (_NaN, NAN): Likewise.
13821         * lib/netdb.in.h (struct addrinfo): Likewise.
13822         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13823         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13824         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13825         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13826         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13827         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13828         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13829         pthread_mutexattr_init, pthread_mutexattr_settype,
13830         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13831         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13832         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13833         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13834         * lib/sched.in.h (struct sched_param): Likewise.
13835         * lib/se-selinux.in.h (security_class_t, security_context_t,
13836         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13837         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13838         lsetfilecon, fsetfilecon, security_check_context,
13839         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13840         Likewise.
13841         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13842         Likewise.
13843         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13844         _gl_function_taking_int_returning_void_t, union sigval,
13845         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13846         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13847         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13848         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13849         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13850         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13851         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13852         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13853         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13854         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13855         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13856         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13857         socklen_t, rpl_fd_isset): Likewise.
13858         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13859         * lib/sys_time.in.h (struct timeval): Likewise.
13860         * lib/sys_times.in.h (struct tms): Likewise.
13861         * lib/sys_utsname.in.h (struct utsname):
13862         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13863         * lib/unistd.in.h (getpagesize): Likewise.
13864         * lib/wchar.in.h (mbstate_t): Likewise.
13865         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13866         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13867         towlower, towupper): Likewise.
13868         Reported by Sam Steingold <sds@gnu.org>.
13869
13870 2011-02-05  Eric Blake  <eblake@redhat.com>
13871
13872         unsetenv: work around Haiku issues
13873         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13874         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13875
13876 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13877
13878         libposix: avoid calling error() within libposix
13879         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13880         is defined.
13881
13882 2011-02-05  Eric Blake  <eblake@redhat.com>
13883
13884         strerror_r-posix: port to cygwin
13885         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13886         implementation.
13887         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13888         * tests/test-strerror_r.c (main): Fix test.
13889         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13890         issue.
13891
13892 2011-02-05  Bruno Haible  <bruno@clisp.org>
13893
13894         New module 'wmemchr'.
13895         * modules/wmemchr: New file.
13896         * lib/wchar.in.h (wmemchr): New declaration.
13897         * lib/wmemchr.c: New file.
13898         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13899         * m4/wmemchr.m4: New file.
13900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13902         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13903         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13904         * doc/posix-functions/wmemchr.texi: Mention the new module.
13905
13906 2011-02-04  Eric Blake  <eblake@redhat.com>
13907
13908         fdopendir: detect FreeBSD bug
13909         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13910         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13911
13912 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13913
13914         stdbool: do not define HAVE_STDBOOL_H
13915         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13916         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13917         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13918         imported from the latest Autoconf git.  It was motivated by Emacs,
13919         which uses gnulib but does not need HAVE_STDBOOL_H.
13920
13921 2011-02-04  Bruno Haible  <bruno@clisp.org>
13922
13923         wcsnrtombs: Prepare for new module wwcsnrtombs.
13924         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13925         * lib/wcsnrtombs.c: Include it.
13926         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13927
13928         wcsrtombs: Prepare for new module wwcsrtombs.
13929         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13930         * lib/wcsrtombs.c: Include it.
13931         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13932
13933         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13934         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13935         * lib/mbsnrtowcs.c: Include it.
13936         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13937
13938         mbsrtowcs: Prepare for new module mbsrtowwcs.
13939         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13940         * lib/mbsrtowcs.c: Include it.
13941         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13942
13943 2011-02-04  Bruno Haible  <bruno@clisp.org>
13944
13945         vasnprintf: Reduce use of malloc for small format strings.
13946         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13947         (arguments): Add room for the first 7 arguments.
13948         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13949         (char_directives, u8_directives, u16_directives, u32_directives): Add
13950         room for the first 7 directives.
13951         * lib/printf-parse.c: Include <string.h>.
13952         (PRINTF_PARSE): Change memory handling code so that it uses the first
13953         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13954         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13955         Reported by Pádraig Brady <P@draigbrady.com>.
13956
13957 2011-01-31  Eric Blake  <eblake@redhat.com>
13958
13959         dup2: work around Haiku bug
13960         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13961         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13962         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13963         * tests/test-dup2.c (main): Enhance test.
13964
13965 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13966
13967         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13968         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13969         declared by eglibc 2.11.2.
13970         * lib/stdio.in.h: Likewise.
13971
13972 2011-01-31  Eric Blake  <eblake@redhat.com>
13973
13974         ignore-value: add missing test dependency
13975         * tests/test-ignore-value.c: Revert previous change; stdio.h
13976         provides off_t.
13977         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13978
13979 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13980
13981         mktime: clarify long_int width checking
13982         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13983         the top level, to make it clearer that the assumption about
13984         long_int width is being checked.  See
13985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13986
13987 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13988
13989         ignore-value: Fix self-test.
13990         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13991
13992 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13993
13994         TYPE_MAXIMUM: avoid theoretically undefined behavior
13995         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13996         negative number, which the C Standard says has undefined behavior.
13997         In practice this is not a problem, but might as well do it by the book.
13998         Reported by Rich Felker and Eric Blake; see
13999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14000         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14001         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14003         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14004         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14005         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14006
14007         mktime: #undef mktime before #defining it
14008         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14009
14010         mktime: systematically normalize tm_isdst comparisons
14011         * lib/mktime.c (isdst_differ): New function.
14012         (__mktime_internal): Use it systematically for all isdst comparisons.
14013         This completes the fix for libc BZ #6723, and removes the need for
14014         normalizing tm_isdst.  See
14015         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14016         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14017
14018         mktime: fix some integer overflow issues and sidestep the rest
14019
14020         This was prompted by a bug report by Benjamin Lindner for MinGW
14021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14022         His bug is due to signed integer overflow (0 - INT_MIN), and I
14023         I scanned through mktime.c looking for other integer overflow
14024         problems, fixing all the bugs I found.
14025
14026         Although the C Standard says the resulting code is still not safe
14027         in the presence of integer overflow, in practice it should be good
14028         enough for all real-world two's-complement implementations, except
14029         for debugging environments that deliberately trap on integer
14030         overflow (e.g., gcc -ftrapv).
14031
14032         * lib/mktime.c (WRAPV): New macro.
14033         (SHR): Also check that long_int and time_t shift right in the
14034         usual way, before using the fast-but-unportable method.
14035         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14036         used.  The code already assumed two's complement, so there's
14037         no need to test for alternatives.  All uses removed.
14038         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14039         the C standard.  Problem reported by Rich Felker in
14040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14041         (twos_complement_arithmetic): Also check long_int and time_t.
14042         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14043         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14044         (__mktime_internal): Avoid integer overflow with unary subtraction
14045         in two instances where -1 - X is an adequate replacement for -X,
14046         since the calculations are approximate.
14047
14048 2011-01-29  Eric Blake  <eblake@redhat.com>
14049
14050         mktime: avoid infinite loop
14051         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14052         type; behavior is still undefined but portable to all known targets.
14053         Reported by Rich Felker.
14054
14055 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14056
14057         rename, unlink, same-inode: Relicense.
14058         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14059         * modules/unlink (License): Likewise.
14060         * modules/same-inode (License): Likewise.
14061
14062 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14063
14064         mktime: avoid problems on NetBSD 5 / i386
14065         * lib/mktime.c (long_int): New type.  This works around a problem
14066         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14067         but time_t is 64 bits, and where I expect the existing code is
14068         wrong in some cases.
14069         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14070         (ydhms_diff): Bring back the compile-time check for wide-enough
14071         year and yday.
14072
14073         mktime: fix misspelling in comment
14074         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14075         This merges all recent glibc changes of importance.
14076
14077 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14078
14079         move-if-change: cope with concurrent mv of identical file.
14080         * build-aux/move-if-change (CMPPROG): Accept environment
14081         variable as an override for `cmp'.
14082         (usage): Document CMPPROG.
14083         Adjust comparison to drop stdout.  Cope with failure of mv if
14084         the target file exists and is identical to the source, for
14085         parallel builds.
14086         Report from H.J. Lu against binutils in PR binutils/12283.
14087
14088 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14089
14090         * users.txt: Mention sharutils.
14091
14092 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14093
14094         * users.txt: Mention OATH Toolkit.
14095
14096 2011-01-27  Bruno Haible  <bruno@clisp.org>
14097
14098         Prepare for supporting FreeBSD 10.
14099         * build-aux/config.libpath: Remove handling of freebsd1*.
14100
14101 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14102
14103         Prepare for supporting FreeBSD 10.
14104         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14105         match FreeBSD 10.0.
14106
14107 2011-01-27  Bruno Haible  <bruno@clisp.org>
14108
14109         vma-iter, get-rusage-as: Add OpenBSD support.
14110         * modules/vma-iter (configure.ac): Test for mquery.
14111         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14112         * lib/vma-iter.c: Include <sys/mman.h>.
14113         (vma_iterate): Add an implementation based on mquery().
14114         * lib/resource-ext.h (get_rusage_as): Update comments.
14115         * lib/get-rusage-as.c: Likewise.
14116         * lib/get-rusage-data.c: Likewise.
14117
14118 2011-01-26  Karl Berry  <karl@gnu.org>
14119
14120         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14121         variables to make it easier to override the makeinfo program used.
14122
14123 2011-01-26  Eric Blake  <eblake@redhat.com>
14124
14125         fcntl: work around Haiku F_DUPFD bugs
14126         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14127         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14128         cloexec bit on duplication.
14129         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14130
14131 2011-01-26  Bruno Haible  <bruno@clisp.org>
14132
14133         Enable memory leak tests on AIX.
14134         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14135         * tests/test-fprintf-posix3.c (main): Likewise.
14136
14137 2011-01-26  Bruno Haible  <bruno@clisp.org>
14138
14139         Tests for module 'get-rusage-data'.
14140         * modules/get-rusage-data-tests: New file.
14141         * tests/test-get-rusage-data.c: New file.
14142
14143         New module 'get-rusage-data'.
14144         * lib/resource-ext.h (get_rusage_data): New declaration.
14145         * lib/get-rusage-data.c: New file.
14146         * modules/get-rusage-data: New file.
14147
14148 2011-01-25  Bruno Haible  <bruno@clisp.org>
14149
14150         get-rusage-as: Allow for easier testing.
14151         * lib/resource-ext.h (get_rusage_as): Add comment.
14152         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14153         (main): New function for interactive testing.
14154
14155 2011-01-25  Bruno Haible  <bruno@clisp.org>
14156
14157         vma-iter: Treat Haiku like BeOS.
14158         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14159         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14160
14161 2011-01-25  Eric Blake  <eblake@redhat.com>
14162
14163         c-stack: fix regression on cygwin when libsigsegv is present
14164         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14165
14166 2011-01-24  Bruno Haible  <bruno@clisp.org>
14167
14168         vma-iter: Avoid empty intervals.
14169         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14170         on an empty interval.
14171
14172 2011-01-24  Jim Meyering  <meyering@redhat.com>
14173
14174         u64: remove unnecessary #include
14175         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14176
14177 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14178
14179         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14180         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14181
14182 2011-01-23  Bruno Haible  <bruno@clisp.org>
14183
14184         New module 'vma-iter'.
14185         * lib/vma-iter.h: New file.
14186         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14187         * modules/vma-iter: New file.
14188         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14189         for get_rusage_as_via_iterator.
14190         (vma_iterate_callback): New function.
14191         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14192         * modules/get-rusage-as (Depends-on): Add vma-iter.
14193
14194 2011-01-23  Bruno Haible  <bruno@clisp.org>
14195
14196         uninorm: Tweak includes.
14197         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14198         Reported by Jim Meyering.
14199
14200 2011-01-23  Bruno Haible  <bruno@clisp.org>
14201
14202         get-rusage-as: Improve on NetBSD.
14203         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14204         /proc, like on FreeBSD.
14205
14206 2011-01-23  Jim Meyering  <meyering@redhat.com>
14207
14208         xreadlink.h: remove unnecessary #include
14209         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14210
14211         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14212         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14213
14214 2011-01-23  Bruno Haible  <bruno@clisp.org>
14215
14216         get-rusage-as: Fix bug.
14217         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14218         original limit when aborting the first loop.
14219
14220 2011-01-23  Bruno Haible  <bruno@clisp.org>
14221
14222         wctype: Ensure valid C syntax.
14223         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14224         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14225
14226 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14227
14228         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14230         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14231         as they are needed only for configure's test case.
14232         This removes two unnecessary symbols from config.h.
14233
14234         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14235         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14237         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14238         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14240         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14241         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14242         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14243         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14244         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14246         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14247         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14248         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14249         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14250         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14251         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14252
14253 2011-01-21  Eric Blake  <eblake@redhat.com>
14254
14255         maintainer-makefile: work with older git for submodule check
14256         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14257         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14258         Reported by Matthias Bolte.
14259
14260         bootstrap: minor portability fixes
14261         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14262         (usage): Omit leading capital and trailing . on help phrases, per
14263         GNU Coding Standards.
14264         (check_versions, top level): Prefix messages with script name.
14265
14266 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14267
14268         bootstrap: support --no-git option
14269         * build-aux/bootstrap: Add --no-git option, to be used when
14270         --gnulib-srcdir points to the exact desired checkout.
14271
14272 2011-01-21  Eric Blake  <eblake@redhat.com>
14273
14274         strerror_r-posix: work with glibc 2.13
14275         * lib/strerror_r.c (strerror_r): Fix return type.
14276
14277 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14278             Bruno Haible  <bruno@clisp.org>
14279
14280         uN_strstr: New unit tests.
14281         * modules/unistr/u8-strstr-tests: New file.
14282         * modules/unistr/u16-strstr-tests: New file.
14283         * modules/unistr/u32-strstr-tests: New file.
14284         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14285         * tests/unistr/test-u8-strstr.c: New file.
14286         * tests/unistr/test-u16-strstr.c: New file.
14287         * tests/unistr/test-u32-strstr.c: New file.
14288
14289 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14290             Bruno Haible  <bruno@clisp.org>
14291
14292         Make uN_strstr functions O(n) worst-case.
14293         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14294         16-bit and 32-bit unit cases, use the unibyte algorithm from
14295         lib/mbsstr.c.
14296         * lib/unistr/u8-strstr.c: Include <string.h>.
14297         (UNIT_IS_UINT8_T): New macro.
14298         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14299         (U_STRLEN, U_STRNLEN): New macros.
14300         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14301         (U_STRLEN, U_STRNLEN): New macros.
14302         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14303         (configure.ac): Update required libunistring version.
14304         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14305         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14306         malloca.
14307         (configure.ac): Update required libunistring version.
14308         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14309         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14310         malloca.
14311         (configure.ac): Update required libunistring version.
14312
14313 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14314             Bruno Haible  <bruno@clisp.org>
14315
14316         Prepare for faster uN_strstr functions.
14317         * lib/str-kmp.h: Support definable UNITs.
14318         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14319         needle_len argument.
14320         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14321         * lib/mbscasestr.c (mbscasestr): Likewise.
14322
14323 2011-01-21  Pádraig Brady <P@draigBrady.com>
14324
14325         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14326         * tests/test-malloca.c (main): Unset the environment variable
14327         to greatly speed up the test.
14328         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14329         * modules/malloca-tests: Depend on unsetenv.
14330
14331 2011-01-21  Pádraig Brady <P@draigBrady.com>
14332
14333         ignore-value: remove stdint dependency
14334         * lib/ignore-value.h: Remove <stdint.h>
14335         * modules/ignore-value: Remove stdint dependency.
14336
14337 2011-01-21  Jim Meyering  <meyering@redhat.com>
14338
14339         maint.mk: adjust variable name to be consistent with other gl_ vars
14340         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14341         to be lower case.
14342
14343 2011-01-20  Jim Meyering  <meyering@redhat.com>
14344
14345         maint.mk: make "check" depend on public-submodule-commit by default
14346         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14347
14348 2011-01-20  Bruno Haible  <bruno@clisp.org>
14349
14350         mbfile, mbiter: Complete change from 2008-12-21.
14351         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14352         * m4/mbiter.m4 (gl_MBITER): Likewise.
14353
14354 2011-01-20  Jim Meyering  <meyering@redhat.com>
14355
14356         init.sh: insert space between each function name and "()"
14357         * tests/init.sh: Make it a little easier to see that a function's
14358         name is "warn_", and not "warn" when looking at the first part of
14359         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14360
14361 2011-01-20  Jim Meyering  <meyering@redhat.com>
14362
14363         mountlist: clean up code formatting
14364         * lib/mountlist.c (read_file_system_list): Split a long line,
14365         correct bracing style, use NULL in place of "(struct statfs *)0",
14366         don't parenthesize return value, add spaces around "=" and after
14367         ";-in-for-stmt".
14368
14369 2011-01-14  Markus Duft <mduft@gentoo.org>
14370
14371         mountlist: add support for Interix
14372         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14373         Apply statvfs to all entries of /dev/fs.
14374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14375         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14376
14377 2011-01-20  Jim Meyering  <meyering@redhat.com>
14378
14379         maint.mk: improve the public-submodule-commit rule
14380         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14381         to suppress printing of its commands... unless V=1.
14382         Add git submodule's --quiet option to suppress printing of e.g.,
14383         "Entering gnulib" output.
14384         "cd" into $(srcdir) before running git submodule.
14385
14386 2011-01-20  Bruno Haible  <bruno@clisp.org>
14387
14388         include_next: Fix bug introduced on 2011-01-18.
14389         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14390         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14391         ac_cv_header_... variable if the second argument is not 'check'.
14392         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14393         gl_NEXT_HEADERS_INTERNAL.
14394
14395 2011-01-20  Bruno Haible  <bruno@clisp.org>
14396
14397         Allow the user to avoid the GNULIB_TEST_* macros.
14398         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14399         Suggested by Paul Eggert.
14400
14401 2011-01-14  Jim Meyering  <meyering@redhat.com>
14402
14403         bootstrap: avoid failure when there is no .gitmodules file
14404         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14405         has been assigned to, even when its value is the empty string.
14406         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14407         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14408         Reported by John W. Eaton <jwe@gnu.org>.
14409
14410 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14411
14412         assume <ctype.h>, ..., <time.h> exist
14413         For years gnulib has been assuming the existence of the headers
14414         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14415         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14416         them, since they don't appear to be needed.
14417         * README (Portability guidelines): Document this.
14418         * lib/flock.c: Assume <fcntl.h> exists.
14419         * lib/regex_internal.h: Assume <locale.h> exists.
14420         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14421         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14422         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14423         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14424         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14425         * m4/regex.m4 (gl_REGEX): Likewise.
14426         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14427         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14428         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14429         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14430         * tests/test-argp.c: Likewise.
14431         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14432
14433         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14434         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14435         AA_APPLE_UNIVERSAL_BUILD.  See
14436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14437         * NEWS: Document this.
14438
14439 2011-01-19  Eric Blake  <eblake@redhat.com>
14440
14441         c-stack: assume stack overflow if SA_SIGINFO unsupported
14442         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14443         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14444         sigaction will work.
14445         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14446         behavior match Linux.
14447         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14448
14449         stdbool-tests: accomodate Haiku
14450         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14451
14452         binary-io: fix O_TEXT on Haiku
14453         * modules/binary-io (Depends-on): Add fcntl-h.
14454         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14455         than blindly undefining O_TEXT.
14456         Reported by Scott McCreary.
14457
14458 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14459
14460         include_next: do not check for standard headers like stddef.h
14461
14462         I found this problem when modifying Emacs to use gnulib.
14463         I noticed that it added HAVE_STDDEF_H to config.h, even though
14464         gnulib always assumes <stddef.h> exists as per README and this
14465         symbol is unnecessary.
14466         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14467         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14468         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14469         faster for headers like stddef.h that are known to exist.
14470         (gl_CHECK_NEXT_HEADERS): Use it.
14471         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14472         rather than gl_CHECK_NEXT_HEADERS.
14473         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14474         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14475
14476 2011-01-18  Eric Blake  <eblake@redhat.com>
14477
14478         ansi-c++-opt: skip C++ dependency style if C++ is unused
14479         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14480         tests when we know C++ compilation is not desired.
14481         Reported by Scott McCreary.
14482
14483 2011-01-18  Bruno Haible  <bruno@clisp.org>
14484
14485         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14486         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14487         (main): Perform test also when getrlimit and setrlimit don't exist or
14488         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14489         limiting the address space size using setrlimit, compare the address
14490         space size before and after the the test.
14491         * tests/test-dprintf-posix2.c: Likewise.
14492         * tests/test-fprintf-posix3.sh: Update skip messages.
14493         * tests/test-dprintf-posix2.sh: Likewise.
14494         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14495         * modules/dprintf-posix-tests (Depends-on): Likewise.
14496         Reported by Bruce Korb <bkorb@gnu.org> and
14497         Gary V. Vaughan <gary@gnu.org>.
14498
14499 2011-01-18  Bruno Haible  <bruno@clisp.org>
14500
14501         get-rusage-as: Improvement for Cygwin.
14502         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14503         areas that are merely reserved.
14504
14505 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14506
14507         strftime: remove dependencies on multibyte modules
14508
14509         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14510         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14511         only if __osf__ is defined, and I suspect OSF doesn't need these
14512         other modules.  If my guess is wrong, we'll need to come up with a
14513         variant of strftime that doesn't need the multibyte modules.
14514
14515         I discovered this problem when attempting modify Emacs to use the
14516         strftime module.  With the previous gnulib, this caused Emacs to
14517         need 31 new files, ranging from lib/config.charset to
14518         m4/wint_t.m4.  This was overkill and I expect would be offputting
14519         to the Emacs maintainers.  After this change, only 6 new files are
14520         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14521         stdbool.m4, and tm_gmtoff.m4.
14522
14523         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14524         Suggested by Bruno Haible in
14525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14526         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14527         and do not check for wchar.h.
14528         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14529         (Depends-on): Remove mbrlen, mbsinit, wchar.
14530
14531 2011-01-18  Bruno Haible  <bruno@clisp.org>
14532
14533         Tests for module 'get-rusage-as'.
14534         * modules/get-rusage-as-tests: New file.
14535         * tests/test-get-rusage-as.c: New file.
14536
14537         New module 'get-rusage-as'.
14538         * modules/get-rusage-as: New file.
14539         * lib/resource-ext.h: New file.
14540         * lib/get-rusage-as.c: New file.
14541
14542 2011-01-17  Eric Blake  <eblake@redhat.com>
14543
14544         sigaction: relax license from LGPLv3+ to LGPLv2+
14545         * modules/sigaction (License): Relax to LGPLv2+.
14546
14547 2011-01-14  Bruno Haible  <bruno@clisp.org>
14548
14549         filemode: Make function declarations usable in C++ mode.
14550         * lib/filemode.h: Enclose function declarations in extern "C" block.
14551         Reported by John W. Eaton <jwe@gnu.org>.
14552
14553 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14554
14555         save-cwd: no longer include "xgetcwd.h"
14556         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14557         This avoids a compilation failure in projects that use save-cwd
14558         without also using the xgetcwd module.
14559
14560 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14563         This is so that a program like Emacs, which needs only dtoastr,
14564         does not have to bother with distributing and compiling ftoastr
14565         and ldtoastr.
14566         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14567         * modules/dtoastr, modules/ldtoastr: New files.
14568         * modules/ftoastr: Now works just for 'float'.
14569         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14570         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14571         dtoastr.c, ldtoastr.c.
14572
14573 2011-01-11  Jim Meyering  <meyering@redhat.com>
14574
14575         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14576         There is no need to work around the lack of the fchdir function,
14577         since gnulib can now provide a replacement when required.
14578         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14579         * modules/save-cwd (Depends-on): Add fchdir.
14580
14581 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14582
14583         openat, save-cwd: avoid xmalloc
14584
14585         This removes a direct (but undocumented) dependency of openat on
14586         xalloc, along with an indirect dependency via save-cwd.  It also
14587         removes a dependency of save-cwd on xgetcwd, and thereby
14588         indirectly on xalloc.  This change causes the openat substitute
14589         to fall back on save_cwd when memory is tight, and for save_cwd to
14590         fail instead of dying when memory is tight, but that's good enough.
14591         Problem and initial idea for fix reported by Bastien Roucaries in
14592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14593
14594         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14595         xalloc.h (for xmalloc).
14596         (openat_proc_name): Use malloc, not xmalloc.
14597         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14598         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14599
14600         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14601         This avoids heap allocation for file names whose lengths are in
14602         the range 512..1023, with the upper bound increasing to at most
14603         4031 depending on the platform's PATH_MAX.  (We do not want
14604         pathmax.h here as it might supply a non-constant PATH_MAX.)
14605         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14606         Perhaps they should be moved to malloca.h?
14607         (OPENAT_BUFFER_SIZE): Use them.
14608
14609 2011-01-10  Bruno Haible  <bruno@clisp.org>
14610
14611         doc: Update users.txt.
14612         * users.txt: Add recutils.
14613
14614 2011-01-09  Karl Berry  <karl@gnu.org>
14615
14616         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14617
14618         * doc/configmake.texi: New file.
14619         * doc/gnulib.texi: Include it.
14620         * modules/configmake: Move documentation from here.
14621
14622 2011-01-09  Bruno Haible  <bruno@clisp.org>
14623
14624         Update to Unicode 6.0.0.
14625         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14626         (get_lbp): Update for Unicode 6.0.0.
14627         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14628         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14629         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14630         U+11001, U+11038..U+11046. Remove U+06DE.
14631         (uc_width): Fix bounds of planes.
14632         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14633         lib/uniwidth/width.c.
14634         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14635         trailing whitespace removed.
14636         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14637         without comments, but with the original copyright notice.
14638         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14639         * lib/unicase/ignorable.h: Likewise.
14640         * lib/unicase/tocasefold.h: Likewise.
14641         * lib/unicase/tolower.h: Likewise.
14642         * lib/unicase/totitle.h: Likewise.
14643         * lib/unicase/toupper.h: Likewise.
14644         * lib/unictype/bidi_of.h: Likewise.
14645         * lib/unictype/blocks.h: Likewise.
14646         * lib/unictype/categ_C.h: Likewise.
14647         * lib/unictype/categ_Cn.h: Likewise.
14648         * lib/unictype/categ_L.h: Likewise.
14649         * lib/unictype/categ_Ll.h: Likewise.
14650         * lib/unictype/categ_Lm.h: Likewise.
14651         * lib/unictype/categ_Lo.h: Likewise.
14652         * lib/unictype/categ_Lu.h: Likewise.
14653         * lib/unictype/categ_M.h: Likewise.
14654         * lib/unictype/categ_Mc.h: Likewise.
14655         * lib/unictype/categ_Me.h: Likewise.
14656         * lib/unictype/categ_Mn.h: Likewise.
14657         * lib/unictype/categ_N.h: Likewise.
14658         * lib/unictype/categ_Nd.h: Likewise.
14659         * lib/unictype/categ_No.h: Likewise.
14660         * lib/unictype/categ_P.h: Likewise.
14661         * lib/unictype/categ_Po.h: Likewise.
14662         * lib/unictype/categ_S.h: Likewise.
14663         * lib/unictype/categ_Sc.h: Likewise.
14664         * lib/unictype/categ_Sk.h: Likewise.
14665         * lib/unictype/categ_Sm.h: Likewise.
14666         * lib/unictype/categ_So.h: Likewise.
14667         * lib/unictype/categ_of.h: Likewise.
14668         * lib/unictype/combining.h: Likewise.
14669         * lib/unictype/ctype_alnum.h: Likewise.
14670         * lib/unictype/ctype_alpha.h: Likewise.
14671         * lib/unictype/ctype_graph.h: Likewise.
14672         * lib/unictype/ctype_lower.h: Likewise.
14673         * lib/unictype/ctype_print.h: Likewise.
14674         * lib/unictype/ctype_punct.h: Likewise.
14675         * lib/unictype/ctype_upper.h: Likewise.
14676         * lib/unictype/decdigit.h: Likewise.
14677         * lib/unictype/digit.h: Likewise.
14678         * lib/unictype/numeric.h: Likewise.
14679         * lib/unictype/pr_alphabetic.h: Likewise.
14680         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14681         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14682         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14683         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14684         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14685         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14686         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14687         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14688         * lib/unictype/pr_case_ignorable.h: Likewise.
14689         * lib/unictype/pr_cased.h: Likewise.
14690         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14691         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14692         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14693         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14694         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14695         * lib/unictype/pr_combining.h: Likewise.
14696         * lib/unictype/pr_composite.h: Likewise.
14697         * lib/unictype/pr_currency_symbol.h: Likewise.
14698         * lib/unictype/pr_decimal_digit.h: Likewise.
14699         * lib/unictype/pr_deprecated.h: Likewise.
14700         * lib/unictype/pr_format_control.h: Likewise.
14701         * lib/unictype/pr_grapheme_base.h: Likewise.
14702         * lib/unictype/pr_grapheme_extend.h: Likewise.
14703         * lib/unictype/pr_grapheme_link.h: Likewise.
14704         * lib/unictype/pr_id_continue.h: Likewise.
14705         * lib/unictype/pr_id_start.h: Likewise.
14706         * lib/unictype/pr_ideographic.h: Likewise.
14707         * lib/unictype/pr_lowercase.h: Likewise.
14708         * lib/unictype/pr_math.h: Likewise.
14709         * lib/unictype/pr_numeric.h: Likewise.
14710         * lib/unictype/pr_other_alphabetic.h: Likewise.
14711         * lib/unictype/pr_other_id_continue.h: Likewise.
14712         * lib/unictype/pr_other_math.h: Likewise.
14713         * lib/unictype/pr_punctuation.h: Likewise.
14714         * lib/unictype/pr_sentence_terminal.h: Likewise.
14715         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14716         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14717         * lib/unictype/pr_unified_ideograph.h: Likewise.
14718         * lib/unictype/pr_uppercase.h: Likewise.
14719         * lib/unictype/pr_xid_continue.h: Likewise.
14720         * lib/unictype/pr_xid_start.h: Likewise.
14721         * lib/unictype/scripts.h: Likewise.
14722         * lib/unictype/scripts_byname.gperf: Likewise.
14723         * lib/unictype/sy_java_ident.h: Likewise.
14724         * lib/unigbrk/gbrkprop.h: Likewise.
14725         * lib/unilbrk/lbrkprop1.h: Likewise.
14726         * lib/unilbrk/lbrkprop2.h: Likewise.
14727         * lib/uninorm/decomposition-table2.h: Likewise.
14728         * lib/uniwbrk/wbrkprop.h: Likewise.
14729         * tests/unicase/test-cased.c: Likewise.
14730         * tests/unicase/test-ignorable.c: Likewise.
14731         * tests/unicase/test-uc_tolower.c: Likewise.
14732         * tests/unicase/test-uc_totitle.c: Likewise.
14733         * tests/unicase/test-uc_toupper.c: Likewise.
14734         * tests/unictype/test-categ_C.c: Likewise.
14735         * tests/unictype/test-categ_Cn.c: Likewise.
14736         * tests/unictype/test-categ_L.c: Likewise.
14737         * tests/unictype/test-categ_Ll.c: Likewise.
14738         * tests/unictype/test-categ_Lm.c: Likewise.
14739         * tests/unictype/test-categ_Lo.c: Likewise.
14740         * tests/unictype/test-categ_Lu.c: Likewise.
14741         * tests/unictype/test-categ_M.c: Likewise.
14742         * tests/unictype/test-categ_Mc.c: Likewise.
14743         * tests/unictype/test-categ_Me.c: Likewise.
14744         * tests/unictype/test-categ_Mn.c: Likewise.
14745         * tests/unictype/test-categ_N.c: Likewise.
14746         * tests/unictype/test-categ_Nd.c: Likewise.
14747         * tests/unictype/test-categ_No.c: Likewise.
14748         * tests/unictype/test-categ_P.c: Likewise.
14749         * tests/unictype/test-categ_Po.c: Likewise.
14750         * tests/unictype/test-categ_S.c: Likewise.
14751         * tests/unictype/test-categ_Sc.c: Likewise.
14752         * tests/unictype/test-categ_Sk.c: Likewise.
14753         * tests/unictype/test-categ_Sm.c: Likewise.
14754         * tests/unictype/test-categ_So.c: Likewise.
14755         * tests/unictype/test-ctype_alnum.c: Likewise.
14756         * tests/unictype/test-ctype_alpha.c: Likewise.
14757         * tests/unictype/test-ctype_graph.c: Likewise.
14758         * tests/unictype/test-ctype_lower.c: Likewise.
14759         * tests/unictype/test-ctype_print.c: Likewise.
14760         * tests/unictype/test-ctype_punct.c: Likewise.
14761         * tests/unictype/test-ctype_upper.c: Likewise.
14762         * tests/unictype/test-decdigit.h: Likewise.
14763         * tests/unictype/test-digit.h: Likewise.
14764         * tests/unictype/test-numeric.h: Likewise.
14765         * tests/unictype/test-pr_alphabetic.c: Likewise.
14766         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14767         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14768         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14769         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14770         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14771         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14772         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14773         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14774         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14775         * tests/unictype/test-pr_cased.c: Likewise.
14776         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14777         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14778         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14779         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14780         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14781         * tests/unictype/test-pr_combining.c: Likewise.
14782         * tests/unictype/test-pr_composite.c: Likewise.
14783         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14784         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14785         * tests/unictype/test-pr_deprecated.c: Likewise.
14786         * tests/unictype/test-pr_format_control.c: Likewise.
14787         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14788         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14789         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14790         * tests/unictype/test-pr_id_continue.c: Likewise.
14791         * tests/unictype/test-pr_id_start.c: Likewise.
14792         * tests/unictype/test-pr_ideographic.c: Likewise.
14793         * tests/unictype/test-pr_lowercase.c: Likewise.
14794         * tests/unictype/test-pr_math.c: Likewise.
14795         * tests/unictype/test-pr_numeric.c: Likewise.
14796         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14797         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14798         * tests/unictype/test-pr_other_math.c: Likewise.
14799         * tests/unictype/test-pr_punctuation.c: Likewise.
14800         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14801         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14802         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14803         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14804         * tests/unictype/test-pr_uppercase.c: Likewise.
14805         * tests/unictype/test-pr_xid_continue.c: Likewise.
14806         * tests/unictype/test-pr_xid_start.c: Likewise.
14807         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14808         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14809         changes.
14810         * lib/unictype/categ_Cc.h: Likewise.
14811         * lib/unictype/categ_Cf.h: Likewise.
14812         * lib/unictype/categ_Co.h: Likewise.
14813         * lib/unictype/categ_Cs.h: Likewise.
14814         * lib/unictype/categ_Lt.h: Likewise.
14815         * lib/unictype/categ_Nl.h: Likewise.
14816         * lib/unictype/categ_Pc.h: Likewise.
14817         * lib/unictype/categ_Pd.h: Likewise.
14818         * lib/unictype/categ_Pe.h: Likewise.
14819         * lib/unictype/categ_Pf.h: Likewise.
14820         * lib/unictype/categ_Pi.h: Likewise.
14821         * lib/unictype/categ_Ps.h: Likewise.
14822         * lib/unictype/categ_Z.h: Likewise.
14823         * lib/unictype/categ_Zl.h: Likewise.
14824         * lib/unictype/categ_Zp.h: Likewise.
14825         * lib/unictype/categ_Zs.h: Likewise.
14826         * lib/unictype/ctype_blank.h: Likewise.
14827         * lib/unictype/ctype_cntrl.h: Likewise.
14828         * lib/unictype/ctype_digit.h: Likewise.
14829         * lib/unictype/ctype_space.h: Likewise.
14830         * lib/unictype/ctype_xdigit.h: Likewise.
14831         * lib/unictype/mirror.h: Likewise.
14832         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14833         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14834         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14835         * lib/unictype/pr_bidi_control.h: Likewise.
14836         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14837         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14838         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14839         * lib/unictype/pr_bidi_pdf.h: Likewise.
14840         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14841         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14842         * lib/unictype/pr_dash.h: Likewise.
14843         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14844         * lib/unictype/pr_diacritic.h: Likewise.
14845         * lib/unictype/pr_extender.h: Likewise.
14846         * lib/unictype/pr_hex_digit.h: Likewise.
14847         * lib/unictype/pr_hyphen.h: Likewise.
14848         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14849         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14850         * lib/unictype/pr_ignorable_control.h: Likewise.
14851         * lib/unictype/pr_iso_control.h: Likewise.
14852         * lib/unictype/pr_join_control.h: Likewise.
14853         * lib/unictype/pr_left_of_pair.h: Likewise.
14854         * lib/unictype/pr_line_separator.h: Likewise.
14855         * lib/unictype/pr_logical_order_exception.h: Likewise.
14856         * lib/unictype/pr_non_break.h: Likewise.
14857         * lib/unictype/pr_not_a_character.h: Likewise.
14858         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14859         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14860         * lib/unictype/pr_other_id_start.h: Likewise.
14861         * lib/unictype/pr_other_lowercase.h: Likewise.
14862         * lib/unictype/pr_other_uppercase.h: Likewise.
14863         * lib/unictype/pr_paired_punctuation.h: Likewise.
14864         * lib/unictype/pr_paragraph_separator.h: Likewise.
14865         * lib/unictype/pr_pattern_syntax.h: Likewise.
14866         * lib/unictype/pr_pattern_white_space.h: Likewise.
14867         * lib/unictype/pr_private_use.h: Likewise.
14868         * lib/unictype/pr_quotation_mark.h: Likewise.
14869         * lib/unictype/pr_radical.h: Likewise.
14870         * lib/unictype/pr_soft_dotted.h: Likewise.
14871         * lib/unictype/pr_space.h: Likewise.
14872         * lib/unictype/pr_titlecase.h: Likewise.
14873         * lib/unictype/pr_variation_selector.h: Likewise.
14874         * lib/unictype/pr_white_space.h: Likewise.
14875         * lib/unictype/pr_zero_width.h: Likewise.
14876         * lib/unictype/sy_c_ident.h: Likewise.
14877         * lib/unictype/sy_c_whitespace.h: Likewise.
14878         * lib/unictype/sy_java_whitespace.h: Likewise.
14879         * lib/uninorm/composition-table.gperf: Likewise.
14880         * lib/uninorm/decomposition-table1.h: Likewise.
14881         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14882         LB8.
14883         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14884         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14885         * modules/unictype/*: Bump version number of expected libunistring
14886         version.
14887
14888 2011-01-09  Bruno Haible  <bruno@clisp.org>
14889
14890         Update to Unicode 5.2.0.
14891         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14892         trailing whitespace removed.
14893
14894 2011-01-09  Bruno Haible  <bruno@clisp.org>
14895
14896         New Unicode character properties, from Unicode 5.2.0.
14897         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14898         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14899         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14900         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14901         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14902         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14903         uc_is_property_cased, uc_is_property_case_ignorable,
14904         uc_is_property_changes_when_lowercased,
14905         uc_is_property_changes_when_uppercased,
14906         uc_is_property_changes_when_titlecased,
14907         uc_is_property_changes_when_casefolded,
14908         uc_is_property_changes_when_casemapped): New declarations.
14909         * lib/unictype/pr_byname.gperf: Add the new properties.
14910         * modules/unictype/property-byname (Depends-on): Depend on the new
14911         properties modules.
14912         * modules/unictype/property-all (Depends-on): Likewise.
14913         * MODULES.html.sh (Unicode string functions): Add
14914         unictype/property-case-ignorable, unictype/property-cased,
14915         unictype/property-changes-when-casefolded,
14916         unictype/property-changes-when-casemapped,
14917         unictype/property-changes-when-lowercased,
14918         unictype/property-changes-when-titlecased,
14919         unictype/property-changes-when-uppercased.
14920
14921         New module 'unictype/property-changes-when-casemapped'.
14922         * modules/unictype/property-changes-when-casemapped: New file.
14923         * lib/unictype/pr_changes_when_casemapped.c: New file.
14924         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14925         generated by gen-uni-tables.
14926         * modules/unictype/property-changes-when-casemapped-tests: New file.
14927         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14928         automatically generated by gen-uni-tables.
14929
14930         New module 'unictype/property-changes-when-casefolded'.
14931         * modules/unictype/property-changes-when-casefolded: New file.
14932         * lib/unictype/pr_changes_when_casefolded.c: New file.
14933         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14934         generated by gen-uni-tables.
14935         * modules/unictype/property-changes-when-casefolded-tests: New file.
14936         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14937         automatically generated by gen-uni-tables.
14938
14939         New module 'unictype/property-changes-when-titlecased'.
14940         * modules/unictype/property-changes-when-titlecased: New file.
14941         * lib/unictype/pr_changes_when_titlecased.c: New file.
14942         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14943         generated by gen-uni-tables.
14944         * modules/unictype/property-changes-when-titlecased-tests: New file.
14945         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14946         automatically generated by gen-uni-tables.
14947
14948         New module 'unictype/property-changes-when-uppercased'.
14949         * modules/unictype/property-changes-when-uppercased: New file.
14950         * lib/unictype/pr_changes_when_uppercased.c: New file.
14951         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14952         generated by gen-uni-tables.
14953         * modules/unictype/property-changes-when-uppercased-tests: New file.
14954         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14955         automatically generated by gen-uni-tables.
14956
14957         New module 'unictype/property-changes-when-lowercased'.
14958         * modules/unictype/property-changes-when-lowercased: New file.
14959         * lib/unictype/pr_changes_when_lowercased.c: New file.
14960         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14961         generated by gen-uni-tables.
14962         * modules/unictype/property-changes-when-lowercased-tests: New file.
14963         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14964         automatically generated by gen-uni-tables.
14965
14966         New module 'unictype/property-case-ignorable'.
14967         * modules/unictype/property-case-ignorable: New file.
14968         * lib/unictype/pr_case_ignorable.c: New file.
14969         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14970         by gen-uni-tables.
14971         * modules/unictype/property-case-ignorable-tests: New file.
14972         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14973         generated by gen-uni-tables.
14974
14975         New module 'unictype/property-cased'.
14976         * modules/unictype/property-cased: New file.
14977         * lib/unictype/pr_cased.c: New file.
14978         * lib/unictype/pr_cased.h: New file, automatically generated by
14979         gen-uni-tables.
14980         * modules/unictype/property-cased-tests: New file.
14981         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14982         gen-uni-tables.
14983
14984 2011-01-09  Bruno Haible  <bruno@clisp.org>
14985
14986         Update to Unicode 5.2.0.
14987         * lib/gen-uni-tables.c (output_predicate, output_category,
14988         output_combclass, output_bidi_category, output_decimal_digit_test,
14989         output_decimal_digit, output_digit_test, output_digit,
14990         output_numeric_test, output_numeric, output_mirror, output_scripts,
14991         output_scripts_byname, output_blocks, output_ident_category): Fix
14992         comment header.
14993         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14994         get_wbp.
14995         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14996         items.
14997         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14998         Changes_When_Lowercased, Changes_When_Uppercased,
14999         Changes_When_Titlecased, Changes_When_Casefolded,
15000         Changes_When_Casemapped.
15001         (is_property_alphabetic, is_property_default_ignorable_code_point):
15002         Update for Unicode 5.2.0.
15003         (is_property_cased, is_property_case_ignorable,
15004         is_property_changes_when_lowercased,
15005         is_property_changes_when_uppercased,
15006         is_property_changes_when_titlecased,
15007         is_property_changes_when_casefolded,
15008         is_property_changes_when_casemapped): New functions.
15009         (output_properties): Output also the properties cased, case_ignorable,
15010         changes_when_lowercased, changes_when_uppercased,
15011         changes_when_titlecased, changes_when_casefolded,
15012         changes_when_casemapped.
15013         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15014         Unicode TR#11 revision 17 -> 19.
15015         (LBP_CP): New enumeration value.
15016         (LBP_*): Adjust values accordingly.
15017         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15018         TR#14 revision 22 -> 24.
15019         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15020         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15021         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15022         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15023         is_WBP_MIDLETTER.
15024         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15025         the code1 and code2 of each composition rule.
15026         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15027         * lib/unicase/ignorable.h: Likewise.
15028         * lib/unicase/tocasefold.h: Likewise.
15029         * lib/unicase/tolower.h: Likewise.
15030         * lib/unicase/totitle.h: Likewise.
15031         * lib/unicase/toupper.h: Likewise.
15032         * lib/unictype/bidi_of.h: Likewise.
15033         * lib/unictype/blocks.h: Likewise.
15034         * lib/unictype/categ_C.h: Likewise.
15035         * lib/unictype/categ_Cf.h: Likewise.
15036         * lib/unictype/categ_Cn.h: Likewise.
15037         * lib/unictype/categ_L.h: Likewise.
15038         * lib/unictype/categ_Ll.h: Likewise.
15039         * lib/unictype/categ_Lm.h: Likewise.
15040         * lib/unictype/categ_Lo.h: Likewise.
15041         * lib/unictype/categ_Lu.h: Likewise.
15042         * lib/unictype/categ_M.h: Likewise.
15043         * lib/unictype/categ_Mc.h: Likewise.
15044         * lib/unictype/categ_Mn.h: Likewise.
15045         * lib/unictype/categ_N.h: Likewise.
15046         * lib/unictype/categ_Nd.h: Likewise.
15047         * lib/unictype/categ_Nl.h: Likewise.
15048         * lib/unictype/categ_No.h: Likewise.
15049         * lib/unictype/categ_P.h: Likewise.
15050         * lib/unictype/categ_Pd.h: Likewise.
15051         * lib/unictype/categ_Po.h: Likewise.
15052         * lib/unictype/categ_S.h: Likewise.
15053         * lib/unictype/categ_Sc.h: Likewise.
15054         * lib/unictype/categ_So.h: Likewise.
15055         * lib/unictype/categ_of.h: Likewise.
15056         * lib/unictype/combining.h: Likewise.
15057         * lib/unictype/ctype_alnum.h: Likewise.
15058         * lib/unictype/ctype_alpha.h: Likewise.
15059         * lib/unictype/ctype_graph.h: Likewise.
15060         * lib/unictype/ctype_lower.h: Likewise.
15061         * lib/unictype/ctype_print.h: Likewise.
15062         * lib/unictype/ctype_punct.h: Likewise.
15063         * lib/unictype/ctype_upper.h: Likewise.
15064         * lib/unictype/decdigit.h: Likewise.
15065         * lib/unictype/digit.h: Likewise.
15066         * lib/unictype/numeric.h: Likewise.
15067         * lib/unictype/pr_alphabetic.h: Likewise.
15068         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15069         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15070         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15071         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15072         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15073         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15074         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15075         * lib/unictype/pr_combining.h: Likewise.
15076         * lib/unictype/pr_composite.h: Likewise.
15077         * lib/unictype/pr_currency_symbol.h: Likewise.
15078         * lib/unictype/pr_dash.h: Likewise.
15079         * lib/unictype/pr_decimal_digit.h: Likewise.
15080         * lib/unictype/pr_deprecated.h: Likewise.
15081         * lib/unictype/pr_diacritic.h: Likewise.
15082         * lib/unictype/pr_extender.h: Likewise.
15083         * lib/unictype/pr_grapheme_base.h: Likewise.
15084         * lib/unictype/pr_grapheme_extend.h: Likewise.
15085         * lib/unictype/pr_grapheme_link.h: Likewise.
15086         * lib/unictype/pr_id_continue.h: Likewise.
15087         * lib/unictype/pr_id_start.h: Likewise.
15088         * lib/unictype/pr_ideographic.h: Likewise.
15089         * lib/unictype/pr_ignorable_control.h: Likewise.
15090         * lib/unictype/pr_logical_order_exception.h: Likewise.
15091         * lib/unictype/pr_lowercase.h: Likewise.
15092         * lib/unictype/pr_numeric.h: Likewise.
15093         * lib/unictype/pr_other_alphabetic.h: Likewise.
15094         * lib/unictype/pr_punctuation.h: Likewise.
15095         * lib/unictype/pr_sentence_terminal.h: Likewise.
15096         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15097         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15098         * lib/unictype/pr_unified_ideograph.h: Likewise.
15099         * lib/unictype/pr_uppercase.h: Likewise.
15100         * lib/unictype/pr_xid_continue.h: Likewise.
15101         * lib/unictype/pr_xid_start.h: Likewise.
15102         * lib/unictype/pr_zero_width.h: Likewise.
15103         * lib/unictype/scripts.h: Likewise.
15104         * lib/unictype/scripts_byname.gperf: Likewise.
15105         * lib/unictype/sy_java_ident.h: Likewise.
15106         * lib/unigbrk/gbrkprop.h: Likewise.
15107         * lib/unilbrk/lbrkprop1.h: Likewise.
15108         * lib/unilbrk/lbrkprop2.h: Likewise.
15109         * lib/unilbrk/lbrktables.h: Likewise.
15110         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15111         LBP_CP. Implement rule LB30.
15112         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15113         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15114         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15115         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15116         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15117         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15118         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15119         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15120         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15121         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15122         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15123         bits instead of 16 bits in the code1 and code2 of each composition
15124         rule.
15125         (uc_composition): Update for Unicode 5.2.0.
15126         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15127         * lib/uninorm/decomposition-table2.h: Likewise.
15128         * lib/uniwbrk/wbrkprop.h: Likewise.
15129         * tests/unicase/test-cased.c: Likewise.
15130         * tests/unicase/test-ignorable.c: Likewise.
15131         * tests/unicase/test-uc_tolower.c: Likewise.
15132         * tests/unicase/test-uc_totitle.c: Likewise.
15133         * tests/unicase/test-uc_toupper.c: Likewise.
15134         * tests/unictype/test-categ_C.c: Likewise.
15135         * tests/unictype/test-categ_Cf.c: Likewise.
15136         * tests/unictype/test-categ_Cn.c: Likewise.
15137         * tests/unictype/test-categ_L.c: Likewise.
15138         * tests/unictype/test-categ_Ll.c: Likewise.
15139         * tests/unictype/test-categ_Lm.c: Likewise.
15140         * tests/unictype/test-categ_Lo.c: Likewise.
15141         * tests/unictype/test-categ_Lu.c: Likewise.
15142         * tests/unictype/test-categ_M.c: Likewise.
15143         * tests/unictype/test-categ_Mc.c: Likewise.
15144         * tests/unictype/test-categ_Mn.c: Likewise.
15145         * tests/unictype/test-categ_N.c: Likewise.
15146         * tests/unictype/test-categ_Nd.c: Likewise.
15147         * tests/unictype/test-categ_Nl.c: Likewise.
15148         * tests/unictype/test-categ_No.c: Likewise.
15149         * tests/unictype/test-categ_P.c: Likewise.
15150         * tests/unictype/test-categ_Pd.c: Likewise.
15151         * tests/unictype/test-categ_Po.c: Likewise.
15152         * tests/unictype/test-categ_S.c: Likewise.
15153         * tests/unictype/test-categ_Sc.c: Likewise.
15154         * tests/unictype/test-categ_So.c: Likewise.
15155         * tests/unictype/test-ctype_alnum.c: Likewise.
15156         * tests/unictype/test-ctype_alpha.c: Likewise.
15157         * tests/unictype/test-ctype_graph.c: Likewise.
15158         * tests/unictype/test-ctype_lower.c: Likewise.
15159         * tests/unictype/test-ctype_print.c: Likewise.
15160         * tests/unictype/test-ctype_punct.c: Likewise.
15161         * tests/unictype/test-ctype_upper.c: Likewise.
15162         * tests/unictype/test-decdigit.h: Likewise.
15163         * tests/unictype/test-digit.h: Likewise.
15164         * tests/unictype/test-numeric.h: Likewise.
15165         * tests/unictype/test-pr_alphabetic.c: Likewise.
15166         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15167         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15168         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15169         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15170         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15171         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15172         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15173         * tests/unictype/test-pr_combining.c: Likewise.
15174         * tests/unictype/test-pr_composite.c: Likewise.
15175         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15176         * tests/unictype/test-pr_dash.c: Likewise.
15177         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15178         * tests/unictype/test-pr_deprecated.c: Likewise.
15179         * tests/unictype/test-pr_diacritic.c: Likewise.
15180         * tests/unictype/test-pr_extender.c: Likewise.
15181         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15182         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15183         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15184         * tests/unictype/test-pr_id_continue.c: Likewise.
15185         * tests/unictype/test-pr_id_start.c: Likewise.
15186         * tests/unictype/test-pr_ideographic.c: Likewise.
15187         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15188         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15189         * tests/unictype/test-pr_lowercase.c: Likewise.
15190         * tests/unictype/test-pr_numeric.c: Likewise.
15191         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15192         * tests/unictype/test-pr_punctuation.c: Likewise.
15193         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15194         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15195         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15196         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15197         * tests/unictype/test-pr_uppercase.c: Likewise.
15198         * tests/unictype/test-pr_xid_continue.c: Likewise.
15199         * tests/unictype/test-pr_xid_start.c: Likewise.
15200         * tests/unictype/test-pr_zero_width.c: Likewise.
15201         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15202         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15203         changed behaviour: line breaking is now disallowed between a letter
15204         or '=' and '('.
15205         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15206         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15207         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15208         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15209         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15210         lib/uniwidth/width.c.
15211         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15212         without comments, but with the original copyright notice.
15213         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15214         changes.
15215         * lib/unictype/categ_Cc.h: Likewise.
15216         * lib/unictype/categ_Co.h: Likewise.
15217         * lib/unictype/categ_Cs.h: Likewise.
15218         * lib/unictype/categ_Lt.h: Likewise.
15219         * lib/unictype/categ_Me.h: Likewise.
15220         * lib/unictype/categ_Pc.h: Likewise.
15221         * lib/unictype/categ_Pe.h: Likewise.
15222         * lib/unictype/categ_Pf.h: Likewise.
15223         * lib/unictype/categ_Pi.h: Likewise.
15224         * lib/unictype/categ_Ps.h: Likewise.
15225         * lib/unictype/categ_Sk.h: Likewise.
15226         * lib/unictype/categ_Sm.h: Likewise.
15227         * lib/unictype/categ_Z.h: Likewise.
15228         * lib/unictype/categ_Zl.h: Likewise.
15229         * lib/unictype/categ_Zp.h: Likewise.
15230         * lib/unictype/categ_Zs.h: Likewise.
15231         * lib/unictype/ctype_blank.h: Likewise.
15232         * lib/unictype/ctype_cntrl.h: Likewise.
15233         * lib/unictype/ctype_digit.h: Likewise.
15234         * lib/unictype/ctype_space.h: Likewise.
15235         * lib/unictype/ctype_xdigit.h: Likewise.
15236         * lib/unictype/mirror.h: Likewise.
15237         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15238         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15239         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15240         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15241         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15242         * lib/unictype/pr_bidi_control.h: Likewise.
15243         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15244         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15245         * lib/unictype/pr_bidi_pdf.h: Likewise.
15246         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15247         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15248         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15249         * lib/unictype/pr_format_control.h: Likewise.
15250         * lib/unictype/pr_hex_digit.h: Likewise.
15251         * lib/unictype/pr_hyphen.h: Likewise.
15252         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15253         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15254         * lib/unictype/pr_iso_control.h: Likewise.
15255         * lib/unictype/pr_join_control.h: Likewise.
15256         * lib/unictype/pr_left_of_pair.h: Likewise.
15257         * lib/unictype/pr_line_separator.h: Likewise.
15258         * lib/unictype/pr_math.h: Likewise.
15259         * lib/unictype/pr_non_break.h: Likewise.
15260         * lib/unictype/pr_not_a_character.h: Likewise.
15261         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15262         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15263         * lib/unictype/pr_other_id_continue.h: Likewise.
15264         * lib/unictype/pr_other_id_start.h: Likewise.
15265         * lib/unictype/pr_other_lowercase.h: Likewise.
15266         * lib/unictype/pr_other_math.h: Likewise.
15267         * lib/unictype/pr_other_uppercase.h: Likewise.
15268         * lib/unictype/pr_paired_punctuation.h: Likewise.
15269         * lib/unictype/pr_paragraph_separator.h: Likewise.
15270         * lib/unictype/pr_pattern_syntax.h: Likewise.
15271         * lib/unictype/pr_pattern_white_space.h: Likewise.
15272         * lib/unictype/pr_private_use.h: Likewise.
15273         * lib/unictype/pr_quotation_mark.h: Likewise.
15274         * lib/unictype/pr_radical.h: Likewise.
15275         * lib/unictype/pr_soft_dotted.h: Likewise.
15276         * lib/unictype/pr_space.h: Likewise.
15277         * lib/unictype/pr_titlecase.h: Likewise.
15278         * lib/unictype/pr_variation_selector.h: Likewise.
15279         * lib/unictype/pr_white_space.h: Likewise.
15280         * lib/unictype/sy_c_ident.h: Likewise.
15281         * lib/unictype/sy_c_whitespace.h: Likewise.
15282         * lib/unictype/sy_java_whitespace.h: Likewise.
15283         * modules/uni*/*: Bump version number of expected libunistring version.
15284         Reported by Simon Josefsson.
15285
15286 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15287
15288         useless-if-before-free: fix typo in --help and make the internal,
15289         automatic version date update process work once again.
15290         --help output contained a NUL character instead of the
15291         backslash-zero that was intended.  Also, the "must lie within
15292         the first 8 lines" line is on line 9, and hence not getting
15293         automatically updated.
15294         * build-aux/useless-if-before-free: Fix the former by adding a
15295         backslash, and the latter by condensing the three lines of what-it-does
15296         to a single line, leaving one line of slack for the future.
15297
15298 2011-01-09  Bruno Haible  <bruno@clisp.org>
15299
15300         uniwidth/width: Fix width of U+1D173..U+1D17A.
15301         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15302         symbolic_width, output_width_property_test): New functions.
15303         (main): Invoke output_nonspacing_property, output_width_property_test.
15304         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15305         U+1D173..U+1D17A.
15306         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15307         1.
15308         * modules/uniwidth/*: Bump version number of expected libunistring
15309         version.
15310         * modules/unilbrk/*: Likewise.
15311
15312 2011-01-08  Bruno Haible  <bruno@clisp.org>
15313
15314         uninorm tests: Preserve copyright of Unicode data file.
15315         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15316         Mention modifications.
15317
15318 2011-01-08  Bruno Haible  <bruno@clisp.org>
15319
15320         gen-uni-tables: Prepare for Unicode 5.2.0.
15321         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15322         (debug_output_lbp, output_lbp): Update.
15323
15324 2011-01-08  Bruno Haible  <bruno@clisp.org>
15325
15326         unilbrk: Clarify gen-uni-tables.c code.
15327         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15328         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15329         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15330
15331 2011-01-07  Bruno Haible  <bruno@clisp.org>
15332
15333         strtod: Restore errno when successfully parsing Infinity or NaN.
15334         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15335         restore the original errno.
15336
15337 2011-01-07  Bruno Haible  <bruno@clisp.org>
15338
15339         remove test: Avoid failure on HP-UX 11.
15340         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15341
15342 2011-01-07  Bruno Haible  <bruno@clisp.org>
15343
15344         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15345         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15346         error code.
15347
15348 2011-01-07  Pádraig Brady <P@draigBrady.com>
15349
15350         ignore-value: fixup comments, and add Eric Blake
15351         as an author since he rewrote the macros.
15352         * lib/ignore-value.h (ignore_value):  State that
15353         we now support aggregates.  Also specify exactly
15354         when the GCC warn_unused_result feature was added.
15355
15356 2011-01-06  Eric Blake  <eblake@redhat.com>
15357
15358         ignore-value: support aggregate types
15359         * lib/ignore-value.h (ignore_value): Provide separate gcc
15360         definition.
15361         * modules/ignore-value-tests: New test module.
15362         * tests/test-ignore-value.c: New test.
15363
15364         maint.mk: improve sc_prohibit_strcmp regex
15365         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15366         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15367         definition of STRNEQ.
15368
15369         signal: work around Haiku issue with SIGBUS
15370         * lib/siglist.h: Add comment.
15371         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15372         strsignal's favoring of SIGSEGV.
15373         * tests/test-signal.c (main): Avoid test failure.
15374         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15375         Reported by Scott McCreary.
15376
15377         maint.mk: add pre-release check to ensure submodule commits are public
15378         * top/maint.mk (public-submodule-commit): New rule.
15379         (submodule-checks): New variable.
15380         (alpha beta stable): Depend on the variable.
15381
15382 2011-01-05  Pádraig Brady <P@draigBrady.com>
15383         and Jim Meyering  <meyering@redhat.com>
15384
15385         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15386         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15387         (ATTRIBUTE_DEPRECATED): Define.
15388         (_ignore_case): New function.
15389         (ignore_value): New macro, to replace the old function.
15390         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15391         * modules/ignore-value (Depends-on): Add stdint.
15392
15393 2011-01-04  Eric Blake  <eblake@redhat.com>
15394
15395         doc: regenerate INSTALL
15396         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15397         @firstparagraphindent support, now that autoconf dropped it.
15398         (INSTALL_PRELUDE): Reinstate old macro.
15399         * doc/install.texi: Resync from autoconf.
15400         * doc/INSTALL: Reflect recent autoconf update.
15401         * doc/INSTALL.ISO: Likewise.
15402         * doc/INSTALL.UTF-8: Likewise.
15403         Reported by Karl Berry.
15404
15405 2011-01-04  Bruce Korb  <address@hidden>
15406
15407         git-version-gen: avoid a sub-shell
15408         * build-aux/git-version-gen: Redirect stderr in `...` via
15409         "exec 2>...", rather than via an added sub-shell.
15410
15411 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15412
15413         git-version-gen: use (...) rather than sh -c '...'
15414         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15415         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15416
15417 2011-01-03  Jim Meyering  <meyering@redhat.com>
15418
15419         git-version-gen: convert leading TABs to spaces
15420         * build-aux/git-version-gen: Expand leading TABs.
15421
15422         git-version-gen: handle failed "git rev-list"
15423         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15424         from git and proceeding as if it had succeeded but printed no SHA1
15425         checksums, suppress the diagnostic and handle the failure.
15426         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15427
15428         git-version-gen: include command name in one more diagnostic
15429         * build-aux/git-version-gen: When the required .tarball-version file
15430         was missing or unreadable, you might see the diagnostic from "cat",
15431         but no trace of the name of the invoking script.  Now, you still see
15432         the diagnostic from cat, but also get one from "git-version-gen: ".
15433         Inspired by a patch from Bruce Korb.
15434
15435         update-copyright: adjust test to match changed code
15436         * tests/test-update-copyright.sh: Change test's expected output
15437         to match new actual output.
15438
15439 2011-01-02  Bruno Haible  <bruno@clisp.org>
15440
15441         getlogin_r: Avoid test failure on HP-UX 11.
15442         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15443         ERANGE when the second argument is zero.
15444         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15445         portability problem.
15446
15447 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15448
15449         * build-aux/update-copyright: doc Simon's changes
15450
15451 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15452
15453         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15454         environment variable.
15455
15456 2011-01-02  Bruno Haible  <bruno@clisp.org>
15457
15458         unigbrk: Avoid gcc warnings.
15459         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15460         unused variable.
15461         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15462         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15463         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15464         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15465         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15466         Change type of first argument to 'const char *'.
15467         (main): Remove unused variable.
15468         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15469         type of first argument to 'const char *'.
15470         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15471         Likewise.
15472         (main): Change type of variable 's'.
15473         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15474         to 'int'.
15475
15476 2011-01-02  Bruno Haible  <bruno@clisp.org>
15477
15478         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15479         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15480         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15481         bug.
15482         * lib/pwrite.c: Undo 2010-12-31 patch.
15483         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15484
15485 2011-01-02  Bruno Haible  <bruno@clisp.org>
15486
15487         pread: Fix test whether it works.
15488         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15489
15490 2011-01-02  Bruno Haible  <bruno@clisp.org>
15491
15492         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15493         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15494         ends in "6". Don't require a specific month name. Try also the locale
15495         names found on HP-UX 11 and Solaris 7.
15496
15497 2011-01-02  Bruno Haible  <bruno@clisp.org>
15498
15499         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15500         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15501         C linkage.
15502         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15503
15504 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15505
15506         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15507         for consistency, since the "cluster" term is not used elsewhere.
15508         * lib/unigbrk.in.h: Update name.
15509         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15510         * lib/unigbrk/u16-grapheme-next.c: Update name.
15511         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15512         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15513         * lib/unigbrk/u32-grapheme-next.c: Update name.
15514         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15515         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15516         * lib/unigbrk/u8-grapheme-next.c: Update name.
15517         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15518         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15519         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15520         Suggested by Bruno Haible.
15521
15522 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15523
15524         Remove module 'u8-grapheme-len' as too redundant with
15525         'u8-grapheme-next'.
15526         * modules/unigbrk/u8-grapheme-len: Delete file.
15527         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15528         * lib/unigbrk.in.h: Remove prototype for deleted function.
15529         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15530         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15531
15532         Remove module 'u16-grapheme-len' as too redundant with
15533         'u16-grapheme-next'.
15534         * modules/unigbrk/u16-grapheme-len: Delete file.
15535         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15536         * lib/unigbrk.in.h: Remove prototype for deleted function.
15537         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15538         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15539
15540         Remove module 'u32-grapheme-len' as too redundant with
15541         'u32-grapheme-next'.
15542         * modules/unigbrk/u32-grapheme-len: Delete file.
15543         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15544         * lib/unigbrk.in.h: Remove prototype for deleted function.
15545         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15546         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15547
15548         Suggested by Bruno Haible.
15549
15550 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15551
15552         * unigbrk.in.h: Fix typo: "ben" => "been".
15553         Reported by Bruno Haible.
15554
15555 2011-01-01  Jim Meyering  <meyering@redhat.com>
15556
15557         maint: update almost all copyright ranges to include 2011
15558         Run the new "make update-copyright" rule.
15559
15560 2011-01-01  Jim Meyering  <meyering@redhat.com>
15561
15562         maint: update-copyright: exempt doc/INSTALL*
15563         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15564         since they are generated.  Suggested by Bruno Haible.
15565
15566 2011-01-01  Jim Meyering  <meyering@redhat.com>
15567
15568         maint: refine the update-copyright rule
15569         * Makefile (update-copyright): Also exclude any file that includes
15570         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15571         code that merely generates the comment.
15572
15573 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15574
15575         New module 'u8-grapheme-len'.
15576         * modules/unigbrk/u8-grapheme-len: New file.
15577         * modules/unigbrk/u8-grapheme-len-tests: New file.
15578         * lib/unigbrk.in.h: Add prototype for new function.
15579         * lib/unigbrk/u8-grapheme-len.c: New file.
15580         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15581
15582         New module 'u16-grapheme-len'.
15583         * modules/unigbrk/u16-grapheme-len: New file.
15584         * modules/unigbrk/u16-grapheme-len-tests: New file.
15585         * lib/unigbrk.in.h: Add prototype for new function.
15586         * lib/unigbrk/u16-grapheme-len.c: New file.
15587         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15588
15589         New module 'u32-grapheme-len'.
15590         * modules/unigbrk/u32-grapheme-len: New file.
15591         * modules/unigbrk/u32-grapheme-len-tests: New file.
15592         * lib/unigbrk.in.h: Add prototype for new function.
15593         * lib/unigbrk/u32-grapheme-len.c: New file.
15594         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15595
15596         New module 'u8-grapheme-next'.
15597         * modules/unigbrk/u8-grapheme-next: New file.
15598         * modules/unigbrk/u8-grapheme-next-tests: New file.
15599         * lib/unigbrk.in.h: Add prototype for new function.
15600         * lib/unigbrk/u8-grapheme-next.c: New file.
15601         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15602
15603         New module 'u16-grapheme-next'.
15604         * modules/unigbrk/u16-grapheme-next: New file.
15605         * modules/unigbrk/u16-grapheme-next-tests: New file.
15606         * lib/unigbrk.in.h: Add prototype for new function.
15607         * lib/unigbrk/u16-grapheme-next.c: New file.
15608         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15609
15610         New module 'u32-grapheme-next'.
15611         * modules/unigbrk/u32-grapheme-next: New file.
15612         * modules/unigbrk/u32-grapheme-next-tests: New file.
15613         * lib/unigbrk.in.h: Add prototype for new function.
15614         * lib/unigbrk/u32-grapheme-next.c: New file.
15615         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15616
15617         New module 'u8-grapheme-prev'.
15618         * modules/unigbrk/u8-grapheme-prev: New file.
15619         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15620         * lib/unigbrk.in.h: Add prototype for new function.
15621         * lib/unigbrk/u8-grapheme-prev.c: New file.
15622         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15623
15624         New module 'u16-grapheme-prev'.
15625         * modules/unigbrk/u16-grapheme-prev: New file.
15626         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15627         * lib/unigbrk.in.h: Add prototype for new function.
15628         * lib/unigbrk/u16-grapheme-prev.c: New file.
15629         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15630
15631         New module 'u32-grapheme-prev'.
15632         * modules/unigbrk/u32-grapheme-prev: New file.
15633         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15634         * lib/unigbrk.in.h: Add prototype for new function.
15635         * lib/unigbrk/u32-grapheme-prev.c: New file.
15636         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15637
15638         New module 'u8-grapheme-breaks'.
15639         * modules/unigbrk/u8-grapheme-breaks: New file.
15640         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15641         * lib/unigbrk.in.h: Add prototype for new function.
15642         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15643         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15644
15645         New module 'u16-grapheme-breaks'.
15646         * modules/unigbrk/u16-grapheme-breaks: New file.
15647         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15648         * lib/unigbrk.in.h: Add prototype for new function.
15649         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15650         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15651
15652         New module 'u32-grapheme-breaks'.
15653         * modules/unigbrk/u32-grapheme-breaks: New file.
15654         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15655         * lib/unigbrk.in.h: Add prototype for new function.
15656         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15657         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15658
15659         New module 'ulc-grapheme-breaks'.
15660         * modules/unigbrk/ulc-grapheme-breaks: New file.
15661         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15662         * m4/locale-ar.m4: New file.
15663         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15664         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15665         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15666
15667 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15668
15669         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15670         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15671         modified how this file was generated before I initially submitted
15672         the module, but failed to regenerate it.  This meant that several
15673         of the level2 entries were wrong.
15674         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15675         Remove the division-by-2 that is folded into the table now that
15676         gbrkprop.h has been regenerated properly.  Now -1 entries are
15677         handled correctly.
15678
15679         New module 'unigbrk/uc-gbrk-prop-tests'.
15680         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15681         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15682         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15683         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15684
15685 2011-01-01  Bruno Haible  <bruno@clisp.org>
15686
15687         Avoid use of hexadecimal escapes.
15688         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15689         instead of hexadecimal escapes.
15690
15691 2011-01-01  Jim Meyering  <meyering@redhat.com>
15692
15693         maint: new rule to update copyright year ranges
15694         * Makefile (update-copyright): New rule.
15695
15696         maint: indent with TABs in Makefile
15697         * Makefile: Expand leading sequences of spaces to TABs
15698
15699         version-etc: update the copyright year it reports
15700         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15701
15702 2010-12-31  Bruno Haible  <bruno@clisp.org>
15703
15704         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15705         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15706         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15707         zero.
15708
15709 2010-12-31  Bruno Haible  <bruno@clisp.org>
15710
15711         pwrite: Work around HP-UX 11.11 bug.
15712         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15713         works and set REPLACE_PWRITE if not.
15714         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15715         function.
15716         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15717
15718 2010-12-31  Bruno Haible  <bruno@clisp.org>
15719
15720         pread: Work around HP-UX 11 bugs.
15721         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15722         and set REPLACE_PREAD if not.
15723         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15724
15725 2010-12-31  Eric Blake  <eblake@redhat.com>
15726
15727         nl_langinfo: fix YESEXPR on Irix 6.5
15728         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15729         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15730         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15731         it.
15732
15733 2010-12-31  Bruno Haible  <bruno@clisp.org>
15734
15735         iconv: Document HP-UX 11 bug.
15736         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15737
15738 2010-12-31  Bruno Haible  <bruno@clisp.org>
15739
15740         ldexpl: Fix link error on HP-UX 11.
15741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15742         LDEXPL_LIBM, using $ISNANL_LIBM.
15743
15744 2010-12-31  Eric Blake  <eblake@redhat.com>
15745
15746         ftello: avoid compilation failure with SunStudio c89
15747         * lib/ftello.c (ftello): Use lseek, not llseek.
15748
15749         tests: avoid failing coreutils tests on cygwin
15750         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15751         (create_exe_shims_): Return 0 when skipping.
15752
15753 2010-12-31  Bruno Haible  <bruno@clisp.org>
15754
15755         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15756         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15757
15758 2010-12-31  Bruno Haible  <bruno@clisp.org>
15759
15760         waitpid: Fix link error in C++ mode.
15761         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15762
15763 2010-12-31  Bruno Haible  <bruno@clisp.org>
15764
15765         isnan: Use GCC built-ins when possible.
15766         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15767         __builtin_isnan.
15768         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15769         (isnan): Define using GCC built-ins for GCC >= 4.0.
15770
15771 2010-12-31  Bruno Haible  <bruno@clisp.org>
15772
15773         isnand: Fix mistake.
15774         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15775         __builtin_isnand.
15776
15777 2010-12-31  Bruno Haible  <bruno@clisp.org>
15778
15779         open: Avoid C++ error on HP-UX 11.
15780         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15781
15782 2010-12-31  Bruno Haible  <bruno@clisp.org>
15783
15784         time_r: Add missing declarations on HP-UX 11.
15785         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15786         instead of HAVE_LOCALTIME_R.
15787         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15788         HAVE_LOCALTIME_R always.
15789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15790         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15791         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15792         HAVE_LOCALTIME_R.
15793         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15794         * doc/posix-functions/localtime_r.texi: Likewise.
15795
15796 2010-12-29  Eric Blake  <eblake@redhat.com>
15797
15798         mountlist: tweak previous commit
15799         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15800         Reported by Paul Eggert.
15801
15802         mountlist: fix local drive detection on cygwin
15803         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15804         that works for cygwin.
15805
15806 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15807
15808         ftoastr, snprintf: ftoastr + snprintf module
15809         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15810         since the snprintf module now should be good enough here.
15811         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15812         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15813         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15814         GNULIB_SNPRINTF only for the test directory, and the latter
15815         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15816         seems to suffice by itself.
15817
15818 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15819
15820         alloca: one step towards thread-safety
15821         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15822         need for a static variable.  All callers changed.  This does not
15823         make the alloca replacement thread-safe, but it's one step.
15824
15825         tests: minor indenting change
15826         * tests/init.sh: Sync from coreutils housekeeping patch
15827         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15828         to keep lines within 80 columns.
15829
15830 2010-12-28  Jim Meyering  <meyering@redhat.com>
15831
15832         regex: don't infloop on persistent failing calloc
15833         * lib/regexec.c (build_trtable): Return failure indication upon
15834         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15835         In glibc, this was fixed for version 2.13:
15836         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15837
15838 2010-12-28  Bruno Haible  <bruno@clisp.org>
15839             Paul Eggert <eggert@cs.ucla.edu>
15840
15841         linkat: Make implementation robust against system behaviour variations.
15842         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15843         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15844         way, and to -2 if it needs a generic runtime test.
15845         * lib/linkat.c (solaris_optimized_link_immediate,
15846         solaris_optimized_link_follow): New functions.
15847         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15848         (check_same_link): Use it.
15849
15850 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15851
15852         New module 'unigbrk/base'.
15853         * modules/unigbrk/base: New file.
15854         * lib/unigbrk.in.h: New file.
15855
15856         New module 'unigbrk/uc-gbrk-prop'.
15857         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15858         * modules/unigbrk/uc-gbrk-prop: New file.
15859         * lib/unigbrk/gbrkprop.h: New file.
15860         * lib/unigbrk/uc-gbrk-prop.c: New file.
15861
15862         New module 'unigbrk/uc-is-grapheme-break'.
15863         * modules/unigbrk/uc-is-grapheme-break: New file.
15864         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15865         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15866         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15867         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15868         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15869
15870         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15871
15872 2010-12-27  Bruno Haible  <bruno@clisp.org>
15873
15874         linkat test: Avoid failure on Solaris 11 2010-11.
15875         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15876
15877 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15878
15879         utimens: work around glibc rounding bug on more platforms
15880         * lib/utimens.c (fdutimens): Work around rounding bug even if
15881         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15883
15884 2010-12-27  Bruno Haible  <bruno@clisp.org>
15885
15886         select tests: Improve comments.
15887         * tests/test-select.c (do_select): Add comments.
15888
15889 2010-12-27  Bruno Haible  <bruno@clisp.org>
15890
15891         select tests: Safer way of handling timeout.
15892         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15893         at every invocation.
15894
15895 2010-12-27  Bruno Haible  <bruno@clisp.org>
15896
15897         select tests: Use 'bool' where appropriate.
15898         * tests/test-select.c (connect_to_socket): Change argument type to
15899         'bool'.
15900
15901 2010-12-27  Bruno Haible  <bruno@clisp.org>
15902
15903         select tests: Use existing modules.
15904         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15905         (configure.ac): Don't test for unistd.h.
15906         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15907         declared in <unistd.h>.
15908
15909 2010-12-27  Bruno Haible  <bruno@clisp.org>
15910
15911         mbrtowc: Work around a Solaris 7 bug.
15912         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15913         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15914         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15915         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15916         MBRTOWC_NULL_ARG1_BUG.
15917         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15918         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15919         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15920         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15921
15922 2010-12-27  Jim Meyering  <meyering@redhat.com>
15923
15924         read-file.c: tweak syntax
15925         * lib/read-file.c (fread_file): Remove space after "*" in function
15926         definitions.
15927
15928 2010-12-27  Bruno Haible  <bruno@clisp.org>
15929
15930         times test: Avoid gcc warnings on OSF/1.
15931         * tests/test-times.c (main): Cast printf arguments from clock_t to
15932         'long int'.
15933
15934 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15935
15936         utimens: work around glibc rounding bug on older Linux kernels
15937         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15938         on Linux with a glibc whose utimes might not work, then work
15939         around a longstanding glibc bug involving rounding rather than
15940         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15941         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15942
15943 2010-12-26  Bruno Haible  <bruno@clisp.org>
15944
15945         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15946         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15947         _GL_CXXALIAS_SYS.
15948         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15949
15950 2010-12-26  Bruno Haible  <bruno@clisp.org>
15951
15952         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15953         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15954         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15955         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15956         looking for the declaration.
15957         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15958         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15959         problem.
15960         * doc/posix-functions/inet_pton.texi: Likewise.
15961
15962 2010-12-26  Bruno Haible  <bruno@clisp.org>
15963
15964         arpa_inet: Use the common idioms with C++ support.
15965         * lib/arpa_inet.in.h: Include c++defs.h.
15966         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15967         support.
15968         * modules/arpa_inet (Depends-on): Add c++defs.
15969         (Makefile.am): Substitute the contents of c++defs.h.
15970         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15971         * modules/arpa_inet-c++-tests: New file.
15972         * tests/test-arpa_inet-c++.cc: New file.
15973
15974 2010-12-25  Bruno Haible  <bruno@clisp.org>
15975
15976         Fix more C++ link errors on Solaris 8.
15977         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15978         $(LIB_EACCESS).
15979         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15980         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15981         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15982         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15983         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15984
15985 2010-12-25  Bruno Haible  <bruno@clisp.org>
15986
15987         printf-posix: Fix link error when a non-GCC compiler is used.
15988         * lib/stdio.in.h (printf): When not using GCC, override printf
15989         correctly.
15990         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15991
15992 2010-12-25  Bruno Haible  <bruno@clisp.org>
15993
15994         strerror_r-posix: Update doc.
15995         * doc/posix-functions/strerror_r.texi: Update doc about the return
15996         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15997
15998 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15999
16000         utimens: simplify the logic of the previous change
16001         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16002         This should not affect whether the test succeeds or fails.
16003
16004         utimens: configure better on hosts with NFS clock skew
16005         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16006         uses the clock of the local host.  It might use the clock of the
16007         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16009
16010 2010-12-25  Bruno Haible  <bruno@clisp.org>
16011
16012         ptsname test: Avoid failure on Solaris.
16013         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16014         open a pseudo-terminal; don't use BSD-style ptys.
16015         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16016
16017 2010-12-25  Bruno Haible  <bruno@clisp.org>
16018
16019         ptsname: Avoid ERANGE failure on some systems.
16020         * lib/ptsname.c (buffer): Increase size.
16021
16022 2010-12-25  Bruno Haible  <bruno@clisp.org>
16023
16024         rename, renameat: Avoid test failures at NFS mounted locations.
16025         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16026         so that subsequent mkdir calls succeed.
16027
16028 2010-12-25  Bruno Haible  <bruno@clisp.org>
16029
16030         iswblank: Fix C++ link error on Solaris 8.
16031         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16032         _GL_FUNCDECL_SYS.
16033
16034 2010-12-25  Bruno Haible  <bruno@clisp.org>
16035
16036         unistd: Fix C++ link error on Solaris 8.
16037         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16038
16039 2010-12-25  Bruno Haible  <bruno@clisp.org>
16040
16041         readlink doc: Mention an old glibc bug.
16042         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16043
16044 2010-12-25  Bruno Haible  <bruno@clisp.org>
16045
16046         fcntl-h: Fix for use of C++ on glibc systems.
16047         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16048         also on glibc systems in C++ mode.
16049         Reported by Gary V. Vaughan <gary@gnu.org>.
16050
16051 2010-12-25  Bruno Haible  <bruno@clisp.org>
16052
16053         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16054         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16055
16056 2010-12-25  Bruno Haible  <bruno@clisp.org>
16057
16058         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16059         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16060         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16061         test whether truncl works according to ISO C 99 with IEC 60559.
16062         * m4/truncl-ieee.m4: New file.
16063         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16064         m4/signbit.m4.
16065         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16066
16067 2010-12-25  Bruno Haible  <bruno@clisp.org>
16068
16069         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16070         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16071         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16072         test whether ceill works according to ISO C 99 with IEC 60559.
16073         * m4/ceill-ieee.m4: New file.
16074         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16075         m4/signbit.m4.
16076         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16077
16078 2010-12-25  Bruno Haible  <bruno@clisp.org>
16079
16080         Ensure all prerequisites of <wchar.h> are included.
16081         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16082         before <wchar.h>.
16083         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16084         gl_MBRLEN_NUL_RETVAL): Likewise.
16085         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16086         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16087         AC_FUNC_MBRTOWC): Likewise.
16088         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16089         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16090         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16091         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16092         Likewise.
16093         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16094         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16095         (gl_WCHAR_H): Improve comments.
16096         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16097
16098 2010-12-25  Bruno Haible  <bruno@clisp.org>
16099
16100         strtok_r: Fix C syntax error in autoconf macro.
16101         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16102         characters in test program.
16103
16104 2010-12-24  Bruno Haible  <bruno@clisp.org>
16105
16106         ceil, trunc, round: Fix gcc warnings.
16107         * lib/ceil.c (MIN): Undefine before redefining.
16108         * lib/trunc.c (MIN): Likewise.
16109         * lib/round.c (MIN): Likewise.
16110         Include <math.h> first.
16111
16112 2010-12-24  Bruno Haible  <bruno@clisp.org>
16113
16114         select tests: Avoid failures on OSF/1 5.1.
16115         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16116         failure of closing the last socket; it may fail with ECONNRESET.
16117
16118 2010-12-24  Eric Blake  <eblake@redhat.com>
16119
16120         stdint: avoid HP-UX 10.20 preprocessor bug
16121         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16122         than #if.
16123         * tests/test-floor2.c (main): Likewise.
16124         Reported by Peter O'Gorman.
16125
16126         pipe: make obsoletion transition easier
16127         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16128         * modules/pipe (Files): Include revived file.
16129         (Include): Drop reference, to mirror getdate's behavior.
16130
16131 2010-12-24  Bruno Haible  <bruno@clisp.org>
16132
16133         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16134         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16135         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16137
16138 2010-12-24  Bruno Haible  <bruno@clisp.org>
16139
16140         gethostname: Ensure declaration on NonStop Kernel.
16141         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16142         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16143
16144 2010-12-24  Bruno Haible  <bruno@clisp.org>
16145
16146         sys_select: Ensure all necessary types on NonStop Kernel.
16147         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16148         include <sys/time.h>.
16149         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16150         NonStop Kernel.
16151         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16152
16153 2010-12-24  Bruno Haible  <bruno@clisp.org>
16154
16155         sys_select: Remove unneeded include.
16156         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16157         have <sys/select.h>.
16158
16159 2010-12-24  Bruno Haible  <bruno@clisp.org>
16160
16161         gethostname: Provide a fallback for HOST_NAME_MAX.
16162         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16163         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16164         instead.
16165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16166
16167 2010-12-24  Bruno Haible  <bruno@clisp.org>
16168
16169         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16170         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16171         (SA_RESTART): Likewise.
16172         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16173
16174 2010-12-24  Bruno Haible  <bruno@clisp.org>
16175
16176         signal: Define NSIG.
16177         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16178         * tests/test-signal.c (nsig): New variable.
16179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16180
16181 2010-12-24  Bruno Haible  <bruno@clisp.org>
16182
16183         rename, renameat: Avoid test failures on OSF/1 5.1.
16184         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16185         alternative error codes.
16186         * tests/test-renameat.c (main): Likewise.
16187
16188 2010-12-24  Bruno Haible  <bruno@clisp.org>
16189
16190         *printf: Detect large precisions bug on Solaris 10/SPARC.
16191         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16192         by Paul Eggert.
16193         * tests/test-snprintf-posix.h (test_function): Add this test code here
16194         too.
16195         * tests/test-sprintf-posix.h (test_function): Likewise.
16196         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16197         * tests/test-vasprintf-posix.c (test_function): Likewise.
16198         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16199         around by gnulib.
16200         * doc/posix-functions/printf.texi: Likewise.
16201         * doc/posix-functions/snprintf.texi: Likewise.
16202         * doc/posix-functions/sprintf.texi: Likewise.
16203         * doc/posix-functions/vfprintf.texi: Likewise.
16204         * doc/posix-functions/vprintf.texi: Likewise.
16205         * doc/posix-functions/vsnprintf.texi: Likewise.
16206         * doc/posix-functions/vsprintf.texi: Likewise.
16207         * doc/posix-functions/dprintf.texi: Undo last commit.
16208         * doc/posix-functions/vdprintf.texi: Likewise.
16209
16210 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16211
16212         tests: port test-fdutimensat.c to Solaris 8
16213         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16214         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16215         On Solaris 8, it fails with errno == ENOSYS, because there is no
16216         futimens (so it can't use the fd), and there is no lutimens (so it
16217         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16218
16219         vsnprintf: make more consistent with snprintf; doc fixes
16220
16221         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16222         the byte count return problem was promoted from the snprintf-posix
16223         to the snprintf module.
16224         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16225         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16226         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16227         * tests/test-snprintf.c (main): Check the byte count returned.
16228         * tests/test-vsnprintf.c (main): Likewise.
16229
16230 2010-12-23  Eric Blake  <eblake@redhat.com>
16231
16232         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16233         * modules/sigpipe (License): Relax license.
16234
16235 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16236
16237         doc: document Solaris printf bug with large float precisions
16238         * doc/posix-functions/dprintf.texi (dprintf):
16239         * doc/posix-functions/fprintf.texi (fprintf):
16240         * doc/posix-functions/printf.texi (printf):
16241         * doc/posix-functions/snprintf.texi (snprintf):
16242         * doc/posix-functions/sprintf.texi (sprintf):
16243         * doc/posix-functions/vdprintf.texi (vdprintf):
16244         * doc/posix-functions/vfprintf.texi (vfprintf):
16245         * doc/posix-functions/vprintf.texi (vprintf):
16246         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16247         * doc/posix-functions/vsprintf.texi (vsprintf):
16248         Mention that these functions mishandle large floating point
16249         precisions on Solaris 10.  The same bug is also present in Solaris
16250         8, and I assume earlier.  This causes "cd gnulib-tests; make
16251         check" to fail on Solaris 8 (and I assume, later) when building
16252         the latest coreutils, in test-vasprintf-posix's call to
16253         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16254         the wide flavors (e.g., wprintf) so this patch just updates the
16255         documentation for the narrow ones.
16256
16257         test-posixtm.c: add two tests
16258         * tests/test-posixtm.c: Add two tests, to highlight the
16259         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16260         around this bug; this is merely to document it.
16261
16262 2010-12-22  Bruno Haible  <bruno@clisp.org>
16263
16264         getlogin_r: Work around portability problem on OSF/1.
16265         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16266         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16267         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16268         test for a truncated result.
16269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16270         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16271         * modules/getlogin_r (Depends-on): Add memchr.
16272         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16273
16274 2010-12-22  Bruno Haible  <bruno@clisp.org>
16275
16276         ptsname: Avoid test failure on OSF/1 5.1.
16277         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16278         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16279         (same_slave): New function.
16280         (main): Use it to compare ptsname's result with the expected file name.
16281
16282 2010-12-22  Bruno Haible  <bruno@clisp.org>
16283
16284         Port extended stdio modules to HP NonStop Kernel.
16285         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16286         macros.
16287         * lib/fbufmode.c: Update comments.
16288         * lib/fflush.c: Likewise.
16289         * lib/fpurge.c: Likewise.
16290         * lib/freadable.c: Likewise.
16291         * lib/freadahead.c: Likewise.
16292         * lib/freading.c: Likewise.
16293         * lib/freadptr.c: Likewise.
16294         * lib/freadseek.c: Likewise.
16295         * lib/fseeko.c: Likewise.
16296         * lib/fseterr.c: Likewise.
16297         * lib/fwritable.c: Likewise.
16298         * lib/fwriting.c: Likewise.
16299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16300
16301 2010-12-22  Bruno Haible  <bruno@clisp.org>
16302
16303         ttyname_r: Work around bug on OSF/1 5.1.
16304         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16305         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16306         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16307         present.
16308         * lib/ttyname_r.c (ttyname_r): Update comments.
16309
16310 2010-12-22  Bruno Haible  <bruno@clisp.org>
16311
16312         round: Implement result sign according to IEEE 754.
16313         * lib/round.c (MIN, MINUS_ZERO): New macros.
16314         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16315         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16316         * tests/test-round-ieee.c (main): Likewise.
16317         * tests/test-roundl-ieee.c (main): Likewise.
16318
16319         trunc: Implement result sign according to IEEE 754.
16320         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16321         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16322         * tests/test-trunc2.c: Include minus-zero.h.
16323         (MINUS_ZERO): New macro.
16324         (trunc_reference): Keep in sync with lib/trunc.c.
16325         * tests/test-truncf2.c: Include minus-zero.h.
16326         (MINUS_ZERO): New macro.
16327         (truncf_reference): Keep in sync with lib/trunc.c.
16328         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16329         * tests/test-trunc-ieee.c (main): Likewise.
16330         * tests/test-truncl-ieee.c (main): Likewise.
16331
16332         ceil: Implement result sign according to IEEE 754.
16333         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16334         (FUNC): Return -0.0 for -1 < x < 0.
16335         * tests/test-ceil2.c: Include minus-zero.h.
16336         (MINUS_ZERO): New macro.
16337         (ceil_reference): Keep in sync with lib/ceil.c.
16338         * tests/test-ceilf2.c: Include minus-zero.h.
16339         (MINUS_ZERO): New macro.
16340         (ceilf_reference): Keep in sync with lib/ceil.c.
16341         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16342         * tests/test-ceil-ieee.c (main): Likewise.
16343         * tests/test-ceill-ieee.c (main): Likewise.
16344
16345         floor: Implement result sign according to IEEE 754.
16346         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16347         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16348         * tests/test-floorf2.c (floorf_reference): Likewise.
16349         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16350         * tests/test-floor-ieee.c (main): Likewise.
16351         * tests/test-floorl-ieee.c (main): Likewise.
16352
16353 2010-12-22  Bruno Haible  <bruno@clisp.org>
16354
16355         getaddrinfo: Update doc.
16356         * doc/posix-functions/gai_strerror.texi: Return type is also different
16357         on AIX and HP-UX.
16358
16359 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         getaddrinfo, inet_ntop: Update doc for Solaris.
16362         * doc/posix-functions/gai_strerror.texi: Return type is also an
16363         issue on Solaris 9 and earlier.
16364         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16365         on Solaris 10 and earlier.
16366
16367 2010-12-21  Bruno Haible  <bruno@clisp.org>
16368
16369         New module 'roundl-ieee'.
16370         * modules/roundl-ieee: New file.
16371         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16372         test whether roundl works according to ISO C 99 with IEC 60559.
16373         * m4/roundl-ieee.m4: New file.
16374         * modules/roundl-ieee-tests: New file.
16375         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16376         * tests/test-roundl.c (main): Remove signbit tests.
16377         * modules/roundl-tests (Depends-on): Remove signbit.
16378         * doc/posix-functions/roundl.texi: Mention the new module.
16379
16380 2010-12-21  Bruno Haible  <bruno@clisp.org>
16381
16382         New module 'truncl-ieee'.
16383         * modules/truncl-ieee: New file.
16384         * modules/truncl-ieee-tests: New file.
16385         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16386         * tests/test-truncl.c (main): Remove signbit tests.
16387         * modules/truncl-tests (Depends-on): Remove signbit.
16388         * doc/posix-functions/truncl.texi: Mention the new module.
16389
16390 2010-12-21  Bruno Haible  <bruno@clisp.org>
16391
16392         New module 'ceill-ieee'.
16393         * modules/ceill-ieee: New file.
16394         * modules/ceill-ieee-tests: New file.
16395         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16396         * tests/test-ceill.c (main): Remove signbit tests.
16397         * modules/ceill-tests (Depends-on): Remove signbit.
16398         * doc/posix-functions/ceill.texi: Mention the new module.
16399
16400 2010-12-21  Bruno Haible  <bruno@clisp.org>
16401
16402         New module 'floorl-ieee'.
16403         * modules/floorl-ieee: New file.
16404         * modules/floorl-ieee-tests: New file.
16405         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16406         * tests/test-floorl.c (main): Remove signbit tests.
16407         * modules/floorl-tests (Depends-on): Remove signbit.
16408         * doc/posix-functions/floorl.texi: Mention the new module.
16409
16410 2010-12-21  Bruno Haible  <bruno@clisp.org>
16411
16412         New module 'round-ieee'.
16413         * modules/round-ieee: New file.
16414         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16415         whether round works according to ISO C 99 with IEC 60559.
16416         * m4/round-ieee.m4: New file.
16417         * modules/round-ieee-tests: New file.
16418         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16419         * tests/test-round1.c (main): Remove signbit tests.
16420         * modules/round-tests (Depends-on): Remove 'signbit'.
16421         * doc/posix-functions/round.texi: Mention the new module.
16422
16423 2010-12-21  Bruno Haible  <bruno@clisp.org>
16424
16425         New module 'trunc-ieee'.
16426         * modules/trunc-ieee: New file.
16427         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16428         whether trunc works according to ISO C 99 with IEC 60559.
16429         * m4/trunc-ieee.m4: New file.
16430         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16432         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16433         * modules/trunc-ieee-tests: New file.
16434         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16435         * tests/test-trunc1.c (main): Remove signbit tests.
16436         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16437         * doc/posix-functions/trunc.texi: Mention the new module.
16438
16439 2010-12-21  Bruno Haible  <bruno@clisp.org>
16440
16441         New module 'ceil-ieee'.
16442         * modules/ceil-ieee: New file.
16443         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16444         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16445         ISO C 99 with IEC 60559.
16446         * m4/ceil-ieee.m4: New file.
16447         * modules/ceil (Files): Add lib/ceil.c.
16448         (Depends-on): Add 'float'.
16449         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16450         * lib/math.in.h (ceil): New declaration.
16451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16452         REPLACE_CEIL.
16453         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16454         * modules/ceil-ieee-tests: New file.
16455         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16456         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16457         * doc/posix-functions/ceil.texi: Mention the new module.
16458
16459 2010-12-21  Bruno Haible  <bruno@clisp.org>
16460
16461         New module 'floor-ieee'.
16462         * modules/floor-ieee: New file.
16463         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16464         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16465         ISO C 99 with IEC 60559.
16466         * m4/floor-ieee.m4: New file.
16467         * modules/floor (Files): Add lib/floor.c.
16468         (Depends-on): Add 'float'.
16469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16470         * lib/math.in.h (floor): New declaration.
16471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16472         REPLACE_FLOOR.
16473         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16474         * modules/floor-ieee-tests: New file.
16475         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16476         * tests/test-math-c++.cc: Check the signature of 'floor'.
16477         * doc/posix-functions/floor.texi: Mention the new module.
16478
16479 2010-12-21  Bruno Haible  <bruno@clisp.org>
16480
16481         New module 'roundf-ieee'.
16482         * modules/roundf-ieee: New file.
16483         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16484         test whether roundf works according to ISO C 99 with IEC 60559.
16485         * m4/roundf-ieee.m4: New file.
16486         * modules/roundf-ieee-tests: New file.
16487         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16488         * tests/test-roundf1.c (main): Remove signbit tests.
16489         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16490         * doc/posix-functions/roundf.texi: Mention the new module.
16491
16492 2010-12-21  Bruno Haible  <bruno@clisp.org>
16493
16494         New module 'truncf-ieee'.
16495         * modules/truncf-ieee: New file.
16496         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16497         test whether truncf works according to ISO C 99 with IEC 60559.
16498         * m4/truncf-ieee.m4: New file.
16499         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16501         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16502         * modules/truncf-ieee-tests: New file.
16503         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16504         * tests/test-truncf1.c (main): Remove signbit tests.
16505         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16506         * doc/posix-functions/truncf.texi: Mention the new module.
16507
16508 2010-12-21  Bruno Haible  <bruno@clisp.org>
16509
16510         New module 'ceilf-ieee'.
16511         * modules/ceilf-ieee: New file.
16512         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16513         test whether ceilf works according to ISO C 99 with IEC 60559.
16514         * m4/ceilf-ieee.m4: New file.
16515         * modules/ceilf-ieee-tests: New file.
16516         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16517         * tests/test-ceilf1.c (main): Remove signbit tests.
16518         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16519         * doc/posix-functions/ceilf.texi: Mention the new module.
16520
16521 2010-12-21  Bruno Haible  <bruno@clisp.org>
16522
16523         New module 'floorf-ieee'.
16524         * modules/floorf-ieee: New file.
16525         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16526         test whether floorf works according to ISO C 99 with IEC 60559.
16527         * m4/floorf-ieee.m4: New file.
16528         * modules/floorf-ieee-tests: New file.
16529         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16530         * tests/test-floorf1.c (main): Remove signbit tests.
16531         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16532         * doc/posix-functions/floorf.texi: Mention the new module.
16533
16534 2010-12-21  Bruno Haible  <bruno@clisp.org>
16535
16536         Support for minus zero in autoconf macros.
16537         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16538         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16539         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16540         * tests/minus-zero.h: Update comments.
16541
16542 2010-12-21  Bruno Haible  <bruno@clisp.org>
16543
16544         Tests for module 'ceil'.
16545         * modules/ceil-tests: New file.
16546         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16547         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16548
16549 2010-12-21  Bruno Haible  <bruno@clisp.org>
16550
16551         Tests for module 'floor'.
16552         * modules/floor-tests: New file.
16553         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16554         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16555
16556 2010-12-21  Bruno Haible  <bruno@clisp.org>
16557
16558         math: Fix indentation.
16559         * lib/math.in.h (floorf): Fix indentation.
16560
16561 2010-12-21  Bruno Haible  <bruno@clisp.org>
16562
16563         Fix cross-compilation guesses on Solaris.
16564         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16565         not match "solaris2.10".
16566         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16567         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16568         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16569
16570 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16571
16572         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16573         This fixes a problem observed with the latest coreutils snapshot
16574         that caused a test to fail on Solaris 8.  src/csplit.c's call
16575         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16576         earlier, instead of returning the number of bytes that would have
16577         been generated; this causes csplit to incorrectly report memory
16578         exhaustion.
16579         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16580         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16581         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16582         comments to match.
16583         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16584         Fix typo in matching older versions of Solaris: "solaris2.10"
16585         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16586         only for guessing while cross-compiling.
16587         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16588
16589 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16590
16591         ftoastr: fix comment again
16592         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16594         Also, simplify example a bit by using flags = 0.
16595
16596 2010-12-20  Bruno Haible  <bruno@clisp.org>
16597
16598         round*, trunc*: Update documentation regarding glibc.
16599         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16600         * doc/posix-functions/round.texi: Likewise.
16601         * doc/posix-functions/roundl.texi: Likewise.
16602         * doc/posix-functions/truncf.texi: Likewise.
16603         * doc/posix-functions/trunc.texi: Likewise.
16604         * doc/posix-functions/truncl.texi: Likewise.
16605
16606 2010-12-20  Bruno Haible  <bruno@clisp.org>
16607
16608         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16609         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16610         * doc/posix-functions/round.texi: Likewise.
16611         * doc/posix-functions/roundl.texi: Likewise.
16612
16613 2010-12-20  Bruno Haible  <bruno@clisp.org>
16614
16615         ttyname_r: Add missing declaration on HP-UX 11.
16616         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16617         HAVE_TTYNAME_R.
16618         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16619         declared. Set HAVE_TTYNAME_R always.
16620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16621         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16622         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16623         HAVE_TTYNAME_R.
16624         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16625
16626 2010-12-20  Bruno Haible  <bruno@clisp.org>
16627
16628         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16629         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16630         * doc/posix-functions/getlogin_r.texi: Likewise.
16631         * tests/test-getlogin.c: Include <errno.h>.
16632         (main): Avoid test failure on HP-UX 11.11.
16633         * tests/test-getlogin_r.c (main): Likewise.
16634
16635 2010-12-20  Bruno Haible  <bruno@clisp.org>
16636
16637         getlogin_r: Add missing declaration on HP-UX 11.
16638         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16639         declared also when it exists as a function.
16640         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16641
16642 2010-12-20  Bruno Haible  <bruno@clisp.org>
16643
16644         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16645         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16646         through wcrtomb.
16647
16648 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         ftoastr: fix comment
16651         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16652         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16653
16654 2010-12-19  Bruno Haible  <bruno@clisp.org>
16655
16656         isnan: Ensure it is a macro.
16657         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16658         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16659         Solaris.
16660
16661 2010-12-19  Bruno Haible  <bruno@clisp.org>
16662
16663         ldexpl test: Fix link error on OSF/1 5.1.
16664         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16665
16666 2010-12-19  Bruno Haible  <bruno@clisp.org>
16667
16668         wctype: Make it work in C++ mode on OSF/1 5.1.
16669         * lib/wctype.in.h (iswblank): Declare but not define here.
16670         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16671         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16672         * modules/wctype (Files): Add lib/iswblank.c.
16673
16674 2010-12-19  Bruno Haible  <bruno@clisp.org>
16675
16676         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16677         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16678         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16679
16680 2010-12-19  Bruno Haible  <bruno@clisp.org>
16681
16682         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16684         _POSIX_PII_SOCKET.
16685         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16686         * doc/posix-functions/recvfrom.texi: Likewise.
16687         * doc/posix-functions/send.texi: Likewise.
16688         * doc/posix-functions/sendto.texi: Likewise.
16689
16690 2010-12-19  Bruno Haible  <bruno@clisp.org>
16691
16692         tcgetsid: Add missing declaration on OSF/1 5.1.
16693         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16694         HAVE_TCGETSID.
16695         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16696         Don't set HAVE_TCGETSID.
16697         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16698         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16699         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16700         HAVE_TCGETSID.
16701         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16702
16703 2010-12-19  Bruno Haible  <bruno@clisp.org>
16704
16705         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16706         * lib/stdio.in.h: During the include_next statement, let recursive
16707         includes of this file include only the system header file.
16708
16709 2010-12-19  Bruno Haible  <bruno@clisp.org>
16710
16711         iconv_open: Fix regression from 2010-12-04.
16712         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16713         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16714
16715 2010-12-19  Bruno Haible  <bruno@clisp.org>
16716
16717         stdbool test: Avoid a gcc warning.
16718         * tests/test-stdbool.c (main): Fail if e1 is false.
16719         Reported by Jim Meyering.
16720
16721 2010-12-19  Jim Meyering  <meyering@redhat.com>
16722
16723         setenv: restore to working order
16724         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16725         mistakenly removed.
16726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16727         HAVE_SETENV.
16728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16729         HAVE_SETENV.
16730
16731 2010-12-19  Bruno Haible  <bruno@clisp.org>
16732
16733         Document some different function declarations on OSF/1 5.1.
16734         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16735         * doc/posix-functions/inet_ntop.texi: Likewise.
16736         * doc/posix-functions/gethostname.texi: Likewise.
16737         * lib/unistd.in.h (gethostname): Update comment.
16738
16739 2010-12-19  Bruno Haible  <bruno@clisp.org>
16740
16741         doc: Mention vasprintf-posix module.
16742         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16743         the 'vasprintf-posix' module.
16744         * doc/glibc-functions/vasprintf.texi: Likewise.
16745
16746 2010-12-19  Bruno Haible  <bruno@clisp.org>
16747
16748         unsetenv: Add missing declaration on OSF/1 5.1.
16749         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16750         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16751         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16753         not HAVE_UNSETENV.
16754         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16755         HAVE_UNSETENV.
16756         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16757
16758 2010-12-19  Bruno Haible  <bruno@clisp.org>
16759
16760         setenv: Add missing declaration on OSF/1 5.1.
16761         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16762         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16763         declared. Don't set HAVE_SETENV.
16764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16765         not HAVE_SETENV.
16766         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16767         HAVE_SETENV.
16768         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16769
16770 2010-12-19  Bruno Haible  <bruno@clisp.org>
16771
16772         nl_langinfo tests: Avoid gcc warning.
16773         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16774
16775 2010-12-19  Bruno Haible  <bruno@clisp.org>
16776
16777         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16778         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16779         _GL_CXXALIAS_SYS.
16780
16781 2010-12-19  Bruno Haible  <bruno@clisp.org>
16782
16783         stdbool: Relax test.
16784         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16785         address to 'bool' work in static initializer, for compilers other than
16786         GCC.
16787
16788 2010-12-19  Bruno Haible  <bruno@clisp.org>
16789
16790         ftello: Add missing declaration on OSF/1 5.1.
16791         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16792         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16794         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16795         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16796
16797 2010-12-19  Bruno Haible  <bruno@clisp.org>
16798
16799         fseeko: Add missing declaration on OSF/1 5.1.
16800         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16801         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16803         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16804         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16805
16806 2010-12-19  Bruno Haible  <bruno@clisp.org>
16807
16808         fchdir: Add missing declaration on OSF/1 5.1.
16809         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16812         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16813         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16814
16815 2010-12-19  Bruno Haible  <bruno@clisp.org>
16816
16817         relocatable-prog-wrapper: Separate from relocatable-prog.
16818         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16819         uninstall-relocwrapper rule here.
16820         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16821         Reported by Ian Beckwith <ianb@erislabs.net>.
16822
16823 2010-12-19  Bruno Haible  <bruno@clisp.org>
16824
16825         unistr/u8-mbsnlen: Add missing dependency.
16826         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16827         Reported by Ian Beckwith <ianb@erislabs.net>.
16828
16829 2010-12-19  Bruno Haible  <bruno@clisp.org>
16830
16831         iconv: Make it possible again to use this module without 'iconv-h'.
16832         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16833         if it is not defined.
16834         Reported by Ian Beckwith <ianb@erislabs.net>.
16835
16836 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16837
16838         acl: port to Solaris 8 when copying from tmpfs to ufs
16839         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16840         error number.  Problem observed on Solaris 8 with latest
16841         coreutils, with "mv A B", where A is on a tmpfs file system and B
16842         is on a ufs file system.  This caused coreutils' mv/part-symlink
16843         test to fail.
16844
16845         tests: set fail=0 at start
16846         * tests/init.sh (setup_): Move fail=0 initialization here ...
16847         (mktempd_): ... from here, so that tests can rely on fail being
16848         set to 0 initially.  This fixes a problem in coreutils; see:
16849         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16850
16851 2010-12-18  Bruno Haible  <bruno@clisp.org>
16852
16853         memmem-simple: Stylistic changes.
16854         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16855         Fix preprocessor directive indentation.
16856
16857 2010-12-15  Pádraig Brady <P@draigBrady.com>
16858
16859         memmem, memmem-simple: reorganize and expand empty needle check
16860         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16861         functional checks to memmem-simple so that one has a fully functional
16862         memmem by using just this module.
16863         Restrict the performance only check to the memmem module.
16864         Also expand the empty needle check to ensure the correct
16865         pointer is returned, not just a non NULL pointer.
16866         * doc/glibc-functions/memmem.texi: Rearrange the portability
16867         documentation to correlate with the rearranged checks.
16868         Clarify exactly how the memmem and memmem-simple modules
16869         relate to each other.
16870
16871 2010-12-15  Pádraig Brady <P@draigBrady.com>
16872             Bruno Haible  <bruno@clisp.org>
16873
16874         Improve cross-compilation guesses for uClibc.
16875         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16876         that uClibc does not have the glibc bug.
16877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16878         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16879
16880 2010-12-14  Eric Blake  <eblake@redhat.com>
16881
16882         configmake: provide fallbacks for oldest supported autotools
16883         * m4/configmake.m4: New file.
16884         * modules/configmake (Files): Ship it.
16885         (configure.ac): Use it to guarantee fallbacks.
16886
16887 2010-12-13  Pádraig Brady <P@draigBrady.com>
16888
16889         read-file: Improve handling of large files
16890         * lib/read-file.c (fread_file): Minimize realloc()s
16891         for regular files, and better manage sizes around SIZE_MAX.
16892
16893 2010-12-13  Eric Blake  <eblake@redhat.com>
16894
16895         cloexec, fcntl: relax license
16896         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16897         consent from all contributors.
16898         * modules/fcntl (License): Likewise.
16899
16900 2010-12-10  Bruno Haible  <bruno@clisp.org>
16901
16902         Tests for module 'pipe-posix'.
16903         * modules/pipe-posix-tests: New file.
16904         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16905
16906 2010-12-10  Bruno Haible  <bruno@clisp.org>
16907
16908         pipe-posix: Make it work in C++ mode.
16909         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16910         (pipe): Use common idiom, not a macro definition.
16911         * lib/pipe.c: New file.
16912         * m4/pipe.m4: New file.
16913         * modules/pipe-posix (Description): Enhance.
16914         (Files): Add lib/pipe.c, m4/pipe.m4.
16915         (configure.ac): Invoke gl_FUNC_PIPE.
16916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16917         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16918         * tests/test-unistd-c++.cc: Check the signature of pipe.
16919
16920 2010-12-10  Bruno Haible  <bruno@clisp.org>
16921
16922         Rename module 'pipe' to 'spawn-pipe'.
16923         * modules/spawn-pipe: New file, renamed from modules/pipe.
16924         (Files, configure.ac, Makefile.am): Update.
16925         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16926         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16927         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16928         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16929         "spawn-pipe.h" instead of "pipe.h".
16930         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16931         to gl_SPAWN_PIPE.
16932         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16933         (Files, Makefile.am): Update.
16934         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16935         Update.
16936         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16937         Include "spawn-pipe.h" instead of "pipe.h".
16938         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16939         * lib/javacomp.c: Likewise.
16940         * lib/javaversion.c: Likewise.
16941         * lib/pipe-filter-gi.c: Likewise.
16942         * lib/pipe-filter-ii.c: Likewise.
16943         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16944         * modules/javacomp (Depends-on): Likewise.
16945         * modules/javaversion (Depends-on): Likewise.
16946         * modules/pipe-filter-gi (Depends-on): Likewise.
16947         * modules/pipe-filter-ii (Depends-on): Likewise.
16948         * MODULES.html.sh (Executing programs): Update.
16949         * NEWS: Mention the change.
16950
16951 2010-12-10  Eric Blake  <eblake@redhat.com>
16952
16953         pipe-posix: new module
16954         * modules/pipe-posix: New file.
16955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16956         (gl_UNISTD_H): Check for declaration.
16957         * modules/unistd (Makefile.am): Substitute it.
16958         * lib/unistd.in.h (pipe): Provide it for mingw.
16959         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16960         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16961
16962 2010-12-07  Bruno Haible  <bruno@clisp.org>
16963
16964         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16965         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16966         u8_strcmp_gnu.
16967         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16968
16969 2010-12-06  Bruno Haible  <bruno@clisp.org>
16970
16971         Update internal documentation.
16972         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16973
16974 2010-12-04  Bruno Haible  <bruno@clisp.org>
16975
16976         Put more information about failed tests into the test return codes.
16977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16978         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16979         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16980         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16981         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16982         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16983         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16984         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16985         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16988         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16989         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16990         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16991         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16992         returns a bit mask.
16993         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16994         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16995         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16996         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16997         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16998         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17000         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17001         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17002         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17003         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17004         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17005         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17007         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17008         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17009         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17010         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17011         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17012         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17013         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17014         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17015         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17016         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17017         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17018         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17019         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17020         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17021         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17022         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17023         gl_PRINTF_PRECISION): Likewise.
17024         * m4/regex.m4 (gl_REGEX): Likewise.
17025         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17026         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17027         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17028         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17031         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17032         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17033         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17034         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17035         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17036         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17038         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17039         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17040         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17041         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17042         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17044         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17045         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17046         enumerated value.
17047         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17048
17049 2010-12-04  Bruno Haible  <bruno@clisp.org>
17050
17051         Update for Solaris 11 2010-11.
17052         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17053         Express, released in November 2010.
17054
17055 2010-12-04  Bruno Haible  <bruno@clisp.org>
17056
17057         nproc: Relax license.
17058         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17059         and Paul Eggert.
17060         Requested by Ludovic Courtès <ludo@gnu.org>.
17061
17062 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17063
17064         utimecmp: fine-grained src to nearby coarse-grained dest
17065
17066         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17067         and the source is on a file system with higher-resolution time
17068         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17069         not work, and the time stamps are close together, the algorithm to
17070         determine the exact resolution from the read-back mtime was buggy:
17071         it had a "!=" where it should have had an "==".  This bug has been
17072         in the code ever since it was introduced to gnulib.
17073         Problem reported by Dan Jacobson in
17074         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17075
17076 2010-11-30  Bruno Haible  <bruno@clisp.org>
17077
17078         strerror_r-posix: Fix autoconf test.
17079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17080
17081 2010-11-28  Bruno Haible  <bruno@clisp.org>
17082             Paul Eggert  <eggert@cs.ucla.edu>
17083
17084         Tests for module 'getdomainname'.
17085         * modules/getdomainname-tests: New file.
17086         * tests/test-getdomainname.c: New file, based on
17087         tests/test-gethostname.c.
17088
17089 2010-11-28  Bruno Haible  <bruno@clisp.org>
17090             Paul Eggert  <eggert@cs.ucla.edu>
17091
17092         getdomainname: Use the system function when possible.
17093         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17094         (getdomainname): Replace if needed. Provide the declaration if it is
17095         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17096         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17097         (getdomainname): When the system has getdomainname, call the system
17098         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17099         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17100         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17101         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17102         the function if its second argument is of type 'int' or if it is found
17103         in libnsl.
17104         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17105         <sys/systeminfo.h> and sysinfo().
17106         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17108         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17109         HAVE_GETDOMAINNAME.
17110         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17111         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17112         * doc/glibc-functions/getdomainname.texi: Document the problems with
17113         the getdomainname declaration.
17114
17115 2010-11-28  Bruno Haible  <bruno@clisp.org>
17116
17117         sys_socket: Ensure ss_family field on AIX.
17118         * lib/sys_socket.in.h (ss_family): New macro definition.
17119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17120         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17121         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17122         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17123         * modules/sys_socket (Makefile.am): Substitute
17124         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17125         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17126
17127 2010-11-27  Bruno Haible  <bruno@clisp.org>
17128
17129         readline: Improve configure output.
17130         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17131         "checking for readline..." result understandable.
17132
17133 2010-11-27  Bruno Haible  <bruno@clisp.org>
17134
17135         *printf-posix: Detect a bug on Solaris 10/x86.
17136         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17137         for floating-point output.
17138         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17139         directive.
17140         * tests/test-snprintf-posix.h (test_function): Likewise.
17141         * tests/test-sprintf-posix.h (test_function): Likewise.
17142         * tests/test-vasprintf-posix.c (test_function): Likewise.
17143         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17144         * doc/posix-functions/printf.texi: Likewise.
17145         * doc/posix-functions/snprintf.texi: Likewise.
17146         * doc/posix-functions/sprintf.texi: Likewise.
17147         * doc/posix-functions/vfprintf.texi: Likewise.
17148         * doc/posix-functions/vprintf.texi: Likewise.
17149         * doc/posix-functions/vsnprintf.texi: Likewise.
17150         * doc/posix-functions/vsprintf.texi: Likewise.
17151         * doc/glibc-functions/obstack_printf.texi: Likewise.
17152         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17153
17154 2010-11-27  Bruno Haible  <bruno@clisp.org>
17155
17156         Fix link error when module libunistring-optional is in use.
17157         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17158         * modules/striconveha-tests (Makefile.am): Likewise.
17159
17160 2010-11-27  Bruno Haible  <bruno@clisp.org>
17161
17162         regex: Mention link dependencies.
17163         * modules/regex (Link): New section.
17164         * modules/rpmatch (Link): Likewise.
17165         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17166
17167 2010-11-27  Bruno Haible  <bruno@clisp.org>
17168
17169         ftoastr: Fix compilation error on Solaris.
17170         * lib/ftoastr.c: Include <config.h>.
17171
17172 2010-11-27  Bruno Haible  <bruno@clisp.org>
17173
17174         getloadavg: Update documentation.
17175         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17176
17177 2010-11-27  Bruno Haible  <bruno@clisp.org>
17178
17179         sys_socket: Fix test whether the functions are declared.
17180         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17181         not <sys/select.h>.
17182
17183 2010-11-27  Bruno Haible  <bruno@clisp.org>
17184
17185         getpass: Make sure to get system declaration on some platforms.
17186         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17187         gl_USE_SYSTEM_EXTENSIONS.
17188         * modules/getpass (Depends-on): Add extensions.
17189
17190 2010-11-26  Bruno Haible  <bruno@clisp.org>
17191
17192         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17193         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17194         'iconv' module is present.
17195         (ICONV_CONST): New macro.
17196         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17197         ICONV_CONST.
17198         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17199         set ICONV_CONST.
17200         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17201         here.
17202         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17203         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17204         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17205         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17206         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17207         present.
17208
17209 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17210
17211         ftoastr: comment fix
17212         * lib/ftoastr.c: "little" -> "little or no" in comment
17213
17214 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17215
17216         stdint: port to GCC 4.3 + OSX + Octave
17217         On this platform, stdint.h is buggy and defines int64_t to long
17218         long int.  The replacement defined it to long int, causing
17219         problems with C++ style name mangling.  Instead, trust the system
17220         definition if INT64_MAX is defined, and likewise for the unsigned
17221         variant.   Problem reported by Jarno Rajahalme in
17222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17223         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17224         and don't mess with int64_t and INT64_MAX in this case.
17225         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17226
17227 2010-11-24  Bruno Haible  <bruno@clisp.org>
17228
17229         doc: Corrections regarding MacOS X 10.4 and 10.5.
17230         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17231         MacOS X.
17232         Reported by Simon Josefsson.
17233
17234 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17235
17236         Uninstall ".bin" files installed by relocwrapper.
17237         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17238         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17239         unless it is already there.
17240
17241 2010-11-21  Bruno Haible  <bruno@clisp.org>
17242
17243         Update for NetBSD 5.0.
17244         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17245         NetBSD; the test fails on NetBSD 5.0.
17246         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17247         about NetBSD.
17248
17249 2010-11-21  Bruno Haible  <bruno@clisp.org>
17250
17251         Update for HP-UX 11.23 and HP-UX 11.31.
17252         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17253         HP-UX.
17254
17255 2010-11-21  Bruno Haible  <bruno@clisp.org>
17256
17257         Update for MacOS X 10.5.
17258         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17259         MacOS X; the test fails on MacOS X 10.5.8.
17260         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17261         about MacOS X.
17262
17263 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17264
17265         bootstrap: add bootstrap_sync option.
17266         See discussion at
17267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17269         * build-aux/bootstrap: Accept --bootstrap-sync to update
17270         bootstrap if it is not identical to the local gnulib's
17271         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17272         enable this by default.  Accept --no-bootstrap-sync to disable
17273         it.
17274
17275 2010-11-20  Bruno Haible  <bruno@clisp.org>
17276
17277         Ensure that <features.h> is included before __GLIBC__ is tested.
17278         * lib/printf-parse.h: Include <features.h>.
17279         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17280         Reported by Mike Frysinger <vapier@gentoo.org>.
17281
17282         Ensure that <features.h> is included before __GLIBC__ is tested.
17283         * lib/wchar.in.h: Include <features.h>.
17284         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17285         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17286         Reported by Mike Frysinger <vapier@gentoo.org>.
17287
17288         Ensure that <features.h> is included before __GLIBC__ is tested.
17289         * lib/arpa_inet.in.h: Include <features.h>.
17290         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17291         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17292         Reported by Mike Frysinger <vapier@gentoo.org>.
17293
17294         Ensure that <features.h> is included before __GLIBC__ is tested.
17295         * build-aux/link-warning.h: Include <features.h>.
17296         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17297         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17298         Reported by Mike Frysinger <vapier@gentoo.org>.
17299
17300         Ensure that <features.h> is included before __GLIBC__ is tested.
17301         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17302         Reported by Mike Frysinger <vapier@gentoo.org>.
17303
17304 2010-11-20  Bruno Haible  <bruno@clisp.org>
17305
17306         memmem: Fix autoconf test.
17307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17308
17309 2010-11-20  Bruno Haible  <bruno@clisp.org>
17310
17311         Port to uClibc.
17312         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17313         * lib/fcntl.in.h: Likewise.
17314         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17315         * lib/mbrtowc.c (mbrtowc): Likewise.
17316         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17317         * lib/strerror_r.c: Likewise.
17318         * lib/unistr/u8-strnlen.c: Likewise.
17319         * lib/vasnprintf.c (decimal_point_char): Likewise.
17320         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17321         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17323         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17324         * tests/test-sigaction.c (handler, main): Likewise.
17325         * lib/freading.h: Treat uClibc like a non-glibc platform.
17326         * lib/freading.c: Likewise.
17327         * lib/gettext.h: Likewise.
17328         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17329         Likewise.
17330         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17331         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17332         * lib/propername.c (proper_name_utf8): Likewise.
17333         * lib/spawn.in.h: Likewise.
17334         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17335         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17336         mem_cd_iconveh_internal): Likewise.
17337         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17338         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17339         strstr, strcasestr): Likewise.
17340         * lib/unicodeio.c (unicode_to_mb): Likewise.
17341         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17342         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17343         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17344         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17345         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17346         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17347         * lib/unistr/u8-stpncpy.c: Likewise.
17348         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17349         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17350         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17351         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17352         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17353         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17354         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17355         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17356         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17357         Likewise.
17358         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17359         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17360         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17363         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17364         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17365         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17366         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17367         * tests/test-striconveha.c (main): Likewise.
17368         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17369         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17370         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17371         * doc/posix-functions/getline.texi: Likewise.
17372         Reported by Mike Frysinger <vapier@gentoo.org>.
17373
17374 2010-11-20  Bruno Haible  <bruno@clisp.org>
17375
17376         nproc: Fix condition.
17377         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17378         HAVE_PTHREAD_AFFINITY_NP.
17379
17380 2010-11-20  Bruno Haible  <bruno@clisp.org>
17381
17382         Fix a comment.
17383         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17384
17385 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17386
17387         ftoastr: don't assume snprintf
17388         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17389         Implement a subset of snprintf here, by using sprintf safely.
17390         * modules/ftoastr (Depends-on): Remove snprintf.
17391
17392 2010-11-19  Jim Meyering  <meyering@redhat.com>
17393
17394         test-rename.h: fix compilation failure
17395         * tests/test-rename.h (test_rename): Add omitted "}".
17396
17397 2010-11-17  Jim Meyering  <meyering@redhat.com>
17398
17399         maint.mk: add a URL discussing the no-@acronym policy
17400         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17401
17402 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17403
17404         ftoastr: depend on snprintf, improve comments
17405         * lib/ftoastr.c: Also mention Loitsch's draft.
17406         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17407         needed in the current implementation, but it might simplify
17408         speeding up the code later.
17409         * modules/ftoastr: Depend on snprintf; this improves portability.
17410         Suggested by Bruno Haible in the same email.
17411
17412         ftoastr: port to hosts lacking strtof and strtold
17413         Problem reported by Bruno Haible in
17414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17415         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17416         environment and strtold (and presumably strtof) are not available.
17417         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17418         (configure.ac): Require gl_C99_STRTOLD.
17419
17420 2010-11-18  Bruno Haible  <bruno@clisp.org>
17421
17422         c-strtold: Avoid link error on AIX 7.
17423         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17424         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17425         (gl_C_STRTOLD): Test whether strtold_l exists.
17426         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17427
17428 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17429
17430         intprops: new macro INT_BITS_STRLEN_BOUND
17431         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17432         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17433         not exposed.  Also, it uses a slightly tighter bound than before;
17434         though this makes no practical difference, we might as well be as
17435         tight as we easily can.
17436
17437         ftoastr: new module, for lossless conversion of floats to short strings
17438         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17439         * modules/ftoastr: New files.
17440
17441 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17442
17443         bootstrap: port to Solaris sed
17444         * build-aux/bootstrap (get_version): Port to Solaris sed.
17445         See Ralf Wildenhues's note in
17446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17447
17448 2010-11-14  Jim Meyering  <meyering@redhat.com>
17449
17450         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17451         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17452         and move definition closer to sole use.
17453
17454 2010-11-13  Jim Meyering  <meyering@redhat.com>
17455
17456         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17457         Now we require at least autoconf-2.59, which means the work-around
17458         is no longer needed.
17459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17461         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17462         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17463         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17464
17465 2010-11-13  Bruno Haible  <bruno@clisp.org>
17466
17467         rename, renameat: Avoid test failures at NFS mounted locations.
17468         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17469         functions.
17470         (test_rename): Use assert_nonexistent.
17471         * tests/test-rename.c: Include <dirent.h>.
17472         * tests/test-renameat.c: Likewise.
17473         Reported by Gary V. Vaughan <gary@gnu.org>.
17474
17475         rename, renameat: Document Linux bug with NFS
17476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17477         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17478         * doc/posix-functions/renameat.texi: Likewise.
17479         Suggested by Eric Blake.
17480
17481 2010-11-13  Bruno Haible  <bruno@clisp.org>
17482
17483         rename test: Add comments.
17484         * tests/test-rename.h (test_rename): Add structure and comments.
17485
17486 2010-11-13  Eric Blake  <eblake@redhat.com>
17487
17488         maintainer-makefile: cover a few more files
17489         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17490         scripts generated within C files, for libvirt.
17491
17492 2010-11-13  Bruno Haible  <bruno@clisp.org>
17493
17494         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17495         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17496         character, return the number of bytes that belong together, not always
17497         1.
17498         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17499         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17500         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17501         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17502         number of bytes of an invalid character.
17503         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17504         (main): Invoke it.
17505         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17506         results.
17507         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17508         malformed byte sequences.
17509         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17510         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17511         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17512         Reported by Ben Pfaff and Paolo Bonzini.
17513
17514 2010-11-13  Bruno Haible  <bruno@clisp.org>
17515
17516         openat: Work around glibc bug with fchownat() and empty file names.
17517         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17518         (gl_FUNC_FCHOWNAT): Invoke it.
17519         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17520         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17521         Reported by Gary V. Vaughan <gary@gnu.org>.
17522
17523 2010-11-13  Bruno Haible  <bruno@clisp.org>
17524
17525         openat: Ensure autoconf macro ordering.
17526         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17527         gl_USE_SYSTEM_EXTENSIONS.
17528         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17529
17530 2010-11-13  Bruno Haible  <bruno@clisp.org>
17531
17532         Update comments.
17533         * lib/unistr/u8-check.c: Update file name in comments.
17534         * lib/unistr/u8-mblen.c: Likewise.
17535         * lib/unistr/u8-prev.c: Likewise.
17536         * lib/unistr/u8-strmblen.c: Likewise.
17537         * lib/unistr/u8-strmbtouc.c: Likewise.
17538
17539 2010-11-13  Jim Meyering  <meyering@redhat.com>
17540
17541         tests: avoid test failure on Solaris 10 due to lack of PATH export
17542         * tests/test-update-copyright.sh: Don't forget to export PATH.
17543
17544         init.sh: ensure that IFS is defined, just in case...
17545         * tests/init.sh (setup_): Ensure that IFS is defined,
17546         so that saving and restoring it works as expected.  This
17547         appears to be useful at least for an old version of dash
17548         from a long time ago (RH 6).  See here for details:
17549         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17550
17551         maint.mk: tighten "test a == b" check
17552         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17553         test to files that contain something like #!/bin/sh.
17554         Without this, coreutils would get two false positives in
17555         the comments of C source files.
17556
17557 2010-11-12  Eric Blake  <eblake@redhat.com>
17558
17559         bootstrap: fix typo in previous attempt
17560         * build-aux/bootstrap (buildreq): Correct the grouping.
17561         Reported by Paul Eggert.
17562
17563         maintainer-makefile: prohibit test x == x
17564         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17565         Based on a report by Matthias Bolte.
17566
17567         bootstrap: allow FreeBSD gzip
17568         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17569         which has no '.' and goes to stderr.
17570         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17571         Reported by Matthias Bolte.
17572
17573         maintainer-makefile: check for i18n setup
17574         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17575         will likely work.
17576
17577 2010-11-12  Bruno Haible  <bruno@clisp.org>
17578
17579         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17580         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17581         * lib/nanosleep.c (nanosleep): Likewise.
17582
17583 2010-11-11  Bruno Haible  <bruno@clisp.org>
17584
17585         fcntl-h: Fix for use of C++ on glibc systems.
17586         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17587         also on glibc systems in C++ mode.
17588         Reported by Gary V. Vaughan <gary@gnu.org>.
17589
17590 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17591
17592         mknod: avoid false failure with dash
17593         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17594
17595 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17596
17597         unlink: Fix "is it should" typo in diagnostic.
17598         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17599         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17600
17601 2010-11-11  Bruno Haible  <bruno@clisp.org>
17602
17603         Tests for module 'strerror_r-posix'.
17604         * modules/strerror_r-posix-tests: New file.
17605         * tests/test-strerror_r.c: New file.
17606         * tests/test-string-c++.cc: Check the signature of strerror_r.
17607
17608         New module 'strerror_r-posix'.
17609         * lib/string.in.h (strerror_r): New declaration.
17610         * lib/strerror_r.c: New file.
17611         * m4/strerror_r.m4: New file.
17612         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17613         of strerror_r.
17614         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17615         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17616         * modules/strerror_r-posix: New file.
17617         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17618         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17619         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17620         portability problems.
17621
17622 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17623
17624         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17625         line is also considered for output. Quoted function name in shell
17626         command, so temporary files for functions like MyClass::operator()
17627         are removed correctly without errors.
17628
17629 2010-11-09  Bruno Haible  <bruno@clisp.org>
17630
17631         * doc/posix-functions/strerror.texi: List more failing platforms.
17632
17633         * doc/posix-functions/strerror.texi: Add a comment.
17634
17635 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17636
17637         fdopendir: fix bug on MacOS X when low on file descriptors
17638
17639         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17640         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17641         All callers changed.
17642         (fdopendir): Invoke save_cwd at the top level, not after using
17643         multiple dup() calls to use up file descriptors.  Then retry
17644         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17645         less than the maximum number of open file descriptors, because
17646         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17647         on Mac OS X 10.6.4 for tar 1.24
17648         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17649         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17650         and for tar 1.25
17651         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17652
17653 2010-11-07  Bruno Haible  <bruno@clisp.org>
17654
17655         vasnprintf: Support I flag on glibc systems.
17656         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17657         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17658         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17659         snprintf function.
17660         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17661         glibc systems.
17662         * tests/test-vasnprintf-posix3.c: New file.
17663         * modules/vasnprintf-posix-tests (Files): Add it.
17664         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17665
17666 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17667
17668         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17669         * MODULES.html.sh: For compiler warnings, use name
17670         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17671
17672 2010-11-05  Eric Blake  <eblake@redhat.com>
17673
17674         ceil, floor: avoid spurious failure with icc
17675         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17676         [denormals-as-zero] when optimizing without -mieee-fp option.
17677         * tests/test-floorf2.c (floorf_reference): Likewise.
17678         * tests/test-ceilf1.c (dummy): New function.
17679         (main): Use it to outsmart icc's optimization.
17680         * tests/test-floorf1.c (dummy, main): Likewise.
17681
17682         tests: require working signbit
17683         * modules/ceilf-tests (Depends-on): Add signbit.
17684         * modules/ceill-tests (Depends-on): Likewise.
17685         * modules/floorf-tests (Depends-on): Likewise.
17686         * modules/floorl-tests (Depends-on): Likewise.
17687         * modules/round-tests (Depends-on): Likewise.
17688         * modules/roundf-tests (Depends-on): Likewise.
17689         * modules/roundl-tests (Depends-on): Likewise.
17690         * modules/trunc-tests (Depends-on): Likewise.
17691         * modules/truncf-tests (Depends-on): Likewise.
17692         * modules/truncl-tests (Depends-on): Likewise.
17693
17694         strtod: work around icc bug
17695         * lib/strtod.c (minus_zero): Define to working value.
17696         (strtod): Use it to avoid icc bug.
17697
17698         copysign: enhance tests
17699         * modules/copysign-tests (Files): Add minus-zero.h.
17700         * tests/test-copysign.c (main): Also test zeros.
17701
17702 2010-11-04  Eric Blake  <eblake@redhat.com>
17703
17704         ceil, floor, round, trunc: enhance tests of -0
17705         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17706         * tests/test-ceill.c (main): Likewise.
17707         * tests/test-floorf1.c (main): Likewise.
17708         * tests/test-floorl.c (main): Likewise.
17709         * tests/test-round1.c (main): Likewise.
17710         * tests/test-roundf1.c (main): Likewise.
17711         * tests/test-roundl.c (main): Likewise.
17712         * tests/test-trunc1.c (main): Likewise.
17713         * tests/test-truncf1.c (main): Likewise.
17714         * tests/test-truncl.c (main): Likewise.
17715
17716 2010-11-04  Eric Blake  <eblake@redhat.com>
17717
17718         frexp, tests: work around ICC bug with -zero
17719         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17720         works with more compilers.
17721         * tests/minus-zero.h: New file.
17722         * modules/ceilf-tests (Files): Include it.
17723         * modules/ceill-tests (Files): Likewise.
17724         * modules/floorf-tests (Files): Likewise.
17725         * modules/floorl-tests (Files): Likewise.
17726         * modules/frexp-nolibm-tests (Files): Likewise.
17727         * modules/frexp-tests (Files): Likewise.
17728         * modules/frexpl-nolibm-tests (Files): Likewise.
17729         * modules/frexpl-tests (Files): Likewise.
17730         * modules/isnan-tests (Files): Likewise.
17731         * modules/isnand-nolibm-tests (Files): Likewise.
17732         * modules/isnand-tests (Files): Likewise.
17733         * modules/isnanf-nolibm-tests (Files): Likewise.
17734         * modules/isnanf-tests (Files): Likewise.
17735         * modules/isnanl-nolibm-tests (Files): Likewise.
17736         * modules/isnanl-tests (Files): Likewise.
17737         * modules/round-tests (Files): Likewise.
17738         * modules/roundf-tests (Files): Likewise.
17739         * modules/roundl-tests (Files): Likewise.
17740         * modules/ldexpl-tests (Files): Likewise.
17741         * modules/signbit-tests (Files): Likewise.
17742         * modules/snprintf-posix-tests (Files): Likewise.
17743         * modules/sprintf-posix-tests (Files): Likewise.
17744         * modules/strtod-tests (Files): Likewise.
17745         * modules/trunc-tests (Files): Likewise.
17746         * modules/truncf-tests (Files): Likewise.
17747         * modules/truncl-tests (Files): Likewise.
17748         * modules/vsnprintf-posix-tests (Files): Likewise.
17749         * modules/vsprintf-posix-tests (Files): Likewise.
17750         * modules/vasnprintf-posix-tests (Files): Likewise.
17751         * modules/vasprintf-posix-tests (Files): Likewise.
17752         * tests/test-ceilf1.c (main): Use it.
17753         * tests/test-ceill.c (main): Likewise.
17754         * tests/test-floorf1.c (main): Likewise.
17755         * tests/test-floorl.c (main): Likewise.
17756         * tests/test-frexp.c (main): Likewise.
17757         * tests/test-frexpl.c (main): Likewise.
17758         * tests/test-isnan.c (main): Likewise.
17759         * tests/test-isnand.h (main): Likewise.
17760         * tests/test-isnanf.h (main): Likewise.
17761         * tests/test-isnanl.h (main): Likewise.
17762         * tests/test-ldexpl.c (main): Likewise.
17763         * tests/test-round.c (main): Likewise.
17764         * tests/test-roundf.c (main): Likewise.
17765         * tests/test-roundl.c (main): Likewise.
17766         * tests/test-signbit.c (test_signbitf, test_signbitd)
17767         (test_signbitl): Likewise.
17768         * tests/test-snprintf-posix.h (test_function): Likewise.
17769         * tests/test-sprintf-posix.h (test_function): Likewise.
17770         * tests/test-strtod.c (main): Likewise.
17771         * tests/test-trunc1.c (main): Likewise.
17772         * tests/test-truncf1.c (main): Likewise.
17773         * tests/test-truncl.c (main): Likewise.
17774
17775         isnanl: work around icc bug
17776         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17777
17778 2010-11-03  Eric Blake  <eblake@redhat.com>
17779
17780         tests: fix compiler warnings
17781         * tests/test-getopt.h (test_getopt): Fix condition.
17782         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17783         * tests/test-pipe2.c (main): Likewise.
17784         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17785
17786         utimens: fix broken m4 test
17787         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17788
17789 2010-10-28  Bruno Haible  <bruno@clisp.org>
17790
17791         posix_spawn*, getdtablesize: Relax license.
17792         * modules/posix_spawn (License): Change to LGPLv2+.
17793         * modules/posix_spawnp (License): Likewise.
17794         * modules/posix_spawn-internal (License): Likewise.
17795         * modules/posix_spawnattr_init (License): Likewise.
17796         * modules/posix_spawnattr_getflags (License): Likewise.
17797         * modules/posix_spawnattr_setflags (License): Likewise.
17798         * modules/posix_spawnattr_getpgroup (License): Likewise.
17799         * modules/posix_spawnattr_setpgroup (License): Likewise.
17800         * modules/posix_spawnattr_getschedparam (License): Likewise.
17801         * modules/posix_spawnattr_setschedparam (License): Likewise.
17802         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17803         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17804         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17805         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17806         * modules/posix_spawnattr_getsigmask (License): Likewise.
17807         * modules/posix_spawnattr_setsigmask (License): Likewise.
17808         * modules/posix_spawnattr_destroy (License): Likewise.
17809         * modules/posix_spawn_file_actions_init (License): Likewise.
17810         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17811         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17812         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17813         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17814         * modules/getdtablesize (License): Likewise.
17815         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17816
17817 2010-10-26  Bruno Haible  <bruno@clisp.org>
17818
17819         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17820         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17821         Cygwin and mingw.
17822         Suggested by Eric Blake.
17823
17824 2010-10-26  Bruno Haible  <bruno@clisp.org>
17825
17826         stdio: Work around compilation error due to renameat() on Solaris 10.
17827         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17828         * lib/renameat.c: Don't include <unistd.h> here.
17829         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17830         Reported by Paul Eggert and Eric Blake.
17831
17832 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17833
17834         renameat: port to Solaris 10, which declares renameat in unistd.h
17835
17836         * lib/renameat.c: Include unistd.h before stdio.h, because
17837         Solaris 10 declares renameat in unistd.h.  Problem encountered
17838         when building GNU tar 1.24 on Solaris 10.
17839
17840 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17841
17842         fdopendir: fix C89 compilation
17843         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17844         compilers.
17845
17846 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17847
17848         inttostr: simplify by removing unnecessary redundancy
17849         * lib/anytostr.c: Don't include verify.h.
17850         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17851         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17852         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17853         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17854         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17855         Likewise.
17856         * modules/inttostr (Depends-on): Remove 'verify'.
17857
17858 2010-10-23  Bruno Haible  <bruno@clisp.org>
17859
17860         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17861         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17862         Reported by Eric Blake.
17863
17864 2010-10-23  Bruno Haible  <bruno@clisp.org>
17865
17866         Tests: Fix LOCALE_JA on MirBSD 10.
17867         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17868         to an UTF-8 locale.
17869         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17870         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17871         Reported by Eric Blake.
17872
17873 2010-10-21  Bruno Haible  <bruno@clisp.org>
17874
17875         nl_langinfo test: Avoid test failure on NetBSD 5.
17876         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17877         Reported by Eric Blake.
17878
17879 2010-10-21  Eric Blake  <eblake@redhat.com>
17880
17881         c-stack: work around libsigsegv 2.8 bug
17882         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17883         overflow on at least PowerPC64.
17884
17885 2010-10-17  Bruno Haible  <bruno@clisp.org>
17886
17887         userspec: Drop redundant file.
17888         * modules/userspec (Files): Remove lib/inttostr.h.
17889
17890 2010-10-17  Bruno Haible  <bruno@clisp.org>
17891
17892         nl_langinfo tests: Silence some warnings.
17893         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17894         Reported by Jim Meyering.
17895
17896 2010-10-17  Bruno Haible  <bruno@clisp.org>
17897
17898         Make use of GCC's attribute __alloc_size__.
17899         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17900         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17901         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17902         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17903         __alloc_size__.
17904         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17905         Suggested by Jim Meyering.
17906
17907 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17908
17909         bootstrap: anchor .gitignore entries.
17910         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17911         with...
17912         (insert_vc_ignore): ... this new function, which prepends `/' to
17913         all .gitignore entries before passing them to
17914         insert_sorted_if_absent.
17915
17916 2010-10-16  Bruno Haible  <bruno@clisp.org>
17917
17918         nextafter: Fix configure check.
17919         * modules/nextafter (configure.ac): Correct expected prototype.
17920
17921 2010-10-16  Bruno Haible  <bruno@clisp.org>
17922
17923         termios: Update documentation.
17924         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17925
17926 2010-10-16  Bruno Haible  <bruno@clisp.org>
17927
17928         tests: Make them compile with TinyCC.
17929         * tests/test-strstr.c (main): Remove parentheses around array
17930         initializer.
17931
17932 2010-10-15  Eric Blake  <eblake@redhat.com>
17933
17934         ignore-value: make header idempotent
17935         * lib/ignore-value.h: Add double-inclusion guards.
17936         Reported by Stefan Berger.
17937
17938 2010-10-15  Jim Meyering  <meyering@redhat.com>
17939
17940         GNUmakefile: handle "stable" target, not "major"
17941         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17942         lists in maint.mk and announce-gen.  Without this, "make stable"
17943         would fail to ensure that $(VERSION) is up to date.
17944
17945 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17946
17947         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17948         & co.
17949
17950 2010-10-14  Bruno Haible  <bruno@clisp.org>
17951
17952         vasnprintf: Don't set errno to 0.
17953         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17954         block that sets it to 0.
17955         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17956
17957 2010-10-14  Bruno Haible  <bruno@clisp.org>
17958
17959         socketlib: Fix.
17960         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17961         gl_PREREQ_SYS_H_WINSOCK2.
17962         Reported by Ian Beckwith <ianb@erislabs.net>.
17963
17964 2010-10-13  Jim Meyering  <meyering@redhat.com>
17965
17966         test-select-stdin.c: avoid warn_unused_result warnings
17967         * tests/test-select-stdin.c: Include "macros.h".
17968         ASSERT that read and fflush succeed.
17969
17970 2010-10-13  Jim Meyering  <meyering@redhat.com>
17971
17972         git-version-gen: do require git-VC'd files in cwd
17973         * build-aux/git-version-gen: Reject a git version string
17974         if there are no commits associated with the current directory.
17975         This avoids an unlikely false-positive (unrelated dir whose parent
17976         repository also contains a tag matching v*), as pointed out
17977         by Giuseppe Scrivano in
17978         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17979
17980 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17981
17982         argv-iter: omit nonconforming declaration
17983         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17984         enum arg_iter_err declaration, which doesn't conform to C99.
17985         Solaris 10 cc warns about this.
17986
17987 2010-10-13  Eric Blake  <eblake@redhat.com>
17988
17989         termios: fix compilation on mingw
17990         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17991         (gl_TERMIOS_H): Adjust it on mingw.
17992         * modules/termios (Makefile.am): Substitute new key.
17993         * lib/termios.in.h (includes): Make include_next conditional.
17994         * doc/posix-headers/termios.texi (termios.h): Update
17995         documentation.
17996         Reported by Daniel P. Berrange.
17997
17998 2010-10-13  Jim Meyering  <meyering@redhat.com>
17999
18000         git-version-gen: don't require that .git/ be in the current dir
18001         * build-aux/git-version-gen: Adjust this script so that it works
18002         when run from any working directory beneath the top-level .git/-
18003         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18005
18006         test-select: avoid warn_unused_result warnings
18007         * tests/test-select.c: Include "macros.h".
18008         ASSERT that each call to read, write, and pipe succeeds.
18009         While not technically required, also check each "close".
18010         * modules/select-tests (Files): Add tests/macros.h.
18011
18012         test-symlinkat: remove declaration of unused local
18013         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18014
18015         test-inttostr: avoid shadowing warnings
18016         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18017         and use malloc rather than the stack for the same reason as
18018         mentioned in the comment justifying the other allocation.
18019
18020 2010-10-11  Bruno Haible  <bruno@clisp.org>
18021
18022         stdlib: Allow multiple gnulib generated replacements to coexist.
18023         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18024         Reported by Sam Steingold <sds@gnu.org>.
18025
18026 2010-10-11  Jim Meyering  <meyering@redhat.com>
18027
18028         fix a documentation typo
18029         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18030
18031 2010-10-11  Eric Blake  <eblake@redhat.com>
18032
18033         futimens: work around Solaris 11 bug
18034         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18035         * tests/test-futimens.h (test_futimens): Enhance, rather than
18036         weaken test.
18037         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18038
18039 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18040
18041         Indentation.
18042         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18043         higher-level operators more to the left.
18044
18045 2010-10-11  Jim Meyering  <meyering@redhat.com>
18046
18047         test-futimens: avoid unwarranted test failure on Solaris 5.11
18048         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18049         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18050         because it tries to dereference the NULL name argument.
18051
18052 2010-10-11  Bruno Haible  <bruno@clisp.org>
18053
18054         Indentation.
18055         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18056         indentation.
18057
18058 2010-10-11  Jim Meyering  <meyering@redhat.com>
18059
18060         spawn.in.h: make indentation consistent with parentheses
18061         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18062         Make indentation consistent with parentheses.
18063
18064 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18065
18066         Fix mismatched parens in previous commit
18067         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18068         parens.
18069
18070 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18071
18072         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18073
18074         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18075         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18076         * lib/malloca.c: Include "verify.h".
18077         (verify1): Remove, replacing with a verify call.
18078         * lib/relocwrapper.c (verify1): Likewise.
18079         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18080         Likewise.
18081         * modules/malloca (Depends-on): Add 'verify'.
18082         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18083         * modules/vasnprintf (Depends-on): Add 'verify'.
18084         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18085         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18086         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18087         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18088         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18089         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18090         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18091
18092         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18093
18094         Formerly the style was sometimes 2*X - 1, because the C standard
18095         was wrongly thought to disallow ?: in integral constant expressions.
18096         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18097         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18098         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18099         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18100         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18101         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18102         verify that time_t cannot be floating.
18103
18104 2010-10-08  Eric Blake  <eblake@redhat.com>
18105
18106         time: enforce recent POSIX ruling that time_t is integral
18107         * lib/time.in.h (__time_t_must_be_integral): Detect any
18108         problematic systems, allowing the rest of gnulib to assume POSIX.
18109
18110 2010-10-08  Jim Meyering  <meyering@redhat.com>
18111
18112         fdopendir: fix a bug on systems lacking openat and /proc support
18113         OpenBSD 4.7 is one such system.  The most noticeable effect was
18114         failure of any application making nontrivial use of fts: rm, du,
18115         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18116           ./rm: traversal failed: `a': Bad file descriptor
18117         Debugging that, you see that even though FD 6 was closed just
18118         prior to the opendir call in fd_clone_opendir, its resulting
18119         dir->dd_fd was 8, rather than the expected value of 6:
18120
18121         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18122         93                close (fd);
18123         (gdb) n
18124         94                dir = fd_clone_opendir (dupfd);
18125         (gdb) n
18126         95                saved_errno = errno;
18127         (gdb) p dir->dd_fd
18128         $11 = 8
18129
18130         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18131         The problem is that on OpenBSD, fd_clone_opendir has to resort
18132         to using the old-style save/restore CWD mechanism, due to its
18133         lack of openat/proc support, and *that* would steal the FD (6)
18134         that opendir was supposed to use.
18135
18136         The fix is to squirrel away the desired FD so that save_cwd uses a
18137         different one, and then free the dest FD right before calling opendir.
18138         That guarantees opendir will use the required file descriptor.
18139
18140         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18141
18142 2010-10-08  Bruno Haible  <bruno@clisp.org>
18143
18144         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18145         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18146
18147 2010-10-08  Bruno Haible  <bruno@clisp.org>
18148
18149         nanosleep: Make replacement POSIX compliant.
18150         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18151         is out of range.
18152         Reported by Jim Meyering.
18153
18154 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18155
18156         bootstrap: add hook for altering gnulib.mk, for Bison
18157         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18158         the Bison bootstrapping process can rewrite file names and variables
18159         in this file before later parts of 'bootstrap' use the file.
18160         Bison wants to include lib/gnulib.mk from the top-level makefile,
18161         so it needs the file names in this file to be relative to the top
18162         level, not relative to lib; plus it needs variable names to be
18163         rewritten.
18164         (slurp): Use the new function.
18165
18166         bootstrap: reformat for readability
18167         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18168
18169 2010-10-08  Eric Blake  <eblake@redhat.com>
18170
18171         docs: update cygwin progress
18172         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18173         1.7.7.
18174         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18175         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18176         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18177         * doc/posix-functions/carg.texi (carg): Likewise.
18178         * doc/posix-functions/cargf.texi (cargf): Likewise.
18179         * doc/posix-functions/casin.texi (casin): Likewise.
18180         * doc/posix-functions/casinf.texi (casinf): Likewise.
18181         * doc/posix-functions/casinh.texi (casinh): Likewise.
18182         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18183         * doc/posix-functions/catan.texi (catan): Likewise.
18184         * doc/posix-functions/catanf.texi (catanf): Likewise.
18185         * doc/posix-functions/catanh.texi (catanh): Likewise.
18186         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18187         * doc/posix-functions/ccos.texi (ccos): Likewise.
18188         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18189         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18190         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18191         * doc/posix-functions/cexp.texi (cexp): Likewise.
18192         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18193         * doc/posix-functions/cimag.texi (cimag): Likewise.
18194         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18195         * doc/posix-functions/clog.texi (clog): Likewise.
18196         * doc/posix-functions/clogf.texi (clogf): Likewise.
18197         * doc/posix-functions/conj.texi (conj): Likewise.
18198         * doc/posix-functions/conjf.texi (conjf): Likewise.
18199         * doc/posix-functions/cpow.texi (cpow): Likewise.
18200         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18201         * doc/posix-functions/cproj.texi (cproj): Likewise.
18202         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18203         * doc/posix-functions/creal.texi (creal): Likewise.
18204         * doc/posix-functions/crealf.texi (crealf): Likewise.
18205         * doc/posix-functions/csin.texi (csin): Likewise.
18206         * doc/posix-functions/csinf.texi (csinf): Likewise.
18207         * doc/posix-functions/csinh.texi (csinh): Likewise.
18208         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18209         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18210         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18211         * doc/posix-functions/ctan.texi (ctan): Likewise.
18212         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18213         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18214         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18215         * doc/posix-headers/complex.texi (complex.h): Likewise.
18216
18217 2010-10-07  Jim Meyering  <meyering@redhat.com>
18218
18219         parse-datetime: avoid compilation failure on OpenBSD 4.7
18220         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18221         This works around a compilation failure on OpenBSD 4.7:
18222         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18223
18224 2010-10-07  Eric Blake  <eblake@redhat.com>
18225
18226         docs: update cygwin progress
18227         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18228         1.7.6.
18229         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18230         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18231         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18232         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18233         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18234         Likewise.
18235         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18236         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18237         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18238         Likewise.
18239         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18240         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18241         Likewise.
18242         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18243         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18244         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18245         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18246         Likewise.
18247         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18248         Likewise.
18249         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18250
18251         docs: update parse-datetime history
18252         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18253         documentation of this function's history and alternatives.
18254
18255         cygwin: use more robust version check
18256         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18257         exclude an eventual cygwin 1.9.1.
18258         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18260         (gl_FUNC_STRCASESTR): Likewise.
18261         Reported by Bruno Haible.
18262
18263 2010-10-06  Bruno Haible  <bruno@clisp.org>
18264
18265         string, sys_select: Avoid #including large headers unless necessary.
18266         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18267         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18268         OSF/1, BeOS, Haiku.
18269         Reported by Jim Meyering.
18270
18271 2010-10-05  Eric Blake  <eblake@redhat.com>
18272
18273         memmem, strstr, strcasestr: fix bug with long periodic needle
18274         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18275         periodic needle having false positive.
18276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18277         and cygwin 1.7.7.
18278         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18280         (gl_FUNC_STRCASESTR): Likewise.
18281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18282         * tests/test-memmem.c (main): Expose the bug.
18283         * tests/test-strcasestr.c (main): Likewise.
18284         * tests/test-strstr.c (main): Likewise.
18285         * tests/test-c-strcasestr.c (main): Likewise.
18286         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18287         * doc/posix-functions/strstr.texi (strstr): Likewise.
18288         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18289         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18290
18291 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18292
18293         parse-datetime: do some more renaming
18294         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18295         parse_datetime, not get_date.  Mention the renaming.
18296         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18297         in comments.
18298         * m4/bison.m4: Likewise.
18299
18300 2010-10-05  Eric Blake  <eblake@redhat.com>
18301
18302         parse-datetime: better name than get_date
18303         * NEWS: Reword the deprecation notice.
18304         * modules/get_date: Rename to modules/parse-datetime.
18305         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18306         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18307         * lib/get_date.y: Rename to lib/parse-datetime.y.
18308         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18309         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18310         * doc/getdate.texi: Provide fallback wrapper.
18311         * lib/getdate.h: Move guts, and wrap...
18312         * lib/parse-datetime.h: ...new file.
18313         * lib/parse-datetime.y (get_date): Rename...
18314         (parse_datetime): ...to this.
18315         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18316         (gl_PARSE_DATETIME): ...to this.
18317         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18318         documentation.
18319         * modules/getdate (Files): Provide fallback docs and header.
18320         (Notice, Depends-on): Update references.
18321         * tests/test-parse-datetime.c: Likewise.
18322         * DEPENDENCIES: Likewise.
18323         * MODULES.html.sh (Date and time <time.h>): Likewise.
18324         * doc/parse-datetime.texi (Date input formats)
18325         (Authors of parse_datetime): Likewise.
18326         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18327         (Include): Likewise.
18328         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18329         * gnulib-tool: Likewise.
18330         * m4/bison.m4 (gl_BISON): Likewise.
18331         Suggested by Bruno Haible.
18332
18333 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18334
18335         more ports to Solaris tr, which needs [] around ranges
18336         * gnulib-tool: Solaris tr needs [] around ranges.
18337         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18338         * tests/test-pipe-filter-gi1.c (main): Likewise.
18339         * tests/test-pipe-filter-ii1.c (main): Likewise.
18340
18341 2010-10-05  Eric Blake  <eblake@redhat.com>
18342
18343         bootstrap: fix Solaris regression
18344         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18345         around ranges.
18346         Reported by Pádraig Brady.
18347
18348         bootstrap: work with pkg-config
18349         * build-aux/bootstrap (check_versions): Also transliterate - in
18350         prerequisite name.
18351         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18352         prerequisites that were already found, to avoid confusion.
18353         Reported by Justin Clift.
18354
18355         faccessat: remove unused wrappers
18356         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18357         presence of these wrappers dragged in -lgen on Solaris.
18358         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18359
18360 2010-10-05  Jim Meyering  <meyering@redhat.com>
18361
18362         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18363         * Makefile (sc_pragma_columns): New syntax-check rule.
18364
18365 2010-10-04  Bruno Haible  <bruno@clisp.org>
18366
18367         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18368         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18369         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18370         Reported by Bruce Korb and Eric Blake.
18371
18372 2010-10-04  Bruno Haible  <bruno@clisp.org>
18373
18374         threadlib: Make option --with-libpth-prefix work.
18375         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18376         use $LIBPTH, not just -lpth.
18377
18378 2010-10-04  Bruno Haible  <bruno@clisp.org>
18379
18380         Avoid line length limitation from HP NonStop system header files.
18381         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18382         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18383         * lib/ctype.in.h: Likewise.
18384         * lib/dirent.in.h: Likewise.
18385         * lib/errno.in.h: Likewise.
18386         * lib/fcntl.in.h: Likewise.
18387         * lib/float.in.h: Likewise.
18388         * lib/getopt.in.h: Likewise.
18389         * lib/iconv.in.h: Likewise.
18390         * lib/inttypes.in.h: Likewise.
18391         * lib/langinfo.in.h: Likewise.
18392         * lib/locale.in.h: Likewise.
18393         * lib/math.in.h: Likewise.
18394         * lib/netdb.in.h: Likewise.
18395         * lib/netinet_in.in.h: Likewise.
18396         * lib/poll.in.h: Likewise.
18397         * lib/pthread.in.h: Likewise.
18398         * lib/pty.in.h: Likewise.
18399         * lib/sched.in.h: Likewise.
18400         * lib/se-selinux.in.h: Likewise.
18401         * lib/search.in.h: Likewise.
18402         * lib/signal.in.h: Likewise.
18403         * lib/spawn.in.h: Likewise.
18404         * lib/stdarg.in.h: Likewise.
18405         * lib/stddef.in.h: Likewise.
18406         * lib/stdint.in.h: Likewise.
18407         * lib/stdio.in.h: Likewise.
18408         * lib/stdlib.in.h: Likewise.
18409         * lib/string.in.h: Likewise.
18410         * lib/strings.in.h: Likewise.
18411         * lib/sys_file.in.h: Likewise.
18412         * lib/sys_ioctl.in.h: Likewise.
18413         * lib/sys_select.in.h: Likewise.
18414         * lib/sys_socket.in.h: Likewise.
18415         * lib/sys_stat.in.h: Likewise.
18416         * lib/sys_time.in.h: Likewise.
18417         * lib/sys_times.in.h: Likewise.
18418         * lib/sys_utsname.in.h: Likewise.
18419         * lib/sys_wait.in.h: Likewise.
18420         * lib/sysexits.in.h: Likewise.
18421         * lib/termios.in.h: Likewise.
18422         * lib/time.in.h: Likewise.
18423         * lib/unistd.in.h: Likewise.
18424         * lib/wchar.in.h: Likewise.
18425         * lib/wctype.in.h: Likewise.
18426         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18427         * modules/ctype (Makefile.am): Likewise.
18428         * modules/dirent (Makefile.am): Likewise.
18429         * modules/errno (Makefile.am): Likewise.
18430         * modules/fcntl-h (Makefile.am): Likewise.
18431         * modules/float (Makefile.am): Likewise.
18432         * modules/getopt-posix (Makefile.am): Likewise.
18433         * modules/iconv-h (Makefile.am): Likewise.
18434         * modules/inttypes (Makefile.am): Likewise.
18435         * modules/langinfo (Makefile.am): Likewise.
18436         * modules/locale (Makefile.am): Likewise.
18437         * modules/math (Makefile.am): Likewise.
18438         * modules/netdb (Makefile.am): Likewise.
18439         * modules/netinet_in (Makefile.am): Likewise.
18440         * modules/poll-h (Makefile.am): Likewise.
18441         * modules/pthread (Makefile.am): Likewise.
18442         * modules/pty (Makefile.am): Likewise.
18443         * modules/sched (Makefile.am): Likewise.
18444         * modules/search (Makefile.am): Likewise.
18445         * modules/selinux-h (Makefile.am): Likewise.
18446         * modules/signal (Makefile.am): Likewise.
18447         * modules/spawn (Makefile.am): Likewise.
18448         * modules/stdarg (Makefile.am): Likewise.
18449         * modules/stddef (Makefile.am): Likewise.
18450         * modules/stdint (Makefile.am): Likewise.
18451         * modules/stdio (Makefile.am): Likewise.
18452         * modules/stdlib (Makefile.am): Likewise.
18453         * modules/string (Makefile.am): Likewise.
18454         * modules/strings (Makefile.am): Likewise.
18455         * modules/sys_file (Makefile.am): Likewise.
18456         * modules/sys_ioctl (Makefile.am): Likewise.
18457         * modules/sys_select (Makefile.am): Likewise.
18458         * modules/sys_socket (Makefile.am): Likewise.
18459         * modules/sys_stat (Makefile.am): Likewise.
18460         * modules/sys_time (Makefile.am): Likewise.
18461         * modules/sys_times (Makefile.am): Likewise.
18462         * modules/sys_utsname (Makefile.am): Likewise.
18463         * modules/sys_wait (Makefile.am): Likewise.
18464         * modules/sysexits (Makefile.am): Likewise.
18465         * modules/termios (Makefile.am): Likewise.
18466         * modules/time (Makefile.am): Likewise.
18467         * modules/unistd (Makefile.am): Likewise.
18468         * modules/wchar (Makefile.am): Likewise.
18469         * modules/wctype (Makefile.am): Likewise.
18470
18471 2010-10-04  Bruno Haible  <bruno@clisp.org>
18472
18473         read-file tests: Avoid a test failure on NonStop Kernel.
18474         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18475         a regular file.
18476         Reported by Joachim Schmitz <schmitz@hp.com>.
18477
18478 2010-10-03  Bruno Haible  <bruno@clisp.org>
18479
18480         gnulib-tool: Fixes for --create-testdir with --libtool.
18481         * gnulib-tool (func_get_automake_snippet): Don't augment
18482         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18483         an executable.
18484         (func_create_testdir): Handle module 'alloca' like func_import.
18485         Reported by Bruce Korb <bruce.korb@gmail.com>.
18486
18487 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18488
18489         Avoid some lines longer than 80 characters.
18490         * lib/stdint.in.h: Break long comment lines.
18491         * lib/math.in.h: Likewise.
18492         (_GL_NUM_UINT_WORDS): New macro, for readability.
18493         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18494         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18495         * lib/stdlib.in.h: Likewise.
18496         * lib/spawn.in.h: Likewise.
18497         * lib/sys_socket.in.h: Update an URL.
18498         * lib/sys_stat.in.h: Break long line.
18499
18500 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18501
18502         Improve pmccabe2html.
18503         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18504         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18505         when the sources change. Remove the line in the HTML about "Used
18506         ranges" (which implied that there might be other unused ranges),
18507         rename "Resume" to "Summary" (easier to understand for more users).
18508         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18509         styles, and some unnecessary blank lines.
18510
18511 2010-10-03  Bruno Haible  <bruno@clisp.org>
18512             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18513
18514         acl: Add support for ACLs on NonStop Kernel.
18515         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18516         Check whether the function aclsort() exists.
18517         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18518         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18519         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18520         (acl_nontrivial [HAVE_ACLSORT]: New function.
18521         (file_has_acl): Implement for NonStop Kernel.
18522         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18523         (qset_acl): Implement for NonStop Kernel.
18524         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18525         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18526         (main): Implement for NonStop Kernel.
18527         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18528         Kernel. Handle this flavor.
18529         * tests/test-set-mode-acl.sh: Likewise.
18530         * tests/test-copy-acl.sh: Likewise.
18531         * tests/test-copy-file.sh: Likewise.
18532
18533 2010-10-03  Bruno Haible  <bruno@clisp.org>
18534
18535         Info about ACLs on NonStop Kernel.
18536         * doc/acl-resources.txt: Add info about NonStop Kernel.
18537         References by Joachim Schmitz <schmitz@hp.com>.
18538
18539 2010-10-02  Bruno Haible  <bruno@clisp.org>
18540
18541         Define missing EDQUOT on NonStop Kernel.
18542         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18543         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18545         missing.
18546         * doc/posix-headers/errno.texi: Mention the NSK bug.
18547         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18548         Reported by Joachim Schmitz <schmitz@hp.com>.
18549
18550 2010-10-02  Bruno Haible  <bruno@clisp.org>
18551
18552         Update doc for POSIX:2008.
18553         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18554         Update URL of POSIX specification.
18555
18556 2010-10-02  Bruno Haible  <bruno@clisp.org>
18557
18558         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18559         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18560         from gnulib, not from Automake.
18561
18562 2010-10-02  Bruno Haible  <bruno@clisp.org>
18563
18564         New module 'system-posix'.
18565         * modules/system-posix: New file.
18566         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18567         module is present.
18568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18569         GNULIB_SYSTEM_POSIX.
18570         * modules/stdlib (Depends-on): Remove sys_wait.
18571         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18572         * doc/posix-functions/system.texi: Mention the new module.
18573         * doc/posix-headers/stdlib.texi: Likewise.
18574         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18575         define test_sys_wait_macros to a no-op.
18576         Reported by Sam Steingold <sds@gnu.org>.
18577
18578 2010-09-30  Bruno Haible  <bruno@clisp.org>
18579
18580         More renaming from 'getdate' to 'get_date'.
18581         * doc/get_date.texi: Renamed from doc/getdate.texi.
18582         * modules/get_date (Files): Update.
18583         * MODULES.html.sh (Date and time <time.h>): Update.
18584         * DEPENDENCIES: Update.
18585         * gnulib-tool: Update comment.
18586         * m4/bison.m4 (gl_BISON): Likewise.
18587         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18588
18589 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18590
18591         bootstrap: support ACLOCAL_FLAGS during aclocal
18592         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18593         can add additional -I dir for third-party .m4 files.
18594
18595 2010-09-30  Eric Blake  <eblake@redhat.com>
18596
18597         bootstrap: use glibtoolize on MacOS
18598         * build-aux/bootstrap (check_versions): Convert libtool into
18599         libtoolize.
18600         (tool search): Move libtool check earlier, and look for
18601         glibtoolize for MacOS.
18602         (gnulib_tool_options): Auto-add --libtool when appropriate.
18603         Reported by Justin Clift.
18604
18605         poll: fix typo that broke test on MacOS
18606         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18607         Reported by Justin Clift.
18608
18609         getdate: rename to get_date
18610         Note: getdate.h is not renamed, to minimize client impact.
18611         * modules/getdate: Mark obsolete.  Move old contents...
18612         * modules/get_date: ...to new module name.
18613         * modules/getdate-tests: Move...
18614         * modules/get_date-tests: ...here.
18615         * m4/getdate.m4: Move...
18616         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18617         * lib/getdate.y: Move...
18618         * lib/get_date.y: ...here.
18619         * tests/test-getdate.c: Move...
18620         * tests/test-get_date.c: ...here.
18621         * doc/posix-functions/getdate.texi (getdate): Update name.
18622         * NEWS: Mention the change.
18623
18624 2010-09-29  Bruno Haible  <bruno@clisp.org>
18625
18626         Separate the module 'waitpid' from the module 'sys_wait'.
18627         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18628         present.
18629         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18630         gl_MODULE_INDICATOR_FOR_TESTS.
18631         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18632         * modules/sys_wait (Depends-on): Remove waitpid.
18633         (Makefile.am): Substitute GNULIB_WAITPID.
18634         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18635         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18636         signature only if the 'waitpid' module is present.
18637         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18638         * NEWS: Mention the change.
18639         * modules/grantpt (Depends-on): Add waitpid.
18640         * modules/wait-process (Depends-on): Likewise.
18641
18642 2010-09-29  Bruno Haible  <bruno@clisp.org>
18643
18644         More tests for module 'sys_wait'.
18645         * modules/sys_wait-c++-tests: New file.
18646         * tests/test-sys_wait-c++.cc: New file.
18647         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18648         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18649
18650 2010-09-29  Bruno Haible  <bruno@clisp.org>
18651
18652         New module 'waitpid'.
18653         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18654         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18655         Don't include <process.h>.
18656         (waitpid): Declare only, using modern idiom.
18657         * m4/waitpid.m4: New file.
18658         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18659         * modules/waitpid: New file.
18660         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18661         (Makefile.am): Update.
18662         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18663
18664 2010-09-28  Bruno Haible  <bruno@clisp.org>
18665
18666         poll: Assume ANSI C.
18667         * lib/poll.c (poll): Use an ANSI C declaration.
18668
18669 2010-09-28  Bruno Haible  <bruno@clisp.org>
18670
18671         poll-h: Create poll.h on all platforms.
18672         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18673         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18674         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18675         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18676         (gl_REPLACE_POLL_H): Don't set POLL_H.
18677         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18678         * modules/poll-h (Depends-on): Add include_next.
18679         (Makefile.am): Create poll.h unconditionally. Substitute also
18680         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18681
18682 2010-09-28  Bruno Haible  <bruno@clisp.org>
18683
18684         Tests for module 'poll-h'.
18685         * modules/poll-h-c++-tests: New file.
18686         * tests/test-poll-h-c++.cc: New file.
18687
18688         Tests for module 'poll-h'.
18689         * modules/poll-h-tests: New file.
18690         * tests/test-poll-h.c: New file.
18691
18692 2010-09-28  Bruno Haible  <bruno@clisp.org>
18693
18694         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18695         * modules/poll-h (Depends-on): Add 'extensions'.
18696
18697 2010-09-28  Bruno Haible  <bruno@clisp.org>
18698
18699         New module 'poll-h'.
18700         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18701         (poll): Use modern idiom.
18702         * modules/poll-h: New file.
18703         * modules/poll (Files): Remove lib/poll.in.h.
18704         (Depends-on): Add poll-h.
18705         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18706         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18707         * m4/poll_h.m4: New file.
18708         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18709         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18710         and invoke gl_REPLACE_POLL_H.
18711         * lib/poll.c: Use common idiom.
18712         * tests/test-poll.c: Likewise.
18713         * doc/posix-headers/poll.texi: Mention the poll-h module.
18714         Suggested by Eric Blake.
18715
18716 2010-09-26  Bruno Haible  <bruno@clisp.org>
18717
18718         sys_wait: Implement WSTOPSIG.
18719         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18720         Reported by Simon Josefsson.
18721
18722 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18723
18724         stdlib, sys_wait: Avoid compilation error on mingw.
18725         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18726
18727 2010-09-26  Bruno Haible  <bruno@clisp.org>
18728
18729         stdlib tests: Avoid code duplication.
18730         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18731         * modules/sys_wait-tests (Files): Likewise.
18732         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18733         * tests/test-stdlib.c: Include test-sys_wait.h.
18734         (main): Invoke test_sys_wait_macros.
18735         * tests/test-sys_wait.c: Include test-sys_wait.h.
18736         (main): Invoke test_sys_wait_macros.
18737
18738 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18739
18740         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18741         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18742         sure Windows sockets are working before calling getaddrinfo.
18743         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18744         * doc/gnulib.texi (Windows sockets): Fix typo.
18745
18746 2010-09-25  Bruno Haible  <bruno@clisp.org>
18747
18748         Tests for module 'regex-quote'.
18749         * modules/regex-quote-tests: New file.
18750         * tests/test-regex-quote.c: New file.
18751
18752         New module 'regex-quote'.
18753         * lib/regex-quote.h: New file.
18754         * lib/regex-quote.c: New file.
18755         * modules/regex-quote: New file.
18756         Suggested by Reuben Thomas <rrt@sc3d.org>.
18757
18758 2010-09-24  Bruno Haible  <bruno@clisp.org>
18759
18760         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18761         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18762
18763 2010-09-23  Bruno Haible  <bruno@clisp.org>
18764
18765         setenv: Relax license.
18766         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18767         Blake.
18768         Requested by Eric Blake.
18769
18770 2010-09-22  Bruno Haible  <bruno@clisp.org>
18771
18772         termios: Relax license.
18773         * modules/termios (License): Change to LGPLv2+.
18774         Requested by Eric Blake.
18775
18776 2010-09-22  Bruno Haible  <bruno@clisp.org>
18777
18778         threadlib: Allow the package to change the default to 'no'.
18779         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18780         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18781         Reported by Paul Eggert.
18782
18783 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18784             Bruno Haible  <bruno@clisp.org>
18785
18786         Fix endless loop in mbmemcasecoll.
18787         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18788         byte.
18789         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18790
18791 2010-09-22  Bruno Haible  <bruno@clisp.org>
18792
18793         Tests for module 'memcoll'.
18794         * modules/memcoll-tests: New file.
18795         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18796
18797         memcoll, xmemcoll: Clarify size vs. length.
18798         * modules/memcoll.c (memcoll0): Clarify specification.
18799         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18800         passed to collate_error.
18801
18802 2010-09-22  Bruno Haible  <bruno@clisp.org>
18803
18804         Tests for module 'memcasecmp'.
18805         * modules/memcasecmp-tests: New file.
18806         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18807
18808 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18809
18810         * lib/pthread.in.h: Add split double-inclusion guard, and include
18811         system <pthread.h> if there is one.  Use @@-style as in other
18812         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18813         pthread.h doesn't.
18814         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18815         (pthread_mutexattr_settype, pthread_mutex_trylock):
18816         New static inline functions, if there's no system <pthread.h>.
18817         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18818         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18819         Approximate with mutexes if the system lacks spinlocks, as in
18820         MacOS.
18821         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18822         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18823         @@-style.  Check for spinlocks separately.
18824         (gl_PTHREAD_DEFAULTS): New macro.
18825         * modules/pthread: Redo to use a more typical style for in.h files.
18826
18827 2010-09-21  Eric Blake  <eblake@redhat.com>
18828
18829         net_if: enhance tests
18830         * tests/test-net_if.c (main): Move signature checks earlier.
18831         Print failures to stderr.
18832         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18833         Document the bug that we do not yet fix.
18834
18835 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18836
18837         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18838         about gnulib, not GSS.
18839
18840 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18841
18842         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18843         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18844         for Emacs.
18845         * build-aux/pmccabe2html: Make Makefile.am example code more
18846         cut-and-paste friendly.
18847
18848 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18849
18850         * tests/test-net_if.c: New file.
18851         * modules/net_if-tests: New file.
18852
18853 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         pthread: add pthread_spin_destroy
18856         * lib/pthread.in.h (pthread_spin_destroy): New function.
18857
18858 2010-09-19  Bruno Haible  <bruno@clisp.org>
18859
18860         gnulib-tool: Fix --help output.
18861         * gnulib-tool (func_usage): Fix help message.
18862         Reported by Reuben Thomas <rrt@sc3d.org>.
18863
18864 2010-09-18  Jim Meyering  <meyering@redhat.com>
18865
18866         maint.mk: avoid unexpanded \n in two diagnostics
18867         * top/maint.mk (sc_prohibit_always_true_header_tests):
18868         Don't use a literal \n in a halt=... assignment.  It would not be
18869         expanded, and the two \n bytes would appear in the diagnostic output
18870         rather than the desired newline.  Use halt=$$(printf ... instead.
18871         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18872
18873 2010-09-18  Bruno Haible  <bruno@clisp.org>
18874
18875         netinet_in: Doc tweak.
18876         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18877         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18878
18879 2010-09-18  Jim Meyering  <meyering@redhat.com>
18880
18881         init.sh: correct an outdated comment
18882         * tests/init.sh (create_exe_shims_):  s/function/alias/
18883
18884         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18885         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18886         a file named "*.exe" is removed between the glob expansion and the
18887         processing of that oddly named file.
18888
18889 2010-09-17  Eric Blake  <eblake@redhat.com>
18890
18891         mirbsd: add some more support
18892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18893         in BSD family.
18894         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18895         devices as OpenBSD.
18896         * m4/host-os.m4 (mirbsd): Add MirBSD.
18897
18898         tests: fix unportable assumption on sys/wait.h
18899         * tests/test-sys_wait.c (main): Relax test.
18900         * tests/test-stdlib.c (main): Likewise.
18901
18902         init.sh: accomodate directory with no .exes
18903         * tests/init.sh: Accomodate directory containing only scripts.
18904
18905         tests: avoid compiler warning
18906         * tests/test-stdlib.c (main): Use the variable.
18907
18908         fdutimens, fdutimensat: update signature, again
18909         * lib/utimens.h (gl_futimens): Delete, and move signature...
18910         (fdutimens): ...here.
18911         (fdutimensat): Rearrange signature.
18912         (lutimensat): Rename variable for clarity.
18913         * lib/fdutimensat.c (fdutimensat): Update signature.
18914         * lib/utimens.c (fdutimens): Likewise.
18915         (gl_futimens): Delete.
18916         (utimens, lutimens): Update callers.
18917         * lib/futimens.c (futimens): Likewise.
18918         * tests/test-fdutimensat.c: Likewise.
18919         * tests/test-utimens.c: Likewise.
18920         * tests/test-futimens.h: Update comment.
18921         * NEWS: Mention this.
18922         Suggested by Paul Eggert.
18923
18924 2010-09-17  Bruno Haible  <bruno@clisp.org>
18925
18926         Take over the maintenance of some older macros from Autoconf.
18927         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18928         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18929         GNU Autoconf.
18930         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18931         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18932
18933 2010-09-17  Eric Blake  <eblake@redhat.com>
18934
18935         fdutimensat: drop atflag validation
18936         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18937         with valid fd, to close a race scenario where futimens is
18938         unsupported and FILE was replaced by a symlink.
18939         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18940         accordingly.
18941         Suggested by Paul Eggert.
18942
18943 2010-09-16  Bruno Haible  <bruno@clisp.org>
18944
18945         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18946         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18947
18948 2010-09-16  Bruno Haible  <bruno@clisp.org>
18949
18950         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18951         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18952         login_tty exists.
18953         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18954
18955 2010-09-16  Bruno Haible  <bruno@clisp.org>
18956
18957         login_tty: Make the replacement code work on BSD systems.
18958         * lib/login_tty.c: Include <sys/ioctl.h>.
18959         (login_tty): Use ioctl TIOCSCTTY when available.
18960         * modules/login_tty (Depends-on): Add sys_ioctl.
18961         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18962
18963 2010-09-16  Bruno Haible  <bruno@clisp.org>
18964
18965         login_tty: Stricter unit test.
18966         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18967         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18968         and tcgetsid() after login_tty.
18969         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18970
18971 2010-09-16  Bruno Haible  <bruno@clisp.org>
18972
18973         New module 'tcgetsid'.
18974         * lib/tcgetsid.c: New file.
18975         * m4/tcgetsid.m4: New file.
18976         * modules/tcgetsid: New file.
18977         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18978         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18979         GNULIB_TCGETSID, HAVE_TCGETSID.
18980         * lib/termios.in.h: Include <sys/types.h>.
18981         (tcgetsid): New declaration.
18982         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18983         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18984         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18985         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18986
18987 2010-09-16  Bruno Haible  <bruno@clisp.org>
18988
18989         Tests for module 'termios'.
18990         * modules/termios-c++-tests: New file.
18991         * modules/termios-tests: New file.
18992         * tests/test-termios-c++.cc: New file.
18993         * tests/test-termios.c: New file.
18994
18995         New module 'termios'.
18996         * modules/termios: New file.
18997         * lib/termios.in.h: New file.
18998         * m4/termios_h.m4: New file.
18999         * doc/posix-headers/termios.texi: Mention the new module.
19000
19001 2010-09-16  Eric Blake  <eblake@redhat.com>
19002
19003         fdutimensat: add an atflag parameter
19004         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19005         * lib/utimens.h (fdutimensat): Update prototype.
19006         * tests/test-fdutimensat.c: Adjust test to match.
19007         * NEWS: Document the change.
19008         Suggested by Paul Eggert.
19009
19010 2010-09-16  Bruno Haible  <bruno@clisp.org>
19011
19012         Fix typos in comments.
19013         * lib/striconveh.h: Fix typo in comment.
19014         * lib/login_tty.c (login_tty): Likewise.
19015
19016 2010-09-15  Bruno Haible  <bruno@clisp.org>
19017
19018         stdlib: clarify MirBSD WEXITSTATUS bug
19019         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19020         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19021
19022 2010-09-15  Eric Blake  <eblake@redhat.com>
19023
19024         stdlib: work around MirBSD WEXITSTATUS bug
19025         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19026         * modules/stdlib (Depends-on): Add sys_wait.
19027         * tests/test-sys_wait.c (main): Enhance test.
19028         * tests/test-stdlib.c (main): Likewise.
19029         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19030
19031         docs: mention MacOS issue with WEXITSTATUS(constant)
19032         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19033         issue.
19034         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19035
19036         strnlen: add tests
19037         * modules/strnlen-tests: New file.
19038         * tests/test-strnlen.c: Likewise.
19039
19040 2010-09-14  Bruno Haible  <bruno@clisp.org>
19041
19042         unistr/base: Avoid link errors when module 'libunistring' is also used.
19043         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19044         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19045         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19046         Declare also when HAVE_LIBUNISTRING is set.
19047         Reported by Pádraig Brady <P@draigbrady.com>.
19048
19049 2010-09-14  Eric Blake  <eblake@redhat.com>
19050
19051         test-rawmemchr: make more robust
19052         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19053         (Depends-on, configure.ac): Add needed prerequisites to use it.
19054         * modules/memchr-tests (Files, Depends-on, configure.ac):
19055         Likewise, to avoid implicit reliance on memchr module prereqs.
19056         * tests/test-memchr.c (main): Ensure proper masking.
19057         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19058         reads.
19059
19060         memchr: detect glibc Alpha bug
19061         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19062         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19063         Alpha.
19064         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19065         * tests/test-memchr.c (main): Enhance test.
19066         Reported by Nelson H. F. Beebe.
19067
19068 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19069
19070         fts, getcwd, glob: audit for dirfd returning -1
19071         * lib/fts.c (opendir): Remove #define; no longer used.
19072         (opendirat): New arg PDIR_FD.  All callers changed.
19073         (fts_build, _opendir2): Use new opendirat to avoid the need for
19074         dirfd, or for checking whether dirfd returns a negative value.
19075         Don't use opendir; always use openat followed by fdopendir.
19076         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19077         it.
19078         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19079         returns -1 here.
19080         * modules/fts (Depends-on): Remove dirfd.
19081         * modules/getcwd (Depends-on): Likewise.
19082
19083 2010-09-13  Eric Blake  <eblake@redhat.com>
19084
19085         float: fix broken MirBSD header
19086         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19087         * doc/posix-headers/float.texi (float.h): Document it.
19088
19089 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19090
19091         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19092         * lib/fts.c (opendirat): New arg extra_flags.
19093         (__opendir2): Use it to avoid following symlinks when opening
19094         a directory, if symlinks are not supposed to be followed.  See
19095         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19096
19097         fdopendir: preserve argument fd before returning
19098         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19099         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19100         (fdopendir): Use them, arranging for FD to be open to the same
19101         directory that it was when it started.  (It might be temporarily
19102         closed while fdopendir is running, so this not thread- or
19103         signal-safe.)  Be careful to do the right thing even when file
19104         descriptors are scarce and dup fails with errno == EMFILE.  See
19105         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19106
19107 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19108
19109         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19110         * NEWS: Document change.
19111         * m4/regex.m4: Disable test for regoff_t size.
19112
19113 2010-09-13  Jim Meyering  <meyering@redhat.com>
19114
19115         fts: don't operate on an invalid file descriptor after failed dup
19116         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19117         negative file descriptor.
19118
19119 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19120
19121         savedir: add streamsavedir, deprecate fdsavedir
19122         * NEWS: Mention deprecation of fdsavedir.
19123         * lib/savedir.c (streamsavedir): New extern function, whose name
19124         ends in "savedir" to be consistent with the others.  This differs
19125         from savedirstream in that it doesn't close its argument.  The
19126         next version of GNU tar will use this instead of fdsavedir, to
19127         avoid some race conditions and conserve file descriptors.
19128         (savedirstream): Reimplement as a wrapper around streamsavedir.
19129         (fdsavedir): Add a comment deprecating this function.  As far as
19130         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19131         * lib/savedir.h (streamsavedir): New decl.
19132         (fdsavedir): Add a comment deprecating this.
19133
19134 2010-09-10  Bruno Haible  <bruno@clisp.org>
19135
19136         langinfo: Fix last commit.
19137         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19138         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19140
19141 2010-09-10  Bruno Haible  <bruno@clisp.org>
19142
19143         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19144         * lib/progreloc.c (O_EXEC): Define fallback.
19145
19146 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19147
19148         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19149         * NEWS: Document recent changes to fcntl-h.
19150         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19151         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19152         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19153         Similarly for O_SEARCH; this last was already true, but not documented.
19154         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19155         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19156         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19157         Likewise.
19158         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19159         is zero, not whether it is defined.
19160         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19161         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19162         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19163
19164 2010-09-10  Bruno Haible  <bruno@clisp.org>
19165
19166         langinfo, nl_langinfo: Fix for IRIX 5.3.
19167         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19168         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19169         HAVE_LANGINFO_YESEXPR.
19170         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19171         HAVE_LANGINFO_YESEXPR.
19172         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19173         HAVE_LANGINFO_T_FMT_AMPM is 0.
19174         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19175         HAVE_LANGINFO_YESEXPR is 0.
19176         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19177         NOEXPR.
19178         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19179         * doc/posix-functions/nl_langinfo.texi: Likewise.
19180         Reported by Eric Blake.
19181
19182 2010-09-10  Bruno Haible  <bruno@clisp.org>
19183
19184         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19185         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19186         on FreeBSD 8.0 and OpenBSD 4.6.
19187         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19188         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19189         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19190         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19191         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19192         ac_includes_default.
19193         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19194
19195 2010-09-09  Eric Blake  <eblake@redhat.com>
19196
19197         strsignal: work around NetBSD bug
19198         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19199         * lib/string.in.h (includes): Likewise.
19200         * doc/posix-functions/strsignal.texi (strsignal): Document the
19201         bug.
19202         Reported by Nelson H. F. Beebe.
19203
19204         gnulib-tool: work with NetBSD /bin/sh
19205         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19206         (func_get_description, func_get_comment, func_get_status)
19207         (func_get_notice, func_get_applicability, func_get_filelist)
19208         (func_get_dependencies, func_get_autoconf_early_snippet)
19209         (func_get_autoconf_snippet, func_get_automake_snippet)
19210         (func_get_include_directive, func_get_link_directive)
19211         (func_get_license, func_get_maintainer, func_import): Avoid
19212         shell syntax errors from parsing syntax extensions.
19213
19214 2010-09-09  Bruno Haible  <bruno@clisp.org>
19215
19216         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19217         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19218         a reliable way to determine whether the 'alias' command works.
19219
19220 2010-09-08  Jim Meyering  <meyering@redhat.com>
19221
19222         init.sh: penalize a set-x-impaired shell; don't disqualify it
19223         * tests/init.sh: Too many shells corrupt application stderr when
19224         you set -x, so we can't afford to disqualify them, since at least
19225         on Irix-6.5, that would disqualify all bourne shells.
19226         Instead, use a two-pass approach.
19227         On the first pass, try to find a shell that meets the stricter
19228         condition that set -x does not corrupt stderr.
19229         If no shell meets the stricter condition, retest each candidate
19230         shell, but without that extra condition.  Finally, when
19231         VERBOSE=yes is requested and set -x might cause trouble, simply
19232         issue a warning and refrain from enabling debug output.
19233
19234 2010-09-08  Eric Blake  <eblake@redhat.com>
19235
19236         unsetenv: fix OpenBSD bug
19237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19238         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19239         documentation.
19240         Reported by Jim Meyering.
19241
19242         strtod: work around IRIX 6.5 bug
19243         * lib/strtod.c (strtod): Reparse number on shorter string if
19244         exponent parse was invalid.
19245         * tests/test-strtod.c (main): Add check for "0x1p 2".
19246         Reported by Tom G. Christensen.
19247
19248         getopt: optimize previous patch
19249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19250         empty variable.  Speed up awk script.
19251         Reported by Paolo Bonzini.
19252
19253 2010-09-08  Jim Meyering  <meyering@redhat.com>
19254
19255         test.sh: disqualify shells for which set -x corrupts stderr
19256         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19257         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19258         appear in stderr output.  For example, this command:
19259             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19260         prints "P=1" on those two systems:
19261
19262 2010-09-08  Bruno Haible  <bruno@clisp.org>
19263
19264         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19265         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19266         commands, because some shells ignore redirections when there is an
19267         error in the command lookup.
19268         Reported by Eric Blake.
19269
19270 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19271
19272         * lib/regex.h: Fix a mention of `regex_compile' (should be
19273         `re_compile_pattern').
19274         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19275         (re_set_registers): Correct name of parameter in comment.
19276
19277         * doc/regex.texi: Add documentation for missing syntax flags.
19278         Remove commented-out documentation of defunct syntax option
19279         RE_NO_EMPTY_ALTS.
19280         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19281         Add documentation of re_set_registers.
19282         Document trick to re-use a pattern buffer by setting fastmap manually.
19283         Update documentation of struct re_pattern_buffer per public members.
19284         Uncomment documentation of equivalence class operators and
19285         collating symbol operators, since they are now implemented,
19286         Explain leftmost-longest matching in relation to alternatives.
19287         Tidy documentation of substring matching.
19288         Remove POSIX documentation, which is done better in
19289         glibc, and refer the reader there. Keep BSD API documentation, as
19290         that is not readily available elsewhere.
19291
19292 2010-09-07  Eric Blake  <eblake@redhat.com>
19293
19294         getopt: handle POSIXLY_CORRECT set but not exported
19295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19296         export state of POSIXLY_CORRECT, due to bash set -o posix.
19297         Reported by Dustin J. Mitchell.
19298
19299 2010-09-05  Bruno Haible  <bruno@clisp.org>
19300
19301         gnulib-tool: Highlight the changed options.
19302         * gnulib-tool (func_usage): Display the --import, --add-import,
19303         --remove-import explanations in bold font.
19304
19305 2010-09-06  Karl Berry  <karl@gnu.org>
19306
19307         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19308
19309 2010-09-05  Bruno Haible  <bruno@clisp.org>
19310
19311         uniwidth/width: Update comment.
19312         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19313         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19314
19315 2010-09-05  Bruno Haible  <bruno@clisp.org>
19316
19317         isinf, isnan: Relax license.
19318         * modules/isinf (License): Change from GPL to LGPL, with consent from
19319         Ben Pfaff.
19320         * modules/isnan (License): Likewise.
19321         Requested by Ludovic Courtès.
19322
19323 2010-09-04  Bruno Haible  <bruno@clisp.org>
19324
19325         gnulib-tool: Help migration from --import to --add-import or --update.
19326         * gnulib-tool: Emit a verbose error message when --import is used
19327         without any module name.
19328
19329 2010-09-04  Bruno Haible  <bruno@clisp.org>
19330
19331         Update doc about gnulib-tool.
19332         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19333         'gnulib-tool --update' in more detail.
19334         Reported by Eric Blake.
19335
19336 2010-09-04  Bruno Haible  <bruno@clisp.org>
19337
19338         gnulib-tool: Change --import. New options --add/remove-import.
19339         * gnulib-tool: New options --add-import, --remove-import.
19340         (func_usage): Document them.
19341         (have_associative): Define always.
19342         (func_import): In import mode, don't merge the specified settings with
19343         the cached settings. Implement remove-import mode.
19344         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19345         Explain when to use them versus --import.
19346         (Simple update): Use --add-import instead of --import.
19347         * NEWS: Mention the change.
19348
19349 2010-09-04  Bruno Haible  <bruno@clisp.org>
19350
19351         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19352         separate gnulib.mk.
19353
19354 2010-09-04  Bruno Haible  <bruno@clisp.org>
19355
19356         gnulib-tool: Don't talk about CVS any more.
19357         * gnulib-tool (func_usage, func_import): Write "version control"
19358         instead of CVS.
19359
19360 2010-09-04  Jim Meyering  <meyering@redhat.com>
19361
19362         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19363         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19364         false positives (whose names may be ill-chosen) when searching
19365         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19366         would cause a false-positive.
19367
19368         avoid coreutils "make distcheck" failure
19369         Coreutils tests with an absolute build directory name that contains
19370         a space.  Not quoting this directory name caused a failure.
19371         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19372         * tests/test-vc-list-files-cvs.sh: Likewise.
19373
19374 2010-09-04  Bruno Haible  <bruno@clisp.org>
19375
19376         gnulib-tool: Avoid error when run in a package without Makefile.am.
19377         * gnulib-tool: When collecting the m4dirs in a package that does not
19378         have a Makefile.am, eliminate those directories that contain no
19379         gnulib-cache.m4. Fix expression that counts these directories.
19380
19381 2010-09-04  Bruno Haible  <bruno@clisp.org>
19382
19383         update-copyright test: Improve output when perl is missing or too old.
19384         * tests/test-update-copyright.sh: Move test of Perl version down after
19385         the test whether Perl exists. Provide an explanation relating Perl's
19386         error message to Automake's SKIP: message.
19387
19388 2010-09-04  Bruno Haible  <bruno@clisp.org>
19389
19390         Don't augment PATH in TESTS_ENVIRONMENT.
19391         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19392         set abs_aux_dir instead of augmenting PATH.
19393         * modules/vc-list-files-tests (Makefile.am): Likewise.
19394         * tests/test-update-copyright.sh: Augment PATH here.
19395         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19396         path_prepend_.
19397         * tests/test-vc-list-files-git.sh: Likewise.
19398
19399 2010-09-04  Jim Meyering  <meyering@redhat.com>
19400
19401         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19402         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19403
19404 2010-09-04  Bruno Haible  <bruno@clisp.org>
19405
19406         strdup: Fix compilation error in C++ mode.
19407         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19408         the macro.
19409
19410 2010-09-04  Bruno Haible  <bruno@clisp.org>
19411
19412         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19413         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19414         macro into a function.
19415         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19416
19417 2010-09-04  Bruno Haible  <bruno@clisp.org>
19418
19419         Set PATH_SEPARATOR the same way autoconf does.
19420         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19421         the value of PATH_SEPARATOR the same way autoconf-generated configure
19422         scripts do.
19423         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19424         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19425
19426 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19427
19428         Set PATH_SEPARATOR the same way autoconf does.
19429         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19430         the same way autoconf-generated configure scripts do.
19431         * posix-modules: Likewise.
19432
19433 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19434
19435         hash: fix safe_hasher const typo
19436         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19437         const; otherwise, there is a type error later.
19438
19439 2010-09-02  Jim Meyering  <meyering@redhat.com>
19440
19441         test-update-copyright.sh: require perl 5.8.0
19442         * tests/test-update-copyright.sh: Require 5.8.0,
19443         which Tom G. Christensen has confirmed is adequate,
19444         while 5.6.1 is not.
19445
19446 2010-09-02  Eric Blake  <eblake@redhat.com>
19447
19448         tests: init.sh improvements for re-exec'ing with zsh
19449         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19450         -vx through shell re-exec.
19451         Reported by Tom G. Christensen.
19452
19453         wctype: fix typo in previous commit
19454         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19455         Reported by Ludovic Courtès.
19456
19457 2010-09-02  Jim Meyering  <meyering@redhat.com>
19458
19459         test-update-copyright.sh: skip test if Perl is too old
19460         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19461         Reported by Tom G. Christensen.
19462
19463 2010-09-02  Bruno Haible  <bruno@clisp.org>
19464
19465         wctype: Avoid compilation error on IRIX 6.5.30.
19466         * lib/wctype.in.h (iswblank): Declare with a replacement if
19467         REPLACE_ISWBLANK is set.
19468         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19469         declared. Set REPLACE_ISWBLANK.
19470         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19471         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19472         * doc/posix-headers/wctype.texi: Likewise.
19473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19474
19475 2010-09-01  Bruno Haible  <bruno@clisp.org>
19476
19477         New module 'socketlib'.
19478         * modules/socketlib: New file.
19479         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19480         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19481         * modules/sockets (Depends-on): Add socketlib.
19482         Suggested by Sam Steingold <sds@gnu.org>.
19483
19484 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19485
19486         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19487
19488         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19489         when one needs search access to a directory but not read access.
19490         On systems where it is available, it works in some cases where
19491         O_RDONLY does not, namely on directories that are searchable but
19492         not readable, and which need only to be searchable.  If O_SEARCH
19493         is not available, fall back to the traditional method of using
19494         O_RDONLY.
19495
19496         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19497         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19498         when opening a directory that needs only to be searchable.
19499         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19500         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19501         * lib/openat-proc.c (openat_proc_name): Likewise.
19502         * lib/openat.c (openat_needs_fchdir): Likewise.
19503         * lib/save-cwd.c (save_cwd): Likewise.
19504         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19505
19506 2010-08-28  Bruno Haible  <bruno@clisp.org>
19507
19508         New module 'host-cpu-c-abi'.
19509         * modules/host-cpu-c-abi: New file.
19510         * m4/host-cpu-c-abi.m4: New file, based on part of
19511         clisp/src/m4/general.m4.
19512         Requested by Sam Steingold <sds@gnu.org>.
19513
19514 2010-08-31  Eric Blake  <eblake@redhat.com>
19515         and Jim Meyering  <meyering@redhat.com>
19516
19517         hash: factor, and guard against misbehaving hasher function
19518         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19519         of table->hasher's return value.  Also protect against a hash value
19520         so large that adding it to table->bucket results in a NULL pointer.
19521         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19522         Use it in place of open-coded check-and-abort.
19523
19524 2010-08-30  Bruno Haible  <bruno@clisp.org>
19525
19526         hash: silence spurious clang warning
19527         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19528         Reported by Eric Blake.
19529
19530 2010-08-30  Eric Blake  <eblake@redhat.com>
19531
19532         strstr, memmem, strcasestr: avoid leaked shell message
19533         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19534         FreeBSD.
19535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19537
19538         tests: silence clang warning
19539         * tests/test-malloca.c (do_allocation): Avoid dead store.
19540
19541 2010-08-29  Bruno Haible  <bruno@clisp.org>
19542
19543         gettext: Fix recent mistake.
19544         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19545
19546 2010-08-29  Bruno Haible  <bruno@clisp.org>
19547
19548         selinux-h: Offer a --without-selinux option.
19549         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19550         --without-selinux was specified, skip all tests and define
19551         HAVE_SELINUX_SELINUX_H to 0.
19552         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19553         set LIB_SELINUX to empty.
19554         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19555         gl_LIBSELINUX. If --without-selinux was specified, replace
19556         selinux/context.h.
19557         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19558
19559 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19560             Bruno Haible  <bruno@clisp.org>
19561
19562         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19563         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19564         of HAVE_REALLOC.
19565         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19566         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19567         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19568         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19569
19570 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19571             Bruno Haible  <bruno@clisp.org>
19572
19573         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19574         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19575         HAVE_CALLOC.
19576         * lib/xmalloc.c: Update accordingly.
19577         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19578         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19579         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19580
19581 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19582             Bruno Haible  <bruno@clisp.org>
19583
19584         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19585         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19586         HAVE_MALLOC.
19587         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19588         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19589         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19590
19591 2010-08-29  Bruno Haible  <bruno@clisp.org>
19592
19593         Update modules list.
19594         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19595         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19596         (String handling <string.h>): Add astrxfrm.
19597         (File system functions): Add readlinkat.
19598
19599 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19600
19601         Tests for module 'realloc-gnu'.
19602         * modules/realloc-gnu-tests: New file.
19603         * tests/test-realloc-gnu.c: New file.
19604
19605         Tests for module 'calloc-gnu'.
19606         * modules/calloc-gnu-tests: New file.
19607         * tests/test-calloc-gnu.c: New file.
19608
19609         Tests for module 'malloc-gnu'.
19610         * modules/malloc-gnu-tests: New file.
19611         * tests/test-malloc-gnu.c: New file.
19612
19613 2010-08-28  Bruno Haible  <bruno@clisp.org>
19614
19615         Rename module 'realloc' -> 'realloc-gnu'.
19616         * modules/realloc-gnu: New file, copied from modules/realloc.
19617         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19618         obsolete.
19619         * modules/mgetgroups (Depends-on): Update.
19620         * doc/posix-functions/realloc.texi: Update.
19621         * NEWS: Mention the change.
19622
19623         Rename module 'calloc' -> 'calloc-gnu'.
19624         * modules/calloc-gnu: New file, copied from modules/calloc.
19625         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19626         obsolete.
19627         * doc/posix-functions/calloc.texi: Update.
19628         * NEWS: Mention the change.
19629
19630         Rename module 'malloc' -> 'malloc-gnu'.
19631         * modules/malloc-gnu: New file, copied from modules/malloc.
19632         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19633         obsolete.
19634         * modules/argp (Depends-on): Update.
19635         * modules/regex (Depends-on): Update.
19636         * doc/posix-functions/malloc.texi: Update.
19637         * NEWS: Mention the change.
19638
19639 2010-08-28  Eric Blake  <eblake@redhat.com>
19640
19641         pread, pwrite: add missing dependency
19642         * modules/pread (Depends-on): Add extensions.
19643         * modules/pwrite (Depends-on): Likewise.
19644
19645 2010-08-28  Bruno Haible  <bruno@clisp.org>
19646
19647         unistr/u*-strchr: Fix tests dependencies.
19648         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19649         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19650         Reported by Ian Beckwith <ianb@erislabs.net>.
19651
19652 2010-08-28  Bruno Haible  <bruno@clisp.org>
19653
19654         read-file: Don't occupy too much unused memory.
19655         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19656
19657 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19658             Eric Blake  <eblake@redhat.com>
19659             Bruno Haible  <bruno@clisp.org>
19660
19661         read-file: Avoid memory reallocations with regular files.
19662         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19663         (fread_file): With regular files, use the remaining length as the
19664         initial buffer size.  Check against overflow.
19665         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19666         sys_stat.
19667
19668 2010-08-28  Bruno Haible  <bruno@clisp.org>
19669
19670         ftello: Relax license.
19671         * modules/ftello (License): Relax to LGPLv2+.
19672         Reported by Eric Blake.
19673
19674 2010-08-28  Bruno Haible  <bruno@clisp.org>
19675
19676         Avoid relocwrapper link errors due to gnulib replacement functions.
19677         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19678         function.
19679         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19680
19681 2010-08-28  Bruno Haible  <bruno@clisp.org>
19682
19683         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19684         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19685         defined.
19686         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19687         Suggested by Eric Blake.
19688
19689 2010-08-28  Bruno Haible  <bruno@clisp.org>
19690
19691         sys_socket, netdb: Ensure socklen_t gets defined.
19692         * modules/sys_socket (Depends-on): Add socklen.
19693         * modules/netdb (Depends-on): Likewise.
19694         * modules/getaddrinfo (Depends-on): Remove socklen.
19695         * modules/getsockopt (Depends-on): Likewise.
19696         * modules/setsockopt (Depends-on): Likewise.
19697         * tests/test-sys_socket.c: Check that socklen_t is defined.
19698         * tests/test-netdb.c: Likewise.
19699         * m4/socklen.m4: Update comments.
19700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19701
19702 2010-08-27  Eric Blake  <eblake@redhat.com>
19703
19704         login_tty: add missing dependency
19705         * modules/login_tty (Depends-on): Add pty.
19706
19707 2010-08-26  Eric Blake  <eblake@redhat.com>
19708
19709         lib-symbol-versions: fix m4 quoting
19710         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19711         format for AC_LINK_IFELSE.
19712
19713         glob: fix compile test
19714         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19715
19716         btowc: fix missing file
19717         * modules/btowc (Files): Also ship locale-fr.m4.
19718
19719         lseek: fix link test
19720         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19721         AC_LINK_IFELSE.
19722
19723         include_next: silence autoconf 2.68 warning
19724         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19725         AC_COMPILE_IFELSE as special.
19726         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19727         autoconf < 2.68.
19728
19729         acl: fix compilation test
19730         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19731         AC_COMPILE_IFELSE.
19732
19733 2010-08-26  Bruno Haible  <bruno@clisp.org>
19734
19735         Modernize AC_TRY_RUN invocations.
19736         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19737         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19738         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19739         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19740         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19741         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19742         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19743         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19744         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19745         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19747         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19748         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19749         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19750         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19751         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19752         gl_MBRLEN_NUL_RETVAL): Likewise.
19753         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19754         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19755         Likewise.
19756         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19757         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19758         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19759         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19760         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19761         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19762         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19763         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19764         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19765         Likewise.
19766         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19767         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19769         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19770         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19771         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19772         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19773         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19774         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19776
19777 2010-08-26  Bruno Haible  <bruno@clisp.org>
19778
19779         Modernize AC_TRY_LINK invocations.
19780         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19781         AC_TRY_LINK.
19782         * m4/argp.m4 (gl_ARGP): Likewise.
19783         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19784         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19785         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19786         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19787         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19788         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19789         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19790         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19791         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19792         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19793         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19794         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19795         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19796         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19797         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19798         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19799         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19800         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19801         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19802         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19803         Likewise.
19804         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19805         Likewise.
19806         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19807         Likewise.
19808         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19810         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19811         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19812         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19813         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19814         * m4/servent.m4 (gl_SERVENT): Likewise.
19815         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19816         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19817         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19818         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19819         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19820         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19821         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19822         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19823         * modules/tsearch-tests (configure.ac): Likewise.
19824
19825 2010-08-26  Bruno Haible  <bruno@clisp.org>
19826
19827         Modernize AC_TRY_COMPILE invocations.
19828         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19829         AC_TRY_COMPILE.
19830         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19831         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19832         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19833         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19834         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19835         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19836         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19837         * m4/lock.m4 (gl_LOCK): Likewise.
19838         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19839         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19840         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19841         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19842         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19843         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19844         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19845         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19846         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19847         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19848         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19849         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19850         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19851         extraneous semicolon.
19852
19853 2010-08-26  Jim Meyering  <meyering@redhat.com>
19854
19855         stat-time: relax license LGPL
19856         * modules/stat-time (License): Change from GPL to LGPL,
19857         with consent from all contributors, for use in libguile.
19858         Requested by Ludovic Courtès.
19859
19860 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19861
19862         poll: return immediately on POLLHUP.
19863         * lib/poll.c (poll): Always set timeout before wait_timeout is
19864         computed.
19865
19866 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19867
19868         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19869         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19870         rmdir ("dir/.//"), unlinkat.
19871
19872 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19873
19874         stdbool: avoid spurious failure with modern xlc
19875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19876
19877 2010-08-24  Bruno Haible  <bruno@clisp.org>
19878
19879         getloadavg: simplify code
19880         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19881         gl_have_func. Update comments.
19882
19883 2010-08-24  Eric Blake  <eblake@redhat.com>
19884
19885         getloadavg: don't define SVR4 on cygwin
19886         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19887         only define SVR4 when -lkvm is required.
19888         Reported by Yaakov Selkowitz.
19889
19890 2010-08-24  Bruno Haible  <bruno@clisp.org>
19891
19892         priv-set: fix comment
19893         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19894
19895 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19896
19897         priv-set: fix comments
19898         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19899         to match code, as suggested by David Bartley in:
19900         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19901
19902 2010-08-23  Eric Blake  <eblake@redhat.com>
19903
19904         stdbool: avoid rejecting clang
19905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19906         * tests/test-stdbool.c: Enable more tests if using the system
19907         <stdbool.h> instead of the gnulib replacement.
19908         (main): Move xlc bug test to a runtime test for all compilers.
19909         Reported by Anders Kaseorg.
19910
19911         argz: fix shell quoting issue
19912         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19913         Reported by Charles Wilson.
19914
19915 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19916             Erik Faye-Lund <kusmabite@gmail.com>
19917
19918         poll, select: handle ERROR_BROKEN_PIPE.
19919         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19920         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19921         * lib/select.c (win32_compute_revents): Do not mark a pipe
19922         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19923
19924 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19925
19926         fts: allow compilation with C++
19927         * lib/fts_.h: Specify extern "C" linkage with C++.
19928
19929 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19930
19931         Fix gnulib-tool sed script de-commentation for AIX sed.
19932         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19933         sed.
19934
19935 2010-08-17  Eric Blake  <eblake@redhat.com>
19936
19937         test-stddef: test for (some) offsetof bugs
19938         * tests/test-stddef.c: Enhance test to ensure correct type of
19939         offsetof.
19940         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19941         that we are not fixing at this time.
19942
19943 2010-08-15  Bruno Haible  <bruno@clisp.org>
19944
19945         stpncpy: Allow stpncpy to be defined as a macro.
19946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19947         if it's already correctly declared.
19948         * lib/string.in.h (stpncpy): Undefine before redefining.
19949         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19950
19951 2010-08-14  Bruno Haible  <bruno@clisp.org>
19952
19953         Rename module 'memxfrm' to 'amemxfrm'.
19954         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19955         (amemxfrm): Renamed from memxfrm.
19956         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19957         (amemxfrm): Renamed from memxfrm.
19958         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19959         * NEWS: Mention the change.
19960         * MODULES.html.sh (String handling <string.h>): Update.
19961         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19962         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19963         * lib/unicase/u16-casexfrm.c: Likewise.
19964         * lib/unicase/u32-casexfrm.c: Likewise.
19965         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19966         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19967         * lib/uninorm/u16-normxfrm.c: Likewise.
19968         * lib/uninorm/u32-normxfrm.c: Likewise.
19969         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19970         memxfrm.
19971         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19972         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19973         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19974         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19975         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19976         Suggested by Paul Eggert.
19977
19978 2010-08-14  Bruno Haible  <bruno@clisp.org>
19979
19980         Tests for module 'astrxfrm'.
19981         * modules/astrxfrm-tests: New file.
19982         * tests/test-astrxfrm.c: New file.
19983
19984         New module 'astrxfrm'.
19985         * lib/astrxfrm.h: New file.
19986         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19987         * modules/astrxfrm: New file.
19988
19989 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19990
19991         regex: Tweak doc.
19992         * doc/regex.texi (Overview): Don't mention regex.c.
19993         (GNU Regular Expression Compiling): Likewise.
19994         (Match-end-of-line Operator): Mention 'not_eol'.
19995
19996 2010-08-14  Brian Gough  <bjg@gnu.org>
19997             Bruno Haible  <bruno@clisp.org>
19998
19999         git-merge-changelog: add doc relating to use with bzr and hg.
20000         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20001
20002 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20003
20004         pthread: fix pthread.h creation for srcdir != builddir
20005         * modules/pthread (Makefile.am): Fix the rule to work also in a
20006         non-srcdir build.
20007
20008 2010-08-13  Karl Berry  <karl@gnu.org>
20009
20010         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20011         * doc/posix-*/*: force line break before @url of POSIX
20012         specifications.
20013         Suggested by Werner Lemberg.
20014
20015 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20016
20017         strtod: fix const diagnostic
20018         * lib/strtod.c (strtod): Don't assign const char * to char *,
20019         as this elicits a warning from GCC when warnings are enabled.
20020
20021 2010-08-10  Pádraig Brady <P@draigbrady.com>
20022         and Eric Blake  <eblake@redhat.com>
20023
20024         copy-acl: ignore ENOTSUP on HP-UX
20025         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20026         so that it is available for HP-UX.
20027         * lib/copy-acl.c (qcopy_acl): Use it.
20028         Reported by Patrick M. Callahan.
20029
20030 2010-08-10  Eric Blake  <eblake@redhat.com>
20031
20032         open, chown: relax license
20033         * modules/open (License): Change to LGPLv2+, with consent by all
20034         authors, for use in augeas.
20035         * modules/chown (License): Likewise.
20036         * modules/lchown (Likewise): Likewise.
20037         Requested by Adam Stokes.
20038
20039 2010-08-09  Karl Berry  <karl@gnu.org>
20040
20041         * build-aux/ar-lib: new file, import from Automake.
20042         * config/srclist.txt: autocheck for updates.
20043
20044 2010-08-09  Eric Blake  <eblake@redhat.com>
20045
20046         readlinkat: adjust client modules
20047         * modules/areadlinkat (Depends-on): Use readlinkat, not
20048         symlinkat.
20049         * modules/areadlinkat-with-size (Depends-on): Likewise.
20050
20051         mknod: be more vocal about danger of running tests as root
20052         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20053         root, since that is just asking for problems.
20054         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20055
20056         readlinkat: split into its own module
20057         * modules/symlinkat: Split readlinkat...
20058         * modules/readlinkat: ...into separate module.
20059         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20060         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20061         * lib/symlinkat.c (readlinkat): Move...
20062         * lib/readlinkat.c: ...into new file.
20063         * modules/symlinkat-tests: Split readlinkat test...
20064         * modules/readlinkat-tests: ...into separate module.
20065         * tests/test-symlinkat.c: Split...
20066         * tests/test-readlinkat.c: ...into new file.
20067         * NEWS: Document the split.
20068         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20069         * lib/unistd.in.h (readlinkat): Likewise.
20070         Suggested by Bruno Haible.
20071
20072 2010-08-08  Bruno Haible  <bruno@clisp.org>
20073
20074         memxfrm: Speed up.
20075         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20076         that usually only one call to strxfrm is necessary for each string
20077         part.
20078         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20079
20080 2010-08-07  Karl Berry  <karl@gnu.org>
20081
20082         * doc/posix-headers/limits.texi,
20083         * doc/posix-functions/malloc.texi,
20084         * doc/posix-functions/strsignal.texi: missing @item.
20085         * doc/ld-version-script.texi: spurious leading i.
20086         * doc/regex.texi (Interval Operators): no commas inside @var.
20087
20088 2010-08-01  Bruno Haible  <bruno@clisp.org>
20089
20090         Integrate the regex documentation.
20091         * doc/gnulib.texi: Define 'cn' index.
20092         (Regular expressions): New a chapter that includes regex.texi and
20093         regexprops-generic.texi.
20094         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20095         syntax.
20096
20097         Whitespace cleanup.
20098         * doc/regex.texi: Remove trailing spaces.
20099
20100         Add regex documentation.
20101         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20102         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20103         Written by Kathy A. Hargreaves and Karl Berry.
20104
20105 2010-08-01  Bruno Haible  <bruno@clisp.org>
20106
20107         link: Update documentation.
20108         * doc/posix-functions/link.texi: Update regarding Solaris.
20109
20110 2010-07-31  Bruno Haible  <bruno@clisp.org>
20111
20112         Update modules list.
20113         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20114         (String handling <string.h>): Add memcmp2, memxfrm.
20115         (Container data structures): Add xlist, xsublist, xoset.
20116         (Core language properties): Add alignof, unused-parameter.
20117         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20118         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20119         (Unibyte characters <ctype.h>): New section.
20120         (String handling <string.h>): New section.
20121         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20122         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20123         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20124         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20125         tan, tanh, tanl, y0, y1, yn.
20126         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20127         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20128         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20129         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20130         unlockpt, vdprintf, vdprintf-posix.
20131         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20132         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20133         xconcat-filename.
20134         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20135         getdtablesize, pipe2, pipe2-safer.
20136         (Security): New section.
20137         (Networking functions): Add accept4.
20138         (Signal handling): Add sigpipe.
20139         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20140         mbmemcasecoll.
20141         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20142         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20143         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20144         pipe-filter-ii.
20145         (Misc): Add argp-version-etc, login_tty, parse-duration.
20146
20147 2010-07-31  Bruno Haible  <bruno@clisp.org>
20148
20149         Improve doc in MODULES.html.
20150         * modules/linkat (Description): Add the word "function".
20151         * modules/mkfifo (Description): Likewise.
20152         * modules/mknod (Description): Likewise.
20153         * modules/remove (Description): Likewise.
20154         * modules/renameat (Description): Likewise.
20155         * modules/stat (Description): Likewise.
20156         * modules/symlink (Description): Likewise.
20157         * modules/unlink (Description): Likewise.
20158
20159 2010-07-31  Bruno Haible  <bruno@clisp.org>
20160
20161         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20162         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20163         option --enable/disable-c++ instead of --enable/disable-cxx.
20164         * NEWS: Mention the change.
20165
20166 2010-07-31  Bruno Haible  <bruno@clisp.org>
20167
20168         readlink, areadlink: Relax test a bit.
20169         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20170         alternative to ENOTDIR.
20171         * tests/test-areadlink.h (test_areadlink): Likewise.
20172         Reported by Rainer Tammer.
20173
20174 2010-07-31  Bruno Haible  <bruno@clisp.org>
20175
20176         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20177         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20178         character, perform the search using U_STRCHR.
20179         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20180         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20181         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20182         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20183         Suggested by Paolo Bonzini.
20184
20185 2010-07-31  Bruno Haible  <bruno@clisp.org>
20186
20187         unistr/u*-strstr: Fix dependencies.
20188         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20189         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20190         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20191
20192 2010-07-31  Bruno Haible  <bruno@clisp.org>
20193
20194         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20195         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20196         the beginning of the loop.
20197         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20198         cases in 'switch' statement.
20199
20200         unistr/u8-strchr: Fix several bugs.
20201         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20202         the string. When not found, return NULL, not a pointer near the end.
20203
20204         More tests for unistr/u8-strchr.
20205         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20206         that the function does not read past the first occurrence of the byte
20207         being searched.
20208         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20209         * tests/unistr/test-u16-strchr.c (main): New function.
20210         * tests/unistr/test-u32-strchr.c (main): New function.
20211
20212 2010-07-31  Bruno Haible  <bruno@clisp.org>
20213
20214         posix-modules: Ignore backup files of documentation files.
20215         * posix-modules: grep only through files named *.texi.
20216
20217 2010-07-31  Bruno Haible  <bruno@clisp.org>
20218
20219         symlinkat: Fix documentation.
20220         * doc/posix-functions/readlinkat.texi: Fix module name.
20221
20222 2010-07-31  Bruno Haible  <bruno@clisp.org>
20223
20224         fchownat: Replace also when chown has the trailing slash bug.
20225         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20226         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20227         introduced on 2010-04-10.
20228         Reported by Rainer Tammer.
20229
20230 2010-07-31  Bruno Haible  <bruno@clisp.org>
20231
20232         linkat: Work around AIX 7.1 bug.
20233         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20234         whether linkat handles trailing slash correctly. If not, replace linkat
20235         and define LINKAT_TRAILING_SLASH_BUG.
20236         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20237         check whether (fd1,file1) points to a directory if file1 or file2 ends
20238         in a slash. Code taken from lib/link.c.
20239         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20240         Reported by Rainer Tammer.
20241
20242 2010-07-31  Bruno Haible  <bruno@clisp.org>
20243
20244         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20245         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20246         This disables an xlc optimization that was causing wrong test results.
20247         Reported by Rainer Tammer.
20248
20249 2010-07-31  Bruno Haible  <bruno@clisp.org>
20250
20251         iconv: Work around AIX 6.1..7.1 bug.
20252         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20253         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20254         cross-compiling, guess no on all versions of AIX.
20255         Reported by Rainer Tammer.
20256
20257 2010-07-31  Bruno Haible  <bruno@clisp.org>
20258
20259         readlink: Relax test a bit.
20260         * tests/test-readlink.h (test_readlink): Allow different errno value
20261         when readlink is called with a file name that ends in / and refers to
20262         a file.
20263         Suggested by Eric Blake.
20264         Reported by Rainer Tammer.
20265
20266 2010-07-31  Bruno Haible  <bruno@clisp.org>
20267
20268         copysign: Does not require -lm on glibc systems.
20269         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20270         gl_COMMON_DOUBLE_MATHFUNC.
20271         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20272
20273 2010-07-31  Bruno Haible  <bruno@clisp.org>
20274
20275         duplocale: Work around AIX 7.1 bug.
20276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20277         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20278         * lib/duplocale.c (rpl_duplocale): Update comment.
20279         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20280         Reported by Rainer Tammer.
20281
20282 2010-07-30  Bruno Haible  <bruno@clisp.org>
20283
20284         dirfd: Avoid link error on AIX 7.1.
20285         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20286         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20287         exist, set REPLACE_DIRFD.
20288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20289         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20290         * doc/posix-functions/dirfd.texi: Update.
20291         Reported by Rainer Tammer.
20292
20293 2010-07-30  Eric Blake  <eblake@redhat.com>
20294
20295         strtod: next round of AIX fixes
20296         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20297         exponent.
20298         * tests/test-strtod.c (main): Enhance tests.
20299         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20300         Reported by Rainer Tammer.
20301
20302         futimens: fix configure check
20303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20304         Reported by Bruno Haible.
20305
20306 2010-07-30  Bruno Haible  <bruno@clisp.org>
20307
20308         getline: Update regarding AIX.
20309         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20310         Reported by Rainer Tammer.
20311
20312 2010-07-30  Bruno Haible  <bruno@clisp.org>
20313
20314         wcwidth: Drop replacement on AIX 7.
20315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20316         AIX 7.
20317         Reported by Rainer Tammer.
20318
20319 2010-07-30  Bruno Haible  <bruno@clisp.org>
20320
20321         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20322         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20323         a 'char *'.
20324         Reported by Rainer Tammer.
20325
20326 2010-07-30  Bruno Haible  <bruno@clisp.org>
20327
20328         unlink: Update regarding AIX.
20329         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20330         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20331         Reported by Rainer Tammer.
20332
20333 2010-07-30  Bruno Haible  <bruno@clisp.org>
20334
20335         symlink: Update regarding AIX.
20336         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20337         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20338         Reported by Rainer Tammer.
20339
20340 2010-07-30  Bruno Haible  <bruno@clisp.org>
20341
20342         strndup: Update regarding AIX.
20343         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20344         AIX 7.
20345         Reported by Rainer Tammer.
20346
20347 2010-07-30  Bruno Haible  <bruno@clisp.org>
20348
20349         stat: Update regarding AIX.
20350         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20351         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20352         Reported by Rainer Tammer.
20353
20354 2010-07-30  Bruno Haible  <bruno@clisp.org>
20355
20356         truncl: Fix autoconf test.
20357         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20358         whether truncl works.
20359         Reported by Rainer Tammer.
20360
20361 2010-07-30  Bruno Haible  <bruno@clisp.org>
20362
20363         round: Update regarding AIX.
20364         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20365         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20366         Reported by Rainer Tammer.
20367
20368 2010-07-30  Bruno Haible  <bruno@clisp.org>
20369
20370         rename: Update regarding AIX.
20371         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20372         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20373         Reported by Rainer Tammer.
20374
20375 2010-07-30  Bruno Haible  <bruno@clisp.org>
20376
20377         printf.m4: Update regarding AIX.
20378         * m4/printf.m4: Update comments regarding AIX.
20379         Reported by Rainer Tammer.
20380
20381 2010-07-30  Bruno Haible  <bruno@clisp.org>
20382
20383         iconv: Update regarding AIX.
20384         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20385         AIX 7.
20386         Reported by Rainer Tammer.
20387
20388 2010-07-30  Bruno Haible  <bruno@clisp.org>
20389
20390         getopt: Update regarding AIX.
20391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20392         no on AIX.
20393         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20394         Reported by Rainer Tammer.
20395
20396 2010-07-30  Bruno Haible  <bruno@clisp.org>
20397
20398         ldexpl; Update regarding AIX.
20399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20400         on AIX 7.
20401         Reported by Rainer Tammer.
20402
20403 2010-07-30  Bruno Haible  <bruno@clisp.org>
20404
20405         frexpl: Update regarding AIX.
20406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20407         on AIX 7.
20408         Reported by Rainer Tammer.
20409
20410 2010-07-30  Bruno Haible  <bruno@clisp.org>
20411
20412         open, fopen: Update regarding AIX.
20413         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20414         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20415         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20416         * doc/posix-functions/fopen.texi: Likewise.
20417         Reported by Rainer Tammer.
20418
20419 2010-07-30  Bruno Haible  <bruno@clisp.org>
20420
20421         chown: Update doc regarding AIX.
20422         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20423         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20424         Reported by Rainer Tammer.
20425
20426 2010-07-30  Eric Blake  <eblake@redhat.com>
20427
20428         strtod: fix bug in replacement function on AIX
20429         * lib/strtod.c (strtod): Special case broken "0x" parse in
20430         underlying strtod.
20431         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20432         * doc/posix-functions/strtod.texi (strtod): Likewise.
20433         Reported by Rainer Tammer.
20434
20435 2010-07-30  Bruno Haible  <bruno@clisp.org>
20436
20437         mbrlen: Fix cross-compilation guess for AIX.
20438         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20439         guess. Leftover from 2008-12-22.
20440
20441 2010-07-30  Bruno Haible  <bruno@clisp.org>
20442
20443         mbrtowc: Fix cross-compilation guess for AIX.
20444         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20445         guess. Leftover from 2008-12-21.
20446
20447 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20448
20449         init.sh: work around trap limitation of some shells
20450         * tests/init.sh (setup_): Move exit trap outside of shell function.
20451
20452 2010-07-29  Eric Blake  <eblake@redhat.com>
20453
20454         strtod: aid debugging
20455         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20456         understanding why strtod is rejected.
20457
20458 2010-07-28  Bruno Haible  <bruno@clisp.org>
20459
20460         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20461         * lib/unistr/u8-chr.c: Include <string.h>.
20462         * tests/unistr/test-u8-chr.c: Likewise.
20463         * tests/unistr/test-u16-chr.c: Likewise.
20464         * tests/unistr/test-u32-chr.c: Likewise.
20465         * tests/unistr/test-u8-strchr.c: Likewise.
20466         * tests/unistr/test-u16-strchr.c: Likewise.
20467         * tests/unistr/test-u32-strchr.c: Likewise.
20468         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20469         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20470         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20471         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20472
20473 2010-07-28  Bruno Haible  <bruno@clisp.org>
20474
20475         Use spaces for indentation, not tabs.
20476         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20477
20478 2010-07-27  Bruno Haible  <bruno@clisp.org>
20479
20480         mbspcasecmp: Fix function specification.
20481         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20482         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20483         Reported by Eric Blake <eblake@redhat.com>.
20484
20485 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20486
20487         timespec: use cast and not conditional, as truncation isn't possible
20488         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20489         instead of a conditional.  Comment about the situation in more detail.
20490         This undoes most of the 2009-10-29 patch.
20491
20492 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20493
20494         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20495         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20496         * lib/unistr/u8-strchr.c: Likewise.
20497         * modules/unistr/u8-chr: Depend on memchr.
20498
20499         unistr/u*-strchr: add tests
20500         * modules/unistr/u8-strchr-tests: New file.
20501         * modules/unistr/u16-strchr-tests: New file.
20502         * modules/unistr/u32-strchr-tests: New file.
20503         * tests/unistr/test-strchr.h: New file.
20504         * tests/unistr/test-u8-strchr.c: New file.
20505         * tests/unistr/test-u16-strchr.c: New file.
20506         * tests/unistr/test-u32-strchr.c: New file.
20507
20508         unistr/u*-chr: test multibyte sequences more
20509         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20510         test vector.
20511         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20512         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20513         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20514
20515         unistr/u*-chr: test multibyte sequences
20516         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20517
20518         unistr/u*-chr: prepare for multibyte tests
20519         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20520         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20521         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20522         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20523         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20524         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20525
20526 2010-07-18  Bruno Haible  <bruno@clisp.org>
20527
20528         unistr/u8-strchr: Optimize non-ASCII argument case.
20529         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20530         because the first byte often matches anyway.
20531         Reported by Pádraig Brady <P@draigbrady.com>.
20532
20533 2010-07-15  Karl Berry  <karl@gnu.org>
20534
20535         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20536
20537 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20538
20539         getcwd: on Solaris, work better if ancestors are inaccessible
20540         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20541         buffer and size, try again with a large buffer.  This works better
20542         on Solaris, since its getcwd succeeds even if the path to the root
20543         is inaccessible, and this is helpful in common cases such as .zfs
20544         hidden directories.  Problem reported by J Chapman Flack in
20545         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20546         Use system getcwd if it's declared, not merely if it's partly
20547         working; use the partly-working test only to avoid needless effort
20548         if the system getcwd fails.
20549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20550         comment that was already obsolete and is now even more obsolete.
20551         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20552         now might call strdup.
20553
20554 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20555
20556         pthread: Add enough so that coreutils/src/sort.c compiles.
20557         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20558         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20559         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20560         Include <sys/types.h>, in case it defines pthread_t.
20561         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20562         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20563         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20564         (pthread_rwlockattr_t, pthread_spinlock_t):
20565         New typedefs, if HAVE_PTHREAD_T is not defined.
20566         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20567         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20568         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20569         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20570         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20571         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20572         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20573         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20574         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20575         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20576         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20577         New macros.
20578         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20579         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20580         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20581         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20582         (pthread_spin_unlock): New dummy functions.
20583         (pthread_create): Return EAGAIN; don't set errno.
20584         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20585         require AC_C_INLINE.
20586         * modules/pthread (Depends-on): Add sched, time.
20587         (pthread.h): Use AM_V_GEN.
20588
20589 2010-07-13  Bruno Haible  <bruno@clisp.org>
20590
20591         striconveh: Don't malloc memory if the result buffer is sufficient.
20592         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20593         buffer if its size is sufficient.
20594         Reported by Ludovic Courtès <ludo@gnu.org>.
20595
20596 2010-07-13  Bruno Haible  <bruno@clisp.org>
20597
20598         strtod: Add safety check.
20599         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20600
20601 2010-07-12  Bruno Haible  <bruno@clisp.org>
20602
20603         Unify tests that set gl_cv_func_ldexpl_no_libm.
20604         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20605         gl_FUNC_LDEXPL.
20606         (gl_FUNC_LDEXPL): Invoke it.
20607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20608
20609 2010-07-12  Bruno Haible  <bruno@clisp.org>
20610
20611         Unify tests that set gl_cv_func_ldexp_no_libm.
20612         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20613         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20614         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20615         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20616         * modules/strtod (Files): Add m4/ldexp.m4.
20617
20618 2010-07-12  Bruno Haible  <bruno@clisp.org>
20619
20620         Unify tests that set gl_cv_func_frexpl_no_libm.
20621         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20622         gl_FUNC_FREXPL_NO_LIBM.
20623         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20625
20626 2010-07-12  Bruno Haible  <bruno@clisp.org>
20627
20628         Unify tests that set gl_cv_func_frexp_no_libm.
20629         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20630         gl_FUNC_FREXP_NO_LIBM.
20631         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20632         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20633
20634 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20635
20636         memcoll: clarify sizes versus lengths, document better, and tweak perf
20637         * lib/memcoll.c (strcoll_loop, memcoll0):
20638         Improve quality of descriptive comments.  Name variables
20639         consistently as to whether they are lengths (which do not include
20640         terminating null) versus sizes (which do).
20641         * lib/xmemcoll.c (xmemcoll0): Likewise.
20642         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20643         returned when s1size == 0; this is easier to compile and saves
20644         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20645
20646 2010-07-12  Bruno Haible  <bruno@clisp.org>
20647
20648         Tests for module '_Exit'.
20649         * modules/_Exit-tests: New file.
20650         * tests/test-_Exit.sh: New file.
20651         * tests/test-_Exit.c: New file.
20652
20653         New module '_Exit'.
20654         * lib/stdlib.in.h (__attribute__): New macro.
20655         (_Exit): New declaration.
20656         * lib/_Exit.c: New file.
20657         * m4/_Exit.m4: New file.
20658         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20659         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20660         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20661         * modules/_Exit: New file.
20662         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20663         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20664
20665 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20666
20667         strtod: make it more-accurate typically, and don't require libm
20668         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20669         Include limits.h.  Don't include string.h.
20670         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20671         (locale_isspace): New function, so that no casts are needed to
20672         check whether *s is a space.
20673         (ldexp): Provide an unused dummy if not available.
20674         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20675         (strtod): Use them.  This implementation prefers to use the
20676         underlying strtod if available, falling back on our own code
20677         only to fix known bugs.  This is more likely to produce an
20678         accurate result.  Also, it avoids the use of libm functions.
20679         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20680         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20681         was absent, but it caused a test failure with coreutils.
20682         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20683         with libm.
20684         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20685         * modules/strtod-tests (Makefile.am): Likewise.
20686
20687 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20688             Bruno Haible  <bruno@clisp.org>
20689
20690         unistr/u8-strchr: Optimize ASCII argument case.
20691         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20692
20693 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20694
20695         (x)memcoll: minor tweaks
20696         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20697         is after the type that it qualifies.
20698         (memcoll0): Likewise.
20699         * lib/memcoll.h (memcoll0): Likewise.
20700         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20701         * lib/xmemcoll.h (xmemcoll0): Likewise.
20702         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20703         differs from memcoll in that the NUL byte is part of the argument.
20704         Omit the abort-checks, as performance is a real issue here.  Plus,
20705         the checks were wrong anyway (an off-by-one error).  Omit local
20706         variable 'diff', as it's a bit clearer that way.
20707         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20708         no longer needed.
20709
20710 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20711
20712         (x)memcoll: speedup when input is known to be NUL delimited
20713         * lib/memcoll.c: Include stdlib.
20714         (memcoll0): New function.
20715         (strcoll_loop): New function, refactored for use in both memcoll
20716         and memcoll0.
20717         * lib/memcoll.h (memcoll0): Add prototype.
20718         * lib/xmemcoll.c (xmemcoll0): New function.
20719         (collate_error): New function, refactored for use in both xmemcoll
20720         and xmemcoll0.
20721         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20722         * m4/memcoll.m4: add inline invocation.
20723
20724 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20725
20726         * build-aux/bootstrap: Remove any local translations
20727         from the translation project synchronization directory,
20728         so that local only translations are not distributed.
20729
20730 2010-07-04  Bruno Haible  <bruno@clisp.org>
20731
20732         fsusage: Clarify which code applies to which platforms.
20733         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20734         platform.
20735         * lib/fsusage.c (get_fs_usage): Likewise.
20736
20737 2010-07-04  Bruno Haible  <bruno@clisp.org>
20738
20739         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20740         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20741         Reported by Martin Lambers <marlam@marlam.de>.
20742
20743 2010-07-04  Jim Meyering  <meyering@redhat.com>
20744
20745         hash: once again explicitly disallow insertion of NULL
20746         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20747         inserting a NULL pointer cannot work with these functions.
20748         Add a comment with details.
20749         This reverts part of the 2010-07-01 commit, 5bef1a35
20750         "hash: extend module to deal with non-pointer keys".
20751
20752 2010-07-01  Bruno Haible  <bruno@clisp.org>
20753
20754         stdbool: Update doc.
20755         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20756         Info from Christian Weisgerber <naddy@mips.inka.de>.
20757
20758 2010-07-01  Jim Meyering  <meyering@redhat.com>
20759
20760         hash: extend module to deal with non-pointer keys
20761         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20762         but that allows insertion of non-pointer entries.
20763         Do not disallow an ENTRY value of NULL.
20764         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20765         * lib/hash.h (hash_insert0): Declare.
20766
20767 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20768
20769         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20770         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20771         not present (i.e. with autoconf 2.59 and when using gettextize, not
20772         gnulib), require AC_GNU_SOURCE instead.
20773
20774 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20775
20776         idpriv-drop: Fix tests.
20777         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20778         not to the test-idpriv-droptemp program.
20779
20780 2010-06-29  Bruno Haible  <bruno@clisp.org>
20781
20782         string: Fix syntax error with g++ 2.96.
20783         * lib/string.in.h (__pure__): Remove definition.
20784         (_GL_ATTRIBUTE_PURE): New macro.
20785         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20786         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20787         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20788
20789 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20790
20791         unitypes: Fix bug introduced on 2010-05-18.
20792         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20793
20794 2010-06-22  Eric Blake  <eblake@redhat.com>
20795
20796         memmem: slight optimization
20797         * lib/str-two-way.h (critical_factorization): Update comments.
20798         Reduce work during factorization phase.
20799         Reported by Carlos Bueno <carlos@bueno.org>.
20800
20801 2010-06-21  Bruno Haible  <bruno@clisp.org>
20802
20803         Fix HAVE_CALLOC_POSIX misnomer.
20804         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20805         !HAVE_CALLOC_POSIX.
20806         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20807         HAVE_CALLOC_POSIX.
20808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20809         instead of HAVE_CALLOC_POSIX.
20810         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20811         HAVE_CALLOC_POSIX.
20812
20813         Use modern idiom for calloc() replacement.
20814         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20815         AC_FUNC_CALLOC.
20816         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20817         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20818         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20819         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20820         (gl_REPLACE_CALLOC): New macro.
20821
20822 2010-06-21  Bruno Haible  <bruno@clisp.org>
20823
20824         Fix HAVE_REALLOC_POSIX misnomer.
20825         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20826         !HAVE_REALLOC_POSIX.
20827         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20828         HAVE_REALLOC_POSIX.
20829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20830         instead of HAVE_REALLOC_POSIX.
20831         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20832         HAVE_REALLOC_POSIX.
20833
20834         Use modern idiom for realloc() replacement.
20835         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20836         AC_FUNC_REALLOC.
20837         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20838         Autoconf's AC_FUNC_REALLOC.
20839         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20840         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20841         (gl_REPLACE_REALLOC): New macro.
20842         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20843
20844 2010-06-21  Bruno Haible  <bruno@clisp.org>
20845
20846         Fix HAVE_MALLOC_POSIX misnomer.
20847         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20848         !HAVE_MALLOC_POSIX.
20849         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20850         HAVE_MALLOC_POSIX.
20851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20852         instead of HAVE_MALLOC_POSIX.
20853         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20854         HAVE_MALLOC_POSIX.
20855
20856         Use modern idiom for malloc() replacement.
20857         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20858         AC_FUNC_MALLOC.
20859         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20860         Autoconf's AC_FUNC_MALLOC.
20861         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20862         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20863         (gl_REPLACE_MALLOC): New macro.
20864         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20865
20866 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20867
20868         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20869         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20870         This macro takes 3 arguments, not 4.
20871
20872 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20873
20874         ipv6: fix detection under mingw
20875         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20876         in6_addr.
20877
20878 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20879
20880         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20881         that strtod() works when cross-compiling to a glibc version known
20882         to work.
20883
20884 2010-06-15  Bruno Haible  <bruno@clisp.org>
20885
20886         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20887
20888 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20889
20890         select: Correct timeout.
20891         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20892
20893 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20894
20895         git-version-gen: init shell var to avoid env var influence
20896         * build-aux/git-version-gen (v): Init shell var to empty.
20897
20898 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20899
20900         priv-set: Don't assume that priv.h exists merely because getppriv does.
20901         See Jan Andersen's bug report about AIX 5L in
20902         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20903         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20904         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20905         * lib/priv-set.h: Likewise.
20906         * tests/test-priv-set.c: Likewise.
20907
20908 2010-06-13  Bruno Haible  <bruno@clisp.org>
20909
20910         relocatable: Make it easier to test whether to install wrappers.
20911         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20912         RELOCATABLE_VIA_WRAPPER.
20913
20914 2010-06-13  Bruno Haible  <bruno@clisp.org>
20915
20916         gnulib-tool: Display specified modules and dependencies differently.
20917         * gnulib-tool (func_show_module_list): New function.
20918         (func_import, func_create_testdir): Invoke it.
20919         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20920
20921 2010-06-13  Bruno Haible  <bruno@clisp.org>
20922
20923         gnulib-tool: Align code of func_import and func_create_testdir.
20924         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20925         specified_modules.
20926
20927 2010-06-12  Jim Meyering  <meyering@redhat.com>
20928
20929         test-inttostr: avoid spurious failure on Solaris 9
20930         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20931         to accept "%ju".  Reported by Bruno Haible.
20932
20933 2010-06-11  Jim Meyering  <meyering@redhat.com>
20934
20935         test-sys_socket: mark variables as used more readably
20936         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20937         as "used" explicitly via (void) statement casts.  This is more
20938         readable than using them in an artificial return expression.
20939         Suggestion from Bruno Haible.
20940
20941 2010-06-11  Bruno Haible  <bruno@clisp.org>
20942
20943         Avoid some more warnings from "gcc -Wwrite-strings".
20944         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20945         to 'const char *'.
20946         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20947         * tests/test-c-strcasestr.c (main): Likewise.
20948         * tests/test-mbscasestr1.c (main): Likewise.
20949         * tests/test-mbscasestr2.c (main): Likewise.
20950         * tests/test-memmem.c (main): Likewise.
20951         * tests/test-strstr.c (main): Likewise.
20952         * tests/test-strcasestr.c (main): Likewise.
20953
20954 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20955
20956         init.sh: change framework_failure_ to fail with status 99, not 1
20957         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20958         automake's parallel-tests rule that this is an unexpected failure,
20959         even if the test is listed in XFAIL_TESTS.
20960
20961 2010-06-11  Jim Meyering  <meyering@redhat.com>
20962
20963         test-inttostr: avoid warnings about 4-6KB literal strings
20964         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20965         Include "macros.h", for its definition of ASSERT.
20966         (CK): s/assert/ASSERT/
20967         * modules/inttostr-tests (Files): Add macros.h.
20968
20969         init.sh: don't use $ME_ or skip_ before they are defined
20970         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20971         their first uses.  Also hoist their companions: warn_, fail_,
20972         framework_failure_, $stderr_fileno.  Prompted by a patch from
20973         Stefano Lattarini.
20974
20975         test-sys_socket: avoid set-but-not-used warnings from gcc
20976         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20977         avoid warning about set-but-not-used variables.
20978
20979         test-xvasprintf: avoid 'const' discard warnings
20980         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20981         "const" when assigning from literal strings.
20982         (test_xasprintf): Add "void" in function argument list to placate
20983         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20984
20985         tests: avoid compilation warnings in argmatch and exclude tests...
20986         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20987         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20988         Since it always exits, declare with the "noreturn" attribute.
20989         * tests/test-argmatch.c: Likewise.
20990
20991         tests: avoid 'const' discard warnings in mbsstr tests
20992         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20993         * tests/test-mbsstr2.c (main): Likewise.
20994
20995         test-verify: avoid warning from gcc's -Wmissing-declarations
20996         * tests/test-verify.c (function): Declare to be static.
20997
20998         test-inttostr.c: include <string.h> for use of strcmp
20999         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21000
21001         test-linkat: avoid failed assertion on "other" architectures
21002         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21003         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21004         sparc: https://bugs.launchpad.net/bugs/591968
21005
21006 2010-06-11  Jim Meyering  <meyering@redhat.com>
21007
21008         printf.m4: avoid autoconf's "Expanded Before Required" warning
21009         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21010         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21011         autoconf warning.
21012
21013 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21014
21015         Replacement header templates are now named with ".in", not "_".
21016         * doc/gnulib-intro.texi: Correct.
21017
21018 2010-06-10  Jim Meyering  <meyering@redhat.com>
21019
21020         inttostr-tests: depend on snprintf, not snprintf-posix
21021         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21022         snprintf-posix, to avoid this aclocal failure:
21023           missing file gnulib-tests/vasnprintf.c
21024           configure.ac:45: error: expected source file, required through \
21025           AC_LIBSOURCES, not found
21026
21027 2010-06-10  Jim Meyering  <meyering@redhat.com>
21028
21029         inttostr: add a new function, inttostr, and tests
21030         The namesake function was not available.  The existence of the
21031         template file, inttostr.c makes its addition nontrivial.
21032         * lib/anytostr.c: Rename from inttostr.c.
21033         (anytostr): Rename from inttostr.
21034         * lib/inttostr.c: New file.
21035         * modules/inttostr (Files): Add anytostr.c.
21036         (Makefile.am): Set lib_SOURCES instead of ...
21037         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21038         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21039         * lib/offtostr.c: Likewise.
21040         * lib/uinttostr.c: Likewise.
21041         * lib/umaxtostr.c: Likewise.
21042         * modules/inttostr-tests: New file.
21043         * tests/test-inttostr.c: New file.  Test these functions.
21044
21045 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21046             Bruno Haible  <bruno@clisp.org>
21047
21048         Add "Extending Gnulib" chapter to manual.
21049         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21050         chapter.
21051         (Extending Gnulib): New chapter.
21052         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21053         chapter.
21054
21055 2010-06-09  Bruno Haible  <bruno@clisp.org>
21056
21057         Avoid relocwrapper link errors due to gnulib replacement functions.
21058         * lib/areadlink.c: Use the system's malloc, realloc functions.
21059         (areadlink): Set errno to ENOMEM explicitly.
21060         * modules/areadlink (Depends-on): Remove malloc-posix.
21061         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21062
21063 2010-06-09  Bruno Haible  <bruno@clisp.org>
21064
21065         Avoid relocwrapper link errors due to gnulib replacement functions.
21066         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21067         * lib/malloca.c: Likewise.
21068         * lib/relocatable.c: Likewise.
21069         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21070         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21071         * lib/setenv.c: Use the system's malloc, realloc functions.
21072         * lib/strerror.c: Use the system's sprintf function.
21073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21074
21075 2010-06-04  Bruno Haible  <bruno@clisp.org>
21076
21077         Prefer documented low-level autoconf macro names.
21078         * m4/lib-link.m4: Use m4_translit instead of translit.
21079         * m4/environ.m4: Likewise.
21080         * m4/mathfunc.m4: Likewise.
21081         * m4/onceonly.m4: Likewise.
21082         * m4/stdint.m4: Likewise.
21083         Suggested by Eric Blake.
21084
21085 2010-06-04  Martin Lambers  <marlam@marlam.de>
21086             Bruno Haible  <bruno@clisp.org>
21087
21088         havelib: Allow library names with '+' characters.
21089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21090         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21091
21092 2010-06-09  Bruno Haible  <bruno@clisp.org>
21093
21094         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21095         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21096         realloc failed.
21097
21098 2010-06-08  Peter Simons  <simons@cryp.to>
21099
21100         maint.mk: make the news-check rule more configurable
21101         * top/maint.mk (news-check-lines-spec): New variable.
21102         (news-check): Use "sed -n 1,10p" in place of "head".
21103
21104 2010-06-07  Jim Meyering  <meyering@redhat.com>
21105
21106         do-release-commit-and-tag: fix typo in --help
21107         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21108
21109         regex: avoid new dead-code warning with gcc-4.6.0
21110         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21111         if-block containing a while-loop.  It's been unused for at least
21112         5 years.
21113
21114 2010-06-05  Bruno Haible  <bruno@clisp.org>
21115
21116         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21117         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21118
21119 2010-06-04  Bruno Haible  <bruno@clisp.org>
21120
21121         Update to GNU gettext 0.18.1.
21122         * modules/gettext (configure.ac): Require gettext infrastructure from
21123         version 0.18.1.
21124
21125 2010-06-03  Bruno Haible  <bruno@clisp.org>
21126
21127         Don't use AC_LIBOBJ with file names in subdirectories.
21128         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21129         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21130         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21131         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21132         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21133         gl_LIBUNISTRING_LIBSOURCE.
21134         (Makefile.am): Augment lib_SOURCES here, conditionally.
21135         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21136
21137 2010-06-03  Bruno Haible  <bruno@clisp.org>
21138
21139         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21140         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21141         expansion does not end with a newline.
21142         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21143         unnecessary newline.
21144
21145 2010-06-03  Bruno Haible  <bruno@clisp.org>
21146
21147         Reduce dependencies.
21148         * tests/test-quotearg.h: New file, extracted from
21149         tests/test-quotearg.c.
21150         * tests/test-quotearg-simple.c: New file, extracted from
21151         tests/test-quotearg.c.
21152         * tests/test-quotearg.c: Don't include <ctype.h>.
21153         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21154         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21155         use_quote_double_quotes, use_quotearg_colon): Moved to
21156         tests/test-quotearg.h.
21157         (results_g, flag_results, custom_quotes, custom_results): Moved
21158         to tests/test-quotearg-simple.c.
21159         (main): Moved the part that does not depend on gettext to
21160         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21161         performed.
21162         * modules/quotearg-simple: New file.
21163         * modules/quotearg-simple-tests: New file.
21164         * modules/quotearg (Depends-on): Add quotearg-simple.
21165         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21166         (Files): Add tests/test-quotearg.h.
21167         Reported by Paolo Bonzini.
21168
21169 2010-06-03  Bruno Haible  <bruno@clisp.org>
21170
21171         Reduce dependencies.
21172         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21173
21174 2010-06-03  Bruno Haible  <bruno@clisp.org>
21175
21176         time: Undefine more broken macros.
21177         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21178         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21179         Reported by Eric Blake.
21180
21181 2010-06-03  Bruno Haible  <bruno@clisp.org>
21182
21183         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21184         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21185         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21186         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21187         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21188         Reported by Ludovic Courtès <ludo@gnu.org>.
21189
21190 2010-06-02  Eric Blake  <eblake@redhat.com>
21191
21192         time: work with mingw + pthreads-win32 library
21193         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21194         if timespec is defined only in pthread.h.
21195         * modules/time (Makefile.am): Substitute it.
21196         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21197         <pthread.h>, when needed.
21198         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21199         from the library.
21200
21201 2010-05-31  Bruno Haible  <bruno@clisp.org>
21202
21203         Avoid expanding two macros in the wrong order.
21204         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21205         gl_LIBUNISTRING if it is defined.
21206         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21207         autoconf >= 2.64.
21208         Reported by Ludovic Courtès <ludo@gnu.org>.
21209
21210 2010-05-27  Jim Meyering  <meyering@redhat.com>
21211
21212         maint.mk: also prohibit "#undef" of always-defined symbols
21213         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21214         Allow more than one space before the symbol name.
21215         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21216         the regexp uses alternation.
21217
21218 2010-05-26  Eric Blake  <eblake@redhat.com>
21219
21220         maint.mk: avoid echo -e
21221         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21222         Convert all uses of echo -* to printf.
21223         Reported by Matthias Bolte.
21224
21225 2010-05-25  Bruno Haible  <bruno@clisp.org>
21226
21227         Update to GNU gettext 0.18, part 2.
21228         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21229         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21230
21231 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21232
21233         Add missing include in test-pwrite.c.
21234         * tests/test-pwrite.c: Include string.h, for strcmp.
21235
21236 2010-05-24  Bruno Haible  <bruno@clisp.org>
21237
21238         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21239
21240 2010-05-24  Bruno Haible  <bruno@clisp.org>
21241
21242         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21243         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21244         iconveh_error argument.
21245         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21246         U_STRCONV_TO_LOCALE.
21247         * lib/unistr/u16-strcoll.c: Likewise.
21248         * lib/unistr/u32-strcoll.c: Likewise.
21249         * modules/unistr/u8-strcoll (Depends-on): Add
21250         uniconv/u8-strconv-to-enc, localcharset. Remove
21251         uniconv/u8-strconv-to-locale.
21252         (configure.ac): Bump version number.
21253         * modules/unistr/u16-strcoll (Depends-on): Add
21254         uniconv/u16-strconv-to-enc, localcharset. Remove
21255         uniconv/u16-strconv-to-locale.
21256         (configure.ac): Bump version number.
21257         * modules/unistr/u32-strcoll (Depends-on): Add
21258         uniconv/u32-strconv-to-enc, localcharset. Remove
21259         uniconv/u32-strconv-to-locale.
21260         (configure.ac): Bump version number.
21261
21262 2010-05-24  Bruno Haible  <bruno@clisp.org>
21263
21264         Avoid a test failure on NetBSD 5.0.
21265         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21266         an iconv() bug.
21267
21268 2010-05-24  Bruno Haible  <bruno@clisp.org>
21269
21270         Adjust #include directive style.
21271         * modules/regex (Includes): Recommend to write <regex.h>.
21272
21273 2010-05-24  Bruno Haible  <bruno@clisp.org>
21274
21275         regex: Don't require alloca.
21276         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21277         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21278         only inside if (0).
21279
21280 2010-05-23  Jim Meyering  <meyering@redhat.com>
21281
21282         test-renameat.c: include <sys/stat.h>
21283         * tests/test-renameat.c: Include <sys/stat.h>; required for
21284         definition of S_IS* macros.
21285
21286 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21287
21288         Update maintainer documentation for 'relocatable-prog' module.
21289         * doc/relocatable-maint.texi: Update.
21290         Comments by Bruno Haible.
21291
21292 2010-05-23  Bruno Haible  <bruno@clisp.org>
21293
21294         git-merge-changelog: Enable --split-merged-entry by default.
21295         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21296         (usage): Don't mention this option any more.
21297         Reported by Ralf Wildenhues.
21298
21299 2010-05-23  Jim Meyering  <meyering@redhat.com>
21300
21301         test-pwrite: do not leave behind a test file named "out"
21302         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21303         The trivial-looking use of init.sh is really necessary.
21304         It ensures that the temporary file, "out", is created in
21305         a temporary directory, and removed upon termination.
21306         * tests/test-pwrite.sh: Re-add file.
21307         * modules/pwrite-tests: Reference it.
21308
21309 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21310
21311         Fix output redirection buglet in init.sh.
21312         * tests/init.sh: Fix redirection of stderr.
21313
21314 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21315
21316         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21317
21318 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21319
21320         * modules/valgrind-tests: New file.
21321         * m4/valgrind-tests.m4: New file.
21322         * doc/valgrind-tests.texi: New file.
21323         * doc/gnulib.texi (Running self-tests under valgrind): New
21324         section.
21325
21326 2010-05-19  Bruno Haible  <bruno@clisp.org>
21327
21328         Clean up dead code in recent commit.
21329         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21330         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21331         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21332         Suggested by Paolo Bonzini.
21333
21334 2010-05-19  Bruno Haible  <bruno@clisp.org>
21335
21336         Avoid valgrind error reports from libunistring.
21337         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21338         * modules/libunistring (Files): Add it.
21339         * modules/libunistring-optional (Files): Likewise.
21340
21341 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21342             Bruno Haible  <bruno@clisp.org>
21343
21344         New module 'libunistring-optional'.
21345         * modules/libunistring-optional: New file.
21346         * m4/libunistring-base.m4: New file.
21347         * m4/libunistring-optional.m4: New file.
21348         * lib/unicase.in.h: Renamed from lib/unicase.h.
21349         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21350         * lib/unictype.in.h: Renamed from lib/unictype.h.
21351         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21352         * lib/uniname.in.h: Renamed from lib/uniname.h.
21353         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21354         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21355         * lib/unistr.in.h: Renamed from lib/unistr.h.
21356         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21357         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21358         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21359         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21360         gl_LIBUNISTRING. If the library was found, determine the installed
21361         version and set LIBUNISTRING_VERSION.
21362         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21363         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21364         handle a configuration option --with-included-libunistring.
21365         * modules/libunistring (Files): Add m4/absolute-header.m4.
21366         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21367         Add m4/libunistring-base.m4.
21368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21369         (Makefile.am): Build unicase.h from unicase.in.h.
21370         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21371         Add m4/libunistring-base.m4.
21372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21373         (Makefile.am): Build uniconv.h from uniconv.in.h.
21374         * modules/unictype/base (Files): Use unictype.in.h instead of
21375         unictype.h. Add m4/libunistring-base.m4.
21376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21377         (Makefile.am): Build unictype.h from unictype.in.h.
21378         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21379         Add m4/libunistring-base.m4.
21380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21381         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21382         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21383         Add m4/libunistring-base.m4.
21384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21385         (Makefile.am): Build uniname.h from uniname.in.h.
21386         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21387         Add m4/libunistring-base.m4.
21388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21389         (Makefile.am): Build uninorm.h from uninorm.in.h.
21390         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21391         unistdio.h. Add m4/libunistring-base.m4.
21392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21393         (Makefile.am): Build unistdio.h from unistdio.in.h.
21394         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21395         Add m4/libunistring-base.m4.
21396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21397         (Makefile.am): Build unistr.h from unistr.in.h.
21398         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21399         Add m4/libunistring-base.m4.
21400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21401         (Makefile.am): Build unitypes.h from unitypes.in.h.
21402         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21403         Add m4/libunistring-base.m4.
21404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21405         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21406         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21407         uniwidth.h. Add m4/libunistring-base.m4.
21408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21409         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21410         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21411         instead of augmenting lib_SOURCES.
21412         * modules/unicase/empty-suffix-context: Likewise.
21413         * modules/unicase/locale-language: Likewise.
21414         * modules/unicase/tolower: Likewise.
21415         * modules/unicase/totitle: Likewise.
21416         * modules/unicase/toupper: Likewise.
21417         * modules/unicase/u8-casecmp: Likewise.
21418         * modules/unicase/u8-casecoll: Likewise.
21419         * modules/unicase/u8-casefold: Likewise.
21420         * modules/unicase/u8-casexfrm: Likewise.
21421         * modules/unicase/u8-ct-casefold: Likewise.
21422         * modules/unicase/u8-ct-tolower: Likewise.
21423         * modules/unicase/u8-ct-totitle: Likewise.
21424         * modules/unicase/u8-ct-toupper: Likewise.
21425         * modules/unicase/u8-is-cased: Likewise.
21426         * modules/unicase/u8-is-casefolded: Likewise.
21427         * modules/unicase/u8-is-lowercase: Likewise.
21428         * modules/unicase/u8-is-titlecase: Likewise.
21429         * modules/unicase/u8-is-uppercase: Likewise.
21430         * modules/unicase/u8-prefix-context: Likewise.
21431         * modules/unicase/u8-suffix-context: Likewise.
21432         * modules/unicase/u8-tolower: Likewise.
21433         * modules/unicase/u8-totitle: Likewise.
21434         * modules/unicase/u8-toupper: Likewise.
21435         * modules/unicase/u16-casecmp: Likewise.
21436         * modules/unicase/u16-casecoll: Likewise.
21437         * modules/unicase/u16-casefold: Likewise.
21438         * modules/unicase/u16-casexfrm: Likewise.
21439         * modules/unicase/u16-ct-casefold: Likewise.
21440         * modules/unicase/u16-ct-tolower: Likewise.
21441         * modules/unicase/u16-ct-totitle: Likewise.
21442         * modules/unicase/u16-ct-toupper: Likewise.
21443         * modules/unicase/u16-is-cased: Likewise.
21444         * modules/unicase/u16-is-casefolded: Likewise.
21445         * modules/unicase/u16-is-lowercase: Likewise.
21446         * modules/unicase/u16-is-titlecase: Likewise.
21447         * modules/unicase/u16-is-uppercase: Likewise.
21448         * modules/unicase/u16-prefix-context: Likewise.
21449         * modules/unicase/u16-suffix-context: Likewise.
21450         * modules/unicase/u16-tolower: Likewise.
21451         * modules/unicase/u16-totitle: Likewise.
21452         * modules/unicase/u16-toupper: Likewise.
21453         * modules/unicase/u32-casecmp: Likewise.
21454         * modules/unicase/u32-casecoll: Likewise.
21455         * modules/unicase/u32-casefold: Likewise.
21456         * modules/unicase/u32-casexfrm: Likewise.
21457         * modules/unicase/u32-ct-casefold: Likewise.
21458         * modules/unicase/u32-ct-tolower: Likewise.
21459         * modules/unicase/u32-ct-totitle: Likewise.
21460         * modules/unicase/u32-ct-toupper: Likewise.
21461         * modules/unicase/u32-is-cased: Likewise.
21462         * modules/unicase/u32-is-casefolded: Likewise.
21463         * modules/unicase/u32-is-lowercase: Likewise.
21464         * modules/unicase/u32-is-titlecase: Likewise.
21465         * modules/unicase/u32-is-uppercase: Likewise.
21466         * modules/unicase/u32-prefix-context: Likewise.
21467         * modules/unicase/u32-suffix-context: Likewise.
21468         * modules/unicase/u32-tolower: Likewise.
21469         * modules/unicase/u32-totitle: Likewise.
21470         * modules/unicase/u32-toupper: Likewise.
21471         * modules/unicase/ulc-casecmp: Likewise.
21472         * modules/unicase/ulc-casecoll: Likewise.
21473         * modules/unicase/ulc-casexfrm: Likewise.
21474         * modules/uniconv/u8-conv-from-enc: Likewise.
21475         * modules/uniconv/u8-conv-to-enc: Likewise.
21476         * modules/uniconv/u8-strconv-from-enc: Likewise.
21477         * modules/uniconv/u8-strconv-from-locale: Likewise.
21478         * modules/uniconv/u8-strconv-to-enc: Likewise.
21479         * modules/uniconv/u8-strconv-to-locale: Likewise.
21480         * modules/uniconv/u16-conv-from-enc: Likewise.
21481         * modules/uniconv/u16-conv-to-enc: Likewise.
21482         * modules/uniconv/u16-strconv-from-enc: Likewise.
21483         * modules/uniconv/u16-strconv-from-locale: Likewise.
21484         * modules/uniconv/u16-strconv-to-enc: Likewise.
21485         * modules/uniconv/u16-strconv-to-locale: Likewise.
21486         * modules/uniconv/u32-conv-from-enc: Likewise.
21487         * modules/uniconv/u32-conv-to-enc: Likewise.
21488         * modules/uniconv/u32-strconv-from-enc: Likewise.
21489         * modules/uniconv/u32-strconv-from-locale: Likewise.
21490         * modules/uniconv/u32-strconv-to-enc: Likewise.
21491         * modules/uniconv/u32-strconv-to-locale: Likewise.
21492         * modules/unictype/bidicategory-byname: Likewise.
21493         * modules/unictype/bidicategory-name: Likewise.
21494         * modules/unictype/bidicategory-of: Likewise.
21495         * modules/unictype/bidicategory-test: Likewise.
21496         * modules/unictype/block-list: Likewise.
21497         * modules/unictype/block-test: Likewise.
21498         * modules/unictype/category-C: Likewise.
21499         * modules/unictype/category-Cc: Likewise.
21500         * modules/unictype/category-Cf: Likewise.
21501         * modules/unictype/category-Cn: Likewise.
21502         * modules/unictype/category-Co: Likewise.
21503         * modules/unictype/category-Cs: Likewise.
21504         * modules/unictype/category-L: Likewise.
21505         * modules/unictype/category-Ll: Likewise.
21506         * modules/unictype/category-Lm: Likewise.
21507         * modules/unictype/category-Lo: Likewise.
21508         * modules/unictype/category-Lt: Likewise.
21509         * modules/unictype/category-Lu: Likewise.
21510         * modules/unictype/category-M: Likewise.
21511         * modules/unictype/category-Mc: Likewise.
21512         * modules/unictype/category-Me: Likewise.
21513         * modules/unictype/category-Mn: Likewise.
21514         * modules/unictype/category-N: Likewise.
21515         * modules/unictype/category-Nd: Likewise.
21516         * modules/unictype/category-Nl: Likewise.
21517         * modules/unictype/category-No: Likewise.
21518         * modules/unictype/category-P: Likewise.
21519         * modules/unictype/category-Pc: Likewise.
21520         * modules/unictype/category-Pd: Likewise.
21521         * modules/unictype/category-Pe: Likewise.
21522         * modules/unictype/category-Pf: Likewise.
21523         * modules/unictype/category-Pi: Likewise.
21524         * modules/unictype/category-Po: Likewise.
21525         * modules/unictype/category-Ps: Likewise.
21526         * modules/unictype/category-S: Likewise.
21527         * modules/unictype/category-Sc: Likewise.
21528         * modules/unictype/category-Sk: Likewise.
21529         * modules/unictype/category-Sm: Likewise.
21530         * modules/unictype/category-So: Likewise.
21531         * modules/unictype/category-Z: Likewise.
21532         * modules/unictype/category-Zl: Likewise.
21533         * modules/unictype/category-Zp: Likewise.
21534         * modules/unictype/category-Zs: Likewise.
21535         * modules/unictype/category-and: Likewise.
21536         * modules/unictype/category-and-not: Likewise.
21537         * modules/unictype/category-byname: Likewise.
21538         * modules/unictype/category-name: Likewise.
21539         * modules/unictype/category-none: Likewise.
21540         * modules/unictype/category-of: Likewise.
21541         * modules/unictype/category-or: Likewise.
21542         * modules/unictype/category-test: Likewise.
21543         * modules/unictype/combining-class: Likewise.
21544         * modules/unictype/ctype-alnum: Likewise.
21545         * modules/unictype/ctype-alpha: Likewise.
21546         * modules/unictype/ctype-blank: Likewise.
21547         * modules/unictype/ctype-cntrl: Likewise.
21548         * modules/unictype/ctype-digit: Likewise.
21549         * modules/unictype/ctype-graph: Likewise.
21550         * modules/unictype/ctype-lower: Likewise.
21551         * modules/unictype/ctype-print: Likewise.
21552         * modules/unictype/ctype-punct: Likewise.
21553         * modules/unictype/ctype-space: Likewise.
21554         * modules/unictype/ctype-upper: Likewise.
21555         * modules/unictype/ctype-xdigit: Likewise.
21556         * modules/unictype/decimal-digit: Likewise.
21557         * modules/unictype/digit: Likewise.
21558         * modules/unictype/mirror: Likewise.
21559         * modules/unictype/numeric: Likewise.
21560         * modules/unictype/property-alphabetic: Likewise.
21561         * modules/unictype/property-ascii-hex-digit: Likewise.
21562         * modules/unictype/property-bidi-arabic-digit: Likewise.
21563         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21564         * modules/unictype/property-bidi-block-separator: Likewise.
21565         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21566         * modules/unictype/property-bidi-common-separator: Likewise.
21567         * modules/unictype/property-bidi-control: Likewise.
21568         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21569         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21570         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21571         * modules/unictype/property-bidi-european-digit: Likewise.
21572         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21573         * modules/unictype/property-bidi-left-to-right: Likewise.
21574         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21575         * modules/unictype/property-bidi-other-neutral: Likewise.
21576         * modules/unictype/property-bidi-pdf: Likewise.
21577         * modules/unictype/property-bidi-segment-separator: Likewise.
21578         * modules/unictype/property-bidi-whitespace: Likewise.
21579         * modules/unictype/property-byname: Likewise.
21580         * modules/unictype/property-combining: Likewise.
21581         * modules/unictype/property-composite: Likewise.
21582         * modules/unictype/property-currency-symbol: Likewise.
21583         * modules/unictype/property-dash: Likewise.
21584         * modules/unictype/property-decimal-digit: Likewise.
21585         * modules/unictype/property-default-ignorable-code-point: Likewise.
21586         * modules/unictype/property-deprecated: Likewise.
21587         * modules/unictype/property-diacritic: Likewise.
21588         * modules/unictype/property-extender: Likewise.
21589         * modules/unictype/property-format-control: Likewise.
21590         * modules/unictype/property-grapheme-base: Likewise.
21591         * modules/unictype/property-grapheme-extend: Likewise.
21592         * modules/unictype/property-grapheme-link: Likewise.
21593         * modules/unictype/property-hex-digit: Likewise.
21594         * modules/unictype/property-hyphen: Likewise.
21595         * modules/unictype/property-id-continue: Likewise.
21596         * modules/unictype/property-id-start: Likewise.
21597         * modules/unictype/property-ideographic: Likewise.
21598         * modules/unictype/property-ids-binary-operator: Likewise.
21599         * modules/unictype/property-ids-trinary-operator: Likewise.
21600         * modules/unictype/property-ignorable-control: Likewise.
21601         * modules/unictype/property-iso-control: Likewise.
21602         * modules/unictype/property-join-control: Likewise.
21603         * modules/unictype/property-left-of-pair: Likewise.
21604         * modules/unictype/property-line-separator: Likewise.
21605         * modules/unictype/property-logical-order-exception: Likewise.
21606         * modules/unictype/property-lowercase: Likewise.
21607         * modules/unictype/property-math: Likewise.
21608         * modules/unictype/property-non-break: Likewise.
21609         * modules/unictype/property-not-a-character: Likewise.
21610         * modules/unictype/property-numeric: Likewise.
21611         * modules/unictype/property-other-alphabetic: Likewise.
21612         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21613         * modules/unictype/property-other-grapheme-extend: Likewise.
21614         * modules/unictype/property-other-id-continue: Likewise.
21615         * modules/unictype/property-other-id-start: Likewise.
21616         * modules/unictype/property-other-lowercase: Likewise.
21617         * modules/unictype/property-other-math: Likewise.
21618         * modules/unictype/property-other-uppercase: Likewise.
21619         * modules/unictype/property-paired-punctuation: Likewise.
21620         * modules/unictype/property-paragraph-separator: Likewise.
21621         * modules/unictype/property-pattern-syntax: Likewise.
21622         * modules/unictype/property-pattern-white-space: Likewise.
21623         * modules/unictype/property-private-use: Likewise.
21624         * modules/unictype/property-punctuation: Likewise.
21625         * modules/unictype/property-quotation-mark: Likewise.
21626         * modules/unictype/property-radical: Likewise.
21627         * modules/unictype/property-sentence-terminal: Likewise.
21628         * modules/unictype/property-soft-dotted: Likewise.
21629         * modules/unictype/property-space: Likewise.
21630         * modules/unictype/property-terminal-punctuation: Likewise.
21631         * modules/unictype/property-test: Likewise.
21632         * modules/unictype/property-titlecase: Likewise.
21633         * modules/unictype/property-unassigned-code-value: Likewise.
21634         * modules/unictype/property-unified-ideograph: Likewise.
21635         * modules/unictype/property-uppercase: Likewise.
21636         * modules/unictype/property-variation-selector: Likewise.
21637         * modules/unictype/property-white-space: Likewise.
21638         * modules/unictype/property-xid-continue: Likewise.
21639         * modules/unictype/property-xid-start: Likewise.
21640         * modules/unictype/property-zero-width: Likewise.
21641         * modules/unictype/scripts: Likewise.
21642         * modules/unictype/syntax-c-ident: Likewise.
21643         * modules/unictype/syntax-c-whitespace: Likewise.
21644         * modules/unictype/syntax-java-ident: Likewise.
21645         * modules/unictype/syntax-java-whitespace: Likewise.
21646         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21647         * modules/unilbrk/u8-width-linebreaks: Likewise.
21648         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21649         * modules/unilbrk/u16-width-linebreaks: Likewise.
21650         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21651         * modules/unilbrk/u32-width-linebreaks: Likewise.
21652         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21653         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21654         * modules/uniname/uniname: Likewise.
21655         * modules/uninorm/canonical-decomposition: Likewise.
21656         * modules/uninorm/composition: Likewise.
21657         * modules/uninorm/decomposing-form: Likewise.
21658         * modules/uninorm/decomposition: Likewise.
21659         * modules/uninorm/filter: Likewise.
21660         * modules/uninorm/nfc: Likewise.
21661         * modules/uninorm/nfd: Likewise.
21662         * modules/uninorm/nfkc: Likewise.
21663         * modules/uninorm/nfkd: Likewise.
21664         * modules/uninorm/u8-normalize: Likewise.
21665         * modules/uninorm/u8-normcmp: Likewise.
21666         * modules/uninorm/u8-normcoll: Likewise.
21667         * modules/uninorm/u8-normxfrm: Likewise.
21668         * modules/uninorm/u16-normalize: Likewise.
21669         * modules/uninorm/u16-normcmp: Likewise.
21670         * modules/uninorm/u16-normcoll: Likewise.
21671         * modules/uninorm/u16-normxfrm: Likewise.
21672         * modules/uninorm/u32-normalize: Likewise.
21673         * modules/uninorm/u32-normcmp: Likewise.
21674         * modules/uninorm/u32-normcoll: Likewise.
21675         * modules/uninorm/u32-normxfrm: Likewise.
21676         * modules/unistdio/u8-asnprintf: Likewise.
21677         * modules/unistdio/u8-asprintf: Likewise.
21678         * modules/unistdio/u8-snprintf: Likewise.
21679         * modules/unistdio/u8-sprintf: Likewise.
21680         * modules/unistdio/u8-u8-asnprintf: Likewise.
21681         * modules/unistdio/u8-u8-asprintf: Likewise.
21682         * modules/unistdio/u8-u8-snprintf: Likewise.
21683         * modules/unistdio/u8-u8-sprintf: Likewise.
21684         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21685         * modules/unistdio/u8-u8-vasprintf: Likewise.
21686         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21687         * modules/unistdio/u8-u8-vsprintf: Likewise.
21688         * modules/unistdio/u8-vasnprintf: Likewise.
21689         * modules/unistdio/u8-vasprintf: Likewise.
21690         * modules/unistdio/u8-vsnprintf: Likewise.
21691         * modules/unistdio/u8-vsprintf: Likewise.
21692         * modules/unistdio/u16-asnprintf: Likewise.
21693         * modules/unistdio/u16-asprintf: Likewise.
21694         * modules/unistdio/u16-snprintf: Likewise.
21695         * modules/unistdio/u16-sprintf: Likewise.
21696         * modules/unistdio/u16-u16-asnprintf: Likewise.
21697         * modules/unistdio/u16-u16-asprintf: Likewise.
21698         * modules/unistdio/u16-u16-snprintf: Likewise.
21699         * modules/unistdio/u16-u16-sprintf: Likewise.
21700         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21701         * modules/unistdio/u16-u16-vasprintf: Likewise.
21702         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21703         * modules/unistdio/u16-u16-vsprintf: Likewise.
21704         * modules/unistdio/u16-vasnprintf: Likewise.
21705         * modules/unistdio/u16-vasprintf: Likewise.
21706         * modules/unistdio/u16-vsnprintf: Likewise.
21707         * modules/unistdio/u16-vsprintf: Likewise.
21708         * modules/unistdio/u32-asnprintf: Likewise.
21709         * modules/unistdio/u32-asprintf: Likewise.
21710         * modules/unistdio/u32-snprintf: Likewise.
21711         * modules/unistdio/u32-sprintf: Likewise.
21712         * modules/unistdio/u32-u32-asnprintf: Likewise.
21713         * modules/unistdio/u32-u32-asprintf: Likewise.
21714         * modules/unistdio/u32-u32-snprintf: Likewise.
21715         * modules/unistdio/u32-u32-sprintf: Likewise.
21716         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21717         * modules/unistdio/u32-u32-vasprintf: Likewise.
21718         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21719         * modules/unistdio/u32-u32-vsprintf: Likewise.
21720         * modules/unistdio/u32-vasnprintf: Likewise.
21721         * modules/unistdio/u32-vasprintf: Likewise.
21722         * modules/unistdio/u32-vsnprintf: Likewise.
21723         * modules/unistdio/u32-vsprintf: Likewise.
21724         * modules/unistdio/ulc-asnprintf: Likewise.
21725         * modules/unistdio/ulc-asprintf: Likewise.
21726         * modules/unistdio/ulc-fprintf: Likewise.
21727         * modules/unistdio/ulc-snprintf: Likewise.
21728         * modules/unistdio/ulc-sprintf: Likewise.
21729         * modules/unistdio/ulc-vasnprintf: Likewise.
21730         * modules/unistdio/ulc-vasprintf: Likewise.
21731         * modules/unistdio/ulc-vfprintf: Likewise.
21732         * modules/unistdio/ulc-vsnprintf: Likewise.
21733         * modules/unistdio/ulc-vsprintf: Likewise.
21734         * modules/unistr/u8-check: Likewise.
21735         * modules/unistr/u8-chr: Likewise.
21736         * modules/unistr/u8-cmp: Likewise.
21737         * modules/unistr/u8-cmp2: Likewise.
21738         * modules/unistr/u8-cpy: Likewise.
21739         * modules/unistr/u8-cpy-alloc: Likewise.
21740         * modules/unistr/u8-endswith: Likewise.
21741         * modules/unistr/u8-mblen: Likewise.
21742         * modules/unistr/u8-mbsnlen: Likewise.
21743         * modules/unistr/u8-mbtouc: Likewise.
21744         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21745         * modules/unistr/u8-mbtoucr: Likewise.
21746         * modules/unistr/u8-move: Likewise.
21747         * modules/unistr/u8-next: Likewise.
21748         * modules/unistr/u8-prev: Likewise.
21749         * modules/unistr/u8-set: Likewise.
21750         * modules/unistr/u8-startswith: Likewise.
21751         * modules/unistr/u8-stpcpy: Likewise.
21752         * modules/unistr/u8-stpncpy: Likewise.
21753         * modules/unistr/u8-strcat: Likewise.
21754         * modules/unistr/u8-strchr: Likewise.
21755         * modules/unistr/u8-strcmp: Likewise.
21756         * modules/unistr/u8-strcoll: Likewise.
21757         * modules/unistr/u8-strcpy: Likewise.
21758         * modules/unistr/u8-strcspn: Likewise.
21759         * modules/unistr/u8-strdup: Likewise.
21760         * modules/unistr/u8-strlen: Likewise.
21761         * modules/unistr/u8-strmblen: Likewise.
21762         * modules/unistr/u8-strmbtouc: Likewise.
21763         * modules/unistr/u8-strncat: Likewise.
21764         * modules/unistr/u8-strncmp: Likewise.
21765         * modules/unistr/u8-strncpy: Likewise.
21766         * modules/unistr/u8-strnlen: Likewise.
21767         * modules/unistr/u8-strpbrk: Likewise.
21768         * modules/unistr/u8-strrchr: Likewise.
21769         * modules/unistr/u8-strspn: Likewise.
21770         * modules/unistr/u8-strstr: Likewise.
21771         * modules/unistr/u8-strtok: Likewise.
21772         * modules/unistr/u8-to-u16: Likewise.
21773         * modules/unistr/u8-to-u32: Likewise.
21774         * modules/unistr/u8-uctomb: Likewise.
21775         * modules/unistr/u16-check: Likewise.
21776         * modules/unistr/u16-chr: Likewise.
21777         * modules/unistr/u16-cmp: Likewise.
21778         * modules/unistr/u16-cmp2: Likewise.
21779         * modules/unistr/u16-cpy: Likewise.
21780         * modules/unistr/u16-cpy-alloc: Likewise.
21781         * modules/unistr/u16-endswith: Likewise.
21782         * modules/unistr/u16-mblen: Likewise.
21783         * modules/unistr/u16-mbsnlen: Likewise.
21784         * modules/unistr/u16-mbtouc: Likewise.
21785         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21786         * modules/unistr/u16-mbtoucr: Likewise.
21787         * modules/unistr/u16-move: Likewise.
21788         * modules/unistr/u16-next: Likewise.
21789         * modules/unistr/u16-prev: Likewise.
21790         * modules/unistr/u16-set: Likewise.
21791         * modules/unistr/u16-startswith: Likewise.
21792         * modules/unistr/u16-stpcpy: Likewise.
21793         * modules/unistr/u16-stpncpy: Likewise.
21794         * modules/unistr/u16-strcat: Likewise.
21795         * modules/unistr/u16-strchr: Likewise.
21796         * modules/unistr/u16-strcmp: Likewise.
21797         * modules/unistr/u16-strcoll: Likewise.
21798         * modules/unistr/u16-strcpy: Likewise.
21799         * modules/unistr/u16-strcspn: Likewise.
21800         * modules/unistr/u16-strdup: Likewise.
21801         * modules/unistr/u16-strlen: Likewise.
21802         * modules/unistr/u16-strmblen: Likewise.
21803         * modules/unistr/u16-strmbtouc: Likewise.
21804         * modules/unistr/u16-strncat: Likewise.
21805         * modules/unistr/u16-strncmp: Likewise.
21806         * modules/unistr/u16-strncpy: Likewise.
21807         * modules/unistr/u16-strnlen: Likewise.
21808         * modules/unistr/u16-strpbrk: Likewise.
21809         * modules/unistr/u16-strrchr: Likewise.
21810         * modules/unistr/u16-strspn: Likewise.
21811         * modules/unistr/u16-strstr: Likewise.
21812         * modules/unistr/u16-strtok: Likewise.
21813         * modules/unistr/u16-to-u32: Likewise.
21814         * modules/unistr/u16-to-u8: Likewise.
21815         * modules/unistr/u16-uctomb: Likewise.
21816         * modules/unistr/u32-check: Likewise.
21817         * modules/unistr/u32-chr: Likewise.
21818         * modules/unistr/u32-cmp: Likewise.
21819         * modules/unistr/u32-cmp2: Likewise.
21820         * modules/unistr/u32-cpy: Likewise.
21821         * modules/unistr/u32-cpy-alloc: Likewise.
21822         * modules/unistr/u32-endswith: Likewise.
21823         * modules/unistr/u32-mblen: Likewise.
21824         * modules/unistr/u32-mbsnlen: Likewise.
21825         * modules/unistr/u32-mbtouc: Likewise.
21826         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21827         * modules/unistr/u32-mbtoucr: Likewise.
21828         * modules/unistr/u32-move: Likewise.
21829         * modules/unistr/u32-next: Likewise.
21830         * modules/unistr/u32-prev: Likewise.
21831         * modules/unistr/u32-set: Likewise.
21832         * modules/unistr/u32-startswith: Likewise.
21833         * modules/unistr/u32-stpcpy: Likewise.
21834         * modules/unistr/u32-stpncpy: Likewise.
21835         * modules/unistr/u32-strcat: Likewise.
21836         * modules/unistr/u32-strchr: Likewise.
21837         * modules/unistr/u32-strcmp: Likewise.
21838         * modules/unistr/u32-strcoll: Likewise.
21839         * modules/unistr/u32-strcpy: Likewise.
21840         * modules/unistr/u32-strcspn: Likewise.
21841         * modules/unistr/u32-strdup: Likewise.
21842         * modules/unistr/u32-strlen: Likewise.
21843         * modules/unistr/u32-strmblen: Likewise.
21844         * modules/unistr/u32-strmbtouc: Likewise.
21845         * modules/unistr/u32-strncat: Likewise.
21846         * modules/unistr/u32-strncmp: Likewise.
21847         * modules/unistr/u32-strncpy: Likewise.
21848         * modules/unistr/u32-strnlen: Likewise.
21849         * modules/unistr/u32-strpbrk: Likewise.
21850         * modules/unistr/u32-strrchr: Likewise.
21851         * modules/unistr/u32-strspn: Likewise.
21852         * modules/unistr/u32-strstr: Likewise.
21853         * modules/unistr/u32-strtok: Likewise.
21854         * modules/unistr/u32-to-u16: Likewise.
21855         * modules/unistr/u32-to-u8: Likewise.
21856         * modules/unistr/u32-uctomb: Likewise.
21857         * modules/uniwbrk/u8-wordbreaks: Likewise.
21858         * modules/uniwbrk/u16-wordbreaks: Likewise.
21859         * modules/uniwbrk/u32-wordbreaks: Likewise.
21860         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21861         * modules/uniwbrk/wordbreak-property: Likewise.
21862         * modules/uniwidth/u8-strwidth: Likewise.
21863         * modules/uniwidth/u8-width: Likewise.
21864         * modules/uniwidth/u16-strwidth: Likewise.
21865         * modules/uniwidth/u16-width: Likewise.
21866         * modules/uniwidth/u32-strwidth: Likewise.
21867         * modules/uniwidth/u32-width: Likewise.
21868         * modules/uniwidth/width: Likewise.
21869         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21870         with $(LIBUNISTRING).
21871         * modules/unicase/ignorable-tests: Likewise.
21872         * modules/unicase/locale-language-tests: Likewise.
21873         * modules/unicase/tolower-tests: Likewise.
21874         * modules/unicase/totitle-tests: Likewise.
21875         * modules/unicase/toupper-tests: Likewise.
21876         * modules/unicase/u8-casecmp-tests: Likewise.
21877         * modules/unicase/u8-casecoll-tests: Likewise.
21878         * modules/unicase/u8-casefold-tests: Likewise.
21879         * modules/unicase/u8-is-cased-tests: Likewise.
21880         * modules/unicase/u8-is-casefolded-tests: Likewise.
21881         * modules/unicase/u8-is-lowercase-tests: Likewise.
21882         * modules/unicase/u8-is-titlecase-tests: Likewise.
21883         * modules/unicase/u8-is-uppercase-tests: Likewise.
21884         * modules/unicase/u8-tolower-tests: Likewise.
21885         * modules/unicase/u8-totitle-tests: Likewise.
21886         * modules/unicase/u8-toupper-tests: Likewise.
21887         * modules/unicase/u16-casecmp-tests: Likewise.
21888         * modules/unicase/u16-casecoll-tests: Likewise.
21889         * modules/unicase/u16-casefold-tests: Likewise.
21890         * modules/unicase/u16-is-cased-tests: Likewise.
21891         * modules/unicase/u16-is-casefolded-tests: Likewise.
21892         * modules/unicase/u16-is-lowercase-tests: Likewise.
21893         * modules/unicase/u16-is-titlecase-tests: Likewise.
21894         * modules/unicase/u16-is-uppercase-tests: Likewise.
21895         * modules/unicase/u16-tolower-tests: Likewise.
21896         * modules/unicase/u16-totitle-tests: Likewise.
21897         * modules/unicase/u16-toupper-tests: Likewise.
21898         * modules/unicase/u32-casecmp-tests: Likewise.
21899         * modules/unicase/u32-casecoll-tests: Likewise.
21900         * modules/unicase/u32-casefold-tests: Likewise.
21901         * modules/unicase/u32-is-cased-tests: Likewise.
21902         * modules/unicase/u32-is-casefolded-tests: Likewise.
21903         * modules/unicase/u32-is-lowercase-tests: Likewise.
21904         * modules/unicase/u32-is-titlecase-tests: Likewise.
21905         * modules/unicase/u32-is-uppercase-tests: Likewise.
21906         * modules/unicase/u32-tolower-tests: Likewise.
21907         * modules/unicase/u32-totitle-tests: Likewise.
21908         * modules/unicase/u32-toupper-tests: Likewise.
21909         * modules/unicase/ulc-casecmp-tests: Likewise.
21910         * modules/unicase/ulc-casecoll-tests: Likewise.
21911         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21912         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21913         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21914         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21915         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21916         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21917         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21918         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21919         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21920         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21921         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21922         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21923         * modules/unictype/bidicategory-byname-tests: Likewise.
21924         * modules/unictype/bidicategory-name-tests: Likewise.
21925         * modules/unictype/bidicategory-of-tests: Likewise.
21926         * modules/unictype/bidicategory-test-tests: Likewise.
21927         * modules/unictype/block-list-tests: Likewise.
21928         * modules/unictype/block-of-tests: Likewise.
21929         * modules/unictype/block-test-tests: Likewise.
21930         * modules/unictype/category-C-tests: Likewise.
21931         * modules/unictype/category-Cc-tests: Likewise.
21932         * modules/unictype/category-Cf-tests: Likewise.
21933         * modules/unictype/category-Cn-tests: Likewise.
21934         * modules/unictype/category-Co-tests: Likewise.
21935         * modules/unictype/category-Cs-tests: Likewise.
21936         * modules/unictype/category-L-tests: Likewise.
21937         * modules/unictype/category-Ll-tests: Likewise.
21938         * modules/unictype/category-Lm-tests: Likewise.
21939         * modules/unictype/category-Lo-tests: Likewise.
21940         * modules/unictype/category-Lt-tests: Likewise.
21941         * modules/unictype/category-Lu-tests: Likewise.
21942         * modules/unictype/category-M-tests: Likewise.
21943         * modules/unictype/category-Mc-tests: Likewise.
21944         * modules/unictype/category-Me-tests: Likewise.
21945         * modules/unictype/category-Mn-tests: Likewise.
21946         * modules/unictype/category-N-tests: Likewise.
21947         * modules/unictype/category-Nd-tests: Likewise.
21948         * modules/unictype/category-Nl-tests: Likewise.
21949         * modules/unictype/category-No-tests: Likewise.
21950         * modules/unictype/category-P-tests: Likewise.
21951         * modules/unictype/category-Pc-tests: Likewise.
21952         * modules/unictype/category-Pd-tests: Likewise.
21953         * modules/unictype/category-Pe-tests: Likewise.
21954         * modules/unictype/category-Pf-tests: Likewise.
21955         * modules/unictype/category-Pi-tests: Likewise.
21956         * modules/unictype/category-Po-tests: Likewise.
21957         * modules/unictype/category-Ps-tests: Likewise.
21958         * modules/unictype/category-S-tests: Likewise.
21959         * modules/unictype/category-Sc-tests: Likewise.
21960         * modules/unictype/category-Sk-tests: Likewise.
21961         * modules/unictype/category-Sm-tests: Likewise.
21962         * modules/unictype/category-So-tests: Likewise.
21963         * modules/unictype/category-Z-tests: Likewise.
21964         * modules/unictype/category-Zl-tests: Likewise.
21965         * modules/unictype/category-Zp-tests: Likewise.
21966         * modules/unictype/category-Zs-tests: Likewise.
21967         * modules/unictype/category-and-not-tests: Likewise.
21968         * modules/unictype/category-and-tests: Likewise.
21969         * modules/unictype/category-byname-tests: Likewise.
21970         * modules/unictype/category-name-tests: Likewise.
21971         * modules/unictype/category-none-tests: Likewise.
21972         * modules/unictype/category-of-tests: Likewise.
21973         * modules/unictype/category-or-tests: Likewise.
21974         * modules/unictype/category-test-withtable-tests: Likewise.
21975         * modules/unictype/combining-class-tests: Likewise.
21976         * modules/unictype/ctype-alnum-tests: Likewise.
21977         * modules/unictype/ctype-alpha-tests: Likewise.
21978         * modules/unictype/ctype-blank-tests: Likewise.
21979         * modules/unictype/ctype-cntrl-tests: Likewise.
21980         * modules/unictype/ctype-digit-tests: Likewise.
21981         * modules/unictype/ctype-graph-tests: Likewise.
21982         * modules/unictype/ctype-lower-tests: Likewise.
21983         * modules/unictype/ctype-print-tests: Likewise.
21984         * modules/unictype/ctype-punct-tests: Likewise.
21985         * modules/unictype/ctype-space-tests: Likewise.
21986         * modules/unictype/ctype-upper-tests: Likewise.
21987         * modules/unictype/ctype-xdigit-tests: Likewise.
21988         * modules/unictype/decimal-digit-tests: Likewise.
21989         * modules/unictype/digit-tests: Likewise.
21990         * modules/unictype/mirror-tests: Likewise.
21991         * modules/unictype/numeric-tests: Likewise.
21992         * modules/unictype/property-alphabetic-tests: Likewise.
21993         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21994         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21995         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21996         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21997         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21998         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21999         * modules/unictype/property-bidi-control-tests: Likewise.
22000         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22001         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22002         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22003         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22004         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22005         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22006         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22007         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22008         * modules/unictype/property-bidi-pdf-tests: Likewise.
22009         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22010         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22011         * modules/unictype/property-byname-tests: Likewise.
22012         * modules/unictype/property-combining-tests: Likewise.
22013         * modules/unictype/property-composite-tests: Likewise.
22014         * modules/unictype/property-currency-symbol-tests: Likewise.
22015         * modules/unictype/property-dash-tests: Likewise.
22016         * modules/unictype/property-decimal-digit-tests: Likewise.
22017         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22018         * modules/unictype/property-deprecated-tests: Likewise.
22019         * modules/unictype/property-diacritic-tests: Likewise.
22020         * modules/unictype/property-extender-tests: Likewise.
22021         * modules/unictype/property-format-control-tests: Likewise.
22022         * modules/unictype/property-grapheme-base-tests: Likewise.
22023         * modules/unictype/property-grapheme-extend-tests: Likewise.
22024         * modules/unictype/property-grapheme-link-tests: Likewise.
22025         * modules/unictype/property-hex-digit-tests: Likewise.
22026         * modules/unictype/property-hyphen-tests: Likewise.
22027         * modules/unictype/property-id-continue-tests: Likewise.
22028         * modules/unictype/property-id-start-tests: Likewise.
22029         * modules/unictype/property-ideographic-tests: Likewise.
22030         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22031         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22032         * modules/unictype/property-ignorable-control-tests: Likewise.
22033         * modules/unictype/property-iso-control-tests: Likewise.
22034         * modules/unictype/property-join-control-tests: Likewise.
22035         * modules/unictype/property-left-of-pair-tests: Likewise.
22036         * modules/unictype/property-line-separator-tests: Likewise.
22037         * modules/unictype/property-logical-order-exception-tests: Likewise.
22038         * modules/unictype/property-lowercase-tests: Likewise.
22039         * modules/unictype/property-math-tests: Likewise.
22040         * modules/unictype/property-non-break-tests: Likewise.
22041         * modules/unictype/property-not-a-character-tests: Likewise.
22042         * modules/unictype/property-numeric-tests: Likewise.
22043         * modules/unictype/property-other-alphabetic-tests: Likewise.
22044         * modules/unictype/property-other-default-ignorable-code-point-tests:
22045         Likewise.
22046         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22047         * modules/unictype/property-other-id-continue-tests: Likewise.
22048         * modules/unictype/property-other-id-start-tests: Likewise.
22049         * modules/unictype/property-other-lowercase-tests: Likewise.
22050         * modules/unictype/property-other-math-tests: Likewise.
22051         * modules/unictype/property-other-uppercase-tests: Likewise.
22052         * modules/unictype/property-paired-punctuation-tests: Likewise.
22053         * modules/unictype/property-paragraph-separator-tests: Likewise.
22054         * modules/unictype/property-pattern-syntax-tests: Likewise.
22055         * modules/unictype/property-pattern-white-space-tests: Likewise.
22056         * modules/unictype/property-private-use-tests: Likewise.
22057         * modules/unictype/property-punctuation-tests: Likewise.
22058         * modules/unictype/property-quotation-mark-tests: Likewise.
22059         * modules/unictype/property-radical-tests: Likewise.
22060         * modules/unictype/property-sentence-terminal-tests: Likewise.
22061         * modules/unictype/property-soft-dotted-tests: Likewise.
22062         * modules/unictype/property-space-tests: Likewise.
22063         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22064         * modules/unictype/property-test-tests: Likewise.
22065         * modules/unictype/property-titlecase-tests: Likewise.
22066         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22067         * modules/unictype/property-unified-ideograph-tests: Likewise.
22068         * modules/unictype/property-uppercase-tests: Likewise.
22069         * modules/unictype/property-variation-selector-tests: Likewise.
22070         * modules/unictype/property-white-space-tests: Likewise.
22071         * modules/unictype/property-xid-continue-tests: Likewise.
22072         * modules/unictype/property-xid-start-tests: Likewise.
22073         * modules/unictype/property-zero-width-tests: Likewise.
22074         * modules/unictype/scripts-tests: Likewise.
22075         * modules/unictype/syntax-c-ident-tests: Likewise.
22076         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22077         * modules/unictype/syntax-java-ident-tests: Likewise.
22078         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22079         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22080         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22081         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22082         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22083         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22084         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22085         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22086         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22087         * modules/uniname/uniname-tests: Likewise.
22088         * modules/uninorm/canonical-decomposition-tests: Likewise.
22089         * modules/uninorm/compat-decomposition-tests: Likewise.
22090         * modules/uninorm/composition-tests: Likewise.
22091         * modules/uninorm/decomposing-form-tests: Likewise.
22092         * modules/uninorm/decomposition-tests: Likewise.
22093         * modules/uninorm/filter-tests: Likewise.
22094         * modules/uninorm/nfc-tests: Likewise.
22095         * modules/uninorm/nfd-tests: Likewise.
22096         * modules/uninorm/nfkc-tests: Likewise.
22097         * modules/uninorm/nfkd-tests: Likewise.
22098         * modules/uninorm/u8-normcmp-tests: Likewise.
22099         * modules/uninorm/u8-normcoll-tests: Likewise.
22100         * modules/uninorm/u16-normcmp-tests: Likewise.
22101         * modules/uninorm/u16-normcoll-tests: Likewise.
22102         * modules/uninorm/u32-normcmp-tests: Likewise.
22103         * modules/uninorm/u32-normcoll-tests: Likewise.
22104         * modules/unistdio/u8-asnprintf-tests: Likewise.
22105         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22106         * modules/unistdio/u8-vasprintf-tests: Likewise.
22107         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22108         * modules/unistdio/u8-vsprintf-tests: Likewise.
22109         * modules/unistdio/u16-asnprintf-tests: Likewise.
22110         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22111         * modules/unistdio/u16-vasprintf-tests: Likewise.
22112         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22113         * modules/unistdio/u16-vsprintf-tests: Likewise.
22114         * modules/unistdio/u32-asnprintf-tests: Likewise.
22115         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22116         * modules/unistdio/u32-vasprintf-tests: Likewise.
22117         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22118         * modules/unistdio/u32-vsprintf-tests: Likewise.
22119         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22120         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22121         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22122         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22123         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22124         * modules/unistr/u8-check-tests: Likewise.
22125         * modules/unistr/u8-chr-tests: Likewise.
22126         * modules/unistr/u8-cmp-tests: Likewise.
22127         * modules/unistr/u8-cmp2-tests: Likewise.
22128         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22129         * modules/unistr/u8-cpy-tests: Likewise.
22130         * modules/unistr/u8-mblen-tests: Likewise.
22131         * modules/unistr/u8-mbsnlen-tests: Likewise.
22132         * modules/unistr/u8-mbtouc-tests: Likewise.
22133         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22134         * modules/unistr/u8-mbtoucr-tests: Likewise.
22135         * modules/unistr/u8-move-tests: Likewise.
22136         * modules/unistr/u8-next-tests: Likewise.
22137         * modules/unistr/u8-prev-tests: Likewise.
22138         * modules/unistr/u8-set-tests: Likewise.
22139         * modules/unistr/u8-stpcpy-tests: Likewise.
22140         * modules/unistr/u8-stpncpy-tests: Likewise.
22141         * modules/unistr/u8-strcat-tests: Likewise.
22142         * modules/unistr/u8-strcmp-tests: Likewise.
22143         * modules/unistr/u8-strcoll-tests: Likewise.
22144         * modules/unistr/u8-strcpy-tests: Likewise.
22145         * modules/unistr/u8-strdup-tests: Likewise.
22146         * modules/unistr/u8-strlen-tests: Likewise.
22147         * modules/unistr/u8-strmblen-tests: Likewise.
22148         * modules/unistr/u8-strmbtouc-tests: Likewise.
22149         * modules/unistr/u8-strncat-tests: Likewise.
22150         * modules/unistr/u8-strncmp-tests: Likewise.
22151         * modules/unistr/u8-strncpy-tests: Likewise.
22152         * modules/unistr/u8-strnlen-tests: Likewise.
22153         * modules/unistr/u8-to-u16-tests: Likewise.
22154         * modules/unistr/u8-to-u32-tests: Likewise.
22155         * modules/unistr/u8-uctomb-tests: Likewise.
22156         * modules/unistr/u16-check-tests: Likewise.
22157         * modules/unistr/u16-chr-tests: Likewise.
22158         * modules/unistr/u16-cmp-tests: Likewise.
22159         * modules/unistr/u16-cmp2-tests: Likewise.
22160         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22161         * modules/unistr/u16-cpy-tests: Likewise.
22162         * modules/unistr/u16-mblen-tests: Likewise.
22163         * modules/unistr/u16-mbsnlen-tests: Likewise.
22164         * modules/unistr/u16-mbtouc-tests: Likewise.
22165         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22166         * modules/unistr/u16-mbtoucr-tests: Likewise.
22167         * modules/unistr/u16-move-tests: Likewise.
22168         * modules/unistr/u16-next-tests: Likewise.
22169         * modules/unistr/u16-prev-tests: Likewise.
22170         * modules/unistr/u16-set-tests: Likewise.
22171         * modules/unistr/u16-stpcpy-tests: Likewise.
22172         * modules/unistr/u16-stpncpy-tests: Likewise.
22173         * modules/unistr/u16-strcat-tests: Likewise.
22174         * modules/unistr/u16-strcmp-tests: Likewise.
22175         * modules/unistr/u16-strcoll-tests: Likewise.
22176         * modules/unistr/u16-strcpy-tests: Likewise.
22177         * modules/unistr/u16-strdup-tests: Likewise.
22178         * modules/unistr/u16-strlen-tests: Likewise.
22179         * modules/unistr/u16-strmblen-tests: Likewise.
22180         * modules/unistr/u16-strmbtouc-tests: Likewise.
22181         * modules/unistr/u16-strncat-tests: Likewise.
22182         * modules/unistr/u16-strncmp-tests: Likewise.
22183         * modules/unistr/u16-strncpy-tests: Likewise.
22184         * modules/unistr/u16-strnlen-tests: Likewise.
22185         * modules/unistr/u16-to-u32-tests: Likewise.
22186         * modules/unistr/u16-to-u8-tests: Likewise.
22187         * modules/unistr/u16-uctomb-tests: Likewise.
22188         * modules/unistr/u32-check-tests: Likewise.
22189         * modules/unistr/u32-chr-tests: Likewise.
22190         * modules/unistr/u32-cmp-tests: Likewise.
22191         * modules/unistr/u32-cmp2-tests: Likewise.
22192         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22193         * modules/unistr/u32-cpy-tests: Likewise.
22194         * modules/unistr/u32-mblen-tests: Likewise.
22195         * modules/unistr/u32-mbsnlen-tests: Likewise.
22196         * modules/unistr/u32-mbtouc-tests: Likewise.
22197         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22198         * modules/unistr/u32-mbtoucr-tests: Likewise.
22199         * modules/unistr/u32-move-tests: Likewise.
22200         * modules/unistr/u32-next-tests: Likewise.
22201         * modules/unistr/u32-prev-tests: Likewise.
22202         * modules/unistr/u32-set-tests: Likewise.
22203         * modules/unistr/u32-stpcpy-tests: Likewise.
22204         * modules/unistr/u32-stpncpy-tests: Likewise.
22205         * modules/unistr/u32-strcat-tests: Likewise.
22206         * modules/unistr/u32-strcmp-tests: Likewise.
22207         * modules/unistr/u32-strcoll-tests: Likewise.
22208         * modules/unistr/u32-strcpy-tests: Likewise.
22209         * modules/unistr/u32-strdup-tests: Likewise.
22210         * modules/unistr/u32-strlen-tests: Likewise.
22211         * modules/unistr/u32-strmblen-tests: Likewise.
22212         * modules/unistr/u32-strmbtouc-tests: Likewise.
22213         * modules/unistr/u32-strncat-tests: Likewise.
22214         * modules/unistr/u32-strncmp-tests: Likewise.
22215         * modules/unistr/u32-strncpy-tests: Likewise.
22216         * modules/unistr/u32-strnlen-tests: Likewise.
22217         * modules/unistr/u32-to-u16-tests: Likewise.
22218         * modules/unistr/u32-to-u8-tests: Likewise.
22219         * modules/unistr/u32-uctomb-tests: Likewise.
22220         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22221         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22222         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22223         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22224         * modules/uniwidth/u8-strwidth-tests: Likewise.
22225         * modules/uniwidth/u8-width-tests: Likewise.
22226         * modules/uniwidth/u16-strwidth-tests: Likewise.
22227         * modules/uniwidth/u16-width-tests: Likewise.
22228         * modules/uniwidth/u32-strwidth-tests: Likewise.
22229         * modules/uniwidth/u32-width-tests: Likewise.
22230         * modules/uniwidth/width-tests: Likewise.
22231
22232 2010-05-18  Richard Jones  <rjones@redhat.com>
22233
22234         doc: users.txt: list hivex
22235         * users.txt: Add hivex.
22236
22237 2010-05-18  Richard Jones  <rjones@redhat.com>
22238
22239         doc: users.txt: list febootstrap
22240         * users.txt: Add febootstrap.
22241
22242 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22243
22244         bootstrap: fix an error when gnulib is not used as a git submodule
22245         * build-aux/bootstrap (gnulib_path): If its length is zero then
22246         assign "gnulib" to it.
22247         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22248
22249 2010-05-16  Bruno Haible  <bruno@clisp.org>
22250
22251         Avoid autoconf warnings about AM_ICONV.
22252         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22253         2.64.
22254
22255 2010-05-16  Bruno Haible  <bruno@clisp.org>
22256
22257         absolute-header: Make the macro usable in more situations.
22258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22259         from gl_ABSOLUTE_HEADER.
22260         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22261
22262 2010-05-16  James Youngman  <jay@gnu.org>
22263
22264         doc: update users.txt
22265         * users.txt: Add CSSC.
22266
22267 2010-05-16  Jim Meyering  <meyering@redhat.com>
22268
22269         init.sh: fix an error in the previous change; add more comments
22270         * tests/init.sh: Compare exit code in loop against 9, not 2.
22271         Patch by Bruno Haible.
22272         Make the two tests more similar by adding an empty "then" clause.
22273         Add comments.
22274
22275         init.sh: avoid unnecessary shell re-exec
22276         * tests/init.sh: Improve the re-exec-required check to first test the
22277         current shell.  If it passes the test, do not search for a shell that
22278         does pass, and do not re-exec.  This test is particularly contorted to
22279         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22280         of $(...) evokes a syntax error and causes immediate shell exit with
22281         status 2.  Bruno Haible reported that the re-exec made it impossible
22282         to single-step through any init.sh-using script.
22283
22284 2010-05-16  Bruno Haible  <bruno@clisp.org>
22285
22286         Fix collision between gnulib's and libintl's printf replacements.
22287         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22288         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22289         (printf): When using GNU C, map the __printf__ function to rpl_printf
22290         via __asm__. When not using GNU C, define rpl_printf instead of
22291         __printf__.
22292         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22293         commit.
22294         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22295         commit.
22296         * m4/asm-underscore.m4: New file.
22297         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22298         * modules/stdio (Files): Add m4/asm-underscore.m4.
22299         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22300         Reported by Ben Pfaff.
22301
22302 2010-05-16  Bruno Haible  <bruno@clisp.org>
22303
22304         verify: Avoid skipping the test on openSUSE 11.0.
22305         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22306
22307 2010-05-13  Bruno Haible  <bruno@clisp.org>
22308
22309         Avoid useless warnings from G++.
22310         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22311         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22312         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22313
22314 2010-05-11  Jim Meyering  <meyering@redhat.com>
22315
22316         maint.mk: tweak preceding change
22317         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22318         regexps tighter by anchoring at EOL, and make the new group "shy"
22319         for slightly decreased overhead.
22320
22321 2010-05-11  Eric Blake  <eblake@redhat.com>
22322
22323         maint.mk: gnulib doesn't guarantee NSIG
22324         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22325
22326 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22327
22328         test-pwrite.c: Remove unused variable declaration.
22329         * tests/test-pwrite.c (main): Remove read_buf declaration.
22330
22331         Remove useless test-pwrite.sh file.
22332         * tests/test-pwrite.sh: Delete file.
22333         * modules/pwrite-tests: Remove references.
22334         Reported by Bruno Haible.
22335
22336 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22337
22338         init.sh: fix a typo
22339         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22340
22341 2010-05-10  Jim Meyering  <meyering@redhat.com>
22342
22343         maint.mk: avoid using a temporary file in the always-defined-macros check
22344         * top/maint.mk (.re-defmac): Remove rule.
22345         (gl_trap_): Remove definition.
22346         (sc_prohibit_always-defined_macros): Rewrite not to create and
22347         depend on a temporary file.  Instead, depend on GNU grep's ability
22348         to read a list of regular expressions from stdin when given "-f -".
22349
22350 2010-05-09  Bruno Haible  <bruno@clisp.org>
22351
22352         Update to GNU gettext 0.18, part 1.
22353         * m4/gettext.m4: Update to GNU gettext 0.18.
22354         * m4/intl.m4: Likewise.
22355         * m4/po.m4: Likewise.
22356         * modules/gettext (Files): Add m4/fcntl-o.m4.
22357         (configure.ac): Require gettext infrastructure from version 0.18.
22358
22359 2010-05-09  Jim Meyering  <meyering@redhat.com>
22360
22361         init.sh: enable MALLOC_PERTURB_
22362         * tests/init.sh: Enable glibc's malloc-perturbing option.
22363
22364         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22365         With my recent change in init.sh from the two-line form:
22366             -#   : ${srcdir=.}
22367             -#   . "$srcdir/init.sh"; path_prepend_ .
22368             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22369         I noticed that using the one-line form would cause this test
22370         to fail with a false-positive, or to stop working altogether,
22371         depending on whether help-version changed or all the tests did.
22372         * top/maint.mk (_hv_regex): Remove this definition.
22373         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22374         (_hv_regex_strong): Use a stronger regex to check for conformance.
22375         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22376         Give a separate diagnostic for lack of conforming use.
22377
22378         maint.mk: prohibit definition of symbols defined by gnulib
22379         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22380         definition of symbols defined by gnulib.
22381
22382 2010-05-09  Bruno Haible  <bruno@clisp.org>
22383
22384         acl: Avoid test failure on Cygwin-hosted mingw.
22385         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22386
22387 2010-05-09  Bruno Haible  <bruno@clisp.org>
22388
22389         error: Use system's fcntl function.
22390         * lib/error.c (fcntl): Undefine.
22391
22392 2010-05-09  Jim Meyering  <meyering@redhat.com>
22393
22394         verify: adjust formatting to be more consistent
22395         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22396         argument-list '('s, and after one comma.
22397
22398 2010-05-09  Bruno Haible  <bruno@clisp.org>
22399
22400         error: More reliable output on mingw.
22401         * lib/error.c: Include <windows.h>.
22402         (is_open): New function.
22403         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22404         defined.
22405
22406 2010-05-09  Bruno Haible  <bruno@clisp.org>
22407
22408         vasnprintf: Fix syntax errors in libintl build on mingw.
22409         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22410         pad_ourselves and prec_ourselves after use.
22411
22412 2010-05-08  Bruno Haible  <bruno@clisp.org>
22413
22414         * lib/config.charset: Update comments for Cygwin 1.7.
22415         * lib/localcharset.c: Likewise.
22416
22417 2010-05-07  Jim Meyering  <meyering@redhat.com>
22418
22419         init.sh: improve comments
22420         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22421         . "${srcdir=.}/init.sh"; path_prepend_ .
22422         Add a note about path_prepend_ and the alternative of using
22423         TESTS_ENVIRONMENT.
22424
22425 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22426
22427         exclude: Unescape hashed patterns in wildcard mode.
22428         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22429         to the hash list.
22430         * tests/test-exclude8.sh: New test case.
22431         * modules/exclude-tests: Add new test.
22432
22433 2010-05-05  Eric Blake  <eblake@redhat.com>
22434
22435         verify: automate tests
22436         * modules/verify-tests: New module.
22437         * tests/test-verify.sh: New file.
22438         * tests/test-verify.c: Guard each negative test with a unique id.
22439         Also avoid warning about unused left hand of comma expressions.
22440
22441 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22442
22443         Further improvements to verify.h, suggested by Eric Blake.
22444         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22445         the GL_* versions, to avoid collision with OpenGL.
22446         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22447         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22448         than testing merely whether it's defined.
22449
22450         Modify verify.h to pacify gcc -Wredundant_decls.
22451         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22452         These use the prefix "GL_" since they're likely to be useful elsewhere.
22453         We may need to break them out into a different .h file.
22454         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22455         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22456         of verify_function__.
22457
22458 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22459
22460         Tests for module pwrite.
22461         * modules/pwrite-tests: New file.
22462         * tests/test-pwrite.sh: New file.
22463         * tests/test-pwrite.c: New file.
22464
22465         New module pwrite.
22466         * lib/unistd.in.h (pwrite): New declaration.
22467         * lib/pwrite.c: New file, from glibc with modifications.
22468         * m4/pwrite.m4: New file.
22469         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22470         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22471         REPLACE_PWRITE.
22472         * modules/pwrite: New file.
22473         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22474         REPLACE_PWRITE.
22475         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22476         * doc/posix-functions/pwrite.texi: Mention the new module.
22477
22478 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22479
22480         pread: Update documentation.
22481         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22482
22483 2010-05-04  Eric Blake  <eblake@redhat.com>
22484
22485         docs: update cygwin progress
22486         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22487         this bug.
22488         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22489         Added in cygwin 1.7.2.
22490         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22491         Likewise.
22492         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22493         Likewise.
22494         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22495         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22496         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22497         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22498         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22499         Mention nproc module.
22500         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22501         bug in cygwin 1.7.5 addition.
22502         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22503         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22504         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22505         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22506         1.7.5.
22507         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22508         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22509         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22510         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22511         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22512         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22513         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22514         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22515         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22516         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22517         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22518         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22519         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22520         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22521         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22522         Likewise.
22523         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22524         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22525         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22526         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22527         Likewise.
22528         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22529         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22530         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22531         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22532         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22533         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22534         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22535         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22536         Likewise.
22537         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22538         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22539         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22540         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22541         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22542         Likewise.
22543         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22544         Likewise.
22545         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22546         Likewise.
22547         * doc/glibc-functions/xdrrec_endofrecord.texi
22548         (xdrrec_endofrecord): Likewise.
22549         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22550         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22551         Likewise.
22552         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22553         Likewise.
22554
22555 2010-05-04  Jim Meyering  <meyering@redhat.com>
22556
22557         gendocs.sh: make its "-s FILE" option more useful
22558         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22559         $PACKAGE to reflect the probably-different basename of "FILE".
22560
22561 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22562
22563         bootstrap: don't ignore download_po_files failure
22564         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22565         failure.
22566
22567 2010-05-03  Jim Meyering  <meyering@redhat.com>
22568
22569         maint.mk: allow to pass options to gendocs.sh
22570         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22571         (gendocs_options_): New overridable variable.
22572
22573         gnu-web-doc-update: don't ignore configure or build failure
22574         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22575
22576         announce-gen: backslash-escape '@'s in --help output
22577         * build-aux/announce-gen: Fix syntax errors.
22578
22579         maint.mk, announce-gen: allow project-specific announcement mail headers
22580         * top/maint.mk (translation_project_): Define default.
22581         (announcement_Cc_, announcement_mail_headers_): Likewise.
22582         (announcement): Invoke announce-gen with new --mail-headers option.
22583         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22584
22585         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22586         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22587         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22588         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22589         line in the "err2" output file when running "make check" in verbose
22590         mode (i.e., with set -x enabled).
22591
22592 2010-05-03  Bruno Haible  <bruno@clisp.org>
22593
22594         wctob: Fix for weird platforms.
22595         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22596         argument value.
22597
22598 2010-05-03  Jim Meyering  <meyering@redhat.com>
22599
22600         maint.mk: prohibit unwarranted use of <strings.h>
22601         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22602         strings.h in a file that does not also use strcasecmp, strncasecmp,
22603         ffs or ffsll.
22604
22605         maint.mk: remove obsolete comments
22606         * top/maint.mk: Remove stale, commented-out rules.
22607
22608 2010-05-02  Bruno Haible  <bruno@clisp.org>
22609
22610         wcwidth: Declare also when it's aliased.
22611         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22612         macro.
22613
22614 2010-05-02  Bruno Haible  <bruno@clisp.org>
22615
22616         Fix regression from 2010-04-25.
22617         * gnulib-tool (func_modules_transitive_closure): Check the status of
22618         all modules, not only of the tests that are of the form foo-tests where
22619         foo is a module.
22620
22621 2010-05-02  Bruno Haible  <bruno@clisp.org>
22622
22623         wctob: Work around nasty Cygwin 1.7.2 bug.
22624         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22625         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22626
22627 2010-05-01  Bruno Haible  <bruno@clisp.org>
22628
22629         fpurge: Sharper test.
22630         * tests/test-fpurge.c (main): Add one more ftell check.
22631         * modules/fpurge-tests (Depends-on): Add ftell.
22632         Suggested by Eric Blake.
22633
22634 2010-05-01  Bruno Haible  <bruno@clisp.org>
22635
22636         ftello: Another test.
22637         * tests/test-ftello3.c: New file.
22638         * modules/ftello-tests (Files): Add it.
22639         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22640         MOSTLYCLEANFILES.
22641
22642         ftell: Another test.
22643         * tests/test-ftell3.c: New file.
22644         * modules/ftell-tests (Files): Add it.
22645         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22646         MOSTLYCLEANFILES.
22647
22648 2010-05-01  Bruno Haible  <bruno@clisp.org>
22649
22650         ftell, ftello: Work around Solaris bug.
22651         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22652         * lib/ftello.c: Include stdio-impl.h.
22653         (ftello): On Solaris, when _IOWRT is set, compute the result without
22654         looking at _IOREAD.
22655         * modules/ftello (Files): Add lib/stdio-impl.h.
22656         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22657         * doc/posix-functions/ftello.texi: Likewise.
22658         Reported by Eric Blake.
22659
22660 2010-05-01  Bruno Haible  <bruno@clisp.org>
22661
22662         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22663         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22664         the _IOWRT flag is also set.
22665
22666 2010-05-01  Bruno Haible  <bruno@clisp.org>
22667
22668         Fix doc about a HP-UX stdio bug.
22669         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22670         * doc/posix-functions/ftello.texi: Likewise.
22671
22672 2010-05-01  Bruno Haible  <bruno@clisp.org>
22673
22674         lseek test: Fix failure on Solaris.
22675         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22676         output.
22677
22678 2010-04-30  Jim Meyering  <meyering@redhat.com>
22679
22680         bootstrap: don't ignore failure to generate po*/Makevars
22681         * build-aux/bootstrap (with_gettext): Don't ignore failure
22682         to create po/Makevars or runtime-po/Makevars.
22683
22684 2010-04-29  Eric Blake  <eblake@redhat.com>
22685
22686         headers: relax license to LGPLv2+
22687         * modules/fcntl-h (License): Relax license.
22688         * modules/getopt-posix (License): Likewise.
22689         * modules/locale (License): Likewise.
22690         * modules/math (License): Likewise.
22691         * modules/pty (License): Likewise.
22692         * modules/sched (License): Likewise.
22693         * modules/search (License): Likewise.
22694         * modules/spawn (License): Likewise.
22695         * modules/stdarg (License): Likewise.
22696         * modules/sysexits (License): Likewise.
22697
22698 2010-04-29  Jim Meyering  <meyering@redhat.com>
22699
22700         inttypes: relax license to LGPLv2+
22701         * modules/inttypes (License): Relax license.
22702
22703 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22704
22705         * top/maint.mk (indent): Run twice to produce idempotent results.
22706
22707 2010-04-28  Bruno Haible  <bruno@clisp.org>
22708
22709         getdate: Generate getdate.c in the source directory.
22710         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22711         MOSTLYCLEANFILES.
22712         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22713
22714 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22715
22716         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22717         is not declared as a const *; avoid warnings in that case.
22718
22719 2010-04-28  Eric Blake  <eblake@redhat.com>
22720
22721         canonicalize-lgpl: avoid compiler warning
22722         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22723         declaration' / 'extraneous semicolon' warning with some compilers.
22724         Reported by Andreas Gruenbacher.
22725
22726 2010-04-28  Jim Meyering  <meyering@redhat.com>
22727
22728         init.sh: ensure a more reliable exit status when exiting via trap
22729         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22730         Inspired by patches from Dmitry V. Levin.
22731         Also trap on signal 3 (SIGQUIT).
22732
22733 2010-04-27  Bruno Haible  <bruno@clisp.org>
22734
22735         Update doc about utimes().
22736         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22737         'utimens' module.
22738         Reported by Andreas Gruenbacher <agruen@suse.de>.
22739
22740 2010-04-27  Eric Blake  <eblake@redhat.com>
22741
22742         full-read, full-write: relax license
22743         * modules/full-read (License): Drop to LGPLv2+.
22744         * modules/full-write (License): Likewise.
22745         * modules/safe-read (License): Likewise.
22746         * modules/safe-write (License): Likewise.
22747
22748         pthread: mention library for linking
22749         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22750
22751 2010-04-27  Jim Meyering  <meyering@redhat.com>
22752
22753         maint.mk: fix a bug introduced in last change
22754         * top/maint.mk (gl_assured_headers_): Now that all names are on
22755         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22756         is not anchored to end of word, it should be adequate.
22757
22758         maint.mk: avoid side-effect in latest syntax-check
22759         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22760         to run commands via $(shell...), and hence to incur cost only when
22761         the new rule is actually run.
22762
22763         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22764         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22765         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22766         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22767         (gl_assured_headers_, az_, AZ_): Define.
22768         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22769
22770 2010-04-26  Jim Meyering  <jim@meyering.net>
22771             Bruno Haible  <bruno@clisp.org>
22772
22773         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22774         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22775         Prompted by an exchange with Gilles Espinasse.
22776
22777 2010-04-26  Jim Meyering  <meyering@redhat.com>
22778
22779         git-version-gen: aesthetic tweak
22780         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22781         so that the command remains on a single line.
22782
22783 2010-04-26  Eric Blake  <eblake@redhat.com>
22784
22785         git-version-gen: allow use on EBCDIC hosts
22786         * build-aux/git-version-gen (dirty): Use literal rather than tying
22787         ourselves to ascii.
22788         Reported by Steve Goetze.
22789
22790 2010-04-25  Bruno Haible  <bruno@clisp.org>
22791
22792         netdb: Add support for GNULIB_POSIXCHECK.
22793         * lib/netdb.in.h: Include warn-on-use.h.
22794         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22795         functions are used when GNULIB_POSIXCHECK is defined and the
22796         getaddrinfo module is not in use.
22797         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22798         freeaddrinfo, gai_strerror, getnameinfo are declared.
22799         * modules/netdb (Depends-on): Add warn-on-use.
22800         (Makefile.am): Include warn-on-use.h in netdb.h.
22801
22802 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22803
22804         build: avoid "make check" failure without .git/ directory
22805         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22806         there is no .git/ directory.
22807
22808 2010-04-25  Bruno Haible  <bruno@clisp.org>
22809
22810         ptsname: Fix misuse of ttyname_r.
22811         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22812         of errno.
22813
22814 2010-04-25  Bruno Haible  <bruno@clisp.org>
22815
22816         ttyname_r: Make it work on Solaris 10.
22817         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22818         if the system function has the POSIX declaration. Test whether the
22819         function fails if the buffer is less than 128 bytes large.
22820         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22821         system's ttyname_r function. Provide a reasonably large buffer.
22822         * modules/ttyname_r (Depends-on): Add extensions.
22823         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22824
22825 2010-04-25  Bruno Haible  <bruno@clisp.org>
22826
22827         Use the 'extensions' module for some more functions on Solaris.
22828         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22829         module.
22830         * doc/posix-functions/ctime_r.texi: Likewise.
22831         * doc/posix-functions/getgrgid_r.texi: Likewise.
22832         * doc/posix-functions/getgrnam_r.texi: Likewise.
22833         * doc/posix-functions/getpwnam_r.texi: Likewise.
22834         * doc/posix-functions/getpwuid_r.texi: Likewise.
22835         * doc/posix-functions/readdir_r.texi: Likewise.
22836         * doc/posix-functions/sigwait.texi: Likewise.
22837         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22838         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22839
22840 2010-04-25  Bruno Haible  <bruno@clisp.org>
22841
22842         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22843         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22844         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22845         * lib/ttyname_r.c: Include <limits.h>.
22846         (ttyname_r): Define using the system's ttyname_r function, if it exists
22847         and not on Solaris.
22848         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22849         set.
22850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22851         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22852         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22853         Reported by Simon Josefsson.
22854
22855 2010-04-25  Bruno Haible  <bruno@clisp.org>
22856
22857         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22858         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22859         * doc/posix-functions/ctime_r.texi: Likewise.
22860         * doc/posix-functions/getgrgid_r.texi: Likewise.
22861         * doc/posix-functions/getgrnam_r.texi: Likewise.
22862         * doc/posix-functions/getlogin_r.texi: Likewise.
22863         * doc/posix-functions/getpwnam_r.texi: Likewise.
22864         * doc/posix-functions/getpwuid_r.texi: Likewise.
22865         * doc/posix-functions/readdir_r.texi: Likewise.
22866         * doc/posix-functions/sigwait.texi: Likewise.
22867         * doc/posix-functions/ttyname_r.texi: Likewise.
22868         Reported by Simon Josefsson.
22869
22870 2010-04-25  Bruno Haible  <bruno@clisp.org>
22871
22872         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22873         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22874         also to --create-testdir.
22875         (func_acceptable): Don't consider the status of *-tests modules here.
22876         (func_modules_transitive_closure): Consider it here, before including a
22877         test module.
22878         (func_import, func_create_testdir): Set inc_all_direct_tests,
22879         inc_all_indirect_tests.
22880         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22881         --create-testdir and --create-megatestdir.
22882
22883 2010-04-25  Bruno Haible  <bruno@clisp.org>
22884
22885         gnulib-tool: Add --without-*-tests options.
22886         * gnulib-tool (func_usage): Document the --without-*-tests options.
22887         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22888         excl_unportable_tests): New variables.
22889         Fail if they are specified with --import or --update.
22890         (func_acceptable): Respect the excl_*_tests variables.
22891         (func_import): Set the excl_*_tests variables to empty.
22892
22893 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22894             Bruno Haible  <bruno@clisp.org>
22895
22896         Work around a MacOS X 10.4 bug with openpty.
22897         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22898         * tests/test-openpty.c (main): Close the master side explicitly.
22899
22900 2010-04-25  Bruno Haible  <bruno@clisp.org>
22901
22902         strnlen: Fix a C++ test error on MacOS X and Solaris.
22903         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22904         the function is not declared.
22905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22906         Simon Josefsson.
22907
22908 2010-04-24  Bruno Haible  <bruno@clisp.org>
22909
22910         Avoid a gcc warning.
22911         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22912         of correct type for %08lx directive.
22913         Reported by Eric Blake.
22914
22915 2010-04-24  Bruno Haible  <bruno@clisp.org>
22916
22917         vasnprintf: Correct errno value in case of out-of-memory.
22918         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22919         or sprintf. Use the errno value from SNPRINTF or sprintf.
22920         Reported by Ian Beckwith <ianb@erislabs.net>.
22921
22922 2010-04-24  Bruno Haible  <bruno@clisp.org>
22923
22924         ansi-c++-opt: Find correct compiler when cross-compiling.
22925         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22926         AC_CHECK_PROGS.
22927         Reported by Simon Josefsson.
22928
22929 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22930
22931         vc-list-files: Add support for subversion
22932         * build-aux/vc-list-files: Use "svn list" to generate the list of
22933         files controlled by subversion.
22934
22935 2010-04-23  Jim Meyering  <meyering@redhat.com>
22936
22937         vc-list-files tests: convert to use init.sh
22938         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22939         path_prepend_.
22940         Use Exit, not exit.
22941         Use skip_ rather than open coding it.
22942         Remove trap set-up and compare definitions.
22943         * tests/test-vc-list-files-git.sh: Likewise.
22944         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22945
22946 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22947
22948         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22949         backup files.
22950
22951 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22952
22953         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22954
22955 2010-04-20  Eric Blake  <eblake@redhat.com>
22956
22957         tests: be robust to ignored SIGPIPE
22958         * tests/test-select-in.sh: Consume all output.
22959         * tests/test-lseek.sh: Check correct exit status, while avoiding
22960         EPIPE.
22961
22962 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22963             Bruno Haible  <bruno@clisp.org>
22964
22965         visibility: Don't use -fvisibility if it leads to a warning.
22966         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22967         yes, don't pretend that visibility works if it leads to a warning.
22968         Reported by Mike Gran <spk121@yahoo.com>.
22969
22970 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22971
22972         * build-aux/bootstrap: Use "git -h" for testing for supported options
22973         instead of "git --help".  The short-form option only shows a summary,
22974         and doesn't layout the full man page.  Grep for the full option name
22975         in the summary, too.
22976
22977 2010-04-19  Bruno Haible  <bruno@clisp.org>
22978
22979         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22980         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22981         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22982         mention of RELOCATABLE_STRIP.
22983         Reported by Sylvain Beucler <beuc@beuc.net>.
22984
22985 2010-04-19  Bruno Haible  <bruno@clisp.org>
22986
22987         * lib/diffseq.h: Fix typo in comment.
22988         Reported by Eric Blake.
22989
22990 2010-04-19  Bruno Haible  <bruno@clisp.org>
22991
22992         ioctl: Move autoconf macro to a .m4 file.
22993         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22994         * modules/ioctl (Files): Add it.
22995         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22996         Reported by Ian Beckwith <ianb@erislabs.net>.
22997
22998 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22999             Bruno Haible  <bruno@clisp.org>
23000
23001         diffseq: Accommodate use-case with abstract arrays.
23002         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23003         is not defined.
23004         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23005         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23006
23007 2010-04-18  Bruno Haible  <bruno@clisp.org>
23008
23009         * doc/posix-headers/stdbool.texi: More precise wording.
23010
23011 2010-04-17  Jim Meyering  <meyering@redhat.com>
23012
23013         maint.mk: use gnu-style indentation in an embedded perl script
23014         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23015         Rename variable: s/two/last_two_bytes/
23016
23017 2010-04-16  Eric Blake  <eblake@redhat.com>
23018
23019         test-stdbool: skip test that fails with Solaris CC
23020         * tests/test-stdbool.c (f): Skip test that causes compilation
23021         error under buggy C++ compiler.
23022         * lib/stdbool.in.h: Document the limitation.
23023         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23024
23025         setenv: allow compilation with C++
23026         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23027         register keyword.
23028
23029         stdint: allow test to pass with C++
23030         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23031
23032         getopt: allow compilation with C++
23033         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23034         struct.
23035         * lib/getopt.c (_getopt_internal_r): Use correct type.
23036         Reported by Dagobert Michelson, via Joel E. Denny.
23037
23038 2010-04-16  Bruno Haible  <bruno@clisp.org>
23039
23040         Override netdb.h always.
23041         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23042         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23043         Reported by Ludovic Courtès <ludo@gnu.org>.
23044
23045 2010-04-15  Bruno Haible  <bruno@clisp.org>
23046
23047         openpty: Fix mistake from 2010-03-21.
23048         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23049         Reported by Simon Josefsson.
23050
23051 2010-04-15  Eric Blake  <eblake@redhat.com>
23052
23053         test-forkpty: fix expected signature
23054         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23055         Reported by Simon Josefsson.
23056
23057 2010-04-15  Jim Meyering  <meyering@redhat.com>
23058
23059         maint.mk: texinfo_suffix_re_: correct the default regexp
23060         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23061
23062         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23063         make it configurable via texinfo_suffix_re_.
23064
23065 2010-04-14  Eric Blake  <eblake@redhat.com>
23066
23067         strtok_r: relax license to LGPLv2+
23068         * modules/strtok_r (License): Relax license.
23069         Reported by Matthias Bolte.
23070
23071 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23072
23073         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23074         version 1.4.4 by default instead of requiring the libgcrypt
23075         version used during build.  This makes it possible to use the
23076         application with older but still binary compatible libgcrypt
23077         versions.
23078
23079 2010-04-13  Eric Blake  <eblake@redhat.com>
23080
23081         getopt-gnu: match recent glibc fixes and posix ruling
23082         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23083         '+' handling, when requesting extensions.
23084         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23085         'W;' handling.
23086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23087         * doc/posix-functions/getopt.texi (getopt): Document this.
23088         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23089         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23090         Likewise.
23091
23092         getopt: merge bug fixes from glibc
23093         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23094         diagnostics.  Honor '+:' correctly.  Reject ';'.
23095
23096         getopt-posix: detect MacOS bug
23097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23098         optind when missing a required argument.
23099         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23100         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23101         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23102         Likewise.
23103
23104         getopt-posix: avoid spurious failure on Solaris
23105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23106         an indicator that setting optind=1 is sufficient for reset.
23107
23108         getopt-posix: avoid spurious failure on FreeBSD
23109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23110         in POSIX mode, since the m4 test uses it.
23111
23112         gnulib-tool: silence warning on BSD sh
23113         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23114
23115 2010-04-13  Jim Meyering  <meyering@redhat.com>
23116
23117         doc: users.txt: GNU patch now uses gnulib
23118         * users.txt: Add patch.
23119
23120 2010-04-12  Jim Meyering  <meyering@redhat.com>
23121
23122         maint.mk: generate more concise timing data for syntax-check rules
23123         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23124         " done" from each line that reports a syntax-check test duration.
23125
23126 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23127
23128         git-version-gen: use "git update-index..." rather than "git status"
23129         * build-aux/git-version-gen: Use git update-index --refresh, not
23130         "git status".  With some versions of git, "git status" would fail
23131         to update the index and result in an unwarranted "-dirty" suffix.
23132
23133 2010-04-11  Jim Meyering  <meyering@redhat.com>
23134
23135         openat: correct formatting (no semantic change)
23136         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23137         Suggested by Bruno Haible.
23138
23139 2010-04-11  Bruno Haible  <bruno@clisp.org>
23140
23141         Stricter declaration checking in testdirs.
23142         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23143         If for_tests is true, augment AM_CPPFLAGS to define
23144         GNULIB_STRICT_CHECKING.
23145         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23146         GNULIB_STRICT_CHECKING is defined, verify that the function is
23147         declared.
23148
23149 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23150             Bruno Haible  <bruno@clisp.org>
23151
23152         libunistring: Improve configure output.
23153         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23154         Don't say "consider installing GNU libunistring" when checking again
23155         with libiconv.
23156
23157 2010-04-11  Bruno Haible  <bruno@clisp.org>
23158
23159         libunistring: Correct value of $LTLIBUNISTRING.
23160         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23161         correct the value of $LTLIBUNISTRING.
23162
23163 2010-04-11  Bruno Haible  <bruno@clisp.org>
23164
23165         havelib: Add static libraries to LIBS in the right order.
23166         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23167         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23168
23169 2010-04-11  Bruno Haible  <bruno@clisp.org>
23170
23171         libunistring: Detect libunistring also when it depends on libiconv.
23172         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23173         the second AC_LIB_HAVE_LINKFLAGS invocation.
23174
23175 2010-04-11  James Youngman  <jay@gnu.org>
23176
23177         close-stream: declare local scalars to be "const"
23178         * lib/close-stream.c (close_stream): Make boolean variables const
23179         to document the fact that we set but do not change them.
23180
23181 2010-04-11  Bruno Haible  <bruno@clisp.org>
23182
23183         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23184
23185 2010-04-11  Jim Meyering  <meyering@redhat.com>
23186
23187         maint.mk: don't include dist-check.mk
23188         * top/maint.mk: Remove bogus include directive.
23189
23190         maint.mk: improve empty-line-at-EOF check
23191         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23192         solution, rather than tail+Perl-based one.  The latter would read
23193         a few kilobytes from the end of each file, and did not handle empty
23194         files properly.
23195
23196         maint.mk: print the elapsed time for each syntax-check rule
23197         * top/maint.mk (sc_m_rules_): Save start time in a file.
23198         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23199         (local-check): Interpose the .z rules
23200
23201 2010-04-11  Jim Meyering  <meyering@redhat.com>
23202
23203         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23204         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23205         empty file with one that ends in an empty line.
23206
23207 2010-04-10  Bruno Haible  <bruno@clisp.org>
23208
23209         mkdir: Make it work on mingw64.
23210         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23211         * lib/mkdir.c: Update comment.
23212         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23213
23214 2010-04-10  Bruno Haible  <bruno@clisp.org>
23215
23216         Don't override improved macro from newer autoconf.
23217         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23218         autoconf >= 2.62.
23219         Reported by Joel E. Denny <jdenny@clemson.edu>.
23220
23221 2010-04-10  Jim Meyering  <meyering@redhat.com>
23222
23223         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23224         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23225
23226         maint.mk: correct a diagnostic
23227         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23228         in diagnostic; now use $prohibit.
23229
23230 2010-04-10  Bruno Haible  <address@hidden>
23231
23232         fchownat: Fix a C++ test error on Solaris 8.
23233         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23234         the function does not exist.
23235
23236 2010-04-10  Bruno Haible  <bruno@clisp.org>
23237
23238         vasnprintf: Add more tests.
23239         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23240         (test_function): Test converting an invalid wide string.
23241
23242         vasnprintf: Correct handling of unconvertible wide string arguments.
23243         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23244         VASNPRINTF.
23245         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23246         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23247         smaller than the expected maximum need for the directive. Set errno to
23248         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23249         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23251         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23252         * modules/vasnprintf (Files): Add m4/printf.m4.
23253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23254
23255 2010-04-10  Bruno Haible  <bruno@clisp.org>
23256
23257         vasnprintf: Fix crash in %ls directive.
23258         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23259         string is passed as argument to %ls, with no precision and no width.
23260         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23261
23262 2010-04-10  Bruno Haible  <bruno@clisp.org>
23263
23264         vasnprintf: Fix multiple test failures on mingw.
23265         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23266         _snprintf, or snwprintf, not _snwprintf.
23267
23268 2010-04-10  Bruno Haible  <bruno@clisp.org>
23269
23270         write: Fix a C++ test error on mingw.
23271         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23272
23273 2010-04-10  Bruno Haible  <bruno@clisp.org>
23274
23275         vasnprintf test: Reduce code duplication.
23276         * tests/test-vasnprintf.c (test_function): New function, extracted from
23277         test_vasnprintf.
23278         (test_vasnprintf, test_asnprintf): Invoke it.
23279
23280 2010-04-10  Bruno Haible  <bruno@clisp.org>
23281
23282         strnlen: Fix warning in C++ mode on MacOS X.
23283         * lib/string.in.h (strnlen): Use the modern idiom.
23284         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23285         defining strnlen as a macro already in <config.h>.
23286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23287         REPLACE_STRNLEN.
23288         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23289         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23290
23291 2010-04-08  James Youngman  <jay@gnu.org>
23292
23293         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23294         the example.
23295
23296 2010-04-09  Jim Meyering  <meyering@redhat.com>
23297
23298         maint.mk: print better diagnostic when there is no $(_hv_file)
23299         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23300         announce that when $(_hv_file) (aka help-version) does not exist.
23301
23302         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23303         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23304         not try to interpret its random input bytes.  Jarno Rajahalme reported
23305         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23306         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23307         (mktempd_): Likewise, just in case.
23308
23309         ftruncate: add two years to projected module removal date: 2012
23310         * m4/ftruncate.m4: Adjust comments.
23311
23312         ftruncate: mark module as obsolete; even MinGW provides it, now
23313         * modules/ftruncate (Status): Obsolete.
23314         (Notice): Say that.
23315         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23316         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23317
23318 2010-04-08  Bruno Haible  <bruno@clisp.org>
23319
23320         Fix side effects from tests-related modules.
23321         * modules/dprintf-posix (Comment): New section.
23322         * modules/fprintf-posix (Comment): Likewise.
23323         * modules/obstack-printf-posix (Comment): Likewise.
23324         * modules/printf-posix (Comment): Likewise.
23325         * modules/snprintf-posix (Comment): Likewise.
23326         * modules/sprintf-posix (Comment): Likewise.
23327         * modules/vasnprintf-posix (Comment): Likewise.
23328         * modules/vasprintf-posix (Comment): Likewise.
23329         * modules/vdprintf-posix (Comment): Likewise.
23330         * modules/vfprintf-posix (Comment): Likewise.
23331         * modules/vprintf-posix (Comment): Likewise.
23332         * modules/vsnprintf-posix (Comment): Likewise.
23333         * modules/vsprintf-posix (Comment): Likewise.
23334         * modules/xprintf-posix (Comment): Likewise.
23335         * modules/xvasprintf-posix (Comment): Likewise.
23336         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23337         * modules/floorf-tests (Depends-on): Likewise.
23338         * modules/round-tests (Depends-on): Likewise.
23339         * modules/roundf-tests (Depends-on): Likewise.
23340         * modules/trunc-tests (Depends-on): Likewise.
23341         * modules/truncf-tests (Depends-on): Likewise.
23342         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23343         'fprintf-posix' module is not present.
23344         * tests/test-floorf2.c (check): Likewise.
23345         * tests/test-trunc2.c (check): Likewise.
23346         * tests/test-truncf2.c (check): Likewise.
23347         * tests/test-round2.c (equal): Likewise.
23348         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23349
23350 2010-04-07  Karl Berry  <karl@gnu.org>
23351
23352         * config/srclist.txt,
23353         * config/srclistvars.sh,
23354         * config/srclist-update: doc fixes.
23355
23356 2010-04-07  Jim Meyering  <meyering@redhat.com>
23357
23358         maint.mk: add a PATH crosschecking syntax-check rule
23359         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23360         Useful if you use a test like the one in help-version (coreutils,
23361         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23362         printed by prog --version.
23363
23364 2010-04-06  Bruno Haible  <bruno@clisp.org>
23365
23366         Fix link error on mingw.
23367         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23368         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23369
23370 2010-04-06  Bruno Haible  <bruno@clisp.org>
23371
23372         Assume rmdir exists.
23373         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23374
23375 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23376
23377         doc: update users.txt
23378         * users.txt: Add gcal.
23379
23380 2010-04-06  Jim Meyering  <meyering@redhat.com>
23381
23382         init.sh: simply unset TMPDIR rather than risking env -i
23383         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23384         although it probably works fine on all Unix-based systems, some
23385         systems (Cygwin?) cannot tolerate a totally cleared environment.
23386         Suggestion from Eric Blake.
23387
23388 2010-04-06  Jim Meyering  <meyering@redhat.com>
23389
23390         init.sh: portability fix: use env's POSIX-specified -i option not -u
23391         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23392         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23393
23394 2010-04-05  Bruno Haible  <bruno@clisp.org>
23395
23396         btowc: Work around Cygwin 1.7.2 bug.
23397         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23398         does not map NUL to 0.
23399         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23400
23401 2010-04-05  Bruno Haible  <bruno@clisp.org>
23402
23403         Make the multithread modules work on Cygwin 1.7.2.
23404         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23405         imported symbols can be declared weak, so that it returns "no" on
23406         Cygwin 1.7.2.
23407
23408 2010-04-05  Bruno Haible  <bruno@clisp.org>
23409
23410         Use the module 'strncat'.
23411         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23412
23413         Tests for module 'strncat'.
23414         * modules/strncat-tests: New file.
23415         * tests/test-strncat.c: New file.
23416
23417         New module 'strncat'.
23418         * lib/string.in.h (strncat): New declaration.
23419         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23420         * m4/strncat.m4: New file, based on m4/memchr.m4.
23421         * modules/strncat: New file.
23422         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23423         is declared.
23424         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23425         REPLACE_STRNCAT.
23426         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23427         REPLACE_STRNCAT.
23428         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23429         module.
23430         * tests/test-string-c++.cc: Check signature of strncat.
23431
23432 2010-04-05  Jim Meyering  <meyering@redhat.com>
23433
23434         xstrtoumax-tests: convert to use init.sh
23435         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23436         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23437         Use Exit, not exit.
23438         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23439
23440         xstrtoimax-tests: convert to use init.sh
23441         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23442         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23443         Use Exit, not exit.
23444         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23445
23446 2010-04-05  Bruno Haible  <bruno@clisp.org>
23447
23448         sys_socket: Avoid #define replacements in C++ mode.
23449         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23450         warning to the function if possible, rather than #defining the symbol
23451         to a dysfunctional alias.
23452
23453 2010-04-05  Bruno Haible  <bruno@clisp.org>
23454
23455         fseeko: Fix C++ test error on mingw.
23456         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23457         gl_FUNC_FSEEKO.
23458         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23459         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23460         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23461         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23462
23463 2010-04-05  Bruno Haible  <bruno@clisp.org>
23464
23465         duplocale: Improve test output.
23466         * tests/test-duplocale.c (main): Print reason for skipped test.
23467
23468 2010-04-05  Bruno Haible  <bruno@clisp.org>
23469
23470         Assume rmdir exists.
23471         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23472         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23473
23474 2010-04-05  Bruno Haible  <bruno@clisp.org>
23475
23476         Fix link error on Solaris 8 with cc.
23477         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23478
23479 2010-04-05  Bruno Haible  <bruno@clisp.org>
23480
23481         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23482         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23483
23484 2010-04-05  Bruno Haible  <bruno@clisp.org>
23485
23486         vasprintf: Update documentation.
23487         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23488
23489 2010-04-05  Bruno Haible  <bruno@clisp.org>
23490
23491         ptsname: Improve test.
23492         * tests/test-ptsname.c (main): Also try the various master names of BSD
23493         systems.
23494
23495 2010-04-05  Bruno Haible  <bruno@clisp.org>
23496
23497         memchr: Avoid a possible C++ test error.
23498         * lib/string.in.h (memchr): Provide declaration if function is missing.
23499         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23500         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23502         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23503
23504 2010-04-05  Bruno Haible  <bruno@clisp.org>
23505
23506         strtok_r: Improve idiom.
23507         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23508         AC_LIBOBJ is used.
23509
23510 2010-04-05  Bruno Haible  <bruno@clisp.org>
23511
23512         strdup: Improve idiom.
23513         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23514         AC_LIBOBJ is used.
23515         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23516         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23517         when AC_LIBOBJ is used.
23518
23519 2010-04-05  Bruno Haible  <bruno@clisp.org>
23520
23521         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23522         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23523         don't set REPLACE_MBSINIT to 1.
23524         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23525         don't set REPLACE_MBRTOWC to 1.
23526         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23527         exist, don't set REPLACE_MBSRTOWCS to 1.
23528         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23529         exist, don't set REPLACE_MBSNRTOWCS to 1.
23530         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23531         don't set REPLACE_WCRTOMB to 1.
23532         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23533         exist, don't set REPLACE_WCSRTOMBS to 1.
23534         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23535         exist, don't set REPLACE_WCSNRTOMBS to 1.
23536
23537 2010-04-05  Bruno Haible  <bruno@clisp.org>
23538
23539         ldexpl: Improve idiom.
23540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23541         make sure to set HAVE_DECL_LDEXPL to 0.
23542
23543 2010-04-05  Jim Meyering  <meyering@redhat.com>
23544
23545         xstrtol-tests: convert to use init.sh
23546         * modules/xstrtol-tests (Files): Add tests/init.sh.
23547         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23548         Use Exit, not exit.
23549         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23550
23551         atexit-tests: convert to use init.sh
23552         * modules/atexit-tests (Files): Add tests/init.sh.
23553         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23554         Use Exit, not exit.
23555         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23556
23557         init.sh: fix typo
23558         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23559
23560         init.sh: make it easier for a test script to write to the tty, ...
23561         when using automake's parallel-tests mode.
23562         * tests/init.sh (stderr_fileno_): Define overridable variable.
23563         (warn_): New function, to use it.
23564         (fail_, skip_, framework_failure_): Use warn_.
23565
23566 2010-04-04  Bruno Haible  <bruno@clisp.org>
23567
23568         btowc: Avoid warning.
23569         * lib/btowc.c: Include <stdlib.h>.
23570         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23571
23572 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23573             Bruno Haible  <bruno@clisp.org>
23574
23575         wchar: Port to NetBSD 1.5.
23576         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23577         * lib/wctype.in.h (WEOF): Likewise.
23578
23579 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23580             Bruno Haible  <bruno@clisp.org>
23581
23582         Port extended stdio to NetBSD 1.5.
23583         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23584         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23585         older.
23586
23587 2010-04-04  Bruno Haible  <bruno@clisp.org>
23588
23589         string: Remove unused substitution.
23590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23591         HAVE_DECL_STRERROR.
23592         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23593
23594 2010-04-04  Bruno Haible  <bruno@clisp.org>
23595
23596         strtod: Avoid a possible C++ test error.
23597         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23598         set REPLACE_STRTOD.
23599
23600 2010-04-04  Bruno Haible  <bruno@clisp.org>
23601
23602         strerror: Update documentation.
23603         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23604
23605 2010-04-04  Bruno Haible  <bruno@clisp.org>
23606
23607         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23608         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23609         _GL_CXXALIAS_SYS_CAST.
23610
23611 2010-04-04  Bruno Haible  <bruno@clisp.org>
23612
23613         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23614         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23615         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23616         REPLACE_FREXPL to 1.
23617         * doc/posix-functions/frexpl.texi: Update documentation.
23618
23619 2010-04-04  Bruno Haible  <bruno@clisp.org>
23620
23621         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23622         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23623
23624 2010-04-04  Bruno Haible  <bruno@clisp.org>
23625
23626         Implement nanosleep for native Windows.
23627         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23628
23629 2010-04-04  Bruno Haible  <bruno@clisp.org>
23630
23631         math: Fix some C++ test errors on Solaris 8.
23632         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23633
23634 2010-04-04  Bruno Haible  <bruno@clisp.org>
23635
23636         math: Fix some C++ test errors on Cygwin.
23637         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23638         truncl): Provide declaration if the system does not have it.
23639         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23640         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23641         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23642         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23643         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23644         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23645         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23646         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23647         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23648         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23649         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23650         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23651         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23652         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23653         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23654         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23656         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23657         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23658         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23659         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23660         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23661
23662 2010-04-04  Bruno Haible  <bruno@clisp.org>
23663
23664         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23665         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23666         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23667         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23668         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23669         * m4/isinf.m4 (gl_ISINF): Likewise.
23670         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23671
23672 2010-04-04  Bruno Haible  <bruno@clisp.org>
23673
23674         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23675         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23676
23677 2010-04-04  Bruno Haible  <bruno@clisp.org>
23678
23679         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23680         * modules/tmpfile (configure.ac): Update.
23681
23682         tmpfile: Fix C++ test error on mingw.
23683         * lib/stdio.in.h (tmpfile): New declaration.
23684         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23685         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23686         * modules/tmpfile (Depends-on): Add stdio.
23687         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23688         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23689         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23690         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23691         REPLACE_TMPFILE.
23692         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23693
23694 2010-04-04  Bruno Haible  <bruno@clisp.org>
23695
23696         ioctl: Fix C++ test error on mingw.
23697         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23698         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23699         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23700
23701 2010-04-03  Bruno Haible  <bruno@clisp.org>
23702
23703         wcwidth: Fix C++ test error on mingw.
23704         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23706         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23707
23708 2010-04-03  Bruno Haible  <bruno@clisp.org>
23709
23710         nanosleep: Fix C++ test error on mingw.
23711         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23712         * lib/time.in.h (nanosleep): Use modern idiom.
23713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23714         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23715         REPLACE_NANOSLEEP to 1.
23716         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23717         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23718
23719 2010-04-03  Bruno Haible  <bruno@clisp.org>
23720
23721         strptime: Fix C++ test error on mingw.
23722         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23723         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23724         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23725         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23726         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23727         not REPLACE_STRPTIME.
23728         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23729         REPLACE_STRPTIME.
23730
23731 2010-04-03  Bruno Haible  <bruno@clisp.org>
23732
23733         timegm: Fix C++ test error on mingw.
23734         * lib/time.in.h (timegm): Use modern idiom.
23735         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23736         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23737         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23738         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23739
23740 2010-04-03  Bruno Haible  <bruno@clisp.org>
23741
23742         timegm: Assume declaration if function exists.
23743         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23744         if it exists. Don't clobber ac_cv_func_timegm.
23745
23746 2010-04-03  Bruno Haible  <bruno@clisp.org>
23747
23748         time_r: Fix C++ test error on mingw.
23749         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23750         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23751         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23752         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23753         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23754
23755 2010-04-03  Bruno Haible  <bruno@clisp.org>
23756
23757         time_r: Minor updates.
23758         * modules/time_r (Description): Mention the provided functions.
23759         * lib/time_r.c: Don't include <string.h>.
23760         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23761         * doc/posix-functions/localtime_r.texi: Likewise.
23762
23763 2010-04-03  Bruno Haible  <bruno@clisp.org>
23764
23765         time: Fix regression introduced on 2010-03-08.
23766         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23767         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23768
23769 2010-04-03  Jim Meyering  <meyering@redhat.com>
23770
23771         maint.mk: don't silently disable project-specific syntax-check rules
23772         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23773         that they need to convert their project-specific syntax-check rules
23774         to use the new _sc_search_regexp.
23775
23776 2010-04-03  Bruno Haible  <bruno@clisp.org>
23777
23778         fchdir: Fix regression introduced on 2010-03-08.
23779         * lib/unistd.in.h (fchdir): Fix declaration.
23780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23782         REPLACE_FCHDIR.
23783         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23784         REPLACE_FCHDIR.
23785
23786 2010-04-03  Bruno Haible  <bruno@clisp.org>
23787
23788         getpagesize: Fix C++ test error on mingw.
23789         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23790         system does not declare the function.
23791         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23792         declared.
23793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23794         HAVE_DECL_GETPAGESIZE.
23795         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23796
23797 2010-04-03  Bruno Haible  <bruno@clisp.org>
23798
23799         stdio: Make C++ tests work on mingw.
23800         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23801         does not declare the function.
23802
23803 2010-04-03  Bruno Haible  <bruno@clisp.org>
23804
23805         ftello: Fix C++ test error on mingw.
23806         * lib/stdio.in.h (ftello): Use modern idiom.
23807         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23808         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23809         is missing and that it needs to be replaced.
23810         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23812         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23813
23814 2010-04-03  Bruno Haible  <bruno@clisp.org>
23815
23816         fseeko: Fix C++ test error on mingw.
23817         * lib/stdio.in.h (fseeko): Use modern idiom.
23818         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23820         is missing and that it needs to be replaced.
23821         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23823         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23824
23825 2010-04-03  Bruno Haible  <bruno@clisp.org>
23826
23827         mkstemp: Fix C++ test error on mingw.
23828         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23829         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23830         function is missing and that it needs to be replaced.
23831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23832         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23833
23834 2010-04-03  Bruno Haible  <bruno@clisp.org>
23835
23836         stpncpy: Fix C++ test error on mingw.
23837         * lib/string.in.h (stpncpy): Use modern idiom.
23838         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23839         function is missing and that it needs to be replaced.
23840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23841         REPLACE_STPNCPY.
23842         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23843
23844 2010-04-03  Bruno Haible  <bruno@clisp.org>
23845
23846         sys_stat: Fix C++ test error on mingw.
23847         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23848         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23849
23850 2010-04-03  Bruno Haible  <bruno@clisp.org>
23851
23852         pty: Update doc.
23853         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23854
23855 2010-04-03  Bruno Haible  <bruno@clisp.org>
23856
23857         unistd: Fix C++ test error on mingw.
23858         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23859
23860 2010-04-03  Bruno Haible  <bruno@clisp.org>
23861
23862         Update doc regarding mingw.
23863         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23864         * doc/glibc-functions/login_tty.texi: Likewise.
23865         * doc/glibc-functions/forkpty.texi: Likewise.
23866
23867 2010-04-03  Bruno Haible  <bruno@clisp.org>
23868
23869         stdlib: Avoid compilation failure of c-strtold on mingw.
23870         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23871
23872 2010-04-03  Bruno Haible  <bruno@clisp.org>
23873
23874         locale: Make C++ tests work on Cygwin and mingw.
23875         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23876         cannot provide the function.
23877         Reported by Simon Josefsson.
23878
23879 2010-04-03  Bruno Haible  <bruno@clisp.org>
23880
23881         localename: Port to MacOS X 10.6.
23882         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23883         memory layout of the locales in MacOS X 10.6 as well.
23884         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23885
23886 2010-04-02  Bruno Haible  <bruno@clisp.org>
23887
23888         gnulib-tool: Ensure that long-running tests are executed last.
23889         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23890         running tests after the one for the other tests.
23891
23892 2010-04-02  Bruno Haible  <bruno@clisp.org>
23893
23894         gnulib-tool: Ensure the tests in the main directory are executed first.
23895         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23896         start with the current directory.
23897
23898 2010-04-02  Bruno Haible  <bruno@clisp.org>
23899
23900         Tests for module 'havelib', moved here from GNU gettext.
23901         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23902         modifications.
23903         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23904         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23905         with modifications.
23906         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23907         modifications.
23908         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23909         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23910         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23911         with modifications.
23912         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23913         with modifications.
23914         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23915         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23916         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23917         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23918         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23919         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23920         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23921         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23922         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23923         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23924         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23925         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23926         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23927         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23928         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23929         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23930         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23931         with modifications.
23932         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23933         with modifications.
23934         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23935         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23936         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23937         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23938         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23939         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23940         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23941         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23942         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23943         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23944         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23945         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23946         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23947         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23948         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23949         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23950         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23951         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23952         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23953         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23954         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23955         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23956         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23957         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23958         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23959         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23960         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23961         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23962         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23963         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23964         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23965         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23966         * tests/havelib/rpathx/rpathx.c: New file, from
23967         gettext/autoconf-lib-link.
23968         * tests/havelib/rpathx/Makefile.am: New file, from
23969         gettext/autoconf-lib-link.
23970         * tests/havelib/rpathx/configure.ac: New file, from
23971         gettext/autoconf-lib-link with modifications.
23972         * tests/havelib/rpathy/rpathy.c: New file, from
23973         gettext/autoconf-lib-link.
23974         * tests/havelib/rpathy/Makefile.am: New file, from
23975         gettext/autoconf-lib-link.
23976         * tests/havelib/rpathy/configure.ac: New file, from
23977         gettext/autoconf-lib-link with modifications.
23978         * tests/havelib/rpathz/rpathz.c: New file, from
23979         gettext/autoconf-lib-link.
23980         * tests/havelib/rpathz/Makefile.am: New file, from
23981         gettext/autoconf-lib-link.
23982         * tests/havelib/rpathz/configure.ac: New file, from
23983         gettext/autoconf-lib-link with modifications.
23984         * tests/havelib/rpathlx/usex.c: New file, from
23985         gettext/autoconf-lib-link.
23986         * tests/havelib/rpathlx/Makefile.am: New file, from
23987         gettext/autoconf-lib-link.
23988         * tests/havelib/rpathlx/configure.ac: New file, from
23989         gettext/autoconf-lib-link with modifications.
23990         * tests/havelib/rpathly/usey.c: New file, from
23991         gettext/autoconf-lib-link.
23992         * tests/havelib/rpathly/Makefile.am: New file, from
23993         gettext/autoconf-lib-link.
23994         * tests/havelib/rpathly/configure.ac: New file, from
23995         gettext/autoconf-lib-link with modifications.
23996         * tests/havelib/rpathlz/usez.c: New file, from
23997         gettext/autoconf-lib-link.
23998         * tests/havelib/rpathlz/Makefile.am: New file, from
23999         gettext/autoconf-lib-link.
24000         * tests/havelib/rpathlz/configure.ac: New file, from
24001         gettext/autoconf-lib-link with modifications.
24002         * tests/havelib/rpathlyx/usey.c: New file, from
24003         gettext/autoconf-lib-link.
24004         * tests/havelib/rpathlyx/Makefile.am: New file, from
24005         gettext/autoconf-lib-link.
24006         * tests/havelib/rpathlyx/configure.ac: New file, from
24007         gettext/autoconf-lib-link with modifications.
24008         * tests/havelib/rpathlzyx/usez.c: New file, from
24009         gettext/autoconf-lib-link.
24010         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24011         gettext/autoconf-lib-link.
24012         * tests/havelib/rpathlzyx/configure.ac: New file, from
24013         gettext/autoconf-lib-link with modifications.
24014         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24015         with modifications.
24016
24017 2010-04-02  Bruno Haible  <bruno@clisp.org>
24018
24019         gnulib-tool: Create distributed built sources also for the tests.
24020         * gnulib-tool (func_create_testdir): Also generate distributed built
24021         sources in the tests directory.
24022
24023 2010-04-02  Bruno Haible  <bruno@clisp.org>
24024
24025         gnulib-tool: Obey user's environment variables.
24026         * gnulib-tool (func_create_testdir): When creating built sources,
24027         respect the environment variables for autoconf, automake, etc. given by
24028         the user.
24029
24030 2010-04-02  Bruno Haible  <bruno@clisp.org>
24031
24032         gnulib-tool: Provide the value of --m4-base to modules.
24033         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24034         of gl_m4_base.
24035
24036 2010-04-02  Eric Blake  <eblake@redhat.com>
24037
24038         maint.mk: fix some fallout
24039         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24040         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24041
24042 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24043
24044         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24045         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24046         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24047         (sc_cast_of_x_alloc_return_value): Likewise.
24048         (sc_cast_of_alloca_return_value): Likewise.
24049         (sc_space_tab): Likewise.
24050         (sc_prohibit_atoi_atof): Likewise.
24051         (sc_prohibit_magic_number_exit): Likewise.
24052         (sc_error_exit_success): Likewise.
24053         (sc_file_system): Likewise.
24054         (sc_prohibit_have_config_h): Likewise.
24055         (sc_require_config_h): Likewise.
24056         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24057         (sc_obsolete_symbols): Likewise.
24058         (sc_changelog): Likewise.
24059         (sc_program_name): Likewise.
24060         (sc_the_the): Likewise.
24061         (sc_trailing_blank): Likewise.
24062         (sc_two_space_separator_in_usage): Likewise.
24063         (sc_useless_cpp_parens): Likewise.
24064         (sc_GPL_version): Likewise.
24065         (sc_GFDL_version): Likewise.
24066         (sc_texinfo_acronym): Likewise.
24067         (sc_prohibit_cvs_keyword): Likewise.
24068         (sc_prohibit_stat_st_blocks): Likewise.
24069         (sc_prohibit_S_IS_definition): Likewise.
24070         (sc_redundant_const): Likewise.
24071         (sc_makefile_TAB_only_indentation): Likewise.
24072         (sc_m4_quote_check): Likewise.
24073         (sc_makefile_path_separator_check): Likewise.
24074         (sc_copyright_check): Likewise.
24075         (sc_Wundef_boolean): Likewise.
24076         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24077
24078         maint.mk: match 0 or more whitespace-before-function-call '('
24079         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24080         that have zero or two-and-more spaces between the function name
24081         and the open parenthesis.
24082         (sc_error_message_warn_fatal): Likewise.
24083         (sc_error_message_uppercase): Likewise.
24084         (sc_error_message_period): Likewise.
24085
24086 2010-03-31  Eric Blake  <eblake@redhat.com>
24087
24088         maint.mk: check for [ as well as test
24089         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24090         Based on a libvirt report by Matthias Bolte.
24091
24092         gnumakefile: don't squelch _version output
24093         * top/GNUmakefile (_version): Create one-shot dependency rather
24094         than using $(shell) when version must be regenerated.
24095         (_autoreconf): Run verbosely, by default.
24096
24097         sys_time: avoid compiler warnings
24098         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24099         unconditional, fixing regression from 2010-03-29.
24100         Reported by Simon Josefsson.
24101
24102 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24103
24104         maint.mk: s/_header_without_use/_sc_header_without_use/
24105         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24106         (sc_prohibit_assert_without_use): Use the new name.
24107         (sc_prohibit_close_stream_without_use): Likewise.
24108         (sc_prohibit_getopt_without_use): Likewise.
24109         (sc_prohibit_quotearg_without_use): Likewise.
24110         (sc_prohibit_quote_without_use): Likewise.
24111         (sc_prohibit_long_options_without_use): Likewise.
24112         (sc_prohibit_inttostr_without_use): Likewise.
24113         (sc_prohibit_ignore_value_without_use): Likewise.
24114         (sc_prohibit_error_without_use): Likewise.
24115         (sc_prohibit_xalloc_without_use): Likewise.
24116         (sc_prohibit_hash_without_use): Likewise.
24117         (sc_prohibit_hash_pjw_without_use): Likewise.
24118         (sc_prohibit_safe_read_without_use): Likewise.
24119         (sc_prohibit_argmatch_without_use): Likewise.
24120         (sc_prohibit_canonicalize_without_use): Likewise.
24121         (sc_prohibit_root_dev_ino_without_use): Likewise.
24122         (sc_prohibit_openat_without_use): Likewise.
24123         (sc_prohibit_c_ctype_without_use): Likewise.
24124         (sc_prohibit_signal_without_use): Likewise.
24125         (sc_prohibit_intprops_without_use): Likewise.
24126
24127 2010-03-30  Eric Blake  <eblake@redhat.com>
24128
24129         maint: improve module indicators
24130         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24131         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24132         columns, and avoid extra macro expansion.
24133
24134         fdopendir: work around FreeBSD bug
24135         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24137         * modules/dirent (Makefile.am): Substitute it.
24138         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24139         declaration.
24140         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24141         fix.
24142         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24143
24144 2010-03-29  Bruno Haible  <bruno@clisp.org>
24145
24146         Emit #pragma system_header after the inclusion guard, not before.
24147         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24148         guard that spans the entire file, not before. This enables an
24149         optimization in GCC's preprocessor.
24150         * lib/ctype.in.h: Likewise.
24151         * lib/dirent.in.h: Likewise.
24152         * lib/errno.in.h: Likewise.
24153         * lib/float.in.h: Likewise.
24154         * lib/getopt.in.h: Likewise.
24155         * lib/iconv.in.h: Likewise.
24156         * lib/langinfo.in.h: Likewise.
24157         * lib/locale.in.h: Likewise.
24158         * lib/math.in.h: Likewise.
24159         * lib/netdb.in.h: Likewise.
24160         * lib/netinet_in.in.h: Likewise.
24161         * lib/pty.in.h: Likewise.
24162         * lib/sched.in.h: Likewise.
24163         * lib/se-selinux.in.h: Likewise.
24164         * lib/search.in.h: Likewise.
24165         * lib/spawn.in.h: Likewise.
24166         * lib/stdarg.in.h: Likewise.
24167         * lib/stdint.in.h: Likewise.
24168         * lib/string.in.h: Likewise.
24169         * lib/strings.in.h: Likewise.
24170         * lib/sys_file.in.h: Likewise.
24171         * lib/sys_ioctl.in.h: Likewise.
24172         * lib/sys_time.in.h: Likewise.
24173         * lib/sys_times.in.h: Likewise.
24174         * lib/sys_utsname.in.h: Likewise.
24175         * lib/sys_wait.in.h: Likewise.
24176         * lib/sysexits.in.h: Likewise.
24177         * lib/wctype.in.h: Likewise.
24178
24179 2010-03-28  James Youngman  <jay@gnu.org>
24180
24181         save-cwd: don't leak a file descriptor when the caller execs.
24182         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24183         saved file descriptor.
24184         * modules/save-cwd (Depends-on): Depend on cloexec.
24185
24186 2010-03-29  Bruno Haible  <bruno@clisp.org>
24187
24188         Remove vestiges of fts-lgpl module.
24189         * lib/fts_.h: Assume GNULIB_FTS is 1.
24190         * lib/fts.c: Likewise.
24191         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24192
24193 2010-03-28  Bruno Haible  <bruno@clisp.org>
24194
24195         Fix definition of tests witness macro.
24196         * gnulib-tool (func_import): Fix definition of witness macro.
24197
24198 2010-03-28  Bruno Haible  <bruno@clisp.org>
24199
24200         Fix ioctl's protoype on glibc systems.
24201         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24202         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24203         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24204         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24205         signature. If not, arrange to replace the ioctl function.
24206         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24207         REPLACE_IOCTL.
24208         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24209         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24210         Reported by Ludovic Courtès <ludo@gnu.org>.
24211
24212 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24213
24214         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24215         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24216         made it so grep -r --include=GLOB* ... did not work.
24217
24218 2010-03-26  Jim Meyering  <meyering@redhat.com>
24219             Eric Blake  <eblake@redhat.com>
24220
24221         maint.mk: prohibit use of test's -o and -a operators
24222         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24223
24224 2010-03-28  Bruno Haible  <bruno@clisp.org>
24225
24226         Remove unused GNULIB_XYZ macro definitions.
24227         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24228         invocation.
24229
24230 2010-03-28  Bruno Haible  <bruno@clisp.org>
24231
24232         Mark privileged tests modules.
24233         * modules/idpriv-drop-tests (Status): New section.
24234         * modules/idpriv-droptemp-tests (Status): New section.
24235
24236 2010-03-28  Bruno Haible  <bruno@clisp.org>
24237
24238         Split C++ tests into separate tests modules.
24239         * modules/dirent-c++-tests: New file, extracted from
24240         modules/dirent-tests.
24241         * modules/dirent-tests: Depend on it.
24242         * modules/fcntl-h-c++-tests: New file, extracted from
24243         modules/fcntl-h-tests.
24244         * modules/fcntl-h-tests: Depend on it.
24245         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24246         * modules/glob-tests: Depend on it.
24247         * modules/iconv-h-c++-tests: New file, extracted from
24248         modules/iconv-h-tests.
24249         * modules/iconv-h-tests: Depend on it.
24250         * modules/langinfo-c++-tests: New file, extracted from
24251         modules/langinfo-tests.
24252         * modules/langinfo-tests: Depend on it.
24253         * modules/locale-c++-tests: New file, extracted from
24254         modules/locale-tests.
24255         * modules/locale-tests: Depend on it.
24256         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24257         * modules/math-tests: Depend on it.
24258         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24259         * modules/pty-tests: Depend on it.
24260         * modules/search-c++-tests: New file, extracted from
24261         modules/search-tests.
24262         * modules/search-tests: Depend on it.
24263         * modules/signal-c++-tests: New file, extracted from
24264         modules/signal-tests.
24265         * modules/signal-tests: Depend on it.
24266         * modules/spawn-c++-tests: New file, extracted from
24267         modules/spawn-tests.
24268         * modules/spawn-tests: Depend on it.
24269         * modules/stdio-c++-tests: New file, extracted from
24270         modules/stdio-tests.
24271         * modules/stdio-tests: Depend on it.
24272         * modules/stdlib-c++-tests: New file, extracted from
24273         modules/stdlib-tests.
24274         * modules/stdlib-tests: Depend on it.
24275         * modules/string-c++-tests: New file, extracted from
24276         modules/string-tests.
24277         * modules/string-tests: Depend on it.
24278         * modules/sys_ioctl-c++-tests: New file, extracted from
24279         modules/sys_ioctl-tests.
24280         * modules/sys_ioctl-tests: Depend on it.
24281         * modules/sys_select-c++-tests: New file, extracted from
24282         modules/sys_select-tests.
24283         * modules/sys_select-tests: Depend on it.
24284         * modules/sys_socket-c++-tests: New file, extracted from
24285         modules/sys_socket-tests.
24286         * modules/sys_socket-tests: Depend on it.
24287         * modules/sys_stat-c++-tests: New file, extracted from
24288         modules/sys_stat-tests.
24289         * modules/sys_stat-tests: Depend on it.
24290         * modules/sys_time-c++-tests: New file, extracted from
24291         modules/sys_time-tests.
24292         * modules/sys_time-tests: Depend on it.
24293         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24294         * modules/time-tests: Depend on it.
24295         * modules/unistd-c++-tests: New file, extracted from
24296         modules/unistd-tests.
24297         * modules/unistd-tests: Depend on it.
24298         * modules/wchar-c++-tests: New file, extracted from
24299         modules/wchar-tests.
24300         * modules/wchar-tests: Depend on it.
24301         * modules/wctype-c++-tests: New file, extracted from
24302         modules/wctype-tests.
24303         * modules/wctype-tests: Depend on it.
24304         Reported by Simon Josefsson.
24305
24306 2010-03-28  Bruno Haible  <bruno@clisp.org>
24307
24308         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24309         * gnulib-tool (func_exists_module): New function, extracted from
24310         func_verify_module.
24311         (func_verify_module): Use it.
24312         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24313         'foo' only if 'foo' exists.
24314         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24315         module.
24316
24317 2010-03-28  Bruno Haible  <bruno@clisp.org>
24318
24319         gnulib-tool: Add support for special categories of tests.
24320         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24321         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24322         (func_usage): Document them.
24323         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24324         inc_unportable_tests, inc_all_tests): New variables.
24325         (func_acceptable): Consider these variables.
24326         (func_modules_transitive_closure): Make it work when the 'Status' field
24327         consists of multiple words.
24328         (func_import): Store and restore the values of inc_cxx_tests,
24329         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24330         inc_all_tests in gnulib-comp.m4.
24331         (func_create_testdir): Set inc_all_tests to true.
24332         * doc/gnulib.texi (Extra tests modules): New section.
24333         Suggested by Jim Meyering.
24334
24335 2010-03-28  Bruno Haible  <bruno@clisp.org>
24336
24337         ansi-c++-opt: Allow turning off the C++ build by default.
24338         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24339         gl_CXX_CHOICE_DEFAULT_NO is defined.
24340         Requested by Eric Blake.
24341
24342 2010-03-28  Bruno Haible  <bruno@clisp.org>
24343
24344         unistd: Avoid #define replacements in C++ mode.
24345         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24346         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24347         setsockopt, shutdown, select): In C++, attach a warning to the function
24348         if possible, rather than #defining the symbol to a dysfunctional alias.
24349         Reported by John W. Eaton <jwe@gnu.org>.
24350
24351 2010-03-28  Bruno Haible  <bruno@clisp.org>
24352
24353         Fix link errors on mingw.
24354         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24355         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24356         $(LIBSOCKET).
24357         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24358         $(LIBSOCKET).
24359
24360 2010-03-28  Bruno Haible  <bruno@clisp.org>
24361             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24362
24363         lib-ignore: Determine different options for different compilers.
24364         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24365         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24366         Add comments.
24367         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24368         * NEWS: Mention the change.
24369
24370 2010-03-27  Bruno Haible  <bruno@clisp.org>
24371
24372         Remove unused GNULIB_XYZ macro definitions.
24373         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24374         * modules/fseek (configure.ac): Likewise.
24375         * modules/ioctl (configure.ac): Likewise.
24376         * modules/open (configure.ac): Likewise.
24377         * modules/stdlib-safer (configure.ac): Likewise.
24378
24379 2010-03-27  Bruno Haible  <bruno@clisp.org>
24380
24381         Add a remark about certain modules.
24382         * modules/malloc (Comment): New section.
24383         * modules/realloc (Comment): Likewise.
24384         * modules/sigpipe (Comment): Likewise.
24385
24386 2010-03-27  Bruno Haible  <bruno@clisp.org>
24387
24388         Resolve conflict between the two kinds of module indicators.
24389         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24390         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24391         * modules/canonicalize (configure.ac): Invoke
24392         gl_MODULE_INDICATOR_FOR_TESTS.
24393         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24394         GNULIB_XYZ.
24395         * tests/test-dirent-c++.cc: Likewise.
24396         * tests/test-dirent-safer.c: Likewise.
24397         * tests/test-dup2.c: Likewise.
24398         * tests/test-fchdir.c: Likewise.
24399         * tests/test-fcntl-h-c++.cc: Likewise.
24400         * tests/test-getopt.c: Likewise.
24401         * tests/test-getopt.h: Likewise.
24402         * tests/test-langinfo-c++.cc: Likewise.
24403         * tests/test-locale-c++.cc: Likewise.
24404         * tests/test-math-c++.cc: Likewise.
24405         * tests/test-pty-c++.cc: Likewise.
24406         * tests/test-search-c++.cc: Likewise.
24407         * tests/test-signal-c++.cc: Likewise.
24408         * tests/test-spawn-c++.cc: Likewise.
24409         * tests/test-stdio-c++.cc: Likewise.
24410         * tests/test-stdlib-c++.cc: Likewise.
24411         * tests/test-string-c++.cc: Likewise.
24412         * tests/test-sys_ioctl-c++.cc: Likewise.
24413         * tests/test-sys_select-c++.cc: Likewise.
24414         * tests/test-sys_socket-c++.cc: Likewise.
24415         * tests/test-sys_stat-c++.cc: Likewise.
24416         * tests/test-sys_time-c++.cc: Likewise.
24417         * tests/test-time-c++.cc: Likewise.
24418         * tests/test-unistd-c++.cc: Likewise.
24419         * tests/test-wchar-c++.cc: Likewise.
24420         * tests/uninorm/test-u8-nfc.c: Likewise.
24421         * tests/uninorm/test-u8-nfd.c: Likewise.
24422         * tests/uninorm/test-u8-nfkc.c: Likewise.
24423         * tests/uninorm/test-u8-nfkd.c: Likewise.
24424         * tests/uninorm/test-u16-nfc.c: Likewise.
24425         * tests/uninorm/test-u16-nfd.c: Likewise.
24426         * tests/uninorm/test-u16-nfkc.c: Likewise.
24427         * tests/uninorm/test-u16-nfkd.c: Likewise.
24428         * tests/uninorm/test-u32-nfc.c: Likewise.
24429         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24430         * tests/uninorm/test-u32-nfd.c: Likewise.
24431         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24432         * tests/uninorm/test-u32-nfkc.c: Likewise.
24433         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24434         * tests/uninorm/test-u32-nfkd.c: Likewise.
24435         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24436         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24437
24438 2010-03-27  Bruno Haible  <bruno@clisp.org>
24439
24440         Distinguish two kinds of module indicators.
24441         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24442         gl_MODULE_INDICATOR.
24443         (gl_MODULE_INDICATOR): New macro.
24444         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24445         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24446         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24447         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24448         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24449         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24450         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24451         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24452         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24453         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24454         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24455         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24456         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24457         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24458         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24459         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24460         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24461         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24462         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24464         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24465         * modules/cloexec (configure.ac): Likewise.
24466         * modules/getopt-gnu (configure.ac): Likewise.
24467         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24468         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24469         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24470         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24471
24472 2010-03-27  Bruno Haible  <bruno@clisp.org>
24473
24474         New module description field 'Comment'.
24475         * gnulib-tool: New option --extract-comment.
24476         (func_usage): Document it.
24477         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24478         (func_get_comment): New function.
24479         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24480
24481 2010-03-27  Bruno Haible  <bruno@clisp.org>
24482
24483         Addendum to 2010-02-07 commit.
24484         * gnulib-tool (func_usage): Document --extract-applicability option.
24485
24486 2010-03-27  Bruno Haible  <bruno@clisp.org>
24487
24488         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24489         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24490         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24491         rather than link errors.
24492
24493 2010-03-27  Bruno Haible  <bruno@clisp.org>
24494
24495         Avoid side effects from tests-related modules on the compilation of lib.
24496         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24497         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24498         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24499         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24500         macro.
24501         (func_import): Define a witness macro. Assign it a value that depends
24502         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24503         tests-related modules.
24504         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24505         Reported by Jim Meyering.
24506
24507 2010-03-27  Bruno Haible  <bruno@clisp.org>
24508
24509         Factorize common .m4 code.
24510         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24511         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24512         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24513         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24514         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24515         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24516         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24517         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24518         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24519         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24520         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24521         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24522         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24523         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24524         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24525         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24526         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24527         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24529         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24530         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24532         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24533         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24534         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24535         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24536         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24538         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24539         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24540         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24541         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24542
24543 2010-03-27  Bruno Haible  <bruno@clisp.org>
24544
24545         Fix a compilation error on Cygwin with g++ >= 4.3.
24546         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24547         if it is undefined or if we alias it to chmod.
24548         (lstat): Don't warn about the use of this function if it is undefined
24549         or if we alias it to stat.
24550         Reported by Simon Josefsson.
24551
24552 2010-03-27  Bruno Haible  <bruno@clisp.org>
24553
24554         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24555         * modules/getlogin (configure.ac): Update.
24556
24557         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24558         * modules/getlogin_r (configure.ac): Update.
24559
24560         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24562         * modules/inet_ntop (configure.ac): Update.
24563
24564         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24565         * modules/inet_pton (configure.ac): Update.
24566
24567         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24568         * modules/mbslen (configure.ac): Update.
24569
24570         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24571         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24572         * modules/forkpty (configure.ac): Update.
24573         * modules/openpty (configure.ac): Update.
24574
24575 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24576
24577         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24578         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24579
24580 2010-03-25  Eric Blake  <eblake@redhat.com>
24581
24582         maint: use pragma consistently across replacement headers
24583         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24584         * lib/dirent.in.h (system_header): Likewise.
24585         * lib/errno.in.h (system_header): Likewise.
24586         * lib/float.in.h (system_header): Likewise.
24587         * lib/getopt.in.h (system_header): Likewise.
24588         * lib/iconv.in.h (system_header): Likewise.
24589         * lib/inttypes.in.h (system_header): Likewise.
24590         * lib/langinfo.in.h (system_header): Likewise.
24591         * lib/locale.in.h (system_header): Likewise.
24592         * lib/math.in.h (system_header): Likewise.
24593         * lib/netdb.in.h (system_header): Likewise.
24594         * lib/netinet_in.in.h (system_header): Likewise.
24595         * lib/pty.in.h (system_header): Likewise.
24596         * lib/sched.in.h (system_header): Likewise.
24597         * lib/se-selinux.in.h (system_header): Likewise.
24598         * lib/search.in.h (system_header): Likewise.
24599         * lib/spawn.in.h (system_header): Likewise.
24600         * lib/stdarg.in.h (system_header): Likewise.
24601         * lib/stdint.in.h (system_header): Likewise.
24602         * lib/string.in.h (system_header): Likewise.
24603         * lib/strings.in.h (system_header): Likewise.
24604         * lib/sys_file.in.h (system_header): Likewise.
24605         * lib/sys_ioctl.in.h (system_header): Likewise.
24606         * lib/sys_socket.in.h (system_header): Likewise.
24607         * lib/sys_times.in.h (system_header): Likewise.
24608         * lib/sys_utsname.in.h (system_header): Likewise.
24609         * lib/sys_wait.in.h (system_header): Likewise.
24610         * lib/sysexits.in.h (system_header): Likewise.
24611         * lib/unistd.in.h (system_header): Likewise.
24612         * lib/wctype.in.h (system_header): Likewise.
24613
24614         arpa/inet: fix mingw compilation warning
24615         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24616         Reported by Matthew Bolte.
24617
24618 2010-03-25  Bruno Haible  <bruno@clisp.org>
24619
24620         Avoid collision between gnulib wrapper and libintl wrapper.
24621         * lib/printf.c (printf): Don't define if a printf wrapper is already
24622         defined in intl/printf.c.
24623         Reported by Michel Boaventura <michel@michelboaventura.com>.
24624
24625 2010-03-25  Bruno Haible  <bruno@clisp.org>
24626
24627         Use ANSI C.
24628         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24629
24630 2010-03-25  Bruno Haible  <bruno@clisp.org>
24631
24632         Minor formatting changes.
24633         * lib/acosl.c: Insert space before function argument list.
24634         * lib/argz.c: Likewise.
24635         * lib/asinl.c: Likewise.
24636         * lib/expl.c: Likewise.
24637         * lib/gen-uni-tables.c: Likewise.
24638         * lib/gettext.h: Likewise.
24639         * lib/glthread/lock.h: Likewise.
24640         * lib/tanl.c: Likewise.
24641         * lib/uniname/uniname.c: Likewise.
24642         * tests/test-idpriv-drop.c: Likewise.
24643         * tests/test-idpriv-droptemp.c: Likewise.
24644         * tests/test-lock.c: Likewise.
24645         * tests/test-tls.c: Likewise.
24646         * lib/argp-help.c: Insert space before function-like macro argument
24647         list.
24648         * lib/memcmp.c: Likewise.
24649         * tests/test-base64.c: Likewise.
24650         * lib/localename.c: Insert space before sizeof's argument list.
24651         * lib/safe-alloc.h: Likewise.
24652         * lib/file-set.h: Insert space before macro argument list.
24653         * tests/test-argp.c: Likewise.
24654         * lib/argp-namefrob.h: Insert space before function parameter list.
24655         * lib/getaddrinfo.c: Likewise.
24656         * lib/netdb.in.h: Likewise.
24657         * lib/parse-duration.h: Likewise.
24658         * lib/parse-duration.c: Likewise.
24659         * lib/poll.c: Likewise.
24660         * lib/select.c: Likewise.
24661         * lib/trim.h: Likewise.
24662         * tests/test-usleep.c: Likewise.
24663         * lib/ldexpl.c: Insert space before function parameter list and before
24664         function argument list.
24665         * lib/logl.c: Likewise.
24666         * lib/sqrtl.c: Likewise.
24667         * lib/trim.c: Likewise.
24668         * lib/cosl.c: Use GNU style indentation. Insert space before function
24669         argument list.
24670         * lib/sinl.c: Likewise.
24671         * lib/tsearch.c: Insert space after 'for'.
24672         Reported by Jim Meyering.
24673
24674 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24675
24676         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24677         config header before grepping, as it's not present before
24678         autoreconf/configure are run.  Reported by Simon Josefsson.
24679
24680 2010-03-23  Bruno Haible  <bruno@clisp.org>
24681
24682         pt_chown: Make it work with automake < 1.11.
24683         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24684         Reported by Simon Josefsson.
24685
24686 2010-03-23  Bruno Haible  <bruno@clisp.org>
24687
24688         pt_chown: Don't depend on GPLed modules.
24689         * lib/pt_chown.c: Don't include idpriv.h.
24690         (main): Don't drop privileges.
24691         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24692         Reported by Simon Josefsson.
24693
24694 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24695
24696         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24697         suggestions from karl@freefriends.org (Karl Berry).
24698
24699 2010-03-22  Eric Blake  <eblake@redhat.com>
24700
24701         gethostname: further tweaks
24702         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24703         are overriding gethostname.
24704         Suggested by Bruno Haible.
24705
24706 2010-03-21  Bruno Haible  <bruno@clisp.org>
24707
24708         Fix comments.
24709         * lib/forkpty.c (rpl_forkpty): Fix comment.
24710         * lib/openpty.c (rpl_openpty): Likewise.
24711         Reported by Eric Blake.
24712
24713 2010-03-22  Eric Blake  <eblake@redhat.com>
24714
24715         gethostname: fix build on mingw
24716         * lib/unistd.in.h (includes): Work around fact that mingw
24717         <winsock2.h> re-includes <unistd.h>, by avoiding any
24718         redeclarations if we are being included by <winsock2.h>.
24719         Reported by Matthias Bolte.
24720
24721 2010-03-21  Bruno Haible  <bruno@clisp.org>
24722
24723         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24724         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24725         modifications.
24726         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24727         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24728         provide the replacement.
24729         * modules/forkpty (Depends-on): Add openpty, login_tty.
24730         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24731         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24732         * doc/glibc-functions/forkpty.texi: More supported platforms.
24733         * config/srclist.txt: Add forkpty.c (commented).
24734
24735 2010-03-21  Bruno Haible  <bruno@clisp.org>
24736
24737         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24738         (Makefile.am): Verify that PTY_LIB is defined.
24739
24740         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24741
24742 2010-03-21  Bruno Haible  <bruno@clisp.org>
24743
24744         Tests for module 'login_tty'.
24745         * modules/login_tty-tests: New file.
24746         * tests/test-login_tty.c: New file.
24747
24748         New module 'login_tty'.
24749         * lib/login_tty.c: New file.
24750         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24751         * modules/login_tty: New file.
24752         * doc/glibc-functions/login_tty.texi: Mention the new module.
24753
24754 2010-03-21  Bruno Haible  <bruno@clisp.org>
24755
24756         login_tty: Documentation.
24757         * doc/glibc-functions/login_tty.texi: New file.
24758         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24759
24760 2010-03-21  Bruno Haible  <bruno@clisp.org>
24761
24762         pty: Consistent macro naming.
24763         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24764         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24765         * modules/pty (configure.ac): Update.
24766
24767 2010-03-21  Bruno Haible  <bruno@clisp.org>
24768
24769         Tests for openpty: Make stricter.
24770         * tests/test-openpty.c (main): Add test of canonical processing and
24771         erase.
24772         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24773
24774         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24775         * lib/openpty.c (openpty): New replacement function.
24776         * lib/pty.in.h: Include <termios.h>.
24777         (openpty): Update declaration. Add comments.
24778         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24779         is not declared, arrange to provide the replacement. Check for _getpty
24780         and posix_openpt.
24781         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24782         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24783         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24784         * modules/pty-tests (test_pty_c___LDADD): New variable.
24785         * doc/glibc-functions/openpty.texi: More supported platforms.
24786
24787 2010-03-21  Bruno Haible  <bruno@clisp.org>
24788
24789         setenv: Tweaks.
24790         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24791         the test program.
24792         * doc/posix-functions/setenv.texi: Update platforms list.
24793
24794 2010-03-21  Bruno Haible  <bruno@clisp.org>
24795
24796         New module 'unlockpt'.
24797         * lib/unlockpt.c: New file, from glibc with modifications.
24798         * m4/unlockpt.m4: New file.
24799         * modules/unlockpt: New file.
24800         * lib/stdlib.in.h (unlockpt): New declaration.
24801         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24802         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24803         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24804         HAVE_UNLOCKPT.
24805         * doc/posix-functions/unlockpt.texi: Mention the new module.
24806         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24807         * config/srclist.txt: Add unlockpt.c (commented).
24808
24809 2010-03-21  Jim Meyering  <meyering@redhat.com>
24810
24811         maint.mk: prohibit inclusion of "intprops.h" without use
24812         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24813
24814 2010-03-21  Bruno Haible  <bruno@clisp.org>
24815
24816         New module 'grantpt'.
24817         * lib/grantpt.c: New file, from glibc with modifications.
24818         * m4/grantpt.m4: New file.
24819         * modules/grantpt: New file.
24820         * lib/stdlib.in.h (grantpt): New declaration.
24821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24823         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24824         HAVE_GRANTPT.
24825         * doc/posix-functions/grantpt.texi: Mention the new module.
24826         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24827         * config/srclist.txt: Add grantpt.c (commented).
24828
24829 2010-03-21  Bruno Haible  <bruno@clisp.org>
24830
24831         New module 'pt_chown'.
24832         * lib/pt_chown.c: New file, from glibc with modifications.
24833         * lib/pty-private.h: New file, from glibc with modifications.
24834         * modules/pt_chown: New file.
24835         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24836
24837 2010-03-21  Bruno Haible  <bruno@clisp.org>
24838
24839         Tests for module 'ptsname'.
24840         * modules/ptsname-tests: New file.
24841         * tests/test-ptsname.c: New file.
24842
24843         New module 'ptsname'.
24844         * lib/ptsname.c: New file, from glibc with modifications.
24845         * m4/ptsname.m4: New file.
24846         * modules/ptsname: New file.
24847         * lib/stdlib.in.h (ptsname): New declaration.
24848         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24849         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24850         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24851         HAVE_PTSNAME.
24852         * doc/posix-functions/ptsname.texi: Mention the new module.
24853         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24854         * config/srclist.txt: Add ptsname.c (commented).
24855
24856 2010-03-21  Bruno Haible  <bruno@clisp.org>
24857
24858         Tests for module 'ttyname_r'.
24859         * modules/ttyname_r-tests: New file.
24860         * tests/test-ttyname_r.c: New file.
24861
24862         New module 'ttyname_r'.
24863         * lib/ttyname_r.c: New file.
24864         * m4/ttyname_r.m4: New file.
24865         * modules/ttyname_r: New file.
24866         * lib/unistd.in.h (ttyname_r): New declaration.
24867         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24868         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24869         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24870         HAVE_TTYNAME_R.
24871         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24872         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24873
24874 2010-03-20  Bruno Haible  <bruno@clisp.org>
24875
24876         signal: Undefine macro definitions in C++ mode.
24877         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24878         sigfillset): Undefine macro definitions from the system header in C++
24879         mode.
24880         Reported by John W. Eaton <jwe@gnu.org>.
24881
24882 2010-03-20  Bruno Haible  <bruno@clisp.org>
24883
24884         Ensure no #include statements inside extern "C" { ... }.
24885         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24886         contain #include statements.
24887         * lib/time.in.h: Likewise.
24888
24889 2010-03-20  Bruno Haible  <bruno@clisp.org>
24890
24891         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24892         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24893         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24894         Reported by John W. Eaton <jwe@gnu.org>.
24895
24896 2010-03-20  Bruno Haible  <bruno@clisp.org>
24897
24898         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24899         Reported by Jim Meyering.
24900
24901 2010-03-20  Bruno Haible  <bruno@clisp.org>
24902
24903         pipe: Set errno upon failure.
24904         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24905         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24906         errno value in error message.
24907
24908 2010-03-20  Bruno Haible  <bruno@clisp.org>
24909             Jim Meyering  <meyering@redhat.com>
24910
24911         lchown: Avoid "unused variable" warning.
24912         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24913
24914 2010-03-20  Bruno Haible  <bruno@clisp.org>
24915
24916         Work around unlink() bug on MacOS X 10.5.6.
24917         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24918         attempting to unlink a parent directory.
24919         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24920         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24921         activate for the replacement function.
24922         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24923
24924 2010-03-20  Bruno Haible  <bruno@clisp.org>
24925
24926         Fix link errors on Solaris 8.
24927         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24928         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24929
24930 2010-03-19  Jim Meyering  <meyering@redhat.com>
24931
24932         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24933         The _LIBC implementation of build_range_exp correctly honors the
24934         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24935         However, the non-_LIBC implementation would ignore that syntax-bit
24936         flag and return REG_ERANGE unconditionally.
24937         This change makes it honor that flag.
24938         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24939         Make two pointer parameters "const".
24940         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24941         (parse_bracket_exp): Update caller.
24942
24943         regex.m4: correct the reversed range endpoint ([b-a]) test
24944         * m4/regex.m4: When requiring that [b-a] evoke failure,
24945         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24946         test pass once again for x86-based systems.
24947
24948 2010-03-19  Bruno Haible  <bruno@clisp.org>
24949
24950         scandir: Fix link error on Solaris 8.
24951         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24952         macros.
24953
24954 2010-03-19  Bruno Haible  <bruno@clisp.org>
24955
24956         getusershell: Fix documentation.
24957         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24958         module.
24959         * doc/glibc-functions/setusershell.texi: Likewise.
24960
24961         getusershell: Provide declaration, missing on Solaris 9.
24962         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24963         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24964         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24965         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24967         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24968         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24969         HAVE_GETUSERSHELL.
24970         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24971
24972 2010-03-19  Bruno Haible  <bruno@clisp.org>
24973
24974         wctype: Provide iswblank function.
24975         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24976         exists and is fine.
24977         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24978         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24979         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24980         * doc/posix-functions/iswblank.texi: Update.
24981
24982 2010-03-19  Bruno Haible  <bruno@clisp.org>
24983
24984         Tests of module 'pty' in C++ mode.
24985         * modules/pty-tests: New file.
24986         * tests/test-pty-c++.cc: New file.
24987         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24988
24989 2010-03-19  Eric Blake  <eblake@redhat.com>
24990
24991         logb: fix documentation
24992         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24993         1.5 declaration bug.
24994
24995         forkpty, openpty: prefer glibc's const-safe prototype
24996         * lib/forkpty.c (rpl_forkpty): New file.
24997         * lib/openpty.c (rpl_openpty): Likewise.
24998         * modules/forkpty (Files): Distribute it.
24999         * modules/openpty (Files): Likewise.
25000         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25001         check...
25002         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25003         replacement for for non-const BSD signature.
25004         * modules/pty (Makefile.am): Substitute witnesses.
25005         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25006         * tests/test-forkpty.c: Update signature check.
25007         * tests/test-openpty.c: Likewise.
25008         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25009         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25010
25011         forkpty, openpty: split functions into new modules
25012         * modules/pty (Makefile.am): Substitute new witnesses.
25013         (Libraries): Move library detection...
25014         * modules/forkpty: ...into new module.
25015         * modules/openpty: Another new module.
25016         * modules/pty-tests: Rename and split...
25017         * modules/forkpty-tests: ...to this...
25018         * modules/openpty-tests: ...and this.
25019         * tests/test-pty.c: Rename and split...
25020         * tests/test-forkpty.c: ...to this...
25021         * tests/test-openpty.c: ...and this.
25022         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25023         (gl_PTY): Split library searching...
25024         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25025         (gl_FORKPTY, gl_OPENPTY): New macros.
25026         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25027         * NEWS: Mention the split.
25028         * MODULES.html.sh (Misc): Document the modules.
25029         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25030         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25031
25032         pty: improve replacement header
25033         * lib/pty.in.h: New file.
25034         * modules/pty (Files): Ship it.
25035         (Makefile.am): Always build replacement.
25036         * m4/pty.m4: Rename...
25037         * m4/pty_h.m4: ...to this.
25038         (gl_PTY): Modernize setting of witness macros; update check of
25039         forkpty to take proper advantage of cache.
25040         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25041
25042         getopt: avoid compiler warning
25043         * lib/getopt.c (attribute_hidden): Remove unused macro.
25044
25045 2010-03-18  Bruno Haible  <bruno@clisp.org>
25046
25047         Fix link errors on Solaris 8.
25048         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25049         * modules/search-tests (test_search_c___LDADD): Likewise.
25050         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25051         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25052         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25053         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25054         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25055         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25056         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25057
25058 2010-03-18  Bruno Haible  <bruno@clisp.org>
25059
25060         Fix bug introduced on 2010-03-14.
25061         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25062         (gl_SPAWN_H): Require it.
25063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25064         Reported by Simon Josefsson.
25065
25066 2010-03-18  Bruno Haible  <bruno@clisp.org>
25067
25068         Fix typo introduced on 2009-12-31.
25069         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25070         posix_spawn_file_actions_adddup2.
25071
25072 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25073         and Eric Blake  <eblake@redhat.com>
25074
25075         test-vc-list-files-git: make more robust
25076         * tests/test-vc-list-files-git.sh: Unset problematic environment
25077         variables.  Chain commands together.
25078
25079 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25080
25081         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25082         `AC_CHECK_DECL' invocation.
25083
25084 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25085
25086         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25087         appears before executable statements. Suggested by Petr Sumbera
25088         <Petr.Sumbera@Sun.COM>.
25089
25090 2010-03-14  Bruno Haible  <bruno@clisp.org>
25091
25092         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25093         portability problems. Instead use a simpler test.
25094         (main): Check that invalid arguments are rejected only on Linux.
25095
25096 2010-03-14  Bruno Haible  <bruno@clisp.org>
25097
25098         Fix bug introduced on 2009-12-31.
25099         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25100         gl_PREREQ_SYS_H_WINSOCK2 always.
25101         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25102         SYS_SOCKET_H variable.
25103         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25104         Update comments.
25105         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25106         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25107         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25109         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25110
25111 2010-03-14  Bruno Haible  <bruno@clisp.org>
25112
25113         Fix values returned by sinl, cosl.
25114         * lib/trigl.h: Add specification comments.
25115         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25116         that combines the values from the precomputed table with the values of
25117         the Chebyshev polynomials.
25118
25119 2010-03-14  Bruno Haible  <bruno@clisp.org>
25120
25121         Fix compilation error when modules 'posix_spawn[p]' are not used.
25122         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25124
25125 2010-03-14  Bruno Haible  <bruno@clisp.org>
25126
25127         Fix compilation error on mingw when module 'time_r' is not used.
25128         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25129         is 1.
25130         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25131         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25132         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25133         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25134
25135 2010-03-14  Bruno Haible  <bruno@clisp.org>
25136
25137         Fix compilation error with Sun C.
25138         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25139         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25140         instead of GCC specific ULONG_LONG_MAX.
25141         * lib/xstrtoll.c: Likewise.
25142         * lib/xstrtoull.c: Likewise.
25143
25144 2010-03-13  Bruno Haible  <bruno@clisp.org>
25145
25146         Allow the user to disable C++ code and tests.
25147         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25148         (gl_PROG_ANSI_CXX): Require it.
25149
25150 2010-03-13  Bruno Haible  <bruno@clisp.org>
25151
25152         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25153         cases.
25154
25155 2010-03-13  Bruno Haible  <bruno@clisp.org>
25156
25157         Test that gnulib does not break the standard C++ headers.
25158         * tests/test-locale-c++2.cc: New file.
25159         * modules/locale-tests (Files): Add it.
25160         (Makefile.am): Compile it for test-locale-c++.
25161         * tests/test-math-c++2.cc: New file.
25162         * modules/math-tests (Files): Add it.
25163         (Makefile.am): Compile it for test-math-c++.
25164         * tests/test-signal-c++2.cc: New file.
25165         * modules/signal-tests (Files): Add it.
25166         (Makefile.am): Compile it for test-signal-c++.
25167         * tests/test-stdio-c++2.cc: New file.
25168         * modules/stdio-tests (Files): Add it.
25169         (Makefile.am): Compile it for test-stdio-c++.
25170         * tests/test-stdlib-c++2.cc: New file.
25171         * modules/stdlib-tests (Files): Add it.
25172         (Makefile.am): Compile it for test-stdlib-c++.
25173         * tests/test-string-c++2.cc: New file.
25174         * modules/string-tests (Files): Add it.
25175         (Makefile.am): Compile it for test-string-c++.
25176         * tests/test-time-c++2.cc: New file.
25177         * modules/time-tests (Files): Add it.
25178         (Makefile.am): Compile it for test-time-c++.
25179         Reported by John W. Eaton <jwe@gnu.org>.
25180
25181 2010-03-13  Bruno Haible  <bruno@clisp.org>
25182
25183         * gnulib-tool (func_usage): Clarify which options are available for
25184         --create-testdir and --create-megatestdir.
25185
25186 2010-03-13  Bruno Haible  <bruno@clisp.org>
25187
25188         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25189         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25190         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25191         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25192         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25193         when appropriate.
25194         Reported by Jim Meyering.
25195
25196 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25197
25198         * gnulib-tool (func_import): Explain origin of code.
25199
25200 2010-03-12  Bruno Haible  <bruno@clisp.org>
25201
25202         Fix problem with automake's definition of CXXLINK.
25203         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25204         Reported by Simon Josefsson and Ludovic Courtès.
25205
25206 2010-03-12  Bruno Haible  <bruno@clisp.org>
25207
25208         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25209         stable releases.
25210
25211 2010-03-11  Bruno Haible  <bruno@clisp.org>
25212
25213         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25214         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25215         whether the system provides one variant or multiple variants of the
25216         function.
25217         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25218         C++ compilers.
25219         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25220         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25221         Reported by Jim Meyering.
25222
25223 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25224
25225         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25226
25227 2010-03-08  Bruno Haible  <bruno@clisp.org>
25228
25229         gnulib-tool: Add support for --libtool in --create-testdir.
25230         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25231         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25232
25233 2010-03-08  Eric Blake  <eblake@redhat.com>
25234
25235         gnulib-tool.texi: mention possibility of git submodule
25236         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25237         submodules.
25238         * doc/.gitignore: Ignore another generated file.
25239
25240 2010-03-08  Karl Berry  <karl@gnu.org>
25241
25242         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25243         of committing gnulib files while skipping others.
25244
25245 2010-03-07  Bruno Haible  <bruno@clisp.org>
25246
25247         Tests of module 'wctype' in C++ mode.
25248         * tests/test-wctype-c++.cc: New file.
25249         * modules/wctype-tests (Files): Add it and tests/signature.h.
25250         (Depends-on): Add ansi-c++-opt.
25251         (Makefile.am): Arrange to compile and run test-wctype-c++.
25252
25253         Tests of module 'wchar' in C++ mode.
25254         * tests/test-wchar-c++.cc: New file.
25255         * modules/wchar-tests (Files): Add it and tests/signature.h.
25256         (Depends-on): Add ansi-c++-opt.
25257         (Makefile.am): Arrange to compile and run test-wchar-c++.
25258         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25259         gl_MODULE_INDICATOR.
25260
25261         Tests of module 'unistd' in C++ mode.
25262         * tests/test-unistd-c++.cc: New file.
25263         * modules/unistd-tests (Files): Add it and tests/signature.h.
25264         (Depends-on): Add ansi-c++-opt.
25265         (Makefile.am): Arrange to compile and run test-unistd-c++.
25266         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25267         gl_MODULE_INDICATOR.
25268
25269         Tests of module 'time' in C++ mode.
25270         * tests/test-time-c++.cc: New file.
25271         * modules/time-tests (Files): Add it and tests/signature.h.
25272         (Depends-on): Add ansi-c++-opt.
25273         (Makefile.am): Arrange to compile and run test-time-c++.
25274         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25275
25276         Tests of module 'sys_time' in C++ mode.
25277         * tests/test-sys_time-c++.cc: New file.
25278         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25279         (Depends-on): Add ansi-c++-opt.
25280         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25281         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25282         gl_MODULE_INDICATOR.
25283
25284         Tests of module 'sys_stat' in C++ mode.
25285         * tests/test-sys_stat-c++.cc: New file.
25286         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25287         (Depends-on): Add ansi-c++-opt.
25288         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25289         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25290         gl_MODULE_INDICATOR.
25291
25292         Tests of module 'sys_socket' in C++ mode.
25293         * tests/test-sys_socket-c++.cc: New file.
25294         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25295         (Depends-on): Add ansi-c++-opt.
25296         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25297         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25298         gl_MODULE_INDICATOR.
25299
25300         Tests of module 'sys_select' in C++ mode.
25301         * tests/test-sys_select-c++.cc: New file.
25302         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25303         (Depends-on): Add ansi-c++-opt.
25304         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25305         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25306         gl_MODULE_INDICATOR.
25307
25308         Tests of module 'sys_ioctl' in C++ mode.
25309         * tests/test-sys_ioctl-c++.cc: New file.
25310         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25311         (Depends-on): Add ansi-c++-opt.
25312         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25313         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25314         gl_MODULE_INDICATOR.
25315
25316         Tests of module 'string' in C++ mode.
25317         * tests/test-string-c++.cc: New file.
25318         * modules/string-tests (Files): Add it and tests/signature.h.
25319         (Depends-on): Add ansi-c++-opt.
25320         (Makefile.am): Arrange to compile and run test-string-c++.
25321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25322         gl_MODULE_INDICATOR.
25323
25324         Tests of module 'stdlib' in C++ mode.
25325         * tests/test-stdlib-c++.cc: New file.
25326         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25327         (Depends-on): Add ansi-c++-opt.
25328         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25329         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25330         gl_MODULE_INDICATOR.
25331
25332         Tests of module 'stdio' in C++ mode.
25333         * tests/test-stdio-c++.cc: New file.
25334         * modules/stdio-tests (Files): Add it and tests/signature.h.
25335         (Depends-on): Add ansi-c++-opt.
25336         (Makefile.am): Arrange to compile and run test-stdio-c++.
25337         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25338         gl_MODULE_INDICATOR.
25339
25340         Tests of module 'spawn' in C++ mode.
25341         * tests/test-spawn-c++.cc: New file.
25342         * modules/spawn-tests (Files): Add it and tests/signature.h.
25343         (Depends-on): Add ansi-c++-opt.
25344         (Makefile.am): Arrange to compile and run test-spawn-c++.
25345         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25346         gl_MODULE_INDICATOR.
25347
25348         Tests of module 'signal' in C++ mode.
25349         * tests/test-signal-c++.cc: New file.
25350         * modules/signal-tests (Files): Add it and tests/signature.h.
25351         (Depends-on): Add ansi-c++-opt.
25352         (Makefile.am): Arrange to compile and run test-signal-c++.
25353         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25354         gl_MODULE_INDICATOR.
25355
25356         Tests of module 'search' in C++ mode.
25357         * tests/test-search-c++.cc: New file.
25358         * modules/search-tests (Files): Add it and tests/signature.h.
25359         (Depends-on): Add ansi-c++-opt.
25360         (Makefile.am): Arrange to compile and run test-search-c++.
25361         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25362         gl_MODULE_INDICATOR.
25363
25364         Tests of module 'math' in C++ mode.
25365         * tests/test-math-c++.cc: New file.
25366         * modules/math-tests (Files): Add it and tests/signature.h.
25367         (Depends-on): Add ansi-c++-opt.
25368         (Makefile.am): Arrange to compile and run test-math-c++.
25369         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25370
25371         Tests of module 'locale' in C++ mode.
25372         * tests/test-locale-c++.cc: New file.
25373         * modules/locale-tests (Files): Add it and tests/signature.h.
25374         (Depends-on): Add ansi-c++-opt.
25375         (Makefile.am): Arrange to compile and run test-locale-c++.
25376         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25377         gl_MODULE_INDICATOR.
25378
25379         Tests of module 'langinfo' in C++ mode.
25380         * tests/test-langinfo-c++.cc: New file.
25381         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25382         (Depends-on): Add ansi-c++-opt.
25383         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25384         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25385         gl_MODULE_INDICATOR.
25386
25387         Tests of module 'iconv-h' in C++ mode.
25388         * tests/test-iconv-h-c++.cc: New file.
25389         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25390         (Depends-on): Add ansi-c++-opt.
25391         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25392
25393         Tests of module 'glob' in C++ mode.
25394         * tests/test-glob-c++.cc: New file.
25395         * modules/glob-tests (Files): Add it.
25396         (Depends-on): Add ansi-c++-opt.
25397         (Makefile.am): Arrange to compile and run test-glob-c++.
25398
25399         Tests of module 'fcntl-h' in C++ mode.
25400         * tests/test-fcntl-h-c++.cc: New file.
25401         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25402         (Depends-on): Add ansi-c++-opt.
25403         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25404         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25405         gl_MODULE_INDICATOR.
25406
25407         Tests of module 'dirent' in C++ mode.
25408         * tests/test-dirent-c++.cc: New file.
25409         * modules/dirent-tests (Files): Add it and tests/signature.h.
25410         (Depends-on): Add ansi-c++-opt.
25411         (Makefile.am): Arrange to compile and run test-dirent-c++.
25412         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25413         gl_MODULE_INDICATOR.
25414
25415         New module 'ansi-c++-opt'.
25416         * modules/ansi-c++-opt: New file.
25417         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25418
25419         Document C++ namespace mode.
25420         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25421
25422         wctype: Avoid #define replacements in C++ mode.
25423         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25424         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25425         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25426         In C++, define a namespaced alias symbol.
25427         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25428         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25429         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25430         rule.
25431
25432         wchar: Avoid #define replacements in C++ mode.
25433         * lib/wchar.in.h: Include c++defs.h.
25434         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25435         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25436         symbol.
25437         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25438         * modules/wchar (Depends-on): Add c++defs.
25439         (Makefile.am): Update wchar.h rule.
25440
25441         unistd: Avoid #define replacements in C++ mode.
25442         * lib/unistd.in.h: Include c++defs.h.
25443         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25444         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25445         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25446         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25447         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25448         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25449         symbol.
25450         (environ): Update.
25451         * modules/unistd (Depends-on): Add c++defs.
25452         (Makefile.am): Update unistd.h rule.
25453
25454         time: Avoid #define replacements in C++ mode.
25455         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25456         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25457         define a namespaced alias symbol.
25458         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25459         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25460         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25461         * modules/time (Depends-on): Add c++defs, warn-on-use.
25462         (Makefile.am): Update time.h rule.
25463         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25464         * modules/nanosleep (configure.ac): Likewise.
25465         * modules/strptime (configure.ac): Likewise.
25466         * modules/timegm (configure.ac): Likewise.
25467
25468         sys_time: Avoid #define replacements in C++ mode.
25469         * lib/sys_time.in.h: Include c++defs.h.
25470         (gettimeofday): In C++, define a namespaced alias symbol.
25471         * modules/sys_time (Depends-on): Add c++defs.
25472         (Makefile.am): Update sys/time.h rule.
25473
25474         sys_stat: Avoid #define replacements in C++ mode.
25475         * lib/sys_stat.in.h: Include c++defs.h.
25476         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25477         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25478         namespaced alias symbol.
25479         In C++, define a namespaced alias symbol.
25480         * modules/sys_stat (Depends-on): Add c++defs.
25481         (Makefile.am): Update sys/stat.h rule.
25482
25483         sys_socket: Avoid #define replacements in C++ mode.
25484         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25485         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25486         definitions also when the system has a <sys/socket.h>.
25487         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25488         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25489         In C++, define a namespaced alias symbol.
25490         * modules/sys_socket (Depends-on): Add c++defs.
25491         (Makefile.am): Update sys/socket.h rule.
25492
25493         sys_select: Avoid #define replacements in C++ mode.
25494         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25495         definitions also when the system has a <sys/select.h>.
25496         (select): In C++, define a namespaced alias symbol.
25497         * modules/sys_select (Depends-on): Add c++defs.
25498         (Makefile.am): Update sys/select.h rule.
25499
25500         sys_ioctl: Avoid #define replacements in C++ mode.
25501         * lib/sys_ioctl.in.h: Include c++defs.h.
25502         (ioctl): In C++, define a namespaced alias symbol.
25503         * modules/sys_ioctl (Depends-on): Add c++defs.
25504         (Makefile.am): Update sys/ioctl.h rule.
25505
25506         string: Avoid #define replacements in C++ mode.
25507         * lib/string.in.h: Include c++defs.h.
25508         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25509         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25510         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25511         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25512         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25513         * modules/string (Depends-on): Add c++defs.
25514         (Makefile.am): Update string.h rule.
25515
25516         stdlib: Avoid #define replacements in C++ mode.
25517         * lib/stdlib.in.h: Include c++defs.h.
25518         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25519         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25520         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25521         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25522         symbol.
25523         * modules/stdlib (Depends-on): Add c++defs.
25524         (Makefile.am): Update stdlib.h rule.
25525
25526         stdio: Avoid #define replacements in C++ mode.
25527         * lib/stdio.in.h: Include c++defs.h.
25528         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25529         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25530         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25531         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25532         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25533         namespaced alias symbol.
25534         * modules/stdio (Depends-on): Add c++defs.
25535         (Makefile.am): Update stdio.h rule.
25536
25537         spawn: Avoid #define replacements in C++ mode.
25538         * lib/spawn.in.h: Include c++defs.h.
25539         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25540         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25541         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25542         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25543         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25544         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25545         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25546         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25547         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25548         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25549         In C++, define a namespaced alias symbol.
25550         * modules/spawn (Depends-on): Add c++defs.
25551         (Makefile.am): Update spawn.h rule.
25552
25553         signal: Avoid #define replacements in C++ mode.
25554         * lib/signal.in.h: Include c++defs.h.
25555         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25556         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25557         namespaced alias symbol.
25558         * modules/signal (Depends-on): Add c++defs.
25559         (Makefile.am): Update signal.h rule.
25560
25561         search: Avoid #define replacements in C++ mode.
25562         * lib/search.in.h: Include c++defs.h.
25563         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25564         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25565         symbol.
25566         * modules/search (Depends-on): Add c++defs.
25567         (Makefile.am): Update search.h rule.
25568
25569         math: Avoid #define replacements in C++ mode.
25570         * lib/math.in.h: Include c++defs.h.
25571         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25572         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25573         trunc, truncl): In C++, define a namespaced alias symbol.
25574         * modules/math (Depends-on): Add c++defs.
25575         (Makefile.am): Update math.h rule.
25576
25577         locale: Avoid #define replacements in C++ mode.
25578         * lib/locale.in.h: Include c++defs.h.
25579         (duplocale): In C++, define a namespaced alias symbol.
25580         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25581         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25582         * modules/locale (Depends-on): Add c++defs.
25583         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25584
25585         langinfo: Avoid #define replacements in C++ mode.
25586         * lib/langinfo.in.h: Include c++defs.h.
25587         (nl_langinfo): In C++, define a namespaced alias symbol.
25588         * modules/langinfo (Depends-on): Add c++defs.
25589         (Makefile.am): Update langinfo.h rule.
25590
25591         iconv-h: Avoid #define replacements in C++ mode.
25592         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25593         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25594         symbol.
25595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25596         whenever iconv is present.
25597         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25598         (Makefile.am): Update iconv.h rule.
25599
25600         glob: Avoid #define replacements in C++ mode.
25601         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25602         (_gl_glob_errfunc_fn): New type.
25603         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25604         symbol.
25605         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25606         (Makefile.am): Update glob.h rule.
25607
25608         fcntl-h: Avoid #define replacements in C++ mode.
25609         * lib/fcntl.in.h: Include c++defs.h.
25610         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25611         * modules/fcntl-h (Depends-on): Add c++defs.
25612         (Makefile.am): Update fcntl.h rule.
25613
25614         dirent: Avoid #define replacements in C++ mode.
25615         * lib/dirent.in.h: Include c++defs.h.
25616         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25617         namespaced alias symbol.
25618         (dirfd): Update declaration.
25619         * modules/dirent (Depends-on): Add c++defs.
25620         (Makefile.am): Update dirent.h rule.
25621
25622         ctype: Make it usable in C++ code.
25623         * lib/ctype.in.h: Include c++defs.h.
25624         (isblank): Declare as extern "C".
25625         * modules/ctype (Depends-on): Add c++defs.
25626         (Makefile.am): Update ctype.h rule.
25627
25628         New module 'c++defs'.
25629         * modules/c++defs: New file.
25630         * build-aux/c++defs.h: New file.
25631         Reported by John W. Eaton <jwe@gnu.org>.
25632
25633 2010-03-07  Bruno Haible  <bruno@clisp.org>
25634
25635         logb: Provide missing declaration for Cygwin.
25636         * lib/math.in.h (logb): New declaration.
25637         * m4/logb.m4: New file.
25638         * modules/logb (Files): Add m4/logb.m4.
25639         (Depends-on): Add math.
25640         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25641         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25643         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25644         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25645
25646 2010-03-07  Bruno Haible  <bruno@clisp.org>
25647
25648         Fix test-cond link error.
25649         * tests/test-cond.c: Include <stdio.h>.
25650
25651 2010-03-07  Bruno Haible  <bruno@clisp.org>
25652
25653         Fix test-dirent-safer link error.
25654         * modules/dirent-safer-tests (Makefile.am): Define
25655         test_dirent_safer_LDADD.
25656
25657 2010-03-07  Bruno Haible  <bruno@clisp.org>
25658
25659         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25660         among default module list.
25661
25662 2010-03-07  Bruno Haible  <bruno@clisp.org>
25663
25664         Fix link error on platforms with GNU libiconv.
25665         * modules/unistr/u8-strcoll-tests (Makefile): Define
25666         test_u8_strcoll_LDADD.
25667         * modules/unistr/u16-strcoll-tests (Makefile): Define
25668         test_u16_strcoll_LDADD.
25669         * modules/unistr/u32-strcoll-tests (Makefile): Define
25670         test_u32_strcoll_LDADD.
25671
25672 2010-03-07  Bruno Haible  <bruno@clisp.org>
25673
25674         Use POSIX declarations for socket functions.
25675         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25676         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25677         rpl_sendto): Change declaration to match POSIX.
25678         * lib/connect.c (rpl_connect): Likewise.
25679         * lib/accept.c (rpl_accept): Likewise.
25680         * lib/bind.c (rpl_bind): Likewise.
25681         * lib/getpeername.c (rpl_getpeername): Likewise.
25682         * lib/getsockname.c (rpl_getsockname): Likewise.
25683         * lib/recv.c (rpl_recv): Likewise.
25684         * lib/send.c (rpl_send): Likewise.
25685         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25686         * lib/sendto.c (rpl_sendto): Likewise.
25687
25688 2010-03-06  Bruno Haible  <bruno@clisp.org>
25689
25690         Clarify access, euidaccess, faccessat.
25691         * doc/posix-functions/faccessat.texi: Mention security problem under
25692         "Other problems", not "Portability problems".
25693         * doc/posix-functions/access.texi: Likewise. Mention a related security
25694         problem.
25695         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25696         * lib/euidaccess.c: Add comments about platforms.
25697         * lib/unistd.in.h (access, euidaccess): Add warnings.
25698
25699 2010-03-07  Bruno Haible  <bruno@clisp.org>
25700
25701         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25702         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25703         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25704         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25705         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25706         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25707         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25708         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25709         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25710         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25711         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25712         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25713         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25714         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25715         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25716         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25717         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25718         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25719         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25720         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25721         Likewise.
25722         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25723         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25724         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25725         Likewise.
25726         * tests/test-spawn.c (main): Make it work when
25727         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25728
25729 2010-03-07  Bruno Haible  <bruno@clisp.org>
25730
25731         Fix incorrect Makefile.am generation in German locale.
25732         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25733         Execute sed command with character range in C locale.
25734
25735 2010-03-06  Bruno Haible  <bruno@clisp.org>
25736
25737         Tests for module 'iconv-h'.
25738         * modules/iconv-h-tests: New file.
25739         * tests/test-iconv-h.c: New file.
25740
25741         New module 'iconv-h'.
25742         * modules/iconv-h: New file.
25743         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25744         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25745         (configure.ac): Remove gl_ICONV_H.
25746         (Makefile.am): Remove rule for iconv.h.
25747
25748 2010-03-06  Bruno Haible  <bruno@clisp.org>
25749
25750         More consistent naming of *.m4 files.
25751         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25752         * modules/wctype (Files): Update.
25753
25754         More consistent naming of *.m4 files.
25755         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25756         * modules/wchar (Files): Update.
25757
25758 2010-03-06  Jim Meyering  <meyering@redhat.com>
25759
25760         euidaccess: relax license to LGPLv2+
25761         * modules/euidaccess (License): Relax to LGPLv2+.
25762
25763 2010-03-06  Bruno Haible  <bruno@clisp.org>
25764
25765         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25766         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25767         (Makefile.am): Augment lib_SOURCES instead.
25768
25769 2010-03-04  Jim Meyering  <meyering@redhat.com>
25770
25771         utime: remove obsolete module
25772         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25773         unnecessary for years, and has been marked as obsolete for 10 months.
25774         * modules/utime: Remove file.
25775         * lib/utime.c: Remove file.
25776         * m4/utime.m4: Remove file.
25777         * m4/utimes-null.m4: Remove file.
25778         * doc/posix-functions/utime.texi (utime): Remove reference to
25779         the module.  Move the sole "fixed by gnulib" item into the
25780         "problems not fixed by Gnulib" list.
25781         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25782
25783 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25784
25785         * modules/exit (License): Relax license to LGPLv2+.
25786         (Status): Mark as obsolete.
25787         * NEWS: Mention deprecated 'exit' module.
25788         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25789         of now obsolete 'exit'.
25790
25791 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25792
25793         fts-lgpl: remove unused module
25794         * modules/fts-lgpl: Remove.
25795         * MODULES.html.sh (func_all_modules): Adjust.
25796         * check-module (find_included_lib_files): Adjust.
25797         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25798
25799 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25800
25801         copy-acl: enhance Solaris ACL error handling
25802         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25803         * lib/set-mode-acl.c (qset_acl): Likewise.
25804
25805 2010-03-02  Bruno Haible  <bruno@clisp.org>
25806
25807         spawn: Don't override the system defined values on FreeBSD 8.
25808         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25809         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25810         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25811         if HAVE_POSIX_SPAWN is 1.
25812         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25813
25814 2010-03-01  Bruno Haible  <bruno@clisp.org>
25815
25816         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25817         regarding Automake.
25818
25819 2010-02-25  Bruno Haible  <bruno@clisp.org>
25820
25821         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25822         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25823         setting, not afterwards.
25824         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25825
25826 2010-02-24  Eric Blake  <eblake@redhat.com>
25827
25828         bootstrap, git-version-gen: use timestamp
25829         * build-aux/git-version-gen (scriptversion): Force UTC.
25830         * build-aux/bootstrap (scriptversion): New variable.
25831
25832         bootstrap: allow older git
25833         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25834         older than 1.6.4.  Requested by the libvirt project.
25835
25836 2010-02-23  Eric Blake  <eblake@redhat.com>
25837
25838         warn-on-use: work with old autoconf
25839         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25840         AS_VAR semantics of autoconf 2.60.
25841         Reported by Bruno Haible.
25842
25843         bootstrap: improve some comments
25844         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25845         clarification comments.
25846
25847         gettimeofday: provide correct function
25848         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25849         when replacement is declared, otherwise provide gettimeofday.
25850         Reported by Michael Goffioul.
25851
25852 2010-02-23  Jim Meyering  <meyering@redhat.com>
25853
25854         lib-ignore: relax license to "unlimited", not LGPLv2+
25855         * modules/lib-ignore (License): Relax to "unlimited".
25856
25857 2010-02-23  Jim Meyering  <meyering@redhat.com>
25858
25859         lib-ignore: relax license to LGPLv2+
25860         * modules/lib-ignore (License): Relax to LGPLv2+.
25861
25862 2010-02-22  Eric Blake  <eblake@redhat.com>
25863
25864         lseek: avoid bash 3.2 broken pipe bug
25865         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25866         warning from bash 3.2.
25867         Reported by Ben Pfaff, with analysis from Bruno Haible.
25868
25869         bootstrap: support non-FSF copyright holder
25870         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25871         bootstrap.conf override of COPYRIGHT_HOLDER.
25872         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25873
25874         bootstrap: interoperate with gettext 0.14.1
25875         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25876
25877         bootstrap: allow for alternate submodule location
25878         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25879         hardcoding submodule location.
25880         (gnulib_mk): Allow direct use of Makefile.am.
25881
25882         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25883         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25884         rather than reconfiguring where the submodule points.
25885
25886         gettimeofday: restore support for platforms that lack function
25887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25888         replacement if function is missing.
25889         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25890         * modules/sys_time (Makefile.am): Substitute it.
25891         * lib/sys_time.in.h (gettimeofday): Check it.
25892         Reported by Michael Goffioul.
25893
25894 2010-02-21  Bruno Haible  <bruno@clisp.org>
25895
25896         * lib/stdio.in.h (obstack_printf): Fix typo.
25897
25898 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25899
25900         vc-list-files: use bzr ls's -R option
25901         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25902         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25903
25904 2010-02-21  Jim Meyering  <meyering@redhat.com>
25905
25906         init.sh: fix EXEEXT shims to work also for names like test-prog
25907         * tests/init.sh: Re-exec a better shell, when needed.
25908         If the current shell lacks support for posix $(...), an init.sh-using
25909         test will now try to find a shell that supports that.  If EXEEXT is
25910         nonempty, we also require support for hyphen-in-alias-name and shell
25911         substitutions like ${var#glob}.  Failure to find such a shell results
25912         in a skipped test.
25913
25914 2010-02-21  Bruno Haible  <bruno@clisp.org>
25915
25916         Really work around around "broken pipe" error message from bash 3.2.
25917         * gnulib-tool (func_reset_sigpipe): Remove function.
25918         (echo): In bash 3.2, define to a function that uses printf.
25919         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25920
25921 2010-02-20  Bruno Haible  <bruno@clisp.org>
25922
25923         Restore support for automake 1.9.6 with autoconf 2.61.
25924         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25925         Reported by James Youngman <jay@gnu.org>.
25926
25927 2010-02-20  Bruno Haible  <bruno@clisp.org>
25928
25929         Improve *printf warning condition.
25930         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25931         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25932         and the function is overridden due to SIGPIPE emulation.
25933
25934 2010-02-20  Bruno Haible  <bruno@clisp.org>
25935
25936         * lib/stdio.in.h: Tweak comments.
25937
25938 2010-02-19  Bruno Haible  <bruno@clisp.org>
25939
25940         Make it easier to find modules. New gnulib-tool option '--find'.
25941         * gnulib-tool: New option --find.
25942         (func_usage): Document it.
25943         (func_sanitize_modulelist): New function, extracted from
25944         func_all_modules.
25945         (func_all_modules): Invoke it.
25946         * doc/gnulib-tool.texi (Which modules?): New node.
25947
25948 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25949
25950         * lib/sys_select.in.h: Provide select replacement even if
25951         sys/select.h exists on a system, for Interix.
25952
25953 2010-02-18  Jim Meyering  <meyering@redhat.com>
25954
25955         init.sh: don't use $(...) just yet
25956         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25957         to accommodate e.g., Solaris' /bin/sh.
25958
25959 2010-02-17  Bruno Haible  <bruno@clisp.org>
25960
25961         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25962         Reported by Ludovic Courtès <ludo@gnu.org>.
25963
25964 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25965
25966         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25967         linking with -lintl.
25968
25969 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25970
25971         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25972         if not provided by the system's netdb.h.  Reported by
25973         ludo@gnu.org (Ludovic Courtès).
25974
25975 2010-02-15  Jim Meyering  <meyering@redhat.com>
25976
25977         init.sh: improve portability and efficiency
25978         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25979         "dummy" in a for loop.
25980         Use '!', not '^' to select the complement of a character set used
25981         in a "case" statement.
25982         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25983         Suggestions from Eric Blake.
25984
25985         init.sh: automatically accommodate programs with the .exe suffix
25986         Automatically arrange for an invocation of "prog" to execute the
25987         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25988         may use the simpler "prog", yet still work when built on a system
25989         that requires specifying the added suffix.
25990         Do this by constructing a function named "prog" that invokes
25991         "prog.exe" for each .exe file in selected directories.
25992         * tests/init.sh (find_exe_basenames_): New function.
25993         (create_exe_shim_functions_): New function.
25994         (path_prepend_): Use it.
25995
25996         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25997         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25998         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25999
26000 2010-02-14  Jim Meyering  <meyering@redhat.com>
26001
26002         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26003         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26004         (sc_prohibit_hash_pjw_without_use): New rule.
26005
26006         maint.mk: allow the default upload destination dir to be overridden
26007         * top/maint.mk (upload_dest_dir_): Define with a default that
26008         preserves the status quo.
26009         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26010         Reported by Peter Simons.
26011
26012         maint.mk: prohibit inclusion of "hash.h" without_use
26013         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26014
26015 2010-02-10  Jim Meyering  <meyering@redhat.com>
26016
26017         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26018         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26019
26020 2010-02-09  Eric Blake  <ebb9@byu.net>
26021         and Bruno Haible  <bruno@clisp.org>
26022
26023         obstack-printf-posix: ensure declaration
26024         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26025         extracted from gl_FUNC_OBSTACK_PRINTF.
26026         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26028         Likewise.
26029         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26030         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26031         0.
26032
26033 2010-02-08  Bruno Haible  <bruno@clisp.org>
26034
26035         gnulib-tool: Fix typo in 2010-02-07 commit.
26036         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26037         Reported by Eric Blake.
26038
26039 2010-02-07  Bruno Haible  <bruno@clisp.org>
26040
26041         gnulib-tool: Fix up caching patches.
26042         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26043         option --no-cache. Use associative arrays when supported by the shell.
26044         (sed_comments): New variable.
26045         (modcache): Renamed from do_cache.
26046         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26047         abbreviate unnecessarily.
26048         (have_associative): New variable.
26049         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26050         way also for ksh and zsh.
26051         (func_init_sed_convert_to_cache_statements): New function, extracted
26052         from func_cache_lookup_module. Add support for associative arrays.
26053         Don't set the c_MODULE_cached variable here. Ignore all lines before
26054         the first field header. Remove only the final newline, not all trailing
26055         newlines. Support empty fields correctly. Limit the use of 'eval' to
26056         assignments.
26057         (func_get_description, func_get_status, func_get_notice,
26058         func_get_applicability, func_get_filelist, func_get_dependencies,
26059         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26060         func_get_automake_snippet, func_get_include_directive,
26061         func_get_link_directive, func_get_license, func_get_maintainer):
26062         Update documentation. List the unoptimized code first. Add support for
26063         associative arrays. Limit the use of 'eval' to assignments.
26064         (func_get_applicability): Undo stylistic pessimisations.
26065         (func_get_automake_snippet, func_get_include_directive): Reduce code
26066         duplication.
26067         (func_modules_transitive_closure, func_modules_add_dummy,
26068         func_modules_notice, func_modules_to_filelist, func_add_file,
26069         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26070         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26071         func_create_testdir, func_create_megatestdir): Update documentation.
26072
26073 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26074
26075         * gnulib-tool (func_cache_lookup_module): Store the module name
26076         belonging to the cache variable; error out if two different
26077         module names map to the same cache variable name.
26078
26079 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26080
26081         gnulib-tool: Make caching optional.
26082         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26083         Update matching short versions of --no-changelog.
26084         (func_usage): Update.
26085         (sed_extract_cache_prog): Renamed from ...
26086         (sed_extract_prog): ... this; revert to old extraction script.
26087         (func_get_description, func_get_status)
26088         (func_get_notice, func_get_applicability, func_get_filelist)
26089         (func_get_dependencies, func_get_autoconf_early_snippet)
26090         (func_get_autoconf_snippet, func_get_automake_snippet)
26091         (func_get_include_directive, func_get_link_directive)
26092         (func_get_license, func_get_maintainer): If $do_cache is false,
26093         use old, non-caching extraction scripts.
26094         Suggestion by Bruno Haible.
26095
26096 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26097
26098         gnulib-tool: cache module metainformation.
26099         * gnulib-tool (sed_extract_prog): Match newline before each
26100         header, and rewrite header to a shell variable suffix.
26101         (func_cache_var, func_cache_lookup_module): New functions,
26102         to turn a module name into a cache variable prefix, and to
26103         look up and cache module metainformation.
26104         (func_get_description, func_get_status)
26105         (func_get_notice, func_get_applicability, func_get_filelist)
26106         (func_get_dependencies, func_get_autoconf_early_snippet)
26107         (func_get_autoconf_snippet, func_get_automake_snippet)
26108         (func_get_include_directive, func_get_link_directive)
26109         (func_get_license, func_get_maintainer): Use
26110         func_cache_lookup_module.
26111
26112 2010-02-07  Bruno Haible  <bruno@clisp.org>
26113
26114         fnctl: Fix missing dependency.
26115         * modules/fcntl (Depends-on): Add getdtablesize.
26116         Reported by John W. Eaton <jwe@gnu.org>.
26117
26118 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26119
26120         Argp: fix recognition of short alias options.
26121
26122         * lib/argp-parse.c (convert_options): Fix improper use of
26123         `|' between character values.
26124         * tests/test-argp.c (group1_option): New alias option
26125         --read (-r).
26126         (group1_parser): Special handling for 'r'.
26127         (test15): New test case.
26128         (test_fun): Add test15.
26129         * tests/test-argp-2.sh: Update expected --help and --usage
26130         outputs.
26131
26132 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26133
26134         * tests/test-argp.c: Fix indentation.
26135
26136 2010-02-04  Eric Blake  <ebb9@byu.net>
26137
26138         gettimeofday: expose type of second argument
26139         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26140         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26141         * tests/test-gettimeofday.c: Use it to silence warning.
26142         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26143         the issue.
26144
26145 2010-02-03  Jim Meyering  <meyering@redhat.com>
26146
26147         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26148         * lib/regcomp.c (TYPE_SIGNED): Define.
26149         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26150
26151         regcomp.c: avoid a new -Wshadow warning
26152         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26153
26154 2010-02-01  Jim Meyering  <meyering@redhat.com>
26155
26156         removing useless parentheses in cpp #define directives
26157         For motivation, see commit c0221df4, "define STREQ(a,b)
26158         consistently, removing useless parentheses"
26159         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26160         * lib/mountlist.c (MNT_IGNORE): Likewise.
26161         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26162
26163 2010-02-01  Eric Blake  <ebb9@byu.net>
26164
26165         sys_time: use link-warning
26166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26167         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26168         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26169         * modules/sys_time (Depends-on): Add warn-on-use.
26170         (Makefile.am): Always build replacement.
26171         (configure.ac): Update substitutions.
26172         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26173         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26174         bother with SYS_TIME_H.
26175         * modules/gettimeofday (configure.ac): Declare indicator.
26176         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26177         in use.
26178
26179         closein-tests: silence compiler warning
26180         * tests/test-closein.c (main): Ignore fread result.
26181         * modules/closein-tests (Depends-on): Add ignore-value.
26182
26183         tests: silence warning about system return
26184         * tests/test-areadlink-with-size.c (main): Ignore system result.
26185         * tests/test-areadlink.c (main): Likewise.
26186         * tests/test-areadlinkat-with-size.c (main): Likewise.
26187         * tests/test-areadlinkat.c (main): Likewise.
26188         * tests/test-canonicalize-lgpl.c (main): Likewise.
26189         * tests/test-canonicalize.c (main): Likewise.
26190         * tests/test-chown.c (main): Likewise.
26191         * tests/test-fchownat.c (main): Likewise.
26192         * tests/test-fdutimensat.c (main): Likewise.
26193         * tests/test-fstatat.c (main): Likewise.
26194         * tests/test-futimens.c (main): Likewise.
26195         * tests/test-lchown.c (main): Likewise.
26196         * tests/test-link.c (main): Likewise.
26197         * tests/test-linkat.c (main): Likewise.
26198         * tests/test-lstat.c (main): Likewise.
26199         * tests/test-mkdir.c (main): Likewise.
26200         * tests/test-mkdirat.c (main): Likewise.
26201         * tests/test-mkfifo.c (main): Likewise.
26202         * tests/test-mkfifoat.c (main): Likewise.
26203         * tests/test-mknod.c (main): Likewise.
26204         * tests/test-readlink.c (main): Likewise.
26205         * tests/test-remove.c (main): Likewise.
26206         * tests/test-rename.c (main): Likewise.
26207         * tests/test-renameat.c (main): Likewise.
26208         * tests/test-rmdir.c (main): Likewise.
26209         * tests/test-symlink.c (main): Likewise.
26210         * tests/test-symlinkat.c (main): Likewise.
26211         * tests/test-unlink.c (main): Likewise.
26212         * tests/test-unlinkat.c (main): Likewise.
26213         * tests/test-utimens.c (main): Likewise.
26214         * tests/test-utimensat.c (main): Likewise.
26215         * modules/areadlink-tests (Depends-on): Add ignore-value.
26216         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26217         * modules/areadlinkat-tests (Depends-on): Likewise.
26218         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26219         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26220         * modules/canonicalize-tests (Depends-on): Likewise.
26221         * modules/chown-tests (Depends-on): Likewise.
26222         * modules/fdutimensat-tests (Depends-on): Likewise.
26223         * modules/futimens-tests (Depends-on): Likewise.
26224         * modules/lchown-tests (Depends-on): Likewise.
26225         * modules/link-tests (Depends-on): Likewise.
26226         * modules/linkat-tests (Depends-on): Likewise.
26227         * modules/lstat-tests (Depends-on): Likewise.
26228         * modules/mkdir-tests (Depends-on): Likewise.
26229         * modules/mkfifo-tests (Depends-on): Likewise.
26230         * modules/mkfifoat-tests (Depends-on): Likewise.
26231         * modules/mknod-tests (Depends-on): Likewise.
26232         * modules/openat-tests (Depends-on): Likewise.
26233         * modules/readlink-tests (Depends-on): Likewise.
26234         * modules/remove-tests (Depends-on): Likewise.
26235         * modules/rename-tests (Depends-on): Likewise.
26236         * modules/renameat-tests (Depends-on): Likewise.
26237         * modules/rmdir-tests (Depends-on): Likewise.
26238         * modules/symlink-tests (Depends-on): Likewise.
26239         * modules/symlinkat-tests (Depends-on): Likewise.
26240         * modules/unlink-tests (Depends-on): Likewise.
26241         * modules/utimens-tests (Depends-on): Likewise.
26242         * modules/utimensat-tests (Depends-on): Likewise.
26243
26244 2010-01-31  Bruno Haible  <bruno@clisp.org>
26245
26246         Perform the same test for many <math.h> functions.
26247         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26248         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26249         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26250         of gl_MATHFUNC.
26251         * modules/acos (configure.ac): Likewise.
26252         * modules/asin (configure.ac): Likewise.
26253         * modules/atan (configure.ac): Likewise.
26254         * modules/atan2 (configure.ac): Likewise.
26255         * modules/cbrt (configure.ac): Likewise.
26256         * modules/copysign (configure.ac): Likewise.
26257         * modules/cos (configure.ac): Likewise.
26258         * modules/cosh (configure.ac): Likewise.
26259         * modules/erf (configure.ac): Likewise.
26260         * modules/erfc (configure.ac): Likewise.
26261         * modules/exp (configure.ac): Likewise.
26262         * modules/fmod (configure.ac): Likewise.
26263         * modules/hypot (configure.ac): Likewise.
26264         * modules/j0 (configure.ac): Likewise.
26265         * modules/j1 (configure.ac): Likewise.
26266         * modules/jn (configure.ac): Likewise.
26267         * modules/lgamma (configure.ac): Likewise.
26268         * modules/log (configure.ac): Likewise.
26269         * modules/log10 (configure.ac): Likewise.
26270         * modules/log1p (configure.ac): Likewise.
26271         * modules/pow (configure.ac): Likewise.
26272         * modules/remainder (configure.ac): Likewise.
26273         * modules/sin (configure.ac): Likewise.
26274         * modules/sinh (configure.ac): Likewise.
26275         * modules/tan (configure.ac): Likewise.
26276         * modules/tanh (configure.ac): Likewise.
26277         * modules/y0 (configure.ac): Likewise.
26278         * modules/y1 (configure.ac): Likewise.
26279         * modules/yn (configure.ac): Likewise.
26280         Suggested by Paolo Bonzini.
26281
26282 2010-01-31  Bruno Haible  <bruno@clisp.org>
26283
26284         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26285
26286 2010-01-31  Bruno Haible  <bruno@clisp.org>
26287
26288         Work around getdelim() bug on FreeBSD 8.0.
26289         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26290         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26291         not work.
26292         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26293         is 1.
26294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26295         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26296         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26297         a non-zero size.
26298         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26299
26300 2010-01-31  Bruno Haible  <bruno@clisp.org>
26301
26302         Work around getline() bug on FreeBSD 8.0.
26303         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26304         and a non-zero size.
26305         * tests/test-getline.c (main): Likewise.
26306         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26307         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26308
26309 2010-01-28  Eric Blake  <ebb9@byu.net>
26310
26311         regex: fix build failure
26312         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26313         platforms.
26314
26315 2010-01-28  Jim Meyering  <meyering@redhat.com>
26316
26317         regex: do not ignore memory allocation failure
26318         * lib/regex_internal.c (create_cd_newstate): Detect
26319         re_node_set_init_copy failure.   Extracted from glibc commit
26320         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26321
26322         regex: sync more white-space changes from libc
26323         * lib/regex_internal.c: White-space only changes.
26324         * lib/regexec.c: Likewise.
26325
26326         regex: add many uses of __attribute_warn_unused_result__
26327         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26328         * lib/regexec.c: Likewise.
26329         Extracted from a messy glibc commit.
26330
26331         regcomp.c: spelling and merge-artifact from glibc
26332         * lib/regcomp.c: Merge remainder of glibc's
26333         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26334
26335         regcomp.c: sync white-space changes from glibc
26336         * lib/regcomp.c: Merge to accommodate white space
26337         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26338
26339         regcomp.c: do not ignore internal return values
26340         * lib/regcomp.c: Do not ignore internal return values.
26341         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26342         but without its white-space changes and spelling fixes.
26343
26344         regex_internal.h: define __attribute_warn_unused_result__
26345         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26346
26347         maint: add a syntax-check rule to check for vulnerable Makefile.in
26348         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26349
26350 2010-01-27  Jim Meyering  <meyering@redhat.com>
26351
26352         ncftpput-ftp: clean up spaces
26353         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26354         Remove trailing blanks.
26355
26356 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26357
26358         * build-aux/git-version-gen: Fix copyright statement.
26359         * build-aux/gnupload: Likewise.
26360         * tests/test-arcfour.c: Likewise.
26361         * tests/test-arctwo.c: Likewise.
26362         * tests/test-count-one-bits.c: Likewise.
26363         * tests/test-crc.c: Likewise.
26364         * tests/test-des.c: Likewise.
26365         * tests/test-gc-arcfour.c: Likewise.
26366         * tests/test-gc-arctwo.c: Likewise.
26367         * tests/test-gc-des.c: Likewise.
26368         * tests/test-gc-hmac-md5.c: Likewise.
26369         * tests/test-gc-hmac-sha1.c: Likewise.
26370         * tests/test-gc-md2.c: Likewise.
26371         * tests/test-gc-md4.c: Likewise.
26372         * tests/test-gc-md5.c: Likewise.
26373         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26374         * tests/test-gc-rijndael.c: Likewise.
26375         * tests/test-gc-sha1.c: Likewise.
26376         * tests/test-gc.c: Likewise.
26377         * tests/test-gethostname.c: Likewise.
26378         * tests/test-gettimeofday.c: Likewise.
26379         * tests/test-hash.c: Likewise.
26380         * tests/test-hmac-md5.c: Likewise.
26381         * tests/test-hmac-sha1.c: Likewise.
26382         * tests/test-md2.c: Likewise.
26383         * tests/test-md4.c: Likewise.
26384         * tests/test-md5.c: Likewise.
26385         * tests/test-memchr.c: Likewise.
26386         * tests/test-memchr2.c: Likewise.
26387         * tests/test-memcmp.c: Likewise.
26388         * tests/test-memmem.c: Likewise.
26389         * tests/test-memrchr.c: Likewise.
26390         * tests/test-rawmemchr.c: Likewise.
26391         * tests/test-read-file.c: Likewise.
26392         * tests/test-rijndael.c: Likewise.
26393         * tests/test-sockets.c: Likewise.
26394         * tests/test-strchrnul.c: Likewise.
26395         * tests/test-strstr.c: Likewise.
26396         * tests/test-strtod.c: Likewise.
26397         * build-aux/ncftpput-ftp: Likewise.
26398
26399 2010-01-26  Eric Blake  <ebb9@byu.net>
26400
26401         ignore-value: update recommended header name
26402         * modules/ignore-value (Include): Only use <> for headers that
26403         exist in glibc.
26404
26405 2010-01-26  Jim Meyering  <meyering@redhat.com>
26406
26407         test-userspec.c: avoid compiler warnings
26408         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26409         and "initialization discards qualifiers..." warnings.
26410         Put the first "uid" in its own scope, and make char* members "const".
26411
26412 2010-01-25  Bruno Haible  <bruno@clisp.org>
26413
26414         gnulib-tool: Make warning diagnostics consistent.
26415         * gnulib-tool (func_warning): New function.
26416         Use it everywhere where gnulib-tool produces output to stderr and it is
26417         not a fatal error.
26418
26419 2010-01-25  Bruno Haible  <bruno@clisp.org>
26420
26421         Fix test dependencies.
26422         * modules/xstrtol-tests (Depends-on): Add inttypes.
26423         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26424
26425 2010-01-25 Pádraig Brady <P@draigBrady.com>
26426
26427         syntax-check: detect incorrect boolean macro values in config.h
26428         * modules/maintainer-makefile (configure.ac): Parameterize the location
26429         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26430         The logic is from Eric Blake and the location indicated by Jim Meyering.
26431         Note the more natural CONFIG_HEADER name is prohibited by automake
26432         for backwards compatibility reasons.
26433         * top/maint.mk (sc_Wundef_boolean): New rule.
26434
26435 2010-01-25  Jim Meyering  <meyering@redhat.com>
26436
26437         bootstrap: detect MacOS 10.6's shasum, too
26438         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26439         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26440
26441 2010-01-23  Jim Meyering  <meyering@redhat.com>
26442
26443         xstrtoll: new module
26444         * modules/xstrtoll: New file.
26445         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26446         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26447         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26448         ./configure fails if you use this module and lack "long long".
26449         * modules/xstrtoll-tests: New module.
26450         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26451         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26452         new init.sh-based test framework.
26453
26454 2010-01-24  Bruno Haible  <bruno@clisp.org>
26455
26456         Tests for module 'yn'.
26457         * modules/yn-tests: New file.
26458         * tests/test-yn.c: New file.
26459
26460         Tests for module 'y1'.
26461         * modules/y1-tests: New file.
26462         * tests/test-y1.c: New file.
26463
26464         Tests for module 'y0'.
26465         * modules/y0-tests: New file.
26466         * tests/test-y0.c: New file.
26467
26468         Tests for module 'tanh'.
26469         * modules/tanh-tests: New file.
26470         * tests/test-tanh.c: New file.
26471
26472         Tests for module 'tan'.
26473         * modules/tan-tests: New file.
26474         * tests/test-tan.c: New file.
26475
26476         Tests for module 'sqrt'.
26477         * modules/sqrt-tests: New file.
26478         * tests/test-sqrt.c: New file.
26479
26480         Tests for module 'sinh'.
26481         * modules/sinh-tests: New file.
26482         * tests/test-sinh.c: New file.
26483
26484         Tests for module 'sin'.
26485         * modules/sin-tests: New file.
26486         * tests/test-sin.c: New file.
26487
26488         Tests for module 'rint'.
26489         * modules/rint-tests: New file.
26490         * tests/test-rint.c: New file.
26491
26492         Tests for module 'remainder'.
26493         * modules/remainder-tests: New file.
26494         * tests/test-remainder.c: New file.
26495
26496         Tests for module 'pow'.
26497         * modules/pow-tests: New file.
26498         * tests/test-pow.c: New file.
26499
26500         Tests for module 'nextafter'.
26501         * modules/nextafter-tests: New file.
26502         * tests/test-nextafter.c: New file.
26503
26504         Tests for module 'modf'.
26505         * modules/modf-tests: New file.
26506         * tests/test-modf.c: New file.
26507
26508         Tests for module 'logb'.
26509         * modules/logb-tests: New file.
26510         * tests/test-logb.c: New file.
26511
26512         Tests for module 'log1p'.
26513         * modules/log1p-tests: New file.
26514         * tests/test-log1p.c: New file.
26515
26516         Tests for module 'log10'.
26517         * modules/log10-tests: New file.
26518         * tests/test-log10.c: New file.
26519
26520         Tests for module 'log'.
26521         * modules/log-tests: New file.
26522         * tests/test-log.c: New file.
26523
26524         Tests for module 'lgamma'.
26525         * modules/lgamma-tests: New file.
26526         * tests/test-lgamma.c: New file.
26527
26528         Tests for module 'ldexp'.
26529         * modules/ldexp-tests: New file.
26530         * tests/test-ldexp.c: New file.
26531
26532         Tests for module 'jn'.
26533         * modules/jn-tests: New file.
26534         * tests/test-jn.c: New file.
26535
26536         Tests for module 'j1'.
26537         * modules/j1-tests: New file.
26538         * tests/test-j1.c: New file.
26539
26540         Tests for module 'j0'.
26541         * modules/j0-tests: New file.
26542         * tests/test-j0.c: New file.
26543
26544         Tests for module 'hypot'.
26545         * modules/hypot-tests: New file.
26546         * tests/test-hypot.c: New file.
26547
26548         Tests for module 'fmod'.
26549         * modules/fmod-tests: New file.
26550         * tests/test-fmod.c: New file.
26551
26552         Tests for module 'fabs'.
26553         * modules/fabs-tests: New file.
26554         * tests/test-fabs.c: New file.
26555
26556         Tests for module 'exp'.
26557         * modules/exp-tests: New file.
26558         * tests/test-exp.c: New file.
26559
26560         Tests for module 'erfc'.
26561         * modules/erfc-tests: New file.
26562         * tests/test-erfc.c: New file.
26563
26564         Tests for module 'erf'.
26565         * modules/erf-tests: New file.
26566         * tests/test-erf.c: New file.
26567
26568         Tests for module 'cosh'.
26569         * modules/cosh-tests: New file.
26570         * tests/test-cosh.c: New file.
26571
26572         Tests for module 'cos'.
26573         * modules/cos-tests: New file.
26574         * tests/test-cos.c: New file.
26575
26576         Tests for module 'copysign'.
26577         * modules/copysign-tests: New file.
26578         * tests/test-copysign.c: New file.
26579
26580         Tests for module 'cbrt'.
26581         * modules/cbrt-tests: New file.
26582         * tests/test-cbrt.c: New file.
26583
26584         Tests for module 'atan2'.
26585         * modules/atan2-tests: New file.
26586         * tests/test-atan2.c: New file.
26587
26588         Tests for module 'atan'.
26589         * modules/atan-tests: New file.
26590         * tests/test-atan.c: New file.
26591
26592         Tests for module 'asin'.
26593         * modules/asin-tests: New file.
26594         * tests/test-asin.c: New file.
26595
26596         Tests for module 'acos'.
26597         * modules/acos-tests: New file.
26598         * tests/test-acos.c: New file.
26599
26600 2010-01-24  Bruno Haible  <bruno@clisp.org>
26601
26602         Fix tests for common <math.h> functions.
26603         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26604         code snippet that references the function pointer, rather than merely
26605         calling the function. Substitute the FUNC_LIBM variable.
26606         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26607         * modules/acos (configure.ac): Likewise.
26608         * modules/asin (configure.ac): Likewise.
26609         * modules/atan (configure.ac): Likewise.
26610         * modules/atan2 (configure.ac): Likewise.
26611         * modules/cbrt (configure.ac): Likewise.
26612         * modules/copysign (configure.ac): Likewise.
26613         * modules/cos (configure.ac): Likewise.
26614         * modules/cosh (configure.ac): Likewise.
26615         * modules/erf (configure.ac): Likewise.
26616         * modules/erfc (configure.ac): Likewise.
26617         * modules/exp (configure.ac): Likewise.
26618         * modules/fabs (configure.ac): Likewise.
26619         * modules/fmod (configure.ac): Likewise.
26620         * modules/hypot (configure.ac): Likewise.
26621         * modules/j0 (configure.ac): Likewise.
26622         * modules/j1 (configure.ac): Likewise.
26623         * modules/jn (configure.ac): Likewise.
26624         * modules/ldexp (configure.ac): Likewise.
26625         * modules/lgamma (configure.ac): Likewise.
26626         * modules/log (configure.ac): Likewise.
26627         * modules/log10 (configure.ac): Likewise.
26628         * modules/log1p (configure.ac): Likewise.
26629         * modules/logb (configure.ac): Likewise.
26630         * modules/modf (configure.ac): Likewise.
26631         * modules/nextafter (configure.ac): Likewise.
26632         * modules/pow (configure.ac): Likewise.
26633         * modules/remainder (configure.ac): Likewise.
26634         * modules/rint (configure.ac): Likewise.
26635         * modules/sin (configure.ac): Likewise.
26636         * modules/sinh (configure.ac): Likewise.
26637         * modules/tan (configure.ac): Likewise.
26638         * modules/tanh (configure.ac): Likewise.
26639         * modules/y0 (configure.ac): Likewise.
26640         * modules/y1 (configure.ac): Likewise.
26641         * modules/yn (configure.ac): Likewise.
26642
26643 2010-01-24  Bruno Haible  <bruno@clisp.org>
26644
26645         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26646         * tests/test-acosl.c (x): New variable.
26647         (main): Store argument in x and fetch it from x.
26648         * tests/test-asinl.c (x): New variable.
26649         (main): Store argument in x and fetch it from x.
26650         * tests/test-atanl.c (x): New variable.
26651         (main): Store argument in x and fetch it from x.
26652         * tests/test-cosl.c (x): New variable.
26653         (main): Store argument in x and fetch it from x.
26654         * tests/test-expl.c (x): New variable.
26655         (main): Store argument in x and fetch it from x.
26656         * tests/test-logl.c (x): New variable.
26657         (main): Store argument in x and fetch it from x.
26658         * tests/test-sinl.c (x): New variable.
26659         (main): Store argument in x and fetch it from x.
26660         * tests/test-sqrtl.c (x): New variable.
26661         (main): Store argument in x and fetch it from x.
26662         * tests/test-tanl.c (x): New variable.
26663         (main): Store argument in x and fetch it from x.
26664
26665 2010-01-24  Bruno Haible  <bruno@clisp.org>
26666
26667         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26668         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26669         assignments to the initial TESTS_ENVIRONMENT.
26670         * doc/gnulib.texi (Unit test modules): Document it.
26671         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26672         TESTS_ENVIRONMENT.
26673         * modules/btowc-tests (Makefile.am): Likewise.
26674         * modules/c-stack-tests (Makefile.am): Likewise.
26675         * modules/c-strcase-tests (Makefile.am): Likewise.
26676         * modules/copy-file-tests (Makefile.am): Likewise.
26677         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26678         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26679         * modules/mbrtowc-tests (Makefile.am): Likewise.
26680         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26681         * modules/mbscasestr-tests (Makefile.am): Likewise.
26682         * modules/mbschr-tests (Makefile.am): Likewise.
26683         * modules/mbscspn-tests (Makefile.am): Likewise.
26684         * modules/mbsinit-tests (Makefile.am): Likewise.
26685         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26686         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26687         * modules/mbspbrk-tests (Makefile.am): Likewise.
26688         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26689         * modules/mbsrchr-tests (Makefile.am): Likewise.
26690         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26691         * modules/mbsspn-tests (Makefile.am): Likewise.
26692         * modules/mbsstr-tests (Makefile.am): Likewise.
26693         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26694         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26695         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26696         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26697         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26698         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26699         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26700         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26701         * modules/wcrtomb-tests (Makefile.am): Likewise.
26702         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26703         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26704         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26705         assignments from TESTS_ENVIRONMENT.
26706         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26707         augmentation.
26708         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26709         * modules/atexit-tests (Makefile.am): Likewise.
26710         * modules/binary-io-tests (Makefile.am): Likewise.
26711         * modules/closein-tests (Makefile.am): Likewise.
26712         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26713         * modules/exclude-tests (Makefile.am): Likewise.
26714         * modules/fflush-tests (Makefile.am): Likewise.
26715         * modules/fpending-tests (Makefile.am): Likewise.
26716         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26717         * modules/freadahead-tests (Makefile.am): Likewise.
26718         * modules/freadptr-tests (Makefile.am): Likewise.
26719         * modules/freadseek-tests (Makefile.am): Likewise.
26720         * modules/fseek-tests (Makefile.am): Likewise.
26721         * modules/fseeko-tests (Makefile.am): Likewise.
26722         * modules/ftell-tests (Makefile.am): Likewise.
26723         * modules/ftello-tests (Makefile.am): Likewise.
26724         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26725         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26726         * modules/lseek-tests (Makefile.am): Likewise.
26727         * modules/parse-duration-tests (Makefile.am): Likewise.
26728         * modules/perror-tests (Makefile.am): Likewise.
26729         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26730         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26731         * modules/pipe-tests (Makefile.am): Likewise.
26732         * modules/pread-tests (Makefile.am): Likewise.
26733         * modules/printf-posix-tests (Makefile.am): Likewise.
26734         * modules/select-tests (Makefile.am): Likewise.
26735         * modules/sigpipe-tests (Makefile.am): Likewise.
26736         * modules/tsearch-tests (Makefile.am): Likewise.
26737         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26738         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26739         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26740         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26741         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26742         * modules/version-etc-tests (Makefile.am): Likewise.
26743         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26744         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26745         * modules/xalloc-die-tests (Makefile.am): Likewise.
26746         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26747         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26748         * modules/xstrtol-tests (Makefile.am): Likewise.
26749         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26750         * modules/yesno-tests (Makefile.am): Likewise.
26751         Suggested by Jim Meyering.
26752
26753 2010-01-24  Bruno Haible  <bruno@clisp.org>
26754
26755         More documentation.
26756         * doc/gnulib.texi (Writing modules): New chapter.
26757         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26758         the new chapter.
26759
26760 2010-01-24  Jim Meyering  <meyering@redhat.com>
26761
26762         maint.mk: do not prepend "./" after filtering
26763         * top/maint.mk (_prepend_srcdir_prefix): New variable
26764         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26765         "./" when $(srcdir) is ".".
26766
26767         define STREQ(a,b) consistently, removing useless parentheses
26768         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26769         since the only risk is that "a" or "b" contains an unparenthesized
26770         comma, but if either did that, STREQ would have 3 or more arguments.
26771         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26772         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26773         * lib/hash-triple.c (STREQ): Likewise.
26774         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26775         * lib/getugroups.c (STREQ): Likewise.
26776
26777 2010-01-23  Jim Meyering  <meyering@redhat.com>
26778
26779         maint.mk: fix syntax-check in a non-srcdir build directory
26780         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26781         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26782
26783 2010-01-22  Jim Meyering  <meyering@redhat.com>
26784
26785         userspec: add unit tests
26786         * tests/test-userspec.c: New file.
26787         * modules/userspec-tests: Likewise.
26788
26789 2010-01-21  Jim Meyering  <meyering@redhat.com>
26790
26791         maint.mk: handle source file names containing "." robustly
26792         * top/maint.mk (_dot_escaped_srcdir): Define.
26793         (VC_LIST): Use it in LHS of sed substitution.
26794
26795 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26796
26797         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26798         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26799         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26800         from a non-srcdir build.
26801
26802 2010-01-20  Eric Blake  <ebb9@byu.net>
26803
26804         warn-on-use: use instead of link-warning
26805         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26806         * modules/unistd (Depends-on, Makefile.am): Likewise.
26807         * modules/arpa_inet (Depends-on): Replace link-warning with
26808         warn-on-use.
26809         (Makefile.am): Update rules accordingly.
26810         * modules/ctype (Depends-on, Makefile.am): Likewise.
26811         * modules/dirent (Depends-on, Makefile.am): Likewise.
26812         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26813         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26814         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26815         * modules/locale (Depends-on, Makefile.am): Likewise.
26816         * modules/math (Depends-on, Makefile.am): Likewise.
26817         * modules/search (Depends-on, Makefile.am): Likewise.
26818         * modules/signal (Depends-on, Makefile.am): Likewise.
26819         * modules/spawn (Depends-on, Makefile.am): Likewise.
26820         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26821         * modules/string (Depends-on, Makefile.am): Likewise.
26822         * modules/strings (Depends-on, Makefile.am): Likewise.
26823         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26824         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26825         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26826         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26827         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26828         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26829         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26830         * modules/wchar (Depends-on, Makefile.am): Likewise.
26831         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26832         should be poisoned.
26833         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26834         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26835         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26836         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26837         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26838         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26839         * m4/math_h.m4 (gl_MATH_H): Likewise.
26840         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26841         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26842         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26843         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26844         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26845         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26846         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26847         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26848         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26849         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26850         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26852         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26854         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26855         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26856         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26857         GL_LINK_WARNING.
26858         * lib/ctype.in.h: Likewise.
26859         * lib/dirent.in.h: Likewise.
26860         * lib/fcntl.in.h: Likewise.
26861         * lib/inttypes.in.h: Likewise.
26862         * lib/langinfo.in.h: Likewise.
26863         * lib/locale.in.h: Likewise.
26864         * lib/math.in.h: Likewise.
26865         * lib/search.in.h: Likewise.
26866         * lib/signal.in.h: Likewise.
26867         * lib/spawn.in.h: Likewise.
26868         * lib/stdio.in.h: Likewise.
26869         * lib/stdlib.in.h: Likewise.
26870         * lib/string.in.h: Likewise.
26871         * lib/strings.in.h: Likewise.
26872         * lib/sys_file.in.h: Likewise.
26873         * lib/sys_ioctl.in.h: Likewise.
26874         * lib/sys_select.in.h: Likewise.
26875         * lib/sys_socket.in.h: Likewise.
26876         * lib/sys_stat.in.h: Likewise.
26877         * lib/sys_times.in.h: Likewise.
26878         * lib/sys_utsname.in.h: Likewise.
26879         * lib/unistd.in.h: Likewise.
26880         * lib/wchar.in.h: Likewise.
26881
26882 2010-01-20  Bruno Haible  <bruno@clisp.org>
26883
26884         Avoid duplicate -lm.
26885         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26886         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26887         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26888         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26889         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26890         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26891         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26892         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26893         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26894         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26895         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26896         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26897         Reported by Paolo Bonzini.
26898
26899 2010-01-19  Bruno Haible  <bruno@clisp.org>
26900
26901         langinfo, nl_langinfo: Relicense under LGPLv2+.
26902         * modules/langinfo (License): Change to LGPLv2+.
26903         * modules/nl_langinfo (License): Likewise.
26904         Patch by David Lutterkort <lutter@redhat.com>.
26905
26906 2010-01-19  Bruno Haible  <bruno@clisp.org>
26907
26908         Avoid compilation error with cc on OSF/1 5.1.
26909         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26910         statement, not before.
26911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26912
26913 2010-01-18  Bruno Haible  <bruno@clisp.org>
26914
26915         Avoid a link error due to the __printf__ symbol.
26916         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26917         and 2.6.x.
26918         (__format__, __printf__): Remove definitions.
26919         * lib/argp-fmtstream.h: Likewise.
26920         * lib/argp.h: Likewise.
26921         * lib/error.h: Likewise.
26922         * lib/vasnprintf.h: Likewise.
26923         * lib/xprintf.h: Likewise.
26924         * lib/xvasprintf.h: Likewise.
26925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26926
26927 2010-01-18  Bruno Haible  <bruno@clisp.org>
26928
26929         Tests for module 'tanl'.
26930         * modules/tanl-tests: New file.
26931         * tests/test-tanl.c: New file.
26932
26933         Tests for module 'sqrtl'.
26934         * modules/sqrtl-tests: New file.
26935         * tests/test-sqrtl.c: New file.
26936
26937         Tests for module 'sinl'.
26938         * modules/sinl-tests: New file.
26939         * tests/test-sinl.c: New file.
26940
26941         Tests for module 'logl'.
26942         * modules/logl-tests: New file.
26943         * tests/test-logl.c: New file.
26944
26945         Tests for module 'expl'.
26946         * modules/expl-tests: New file.
26947         * tests/test-expl.c: New file.
26948
26949         Tests for module 'cosl'.
26950         * modules/cosl-tests: New file.
26951         * tests/test-cosl.c: New file.
26952
26953         Tests for module 'atanl'.
26954         * modules/atanl-tests: New file.
26955         * tests/test-atanl.c: New file.
26956
26957         Tests for module 'asinl'.
26958         * modules/asinl-tests: New file.
26959         * tests/test-asinl.c: New file.
26960
26961         Tests for module 'acosl'.
26962         * modules/acosl-tests: New file.
26963         * tests/test-acosl.c: New file.
26964
26965         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26966         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26967         tanl): Use the standard gnulib idiom.
26968         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26969         * lib/sinl.c: Likewise.
26970         * lib/tanl.c: Don't include trigl.c.
26971         (kernel_tanl): Make static.
26972         * lib/sincosl.c: Include trigl.h first.
26973         * lib/trigl.c: Likewise.
26974         * m4/acosl.m4: New file.
26975         * m4/asinl.m4: New file.
26976         * m4/atanl.m4: New file.
26977         * m4/cosl.m4: New file.
26978         * m4/expl.m4: New file.
26979         * m4/logl.m4: New file.
26980         * m4/sinl.m4: New file.
26981         * m4/sqrtl.m4: New file.
26982         * m4/tanl.m4: New file.
26983         * m4/mathl.m4: Remove file.
26984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26985         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26986         Don't initialize GNULIB_MATHL.
26987         * modules/acosl: New file.
26988         * modules/asinl: New file.
26989         * modules/atanl: New file.
26990         * modules/cosl: New file.
26991         * modules/expl: New file.
26992         * modules/logl: New file.
26993         * modules/sinl: New file.
26994         * modules/sqrtl: New file.
26995         * modules/tanl: New file.
26996         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26997         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26998         substitute GNULIB_MATHL.
26999         * modules/mathl: Rewritten.
27000         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27001         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27002         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27003         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27004         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27005         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27006         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27007         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27008         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27009
27010 2010-01-18  Bruno Haible  <bruno@clisp.org>
27011
27012         sqrt: Make gl_FUNC_SQRT requirable.
27013         * m4/sqrt.m4: New file.
27014         * modules/sqrt (Files): Add it.
27015         (configure.ac): Invoke gl_FUNC_SQRT.
27016
27017 2010-01-18  Bruno Haible  <bruno@clisp.org>
27018
27019         New modules for common <math.h> functions.
27020         * m4/mathfunc.m4: New file.
27021         * modules/acos: New file.
27022         * modules/asin: New file.
27023         * modules/atan: New file.
27024         * modules/atan2: New file.
27025         * modules/cbrt: New file.
27026         * modules/copysign: New file.
27027         * modules/cos: New file.
27028         * modules/cosh: New file.
27029         * modules/erf: New file.
27030         * modules/erfc: New file.
27031         * modules/exp: New file.
27032         * modules/fabs: New file.
27033         * modules/fmod: New file.
27034         * modules/hypot: New file.
27035         * modules/j0: New file.
27036         * modules/j1: New file.
27037         * modules/jn: New file.
27038         * modules/ldexp: New file.
27039         * modules/lgamma: New file.
27040         * modules/log: New file.
27041         * modules/log10: New file.
27042         * modules/log1p: New file.
27043         * modules/logb: New file.
27044         * modules/modf: New file.
27045         * modules/nextafter: New file.
27046         * modules/pow: New file.
27047         * modules/remainder: New file.
27048         * modules/rint: New file.
27049         * modules/sin: New file.
27050         * modules/sinh: New file.
27051         * modules/sqrt: New file.
27052         * modules/tan: New file.
27053         * modules/tanh: New file.
27054         * modules/y0: New file.
27055         * modules/y1: New file.
27056         * modules/yn: New file.
27057         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27058         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27059         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27060         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27061         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27062         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27063         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27064         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27065         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27066         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27067         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27068         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27069         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27070         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27071         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27072         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27073         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27074         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27075         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27076         * doc/posix-functions/log.texi: Mention the 'log' module.
27077         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27078         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27079         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27080         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27081         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27082         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27083         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27084         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27085         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27086         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27087         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27088         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27089         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27090         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27091         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27092         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27093
27094 2010-01-18  Jim Meyering  <meyering@redhat.com>
27095
27096         ignore-value: relax license to LGPLv2+
27097         * modules/ignore-value (License): Relax to LGPLv2+.
27098
27099         getdate: don't leak when TZ contains two or more '"'s
27100         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27101         double quote in TZ after the first one.
27102
27103         readtokens: do not leak internal token_lengths buffer
27104         * lib/readtokens.c (readtokens): Free the local, lengths,
27105         when the supplied "token_lengths" parameter is NULL.
27106
27107 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27108
27109         Fix a couple of missing LIBTHREAD link failures on AIX.
27110         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27111         $(LIBTHREAD).
27112         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27113
27114         Link test-poll against INET_PTON_LIB.
27115         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27116         for inet_pton on Solaris 10.
27117
27118 2010-01-17  Bruno Haible  <bruno@clisp.org>
27119
27120         unistdio/*-sprintf: Fix typo in module description.
27121         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27122         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27123         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27124         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27125         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27126         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27127         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27129
27130 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27131
27132         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27133         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27134         variables in shell case patterns, for AIX and HP-UX ksh.
27135
27136         Split large sed scripts, for HP-UX sed.
27137         * modules/stdio: Split sed scripts around 50 sed commands,
27138         to avoid HP-UX limit of 99 commands, in the near future.
27139         * modules/string: Likewise.
27140         * modules/unistd: Likewise.
27141
27142         gnulib-tool: avoid writing in the current directory.
27143         * gnulib-tool (func_emit_lib_Makefile_am)
27144         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27145         not in the current directory, so concurrent gnulib-tool
27146         instances do not interfere.
27147
27148 2010-01-16  Jim Meyering  <meyering@redhat.com>
27149
27150         doc: update users.txt
27151         * users.txt: Add grep.
27152         (diffutils, gzip): Update URLs.
27153
27154 2010-01-12  Bruno Haible  <bruno@clisp.org>
27155
27156         posix_spawn: Avoid test failure on Cygwin.
27157         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27158         characters.
27159         Reported by Simon Josefsson.
27160
27161 2010-01-12  Bruno Haible  <bruno@clisp.org>
27162
27163         * tests/test-cond.c (main): When skipping the test, show the reason.
27164
27165 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27166
27167         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27168
27169 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27170
27171         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27172         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27173
27174 2010-01-12  Eric Blake  <ebb9@byu.net>
27175
27176         build: guarantee AS_VAR_IF
27177         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27178         (gl_AS_VAR_IF): Move...
27179         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27180         Reported by Simon Josefsson.
27181
27182 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27183
27184         * lib/stdio.in.h: Fix typo.
27185
27186 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27187
27188         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27189         libgpg-error.
27190
27191 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27192
27193         * tests/test-xalloc-die.sh: Use $EXEEXT.
27194
27195 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27196             Bruno Haible  <bruno@clisp.org>
27197
27198         getlogin, getlogin_r: Avoid test failure.
27199         * tests/test-getlogin.c: Include <stdio.h>.
27200         (main): Skip the test when the function fails because stdin is not a
27201         tty.
27202         * tests/test-getlogin_r.c: Include <stdio.h>.
27203         (main): Skip the test when the function fails because stdin is not a
27204         tty.
27205
27206 2010-01-11  Eric Blake  <ebb9@byu.net>
27207
27208         tests: avoid more large file warnings
27209         * tests/test-fflush.c: Avoid warning about ftell use.
27210         * tests/test-fseek.c: Avoid warning about fseek use.
27211
27212 2010-01-10  Bruno Haible  <bruno@clisp.org>
27213
27214         nproc: Work better on Linux when /proc and /sys are not mounted.
27215         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27216         as lower bound when, on glibc/Linux systems,
27217         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27218         Suggested by Pádraig Brady <P@draigbrady.com>.
27219         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27220
27221         nproc: Refactor.
27222         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27223         extracted from num_processors.
27224         (num_processors): Call it.
27225
27226 2010-01-11  Jim Meyering  <meyering@redhat.com>
27227
27228         utimecmp: avoid new warning from upcoming gcc-4.5.0
27229         * lib/utimecmp.c (BILLION): Define using #define rather than an
27230         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27231
27232 2010-01-11  Eric Blake  <ebb9@byu.net>
27233
27234         math: add portability warnings for classification macros
27235         * modules/math (Depends-on): Add warn-on-use.
27236         (Makefile.am): Provide new substitutions.
27237         * m4/math_h.m4 (gl_MATH_H): Require inline.
27238         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27239         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27240         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27241         implement warnings.
27242
27243         unistd: warn on use of environ without module
27244         * modules/unistd (Depends-on): Add warn-on-use.
27245         (Makefile.am): Provide new substitutions.
27246         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27247         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27248
27249         stdio: warn on suspicious uses
27250         * modules/stdio (Depends-on): Add warn-on-use.
27251         (Makefile.am): Provide new substitutions.
27252         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27253         fseeko.
27254         * lib/stdio.in.h (gets): Always warn on use.
27255         (fseek, ftell): Adjust when warnings are issued, and honor
27256         _GL_NO_LARGE_FILES as a way to silence the warning.
27257         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27258         any warning about large file offsets.
27259         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27260         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27261         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27262         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27263         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27264         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27265         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27266         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27267
27268         warn-on-use: new module
27269         * modules/warn-on-use: New file.
27270         * build-aux/warn-on-use.h: Likewise.
27271         * m4/warn-on-use.m4: Likewise.
27272         * MODULES.html.sh (Support for building): Mention it.
27273
27274 2010-01-10  Bruno Haible  <bruno@clisp.org>
27275
27276         Tests for module 'unistr/u32-strdup'.
27277         * modules/unistr/u32-strdup-tests: New file.
27278         * tests/unistr/test-u32-strdup.c: New file.
27279
27280         Tests for module 'unistr/u16-strdup'.
27281         * modules/unistr/u16-strdup-tests: New file.
27282         * tests/unistr/test-u16-strdup.c: New file.
27283
27284         Tests for module 'unistr/u8-strdup'.
27285         * modules/unistr/u8-strdup-tests: New file.
27286         * tests/unistr/test-u8-strdup.c: New file.
27287         * tests/unistr/test-strdup.h: New file.
27288
27289         Tests for module 'unistr/u32-strncmp'.
27290         * modules/unistr/u32-strncmp-tests: New file.
27291         * tests/unistr/test-u32-strncmp.c: New file.
27292
27293         Tests for module 'unistr/u16-strncmp'.
27294         * modules/unistr/u16-strncmp-tests: New file.
27295         * tests/unistr/test-u16-strncmp.c: New file.
27296
27297         Tests for module 'unistr/u8-strncmp'.
27298         * modules/unistr/u8-strncmp-tests: New file.
27299         * tests/unistr/test-u8-strncmp.c: New file.
27300         * tests/unistr/test-strncmp.h: New file.
27301
27302         Tests for module 'unistr/u32-strcoll'.
27303         * modules/unistr/u32-strcoll-tests: New file.
27304         * tests/unistr/test-u32-strcoll.c: New file.
27305
27306         Tests for module 'unistr/u16-strcoll'.
27307         * modules/unistr/u16-strcoll-tests: New file.
27308         * tests/unistr/test-u16-strcoll.c: New file.
27309
27310         Tests for module 'unistr/u8-strcoll'.
27311         * modules/unistr/u8-strcoll-tests: New file.
27312         * tests/unistr/test-u8-strcoll.c: New file.
27313
27314         Tests for module 'unistr/u32-strcmp'.
27315         * modules/unistr/u32-strcmp-tests: New file.
27316         * tests/unistr/test-u32-strcmp.c: New file.
27317         * tests/unistr/test-u32-strcmp.h: New file.
27318
27319         Tests for module 'unistr/u16-strcmp'.
27320         * modules/unistr/u16-strcmp-tests: New file.
27321         * tests/unistr/test-u16-strcmp.c: New file.
27322         * tests/unistr/test-u16-strcmp.h: New file.
27323
27324         Tests for module 'unistr/u8-strcmp'.
27325         * modules/unistr/u8-strcmp-tests: New file.
27326         * tests/unistr/test-u8-strcmp.c: New file.
27327         * tests/unistr/test-u8-strcmp.h: New file.
27328         * tests/unistr/test-strcmp.h: New file.
27329
27330         Tests for module 'unistr/u32-strncat'.
27331         * modules/unistr/u32-strncat-tests: New file.
27332         * tests/unistr/test-u32-strncat.c: New file.
27333
27334         Tests for module 'unistr/u16-strncat'.
27335         * modules/unistr/u16-strncat-tests: New file.
27336         * tests/unistr/test-u16-strncat.c: New file.
27337
27338         Tests for module 'unistr/u8-strncat'.
27339         * modules/unistr/u8-strncat-tests: New file.
27340         * tests/unistr/test-u8-strncat.c: New file.
27341         * tests/unistr/test-strncat.h: New file.
27342
27343         Tests for module 'unistr/u32-strcat'.
27344         * modules/unistr/u32-strcat-tests: New file.
27345         * tests/unistr/test-u32-strcat.c: New file.
27346
27347         Tests for module 'unistr/u16-strcat'.
27348         * modules/unistr/u16-strcat-tests: New file.
27349         * tests/unistr/test-u16-strcat.c: New file.
27350
27351         Tests for module 'unistr/u8-strcat'.
27352         * modules/unistr/u8-strcat-tests: New file.
27353         * tests/unistr/test-u8-strcat.c: New file.
27354         * tests/unistr/test-strcat.h: New file.
27355
27356         Tests for module 'unistr/u32-stpncpy'.
27357         * modules/unistr/u32-stpncpy-tests: New file.
27358         * tests/unistr/test-u32-stpncpy.c: New file.
27359
27360         Tests for module 'unistr/u16-stpncpy'.
27361         * modules/unistr/u16-stpncpy-tests: New file.
27362         * tests/unistr/test-u16-stpncpy.c: New file.
27363
27364         Tests for module 'unistr/u8-stpncpy'.
27365         * modules/unistr/u8-stpncpy-tests: New file.
27366         * tests/unistr/test-u8-stpncpy.c: New file.
27367         * tests/unistr/test-stpncpy.h: New file.
27368
27369         Tests for module 'unistr/u32-strncpy'.
27370         * modules/unistr/u32-strncpy-tests: New file.
27371         * tests/unistr/test-u32-strncpy.c: New file.
27372
27373         Tests for module 'unistr/u16-strncpy'.
27374         * modules/unistr/u16-strncpy-tests: New file.
27375         * tests/unistr/test-u16-strncpy.c: New file.
27376
27377         Tests for module 'unistr/u8-strncpy'.
27378         * modules/unistr/u8-strncpy-tests: New file.
27379         * tests/unistr/test-u8-strncpy.c: New file.
27380         * tests/unistr/test-strncpy.h: New file.
27381
27382         Tests for module 'unistr/u32-stpcpy'.
27383         * modules/unistr/u32-stpcpy-tests: New file.
27384         * tests/unistr/test-u32-stpcpy.c: New file.
27385
27386         Tests for module 'unistr/u16-stpcpy'.
27387         * modules/unistr/u16-stpcpy-tests: New file.
27388         * tests/unistr/test-u16-stpcpy.c: New file.
27389
27390         Tests for module 'unistr/u8-stpcpy'.
27391         * modules/unistr/u8-stpcpy-tests: New file.
27392         * tests/unistr/test-u8-stpcpy.c: New file.
27393         * tests/unistr/test-stpcpy.h: New file.
27394
27395         Tests for module 'unistr/u32-strcpy'.
27396         * modules/unistr/u32-strcpy-tests: New file.
27397         * tests/unistr/test-u32-strcpy.c: New file.
27398
27399         Tests for module 'unistr/u16-strcpy'.
27400         * modules/unistr/u16-strcpy-tests: New file.
27401         * tests/unistr/test-u16-strcpy.c: New file.
27402
27403         Tests for module 'unistr/u8-strcpy'.
27404         * modules/unistr/u8-strcpy-tests: New file.
27405         * tests/unistr/test-u8-strcpy.c: New file.
27406         * tests/unistr/test-strcpy.h: New file.
27407
27408         Tests for module 'unistr/u32-strnlen'.
27409         * modules/unistr/u32-strnlen-tests: New file.
27410         * tests/unistr/test-u32-strnlen.c: New file.
27411
27412         Tests for module 'unistr/u16-strnlen'.
27413         * modules/unistr/u16-strnlen-tests: New file.
27414         * tests/unistr/test-u16-strnlen.c: New file.
27415
27416         Tests for module 'unistr/u8-strnlen'.
27417         * modules/unistr/u8-strnlen-tests: New file.
27418         * tests/unistr/test-u8-strnlen.c: New file.
27419         * tests/unistr/test-strnlen.h: New file.
27420
27421         Tests for module 'unistr/u32-strlen'.
27422         * modules/unistr/u32-strlen-tests: New file.
27423         * tests/unistr/test-u32-strlen.c: New file.
27424
27425         Tests for module 'unistr/u16-strlen'.
27426         * modules/unistr/u16-strlen-tests: New file.
27427         * tests/unistr/test-u16-strlen.c: New file.
27428
27429         Tests for module 'unistr/u8-strlen'.
27430         * modules/unistr/u8-strlen-tests: New file.
27431         * tests/unistr/test-u8-strlen.c: New file.
27432
27433         Tests for module 'unistr/u32-prev'.
27434         * modules/unistr/u32-prev-tests: New file.
27435         * tests/unistr/test-u32-prev.c: New file.
27436
27437         Tests for module 'unistr/u16-prev'.
27438         * modules/unistr/u16-prev-tests: New file.
27439         * tests/unistr/test-u16-prev.c: New file.
27440
27441         Tests for module 'unistr/u8-prev'.
27442         * modules/unistr/u8-prev-tests: New file.
27443         * tests/unistr/test-u8-prev.c: New file.
27444
27445         Tests for module 'unistr/u32-next'.
27446         * modules/unistr/u32-next-tests: New file.
27447         * tests/unistr/test-u32-next.c: New file.
27448
27449         Tests for module 'unistr/u16-next'.
27450         * modules/unistr/u16-next-tests: New file.
27451         * tests/unistr/test-u16-next.c: New file.
27452
27453         Tests for module 'unistr/u8-next'.
27454         * modules/unistr/u8-next-tests: New file.
27455         * tests/unistr/test-u8-next.c: New file.
27456
27457         Tests for module 'unistr/u32-strmbtouc'.
27458         * modules/unistr/u32-strmbtouc-tests: New file.
27459         * tests/unistr/test-u32-strmbtouc.c: New file.
27460
27461         Tests for module 'unistr/u16-strmbtouc'.
27462         * modules/unistr/u16-strmbtouc-tests: New file.
27463         * tests/unistr/test-u16-strmbtouc.c: New file.
27464
27465         Tests for module 'unistr/u8-strmbtouc'.
27466         * modules/unistr/u8-strmbtouc-tests: New file.
27467         * tests/unistr/test-u8-strmbtouc.c: New file.
27468
27469         Tests for module 'unistr/u32-strmblen'.
27470         * modules/unistr/u32-strmblen-tests: New file.
27471         * tests/unistr/test-u32-strmblen.c: New file.
27472
27473         Tests for module 'unistr/u16-strmblen'.
27474         * modules/unistr/u16-strmblen-tests: New file.
27475         * tests/unistr/test-u16-strmblen.c: New file.
27476
27477         Tests for module 'unistr/u8-strmblen'.
27478         * modules/unistr/u8-strmblen-tests: New file.
27479         * tests/unistr/test-u8-strmblen.c: New file.
27480
27481         Tests for module 'unistr/u32-cpy-alloc'.
27482         * modules/unistr/u32-cpy-alloc-tests: New file.
27483         * tests/unistr/test-u32-cpy-alloc.c: New file.
27484
27485         Tests for module 'unistr/u16-cpy-alloc'.
27486         * modules/unistr/u16-cpy-alloc-tests: New file.
27487         * tests/unistr/test-u16-cpy-alloc.c: New file.
27488
27489         Tests for module 'unistr/u8-cpy-alloc'.
27490         * modules/unistr/u8-cpy-alloc-tests: New file.
27491         * tests/unistr/test-u8-cpy-alloc.c: New file.
27492         * tests/unistr/test-cpy-alloc.h: New file.
27493
27494         Tests for module 'unistr/u32-mbsnlen'.
27495         * modules/unistr/u32-mbsnlen-tests: New file.
27496         * tests/unistr/test-u32-mbsnlen.c: New file.
27497
27498         Tests for module 'unistr/u16-mbsnlen'.
27499         * modules/unistr/u16-mbsnlen-tests: New file.
27500         * tests/unistr/test-u16-mbsnlen.c: New file.
27501
27502         Tests for module 'unistr/u8-mbsnlen'.
27503         * modules/unistr/u8-mbsnlen-tests: New file.
27504         * tests/unistr/test-u8-mbsnlen.c: New file.
27505
27506         Tests for module 'unistr/u32-chr'.
27507         * modules/unistr/u32-chr-tests: New file.
27508         * tests/unistr/test-u32-chr.c: New file.
27509
27510         Tests for module 'unistr/u16-chr'.
27511         * modules/unistr/u16-chr-tests: New file.
27512         * tests/unistr/test-u16-chr.c: New file.
27513
27514         Tests for module 'unistr/u8-chr'.
27515         * modules/unistr/u8-chr-tests: New file.
27516         * tests/unistr/test-u8-chr.c: New file.
27517         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27518
27519         Tests for module 'unistr/u32-cmp2'.
27520         * modules/unistr/u32-cmp2-tests: New file.
27521         * tests/unistr/test-u32-cmp2.c: New file.
27522
27523         Tests for module 'unistr/u16-cmp2'.
27524         * modules/unistr/u16-cmp2-tests: New file.
27525         * tests/unistr/test-u16-cmp2.c: New file.
27526
27527         Tests for module 'unistr/u8-cmp2'.
27528         * modules/unistr/u8-cmp2-tests: New file.
27529         * tests/unistr/test-u8-cmp2.c: New file.
27530         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27531
27532         Tests for module 'unistr/u32-cmp'.
27533         * modules/unistr/u32-cmp-tests: New file.
27534         * tests/unistr/test-u32-cmp.c: New file.
27535
27536         Tests for module 'unistr/u16-cmp'.
27537         * modules/unistr/u16-cmp-tests: New file.
27538         * tests/unistr/test-u16-cmp.c: New file.
27539
27540         Tests for module 'unistr/u8-cmp'.
27541         * modules/unistr/u8-cmp-tests: New file.
27542         * tests/unistr/test-u8-cmp.c: New file.
27543         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27544
27545         Tests for module 'unistr/u32-set'.
27546         * modules/unistr/u32-set-tests: New file.
27547         * tests/unistr/test-u32-set.c: New file.
27548
27549         Tests for module 'unistr/u16-set'.
27550         * modules/unistr/u16-set-tests: New file.
27551         * tests/unistr/test-u16-set.c: New file.
27552
27553         Tests for module 'unistr/u8-set'.
27554         * modules/unistr/u8-set-tests: New file.
27555         * tests/unistr/test-u8-set.c: New file.
27556         * tests/unistr/test-set.h: New file.
27557
27558         Tests for module 'unistr/u32-move'.
27559         * modules/unistr/u32-move-tests: New file.
27560         * tests/unistr/test-u32-move.c: New file.
27561
27562         Tests for module 'unistr/u16-move'.
27563         * modules/unistr/u16-move-tests: New file.
27564         * tests/unistr/test-u16-move.c: New file.
27565
27566         Tests for module 'unistr/u8-move'.
27567         * modules/unistr/u8-move-tests: New file.
27568         * tests/unistr/test-u8-move.c: New file.
27569         * tests/unistr/test-move.h: New file.
27570
27571         Tests for module 'unistr/u32-cpy'.
27572         * modules/unistr/u32-cpy-tests: New file.
27573         * tests/unistr/test-u32-cpy.c: New file.
27574
27575         Tests for module 'unistr/u16-cpy'.
27576         * modules/unistr/u16-cpy-tests: New file.
27577         * tests/unistr/test-u16-cpy.c: New file.
27578
27579         Tests for module 'unistr/u8-cpy'.
27580         * modules/unistr/u8-cpy-tests: New file.
27581         * tests/unistr/test-u8-cpy.c: New file.
27582         * tests/unistr/test-cpy.h: New file.
27583
27584 2010-01-09  Bruno Haible  <bruno@clisp.org>
27585
27586         Tests for module 'unistr/u32-uctomb'.
27587         * modules/unistr/u32-uctomb-tests: New file.
27588         * tests/unistr/test-u32-uctomb.c: New file.
27589
27590         Tests for module 'unistr/u16-uctomb'.
27591         * modules/unistr/u16-uctomb-tests: New file.
27592         * tests/unistr/test-u16-uctomb.c: New file.
27593
27594         Tests for module 'unistr/u8-uctomb'.
27595         * modules/unistr/u8-uctomb-tests: New file.
27596         * tests/unistr/test-u8-uctomb.c: New file.
27597
27598         Tests for module 'unistr/u32-mbtoucr'.
27599         * modules/unistr/u32-mbtoucr-tests: New file.
27600         * tests/unistr/test-u32-mbtoucr.c: New file.
27601
27602         Tests for module 'unistr/u16-mbtoucr'.
27603         * modules/unistr/u16-mbtoucr-tests: New file.
27604         * tests/unistr/test-u16-mbtoucr.c: New file.
27605
27606         Tests for module 'unistr/u8-mbtoucr'.
27607         * modules/unistr/u8-mbtoucr-tests: New file.
27608         * tests/unistr/test-u8-mbtoucr.c: New file.
27609
27610         Tests for module 'unistr/u32-mbtouc'.
27611         * modules/unistr/u32-mbtouc-tests: New file.
27612         * tests/unistr/test-u32-mbtouc.c: New file.
27613
27614         Tests for module 'unistr/u16-mbtouc'.
27615         * modules/unistr/u16-mbtouc-tests: New file.
27616         * tests/unistr/test-u16-mbtouc.c: New file.
27617
27618         Tests for module 'unistr/u8-mbtouc'.
27619         * modules/unistr/u8-mbtouc-tests: New file.
27620         * tests/unistr/test-u8-mbtouc.c: New file.
27621
27622         Tests for module 'unistr/u32-mbtouc-unsafe'.
27623         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27624         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27625         * tests/unistr/test-u32-mbtouc.h: New file.
27626
27627         Tests for module 'unistr/u16-mbtouc-unsafe'.
27628         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27629         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27630         * tests/unistr/test-u16-mbtouc.h: New file.
27631
27632         Tests for module 'unistr/u8-mbtouc-unsafe'.
27633         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27634         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27635         * tests/unistr/test-u8-mbtouc.h: New file.
27636
27637         Tests for module 'unistr/u32-mblen'.
27638         * modules/unistr/u32-mblen-tests: New file.
27639         * tests/unistr/test-u32-mblen.c: New file.
27640
27641         Tests for module 'unistr/u16-mblen'.
27642         * modules/unistr/u16-mblen-tests: New file.
27643         * tests/unistr/test-u16-mblen.c: New file.
27644
27645         Tests for module 'unistr/u8-mblen'.
27646         * modules/unistr/u8-mblen-tests: New file.
27647         * tests/unistr/test-u8-mblen.c: New file.
27648
27649         Tests for module 'unistr/u32-to-u16'.
27650         * modules/unistr/u32-to-u16-tests: New file.
27651         * tests/unistr/test-u32-to-u16.c: New file.
27652
27653         Tests for module 'unistr/u32-to-u8'.
27654         * modules/unistr/u32-to-u8-tests: New file.
27655         * tests/unistr/test-u32-to-u8.c: New file.
27656
27657         Tests for module 'unistr/u16-to-u32'.
27658         * modules/unistr/u16-to-u32-tests: New file.
27659         * tests/unistr/test-u16-to-u32.c: New file.
27660
27661         Tests for module 'unistr/u16-to-u8'.
27662         * modules/unistr/u16-to-u8-tests: New file.
27663         * tests/unistr/test-u16-to-u8.c: New file.
27664
27665         Tests for module 'unistr/u8-to-u32'.
27666         * modules/unistr/u8-to-u32-tests: New file.
27667         * tests/unistr/test-u8-to-u32.c: New file.
27668
27669         Tests for module 'unistr/u8-to-u16'.
27670         * modules/unistr/u8-to-u16-tests: New file.
27671         * tests/unistr/test-u8-to-u16.c: New file.
27672
27673         Tests for module 'unistr/u32-check'.
27674         * modules/unistr/u32-check-tests: New file.
27675         * tests/unistr/test-u32-check.c: New file.
27676
27677         Tests for module 'unistr/u16-check'.
27678         * modules/unistr/u16-check-tests: New file.
27679         * tests/unistr/test-u16-check.c: New file.
27680
27681         Tests for module 'unistr/u8-check'.
27682         * modules/unistr/u8-check-tests: New file.
27683         * tests/unistr/test-u8-check.c: New file.
27684
27685         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27686         (category_equals): New function.
27687         (main): Add more tests.
27688         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27689
27690         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27691
27692 2010-01-10  Bruno Haible  <bruno@clisp.org>
27693
27694         unistr/u*-strcoll: Try harder to distinguish different strings.
27695         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27696         compare s1 and s2 to see if they are different.
27697
27698 2010-01-10  Bruno Haible  <bruno@clisp.org>
27699
27700         unistr/u*-stpncpy: Fix the return value.
27701         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27702         description of the return value consistent with stpncpy in glibc.
27703         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27704         written non-NUL unit.
27705
27706 2010-01-10  Bruno Haible  <bruno@clisp.org>
27707
27708         unistr/u*-next: Add missing dependencies.
27709         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27710         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27711         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27712
27713 2010-01-10  Bruno Haible  <bruno@clisp.org>
27714
27715         unistr/u8-mbsnlen: Fix return value for incomplete character.
27716         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27717         u8_mblen.
27718         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27719         Remove unistr/u8-mblen.
27720         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27721         u16_mblen.
27722         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27723         Remove unistr/u16-mblen.
27724
27725 2010-01-10  Bruno Haible  <bruno@clisp.org>
27726
27727         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27728         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27729         Reported by Brian Gough <bjg@gnu.org> and
27730         Chris Clayton <chris2553@googlemail.com> via
27731         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27732
27733 2010-01-09  Bruno Haible  <bruno@clisp.org>
27734
27735         unistr/u16-to-u32: Reject invalid input.
27736         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27737         u16_mbtouc.
27738         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27739         Remove unistr/u16-mbtouc.
27740
27741         unistr/u16-to-u8: Reject invalid input.
27742         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27743         u16_mbtouc.
27744         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27745         Remove unistr/u16-mbtouc.
27746
27747         unistr/u8-to-u32: Reject invalid input.
27748         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27749         u8_mbtouc.
27750         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27751         Remove unistr/u8-mbtouc.
27752
27753         unistr/u8-to-u16: Reject invalid input.
27754         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27755         u8_mbtouc.
27756         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27757         Remove unistr/u8-mbtouc.
27758
27759 2010-01-09  Bruno Haible  <bruno@clisp.org>
27760
27761         Tests for module 'getlogin'.
27762         * modules/getlogin-tests: New file.
27763         * tests/test-getlogin.c: New file.
27764
27765         New module 'getlogin'.
27766         * lib/unistd.in.h (getlogin): New declaration.
27767         * lib/getlogin.c: New file.
27768         * m4/getlogin.m4: New file.
27769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27770         HAVE_GETLOGIN.
27771         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27772         HAVE_GETLOGIN.
27773         * modules/getlogin: New file.
27774         * doc/posix-functions/getlogin.texi: Mention the new module.
27775         Reported by John W. Eaton <jwe@gnu.org>.
27776
27777 2010-01-09  Bruno Haible  <bruno@clisp.org>
27778
27779         getlogin_r: Support for native Windows.
27780         * lib/getlogin_r.c: Include <windows.h>
27781         (getlogin_r): Implement for native Windows.
27782         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27783         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27784         via John W. Eaton <jwe@gnu.org>.
27785
27786 2010-01-09  Bruno Haible  <bruno@clisp.org>
27787
27788         getlogin_r: Small fixes.
27789         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27790         succeeds.
27791         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27792         before testing whether getlogin_r is declared. No need to set
27793         HAVE_DECL_GETLOGIN_R to 1.
27794         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27795
27796 2010-01-09  Bruno Haible  <bruno@clisp.org>
27797
27798         * lib/unistd.in.h (getlogin_r): Add comment.
27799
27800 2010-01-09  Bruno Haible  <bruno@clisp.org>
27801
27802         Tests for module 'getlogin_r'.
27803         * modules/getlogin_r-tests: New file.
27804         * tests/test-getlogin_r.c: New file.
27805
27806 2010-01-09  Jim Meyering  <meyering@redhat.com>
27807
27808         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27809         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27810         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27811
27812 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27813
27814         * lib/dup2.c (rpl_dup2): Improve comment.
27815
27816 2010-01-08  Eric Blake  <ebb9@byu.net>
27817
27818         maint.mk: allow packages to add makefile @@ exceptions
27819         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27820         (sc_makefile_check): Rename...
27821         (sc_makefile_at_at_check): ...to this, and use hook.
27822
27823         dup2: work around mingw bug
27824         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27825         Reported by Simon Josefsson.
27826
27827 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27828
27829         glob: Fix C++ compilation.
27830         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27831         C++.
27832
27833 2010-01-07  Bruno Haible  <bruno@clisp.org>
27834
27835         Fix indentation of wctype.in.h, broken since 2007-01-06.
27836         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27837
27838 2010-01-07  Bruno Haible  <bruno@clisp.org>
27839
27840         mbslen: Avoid collision with system function.
27841         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27842         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27843         * m4/mbslen.m4: New file.
27844         * modules/mbslen (Files): Add it.
27845         (configure.ac): Invoke gl_MBSLEN.
27846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27847         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27848         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27849         via Ian Beckwith <ianb@erislabs.net>.
27850
27851 2010-01-07  Bruno Haible  <bruno@clisp.org>
27852
27853         dirent: Document the last fix.
27854         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27855
27856 2010-01-07  Bruno Haible  <bruno@clisp.org>
27857
27858         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27859         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27860         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27861         va_list are defined.
27862         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27863         Reported by Eric Blake.
27864
27865 2010-01-07  Bruno Haible  <bruno@clisp.org>
27866
27867         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27868         * modules/xlist (Depends-on): Add 'list',
27869         * modules/xoset (Depends-on): Add 'oset'.
27870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27871
27872 2010-01-07  Bruno Haible  <bruno@clisp.org>
27873
27874         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27875         * doc/posix-functions/strncasecmp.texi: Likewise.
27876
27877 2010-01-07  Bruno Haible  <bruno@clisp.org>
27878
27879         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27880
27881 2010-01-07  John W. Eaton  <jwe@octave.org>
27882
27883         wctype: allow C++ use
27884         * lib/wctype.in.h: Add extern "C" block for C++.
27885
27886 2010-01-06  Eric Blake  <ebb9@byu.net>
27887
27888         maint.mk: detect incorrect GFDL usage
27889         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27890
27891 2010-01-06  Jim Meyering  <meyering@redhat.com>
27892         and Eric Blake  <ebb9@byu.net>
27893
27894         maint.mk: ignore multi-line copyright in NEWS
27895         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27896
27897 2010-01-06  Eric Blake  <ebb9@byu.net>
27898
27899         select: add missing dependency
27900         * modules/select-tests (Depends-on): Move sockets dependency...
27901         * modules/select (Depends-on): ...here.
27902         Reported by Ian Beckwith.
27903
27904         doc: regenerate INSTALL
27905         * doc/INSTALL: Reflect recent autoconf update.
27906         * doc/INSTALL.ISO: Likewise.
27907         * doc/INSTALL.UTF-8: Likewise.
27908
27909         pread: fix compilation on glibc
27910         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27911         Reported by Ralf Wildenhues.
27912
27913         dirent: fix test failure
27914         * lib/dirent.in.h (includes): Guarantee ino_t.
27915         Reported by Ralf Wildenhues.
27916
27917 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27918
27919         linkat, renameat: avoid bad free
27920         * lib/at-func2.c (at_func2): Fix typo.
27921         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27922
27923 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27924
27925         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27926         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27927         to avoid failure of symlink test later.
27928
27929 2010-01-06  Eric Blake  <ebb9@byu.net>
27930
27931         stdio, unistd: guarantee ssize_t
27932         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27933         2008 are exposed when needed.
27934         * lib/stdio.in.h (includes): Likewise.
27935         Reported by Ralf Wildenhues.
27936
27937 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27938
27939         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27940         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27941         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27942
27943 2010-01-06  Jim Meyering  <meyering@redhat.com>
27944
27945         readtokens: this module *does* require xalloc.h
27946         It uses only functions that were omitted by the old syntax-check rule.
27947         * lib/readtokens.c: Include "xalloc.h" once again.
27948         * modules/readtokens (Depends-on): Add xalloc.
27949         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27950
27951 2010-01-05  Eric Blake  <ebb9@byu.net>
27952
27953         maint: support 'make announcement' from a VPATH build
27954         * top/maint.mk (announcement): Look for correct NEWS file.
27955
27956 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27957
27958         utimens (fdutimens): ignore a negative FD, per contract
27959         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27960         when we have a valid file descriptor.  Otherwise, using a brand
27961         new glibc (with just-patched futimens that now fails with EBADF)
27962         would cause this function to fail with ENOSYS.
27963         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27964         See also http://bugzilla.redhat.com/552320.
27965
27966 2010-01-05  Eric Blake  <ebb9@byu.net>
27967
27968         strcase: document what it provides
27969         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27970         gnulib module.
27971         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27972         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27973
27974 2010-01-05  Jim Meyering  <meyering@redhat.com>
27975
27976         maint: remove useless inclusions of "xalloc.h"
27977         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27978         * lib/readtokens.c: Likewise.
27979         * lib/same.c: Likewise.
27980         * modules/getloadavg (Depends-on): Remove xalloc.
27981         * modules/readtokens: Likewise.
27982         * modules/same: Likewise.
27983
27984         maint.mk: include 4 more function names in alloca.h-checking regexp
27985         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27986         regexp.  Before, we would give a false-positive (saying alloca.h
27987         is included unnecessarily) when the only uses involved omitted symbols.
27988
27989         xalloc.h: use consistent formatting
27990         * lib/xalloc.h: Move declarations to start in the first column.
27991
27992 2010-01-05  Eric Blake  <ebb9@byu.net>
27993
27994         mkdir: avoid xalloc
27995         * lib/mkdir.c (includes): Drop unused header.
27996         Reported by John W. Eaton.
27997
27998 2010-01-04  Jim Meyering  <meyering@redhat.com>
27999
28000         nl_langinfo: avoid configure-time syntax error
28001         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28002         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28003         the empty string.  Don't let that provoke a shell syntax error.
28004
28005         regcomp, regexec, fnmatch: avoid array bounds read error
28006         * lib/regcomp.c (build_equiv_class): From glibc:
28007         Use only the low 24 bits of a findidx return value as an index
28008         into the weights array.  Patch by Ulrich Drepper:
28009         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28010         * lib/regexec.c (check_node_accept_bytes): Likewise.
28011         * lib/fnmatch_loop.c (FCT): Likewise.
28012
28013         regcomp: skip collseq lookup when there are no rules
28014         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28015         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28016
28017         regcomp: recognize ill-formed { } expressions
28018         * lib/regcomp.c (parse_dup_op): From glibc:
28019         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28020
28021         regcomp: fix typo in comment
28022         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28023         s/satisfy/satisfies/.
28024
28025         regcomp: sync from glibc: remove dead store
28026         * lib/regcomp.c (duplicate_node_closure): Remove useless
28027         search_duplicated_node call and dead store.
28028
28029         regcomp: sync from glibc; always use nl_langinfo
28030         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28031         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28032         * modules/regex (Depends-on): Add nl_langinfo.
28033
28034 2010-01-04  Eric Blake  <ebb9@byu.net>
28035
28036         fdopendir: fix configure test
28037         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28038
28039 2010-01-01  Bruno Haible  <bruno@clisp.org>
28040
28041         wchar: Remove unused configure check.
28042         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28043
28044 2010-01-01  Eric Blake  <ebb9@byu.net>
28045
28046         headers: make check of system header explicit
28047         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28048         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28049         ourselves.
28050         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28053         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28054         internals.
28055         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28056         missing.
28057         Suggested by Bruno Haible.
28058
28059 2010-01-01  Jim Meyering  <meyering@redhat.com>
28060
28061         ChangeLog: tweak to eliminate unnecessary copyright line
28062         * ChangeLog: Remove a copyright line that was mistakenly updated
28063         by today's update-copyright run.  Reported by Eric Blake.
28064
28065         test-update-copyright: don't let envvar setting cause test failure
28066         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28067
28068 2010-01-01  Bruno Haible  <bruno@clisp.org>
28069
28070         localename: Avoid gcc warning.
28071         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28072         function if it is not used.
28073
28074 2010-01-01  Jim Meyering  <meyering@redhat.com>
28075
28076         update nearly all FSF copyright year lists to include 2010
28077         Use the same procedure as for 2009, outlined in
28078         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28079
28080         version-etc: set COPYRIGHT_YEAR to 2010
28081         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28082
28083 2009-12-31  Eric Blake  <ebb9@byu.net>
28084
28085         doc: correct availability of cygwin 1.5.x getopt
28086         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28087         variables.
28088         * doc/posix-functions/opterr.texi (opterr): Likewise.
28089         * doc/posix-functions/optind.texi (optind): Likewise.
28090         * doc/posix-functions/optopt.texi (optopt): Likewise.
28091         * doc/posix-functions/tzname.texi (tzname): Likewise.
28092
28093         openat: update maintainer
28094         * modules/openat (Maintainer): Add myself.
28095
28096         utimens: avoid shadowing warning
28097         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28098         buffers into one, to avoid shadowing, as well as avoiding a
28099         redundant stat.
28100         Reported by Jim Meyering.
28101
28102         test-dup2: avoid compiler warning
28103         * tests/test-dup2.c (is_inheritable): Only define if used.
28104
28105 2010-01-01  Bruno Haible  <bruno@clisp.org>
28106
28107         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28108         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28109         defined, use wctomb instead of wcrtomb.
28110
28111 2010-01-01  Bruno Haible  <bruno@clisp.org>
28112
28113         iconv: Reject native Solaris iconv.
28114         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28115         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28116
28117 2009-12-31  Bruno Haible  <bruno@clisp.org>
28118
28119         * tests/test-signal.c (main): Remove test of 'SIG'.
28120
28121 2009-12-31  Bruno Haible  <bruno@clisp.org>
28122
28123         spawn: Fix incomplete fix.
28124         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28125         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28126         warnings for GNULIB_POSIXCHECK again.
28127         Reported by Eric Blake.
28128
28129 2009-12-31  Bruno Haible  <bruno@clisp.org>
28130
28131         Avoid namespace pollution on glibc systems.
28132         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28133         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28134         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28135         glibc systems.
28136
28137 2009-12-31  Bruno Haible  <bruno@clisp.org>
28138
28139         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28140         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28141         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28142         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28143         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28144         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28145         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28146
28147 2009-12-31  Bruno Haible  <bruno@clisp.org>
28148
28149         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28150         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28151         afterwards.
28152
28153 2009-12-31  Bruno Haible  <bruno@clisp.org>
28154
28155         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28156         SYS_UTSNAME_H.
28157
28158 2009-12-31  Bruno Haible  <bruno@clisp.org>
28159
28160         spawn: Fix misapplied patch.
28161         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28162         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28163         warnings for GNULIB_POSIXCHECK.
28164
28165 2009-12-31  Bruno Haible  <bruno@clisp.org>
28166
28167         times: Update after sys_times changed.
28168         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28169         * modules/times (Files): Add it.
28170         (configure.ac): Invoke gl_FUNC_TIMES.
28171
28172 2009-12-31  Bruno Haible  <bruno@clisp.org>
28173
28174         Use AC_C_INLINE where necessary.
28175         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28176         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28178         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28179         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28180         * m4/mbiter.m4 (gl_MBITER): Likewise.
28181         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28182         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28183         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28184         * modules/u64 (configure.ac): Likewise.
28185
28186 2009-12-31  Bruno Haible  <bruno@clisp.org>
28187
28188         Use AC_C_INLINE instead of module 'inline' where possible.
28189         * modules/inline (Description): Clarify purpose.
28190         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28191         * modules/count-one-bits (Depends-on): Remove inline.
28192         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28193         * modules/openat (Depends-on): Remove inline.
28194         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28195         instead of depending on module 'inline'.
28196         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28197         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28198         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28199         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28200         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28201         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28202         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28203         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28204         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28205         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28206         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28207         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28208         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28209         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28210         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28211         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28212         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28213         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28214         Likewise.
28215         * modules/unictype/property-ascii-hex-digit (Depends-on,
28216         configure.ac): Likewise.
28217         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28218         configure.ac): Likewise.
28219         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28220         configure.ac): Likewise.
28221         * modules/unictype/property-bidi-block-separator (Depends-on,
28222         configure.ac): Likewise.
28223         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28224         configure.ac): Likewise.
28225         * modules/unictype/property-bidi-common-separator (Depends-on,
28226         configure.ac): Likewise.
28227         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28228         Likewise.
28229         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28230         configure.ac): Likewise.
28231         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28232         configure.ac): Likewise.
28233         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28234         configure.ac): Likewise.
28235         * modules/unictype/property-bidi-european-digit (Depends-on,
28236         configure.ac): Likewise.
28237         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28238         configure.ac): Likewise.
28239         * modules/unictype/property-bidi-left-to-right (Depends-on,
28240         configure.ac): Likewise.
28241         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28242         configure.ac): Likewise.
28243         * modules/unictype/property-bidi-other-neutral (Depends-on,
28244         configure.ac): Likewise.
28245         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28246         Likewise.
28247         * modules/unictype/property-bidi-segment-separator (Depends-on,
28248         configure.ac): Likewise.
28249         * modules/unictype/property-bidi-whitespace (Depends-on,
28250         configure.ac): Likewise.
28251         * modules/unictype/property-combining (Depends-on, configure.ac):
28252         Likewise.
28253         * modules/unictype/property-composite (Depends-on, configure.ac):
28254         Likewise.
28255         * modules/unictype/property-currency-symbol (Depends-on,
28256         configure.ac): Likewise.
28257         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28258         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28259         Likewise.
28260         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28261         configure.ac): Likewise.
28262         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28263         Likewise.
28264         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28265         Likewise.
28266         * modules/unictype/property-extender (Depends-on, configure.ac):
28267         Likewise.
28268         * modules/unictype/property-format-control (Depends-on, configure.ac):
28269         Likewise.
28270         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28271         Likewise.
28272         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28273         Likewise.
28274         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28275         Likewise.
28276         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28277         Likewise.
28278         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28279         Likewise.
28280         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28281         Likewise.
28282         * modules/unictype/property-id-start (Depends-on, configure.ac):
28283         Likewise.
28284         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28285         Likewise.
28286         * modules/unictype/property-ids-binary-operator (Depends-on,
28287         configure.ac): Likewise.
28288         * modules/unictype/property-ids-trinary-operator (Depends-on,
28289         configure.ac): Likewise.
28290         * modules/unictype/property-ignorable-control (Depends-on,
28291         configure.ac): Likewise.
28292         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28293         Likewise.
28294         * modules/unictype/property-join-control (Depends-on, configure.ac):
28295         Likewise.
28296         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28297         Likewise.
28298         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28299         Likewise.
28300         * modules/unictype/property-logical-order-exception (Depends-on,
28301         configure.ac): Likewise.
28302         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28303         Likewise.
28304         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28305         * modules/unictype/property-non-break (Depends-on, configure.ac):
28306         Likewise.
28307         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28308         Likewise.
28309         * modules/unictype/property-numeric (Depends-on, configure.ac):
28310         Likewise.
28311         * modules/unictype/property-other-alphabetic (Depends-on,
28312         configure.ac): Likewise.
28313         * modules/unictype/property-other-default-ignorable-code-point
28314         (Depends-on, configure.ac): Likewise.
28315         * modules/unictype/property-other-grapheme-extend (Depends-on,
28316         configure.ac): Likewise.
28317         * modules/unictype/property-other-id-continue (Depends-on,
28318         configure.ac): Likewise.
28319         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28320         Likewise.
28321         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28322         Likewise.
28323         * modules/unictype/property-other-math (Depends-on, configure.ac):
28324         Likewise.
28325         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28326         Likewise.
28327         * modules/unictype/property-paired-punctuation (Depends-on,
28328         configure.ac): Likewise.
28329         * modules/unictype/property-paragraph-separator (Depends-on,
28330         configure.ac): Likewise.
28331         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28332         Likewise.
28333         * modules/unictype/property-pattern-white-space (Depends-on,
28334         configure.ac): Likewise.
28335         * modules/unictype/property-private-use (Depends-on, configure.ac):
28336         Likewise.
28337         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28338         Likewise.
28339         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28340         Likewise.
28341         * modules/unictype/property-radical (Depends-on, configure.ac):
28342         Likewise.
28343         * modules/unictype/property-sentence-terminal (Depends-on,
28344         configure.ac): Likewise.
28345         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28346         Likewise.
28347         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28348         * modules/unictype/property-terminal-punctuation (Depends-on,
28349         configure.ac): Likewise.
28350         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28351         Likewise.
28352         * modules/unictype/property-unassigned-code-value (Depends-on,
28353         configure.ac): Likewise.
28354         * modules/unictype/property-unified-ideograph (Depends-on,
28355         configure.ac): Likewise.
28356         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28357         Likewise.
28358         * modules/unictype/property-variation-selector (Depends-on,
28359         configure.ac): Likewise.
28360         * modules/unictype/property-white-space (Depends-on, configure.ac):
28361         Likewise.
28362         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28363         Likewise.
28364         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28365         Likewise.
28366         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28367         Likewise.
28368         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28369         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28370         Likewise.
28371
28372 2009-12-31  Bruno Haible  <bruno@clisp.org>
28373
28374         Remove unnecessary AC_C_INLINE invocation.
28375         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28376         since 2009-08-21.
28377
28378 2009-12-31  Jim Meyering  <meyering@redhat.com>
28379
28380         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28381         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28382         With this change, we can all remove the gpg_key_ID = ... definition
28383         from our respective cfg.mk files.
28384
28385         maint.mk: create announcement template in ~/, not in /tmp
28386         * top/maint.mk (emit_upload_commands): Adjust.
28387         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28388         Remove temporary file, .ci-msg.
28389
28390 2009-12-31  Eric Blake  <ebb9@byu.net>
28391
28392         link-warning: always build headers with link warnings
28393         * modules/arpa_inet (Makefile.am): Always build replacement
28394         header.
28395         * modules/ctype (Makefile.am): Likewise.
28396         * modules/dirent (Makefile.am): Likewise.
28397         * modules/inttypes (Makefile.am): Likewise.
28398         * modules/langinfo (Makefile.am): Likewise.
28399         * modules/locale (Makefile.am): Likewise.
28400         * modules/spawn (Makefile.am): Likewise.
28401         * modules/sys_file (Makefile.am): Likewise.
28402         * modules/sys_ioctl (Makefile.am): Likewise.
28403         * modules/sys_select (Makefile.am): Likewise.
28404         * modules/sys_socket (Makefile.am): Likewise.
28405         * modules/sys_times (Makefile.am): Likewise.
28406         * modules/sys_utsname (Makefile.am): Likewise.
28407         * modules/sys_wait (Makefile.am): Likewise.
28408         * modules/wchar (Makefile.am): Likewise.
28409         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28410         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28411         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28412         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28413         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28414         Likewise.
28415         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28416         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28417         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28418         Likewise.
28419         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28420         Likewise.
28421         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28422         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28423         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28425         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28426         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28427         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28428         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28429         (gl_WCHAR_H_DEFAULTS): Likewise.
28430
28431 2009-12-31  Eric Blake  <ebb9@byu.net>
28432
28433         signal, spawn: use link warnings
28434         * lib/signal.in.h (sigset_t): Make unconditional.
28435         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28436         (sigpending, sigprocmask, sigaction): Add link warnings.
28437         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28438         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28439         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28440         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28441         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28442         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28443         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28444         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28445         (posix_spawn_file_actions_destroy)
28446         (posix_spawn_file_actions_addopen)
28447         (posix_spawn_file_actions_addclose)
28448         (posix_spawn_file_actions_adddup2): Likewise.
28449         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28450         * tests/test-signal.c (main): Enhance test.
28451
28452         spawn: improve wrapper support
28453         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28454         (gl_SPAWN_H_DEFAULTS): New defaults.
28455         * modules/spawn (Makefile.am): Substitute them.
28456         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28457         Only declare if missing or broken.
28458
28459         sys_times, sys_utsname: use include_next
28460         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28461         header.
28462         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28463         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28464         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28465         * modules/sys_times (Depends-on): Add include_next.
28466         (Makefile.am): Substitute additional values.
28467         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28468         * lib/sys_times.in.h (includes): Include native header, if
28469         available.
28470         * lib/sys_utsname.in.h (includes): Likewise.
28471         * tests/test-sys_times.c (main): Enhance test.
28472
28473         fdutimensat: revert prior patch
28474         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28475         utimens.h.
28476         Reported by Bruno Haible.
28477
28478 2009-12-30  Eric Blake  <ebb9@byu.net>
28479
28480         sys_wait: drop link-warning dependency
28481         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28482         link-warning efforts.
28483         * lib/sys_wait.in.h: Likewise.
28484
28485         fdutimensat: remove bogus dependency
28486         * modules/fdutimensat (Depends-on): Drop inline.
28487
28488         unistd: fix typo
28489         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28490
28491 2009-12-30  Bruno Haible  <bruno@clisp.org>
28492
28493         Fix compilation error with Solaris cc.
28494         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28495         * lib/unicase/u16-is-invariant.c: Likewise.
28496         * lib/unicase/u32-is-invariant.c: Likewise.
28497         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28498
28499 2009-12-30  Bruno Haible  <bruno@clisp.org>
28500
28501         Fix test crash.
28502         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28503         locales.
28504         Reported by Simon Josefsson <simon@josefsson.org>.
28505
28506 2009-12-30  Bruno Haible  <bruno@clisp.org>
28507
28508         Fix compilation error on most platforms.
28509         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28510         Reported by Simon Josefsson <simon@josefsson.org>
28511         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28512
28513 2009-12-30  Eric Blake  <ebb9@byu.net>
28514
28515         futimens, utimensat: work around ntfs-3g bug
28516         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28517         a ctime bug is present, and expand workaround to cover ntfs-3g.
28518         * lib/utimens.c (fdutimens, lutimens): Likewise.
28519         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28520         (validate_timespec): Adjust return value.
28521         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28522         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28523         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28524
28525 2009-12-29  Eric Blake  <ebb9@byu.net>
28526
28527         link-warning: make usage consistent
28528         * modules/ctype (Depends-on): Add link-warning.
28529         (Makefile.am): Update rules accordingly.
28530         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28531         * modules/locale (Depends-on, Makefile.am): Likewise.
28532         * modules/sys_file (Makefile.am): Likewise.
28533         * modules/getopt-posix (Makefile.am): Delete unused link warning
28534         efforts.
28535         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28536         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28537         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28538         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28539
28540         stdio: remove unused variables
28541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28542         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28543         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28544
28545         tests: test more substitute headers
28546         * modules/ctype-tests: New file.
28547         * modules/dirent-tests: Likewise.
28548         * modules/spawn-tests: Likewise.
28549         * modules/sys_file-tests: Likewise.
28550         * modules/sys_ioctl-tests: Likewise.
28551         * modules/sys_wait-tests: Likewise.
28552         * tests/test-ctype.c: Likewise.
28553         * tests/test-dirent.c: Likewise.
28554         * tests/test-spawn.c: Likewise.
28555         * tests/test-sys_file.c: Likewise.
28556         * tests/test-sys_ioctl.c: Likewise.
28557         * tests/test-sys_wait.c: Likewise.
28558         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28559         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28560         whether or not flock is in use.
28561
28562         tests: remove License section from module
28563         * modules/arpa_inet-tests: Remove unneeded section.
28564         * modules/byteswap-tests: Likewise.
28565         * modules/ceilf-tests: Likewise.
28566         * modules/ceill-tests: Likewise.
28567         * modules/crypto/des-tests: Likewise.
28568         * modules/crypto/gc-arcfour-tests: Likewise.
28569         * modules/crypto/gc-arctwo-tests: Likewise.
28570         * modules/crypto/gc-des-tests: Likewise.
28571         * modules/crypto/gc-hmac-md5-tests: Likewise.
28572         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28573         * modules/crypto/gc-md2-tests: Likewise.
28574         * modules/crypto/gc-md4-tests: Likewise.
28575         * modules/crypto/gc-md5-tests: Likewise.
28576         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28577         * modules/crypto/gc-rijndael-tests: Likewise.
28578         * modules/crypto/gc-sha1-tests: Likewise.
28579         * modules/crypto/gc-tests: Likewise.
28580         * modules/crypto/md2-tests: Likewise.
28581         * modules/crypto/md4-tests: Likewise.
28582         * modules/fcntl-h-tests: Likewise.
28583         * modules/floorf-tests: Likewise.
28584         * modules/floorl-tests: Likewise.
28585         * modules/frexp-nolibm-tests: Likewise.
28586         * modules/frexp-tests: Likewise.
28587         * modules/frexpl-nolibm-tests: Likewise.
28588         * modules/frexpl-tests: Likewise.
28589         * modules/getaddrinfo-tests: Likewise.
28590         * modules/inttypes-tests: Likewise.
28591         * modules/isfinite-tests: Likewise.
28592         * modules/isinf-tests: Likewise.
28593         * modules/ldexpl-tests: Likewise.
28594         * modules/locale-tests: Likewise.
28595         * modules/math-tests: Likewise.
28596         * modules/netdb-tests: Likewise.
28597         * modules/netinet_in-tests: Likewise.
28598         * modules/printf-frexp-tests: Likewise.
28599         * modules/printf-frexpl-tests: Likewise.
28600         * modules/priv-set-tests: Likewise.
28601         * modules/random_r-tests: Likewise.
28602         * modules/round-tests: Likewise.
28603         * modules/roundf-tests: Likewise.
28604         * modules/roundl-tests: Likewise.
28605         * modules/search-tests: Likewise.
28606         * modules/select-tests: Likewise.
28607         * modules/signal-tests: Likewise.
28608         * modules/stdbool-tests: Likewise.
28609         * modules/stddef-tests: Likewise.
28610         * modules/stdint-tests: Likewise.
28611         * modules/stdio-tests: Likewise.
28612         * modules/stdlib-tests: Likewise.
28613         * modules/string-tests: Likewise.
28614         * modules/strings-tests: Likewise.
28615         * modules/sys_select-tests: Likewise.
28616         * modules/sys_socket-tests: Likewise.
28617         * modules/sys_stat-tests: Likewise.
28618         * modules/sys_time-tests: Likewise.
28619         * modules/sys_utsname-tests: Likewise.
28620         * modules/sysexits-tests: Likewise.
28621         * modules/time-tests: Likewise.
28622         * modules/trunc-tests: Likewise.
28623         * modules/truncf-tests: Likewise.
28624         * modules/truncl-tests: Likewise.
28625         * modules/tsearch-tests: Likewise.
28626         * modules/unistd-tests: Likewise.
28627         * modules/wchar-tests: Likewise.
28628         * modules/wctype-tests: Likewise.
28629
28630         tests: fix license on several tests
28631         * tests/test-des.c: Update to GPLv3+.
28632         * tests/test-flock.c: Likewise.
28633         * tests/test-fsync.c: Likewise.
28634         * tests/test-futimens.h: Likewise.
28635         * tests/test-gc-arcfour.c: Likewise.
28636         * tests/test-gc-arctwo.c: Likewise.
28637         * tests/test-gc-des.c: Likewise.
28638         * tests/test-gc-hmac-md5.c: Likewise.
28639         * tests/test-gc-hmac-sha1.c: Likewise.
28640         * tests/test-gc-md2.c: Likewise.
28641         * tests/test-gc-md4.c: Likewise.
28642         * tests/test-gc-md5.c: Likewise.
28643         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28644         * tests/test-gc-rijndael.c: Likewise.
28645         * tests/test-gc-sha1.c: Likewise.
28646         * tests/test-gc.c: Likewise.
28647         * tests/test-getcwd.c: Likewise.
28648         * tests/test-link.c: Likewise.
28649         * tests/test-link.h: Likewise.
28650         * tests/test-lutimens.h: Likewise.
28651         * tests/test-md2.c: Likewise.
28652         * tests/test-md4.c: Likewise.
28653         * tests/test-mkdir.h: Likewise.
28654         * tests/test-rename.c: Likewise.
28655         * tests/test-rename.h: Likewise.
28656         * tests/test-safe-alloc.c: Likewise.
28657         * tests/test-utimens-common.h: Likewise.
28658         * tests/test-utimens.h: Likewise.
28659
28660         maint: sync license texts
28661         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28662         * doc/gpl-3.0.texi: Revert copyright year update.
28663         * doc/lgpl-3.0.texi: Likewise.
28664
28665 2009-12-29  Jim Meyering  <meyering@redhat.com>
28666
28667         update nearly all FSF copyright year lists to include 2009
28668         The files named by the following are exempted:
28669             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28670               test -f "$dst" && { echo "$dst"; continue; }
28671               test -d "$dst" || continue
28672               echo "$dst"/$(basename "$src")
28673             done > exempt
28674             git ls-files tests/unictype >> exempt
28675         In the remaining files, convert to all-interval notation if
28676         - there is already at least one year interval like 2000-2003
28677         - the file is maintained by me
28678         - the file is in lib/uni*/, where that style already prevails
28679         Otherwise, use update-copyright's default.
28680
28681 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28682         and Eric Blake  <ebb9@byu.net>
28683
28684         tests: don't require debug system() to pass
28685         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28686         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28687         * tests/test-unlink.h (test_unlink_func): Likewise.
28688         * tests/test-fstatat.c (main): ...into callers.
28689         * tests/test-lstat.c (main): Likewise.
28690         * tests/test-rmdir.c (main): Likewise.
28691         * tests/test-unlink.c (main): Likewise.
28692         * tests/test-unlinkat.c (main): Likewise.
28693         * tests/test-areadlink-with-size.c (main): Don't require a
28694         debug-only system call to pass, aiding cross-testing to mingw.
28695         * tests/test-areadlink.c (main): Likewise.
28696         * tests/test-areadlinkat-with-size.c (main): Likewise.
28697         * tests/test-areadlinkat.c (main): Likewise.
28698         * tests/test-canonicalize-lgpl.c (main): Likewise.
28699         * tests/test-canonicalize.c (main): Likewise.
28700         * tests/test-chown.c (main): Likewise.
28701         * tests/test-fchownat.c (main): Likewise.
28702         * tests/test-lchown.c (main): Likewise.
28703         * tests/test-fdutimensat.c (main): Likewise.
28704         * tests/test-futimens.c (main): Likewise.
28705         * tests/test-link.c (main): Likewise.
28706         * tests/test-linkat.c (main): Likewise.
28707         * tests/test-mkdir.c (main): Likewise.
28708         * tests/test-mkdirat.c (main): Likewise.
28709         * tests/test-mkfifo.c (main): Likewise.
28710         * tests/test-mkfifoat.c (main): Likewise.
28711         * tests/test-mknod.c (main): Likewise.
28712         * tests/test-readlink.c (main): Likewise.
28713         * tests/test-remove.c (main): Likewise.
28714         * tests/test-rename.c (main): Likewise.
28715         * tests/test-renameat.c (main): Likewise.
28716         * tests/test-symlink.c (main): Likewise.
28717         * tests/test-symlinkat.c (main): Likewise.
28718         * tests/test-utimens.c (main): Likewise.
28719         * tests/test-utimensat.c (main): Likewise.
28720
28721 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28722
28723         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28724         on $(UNUSED_PARAMETER_H) to avoid build failure.
28725
28726 2009-12-28  Jim Meyering  <meyering@redhat.com>
28727
28728         update-copyright: you may specify a max. line length other than 72
28729         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28730
28731         maint: use consistent FSF copyright line syntax
28732         * lib/posixtm.c: Add missing comma in FSF copyright line.
28733         * lib/posixtm.h: Likewise.
28734         * lib/getugroups.c: Add missing ", Inc.".
28735
28736         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28737         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28738         FSF copyright line.  Remove trailing blanks.
28739
28740 2009-12-28  Eric Blake  <ebb9@byu.net>
28741
28742         test-dup2: reduce dependencies
28743         * modules/cloexec (Configure.ac): Set witness.
28744         * modules/dup2-tests (Depends-on): Drop cloexec.
28745         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28746         not present.
28747         Suggested by Bruno Haible.
28748
28749 2009-12-26  Bruno Haible  <bruno@clisp.org>
28750
28751         Remove an unneeded dependency.
28752         * modules/fseterr (Depends-on): Remove dup2.
28753
28754 2009-12-26  Eric Blake  <ebb9@byu.net>
28755
28756         tests: use macros.h in more places
28757         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28758         (ASSERT_STREAM): Provide default of stderr.
28759         * tests/test-dirent-safer.c: Include macros.h, using alternate
28760         stream for assertions.
28761         * tests/test-dup-safer.c: Likewise.
28762         * tests/test-freopen-safer.c: Likewise.
28763         * tests/test-getopt.c: Likewise.
28764         * tests/test-openat-safer.c: Likewise.
28765         * tests/test-pipe.c: Likewise.
28766         * tests/test-popen-safer.c: Likewise.
28767         * modules/dirent-safer-tests (Files): Include macros.h.
28768         * modules/unistd-safer-tests (Files): Likewise.
28769         * modules/freopen-safer-tests (Files): Likewise.
28770         * modules/getopt-posix-tests (Files): Likewise.
28771         * modules/openat-safer-tests (Files): Likewise.
28772         * modules/pipe-tests (Files): Likewise.
28773
28774 2009-12-26  Bruno Haible  <bruno@clisp.org>
28775
28776         javacomp: Portability fix.
28777         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28778         that it also works on Solaris.
28779
28780 2009-12-26  Bruno Haible  <bruno@clisp.org>
28781
28782         localename: Fix storage allocation of gl_locale_name_thread's result.
28783         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28784         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28785         all platforms that have 'uselocale'.
28786         (gl_locale_name_thread_unsafe): New function, extracted from
28787         gl_locale_name_thread.
28788         (gl_locale_name_thread): Call struniq on all platforms that have
28789         'uselocale'.
28790         * tests/test-localename.c (test_locale_name_thread): Check that the
28791         resulting strings are permanently allocated.
28792         * modules/localename-tests (Depends-on): Add strdup.
28793
28794 2009-12-26  Bruno Haible  <bruno@clisp.org>
28795
28796         * tests/test-localename.c (categories): Fill in the strings.
28797
28798 2009-12-26  Jim Meyering  <meyering@redhat.com>
28799
28800         isdir: complete the removal of m4/isdir.m4
28801         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28802
28803         isdir: clean up, since at least grep still uses it
28804         * lib/isdir.c: Include "isdir.h".
28805         (S_ISDIR): Remove now-unneeded definition.
28806         * modules/isdir (Files): Add lib/isdir.h.
28807         * lib/isdir.h: New file, with declaration.
28808         * m4/isdir.m4: Remove file -- unneeded.
28809
28810 2009-12-25  Bruno Haible  <bruno@clisp.org>
28811
28812         selinux-h: Make generated .h files standalone.
28813         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28814         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28815         * lib/se-selinux.in.h: Likewise.
28816         * modules/selinux-h (Depends-on): Add unused-parameter.
28817         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28818         selinux/selinux.h and selinux/context.h.
28819         Suggested by Eric Blake.
28820
28821 2009-12-25  Bruno Haible  <bruno@clisp.org>
28822
28823         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28824         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28825         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28826         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28827         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28828
28829 2009-12-24  Bruno Haible  <bruno@clisp.org>
28830
28831         openat: Fix warning.
28832         * lib/openat-proc.c: Include <unistd.h>.
28833
28834 2009-12-24  Bruno Haible  <bruno@clisp.org>
28835
28836         New module 'unused-parameter'.
28837         * build-aux/unused-parameter.h: New file, extracted from earlier
28838         gnulib-common.m4.
28839         * modules/unused-parameter: New file.
28840         * lib/unistr.h: Include unused-parameter.h.
28841         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28842         _GL_UNUSED.
28843         * modules/unistr/base (Depends-on): Add unused-parameter.
28844
28845 2009-12-24  Bruno Haible  <bruno@clisp.org>
28846
28847         Add missing dependencies to 'extensions' module.
28848         * m4/extensions.m4: Add comment.
28849         * modules/accept4 (Depends-on): Add extensions.
28850         * modules/dup3 (Depends-on): Likewise.
28851         * modules/fcntl (Depends-on): Likewise.
28852         * modules/futimens (Depends-on): Likewise.
28853         * modules/mknod (Depends-on): Likewise.
28854         * modules/pipe2 (Depends-on): Likewise.
28855         * modules/stat-time (Depends-on): Likewise.
28856         * modules/strcasestr-simple (Depends-on): Likewise.
28857         * modules/strsignal (Depends-on): Likewise.
28858         * modules/utimensat (Depends-on): Likewise.
28859         * modules/localcharset (Depends-on): Likewise. Needed because of
28860         gl_FCNTL_O_FLAGS.
28861         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28862         AC_TYPE_MBSTATE_T.
28863         * modules/wcsnrtombs (Depends-on): Likewise.
28864         * modules/wcsrtombs (Depends-on): Likewise.
28865
28866 2009-12-24  Bruno Haible  <bruno@clisp.org>
28867
28868         binary-io: Avoid gcc warning due to SET_BINARY.
28869         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28870         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28871
28872 2009-12-24  Bruno Haible  <bruno@clisp.org>
28873
28874         Avoid future namespace pollution on glibc systems.
28875         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28876         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28877         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28878         glibc systems.
28879
28880 2009-12-24  Bruno Haible  <bruno@clisp.org>
28881
28882         Refactor common macros used in tests.
28883         * tests/macros.h: New file.
28884         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28885         and/or <stdlib.h>, if appropriate.
28886         (ASSERT, SIZEOF): Remove macros.
28887         * tests/test-areadlink-with-size.c: Likewise.
28888         * tests/test-areadlinkat.c: Likewise.
28889         * tests/test-areadlinkat-with-size.c: Likewise.
28890         * tests/test-argmatch.c: Likewise.
28891         * tests/test-argv-iter.c: Likewise.
28892         * tests/test-array-mergesort.c: Likewise.
28893         * tests/test-array_list.c: Likewise.
28894         * tests/test-array_oset.c: Likewise.
28895         * tests/test-avltree_list.c: Likewise.
28896         * tests/test-avltree_oset.c: Likewise.
28897         * tests/test-avltreehash_list.c: Likewise.
28898         * tests/test-base64.c: Likewise.
28899         * tests/test-binary-io.c: Likewise.
28900         * tests/test-bitrotate.c: Likewise.
28901         * tests/test-btowc.c: Likewise.
28902         * tests/test-byteswap.c: Likewise.
28903         * tests/test-c-ctype.c: Likewise.
28904         * tests/test-c-stack.c: Likewise.
28905         * tests/test-c-strcasecmp.c: Likewise.
28906         * tests/test-c-strcasestr.c: Likewise.
28907         * tests/test-c-strncasecmp.c: Likewise.
28908         * tests/test-c-strstr.c: Likewise.
28909         * tests/test-canonicalize-lgpl.c: Likewise.
28910         * tests/test-canonicalize.c: Likewise.
28911         * tests/test-carray_list.c: Likewise.
28912         * tests/test-ceilf1.c: Likewise.
28913         * tests/test-ceilf2.c: Likewise.
28914         * tests/test-ceill.c: Likewise.
28915         * tests/test-chown.c: Likewise.
28916         * tests/test-cloexec.c: Likewise.
28917         * tests/test-copy-acl.c: Likewise.
28918         * tests/test-copy-file.c: Likewise.
28919         * tests/test-count-one-bits.c: Likewise.
28920         * tests/test-dprintf-posix.c: Likewise.
28921         * tests/test-dup2.c: Likewise.
28922         * tests/test-dup3.c: Likewise.
28923         * tests/test-duplocale.c: Likewise.
28924         * tests/test-fbufmode.c: Likewise.
28925         * tests/test-fchdir.c: Likewise.
28926         * tests/test-fchownat.c: Likewise.
28927         * tests/test-fcntl-safer.c: Likewise.
28928         * tests/test-fcntl.c: Likewise.
28929         * tests/test-fdopendir.c: Likewise.
28930         * tests/test-fdutimensat.c: Likewise.
28931         * tests/test-fflush2.c: Likewise.
28932         * tests/test-file-has-acl.c: Likewise.
28933         * tests/test-filevercmp.c: Likewise.
28934         * tests/test-flock.c: Likewise.
28935         * tests/test-floorf1.c: Likewise.
28936         * tests/test-floorf2.c: Likewise.
28937         * tests/test-floorl.c: Likewise.
28938         * tests/test-fnmatch.c: Likewise.
28939         * tests/test-fopen.h: Likewise.
28940         * tests/test-fpending.c: Likewise.
28941         * tests/test-fprintf-posix.c: Likewise.
28942         * tests/test-fpurge.c: Likewise.
28943         * tests/test-freadable.c: Likewise.
28944         * tests/test-freadahead.c: Likewise.
28945         * tests/test-freading.c: Likewise.
28946         * tests/test-freadptr.c: Likewise.
28947         * tests/test-freadptr2.c: Likewise.
28948         * tests/test-freadseek.c: Likewise.
28949         * tests/test-freopen.c: Likewise.
28950         * tests/test-frexp.c: Likewise.
28951         * tests/test-frexpl.c: Likewise.
28952         * tests/test-fseek.c: Likewise.
28953         * tests/test-fseeko.c: Likewise.
28954         * tests/test-fstatat.c: Likewise.
28955         * tests/test-fstrcmp.c: Likewise.
28956         * tests/test-fsync.c: Likewise.
28957         * tests/test-ftell.c: Likewise.
28958         * tests/test-ftello.c: Likewise.
28959         * tests/test-func.c: Likewise.
28960         * tests/test-futimens.c: Likewise.
28961         * tests/test-fwritable.c: Likewise.
28962         * tests/test-fwriting.c: Likewise.
28963         * tests/test-getcwd.c: Likewise.
28964         * tests/test-getdate.c: Likewise.
28965         * tests/test-getdelim.c: Likewise.
28966         * tests/test-getdtablesize.c: Likewise.
28967         * tests/test-getgroups.c: Likewise.
28968         * tests/test-getline.c: Likewise.
28969         * tests/test-getndelim2.c: Likewise.
28970         * tests/test-glob.c: Likewise.
28971         * tests/test-hash.c: Likewise.
28972         * tests/test-i-ring.c: Likewise.
28973         * tests/test-iconv-utf.c: Likewise.
28974         * tests/test-iconv.c: Likewise.
28975         * tests/test-idpriv-drop.c: Likewise.
28976         * tests/test-idpriv-droptemp.c: Likewise.
28977         * tests/test-inet_ntop.c: Likewise.
28978         * tests/test-inet_pton.c: Likewise.
28979         * tests/test-isblank.c: Likewise.
28980         * tests/test-isfinite.c: Likewise.
28981         * tests/test-isinf.c: Likewise.
28982         * tests/test-isnan.c: Likewise.
28983         * tests/test-isnand.h: Likewise.
28984         * tests/test-isnanf.h: Likewise.
28985         * tests/test-isnanl.h: Likewise.
28986         * tests/test-lchown.c: Likewise.
28987         * tests/test-ldexpl.c: Likewise.
28988         * tests/test-link.c: Likewise.
28989         * tests/test-linkat.c: Likewise.
28990         * tests/test-linked_list.c: Likewise.
28991         * tests/test-linkedhash_list.c: Likewise.
28992         * tests/test-localename.c: Likewise.
28993         * tests/test-lseek.c: Likewise.
28994         * tests/test-lstat.c: Likewise.
28995         * tests/test-mbmemcasecmp.c: Likewise.
28996         * tests/test-mbmemcasecoll.c: Likewise.
28997         * tests/test-mbrtowc.c: Likewise.
28998         * tests/test-mbscasecmp.c: Likewise.
28999         * tests/test-mbscasestr1.c: Likewise.
29000         * tests/test-mbscasestr2.c: Likewise.
29001         * tests/test-mbscasestr3.c: Likewise.
29002         * tests/test-mbscasestr4.c: Likewise.
29003         * tests/test-mbschr.c: Likewise.
29004         * tests/test-mbscspn.c: Likewise.
29005         * tests/test-mbsinit.c: Likewise.
29006         * tests/test-mbsncasecmp.c: Likewise.
29007         * tests/test-mbsnrtowcs.c: Likewise.
29008         * tests/test-mbspbrk.c: Likewise.
29009         * tests/test-mbspcasecmp.c: Likewise.
29010         * tests/test-mbsrchr.c: Likewise.
29011         * tests/test-mbsrtowcs.c: Likewise.
29012         * tests/test-mbsspn.c: Likewise.
29013         * tests/test-mbsstr1.c: Likewise.
29014         * tests/test-mbsstr2.c: Likewise.
29015         * tests/test-mbsstr3.c: Likewise.
29016         * tests/test-memchr.c: Likewise.
29017         * tests/test-memchr2.c: Likewise.
29018         * tests/test-memcmp.c: Likewise.
29019         * tests/test-memmem.c: Likewise.
29020         * tests/test-memrchr.c: Likewise.
29021         * tests/test-mkdir.c: Likewise.
29022         * tests/test-mkdirat.c: Likewise.
29023         * tests/test-mkfifo.c: Likewise.
29024         * tests/test-mkfifoat.c: Likewise.
29025         * tests/test-mknod.c: Likewise.
29026         * tests/test-nanosleep.c: Likewise.
29027         * tests/test-nl_langinfo.c: Likewise.
29028         * tests/test-obstack-printf.c: Likewise.
29029         * tests/test-open.c: Likewise.
29030         * tests/test-openat.c: Likewise.
29031         * tests/test-pipe-filter-gi1.c: Likewise.
29032         * tests/test-pipe-filter-gi2-main.c: Likewise.
29033         * tests/test-pipe-filter-ii1.c: Likewise.
29034         * tests/test-pipe-filter-ii2-main.c: Likewise.
29035         * tests/test-pipe2.c: Likewise.
29036         * tests/test-popen.h: Likewise.
29037         * tests/test-posixtm.c: Likewise.
29038         * tests/test-pread.c: Likewise.
29039         * tests/test-printf-frexp.c: Likewise.
29040         * tests/test-printf-frexpl.c: Likewise.
29041         * tests/test-printf-posix.c: Likewise.
29042         * tests/test-priv-set.c: Likewise.
29043         * tests/test-quotearg.c: Likewise.
29044         * tests/test-random_r.c: Likewise.
29045         * tests/test-rawmemchr.c: Likewise.
29046         * tests/test-rbtree_list.c: Likewise.
29047         * tests/test-rbtree_oset.c: Likewise.
29048         * tests/test-rbtreehash_list.c: Likewise.
29049         * tests/test-readlink.c: Likewise.
29050         * tests/test-remove.c: Likewise.
29051         * tests/test-rename.c: Likewise.
29052         * tests/test-renameat.c: Likewise.
29053         * tests/test-rmdir.c: Likewise.
29054         * tests/test-round1.c: Likewise.
29055         * tests/test-roundf1.c: Likewise.
29056         * tests/test-roundl.c: Likewise.
29057         * tests/test-safe-alloc.c: Likewise.
29058         * tests/test-sameacls.c: Likewise.
29059         * tests/test-set-mode-acl.c: Likewise.
29060         * tests/test-setenv.c: Likewise.
29061         * tests/test-sigaction.c: Likewise.
29062         * tests/test-signbit.c: Likewise.
29063         * tests/test-sleep.c: Likewise.
29064         * tests/test-snprintf-posix.c: Likewise.
29065         * tests/test-snprintf.c: Likewise.
29066         * tests/test-sprintf-posix.c: Likewise.
29067         * tests/test-stat-time.c: Likewise.
29068         * tests/test-stat.c: Likewise.
29069         * tests/test-strcasestr.c: Likewise.
29070         * tests/test-strchrnul.c: Likewise.
29071         * tests/test-strerror.c: Likewise.
29072         * tests/test-striconv.c: Likewise.
29073         * tests/test-striconveh.c: Likewise.
29074         * tests/test-striconveha.c: Likewise.
29075         * tests/test-strsignal.c: Likewise.
29076         * tests/test-strstr.c: Likewise.
29077         * tests/test-strtod.c: Likewise.
29078         * tests/test-strverscmp.c: Likewise.
29079         * tests/test-symlink.c: Likewise.
29080         * tests/test-symlinkat.c: Likewise.
29081         * tests/test-trunc1.c: Likewise.
29082         * tests/test-trunc2.c: Likewise.
29083         * tests/test-truncf1.c: Likewise.
29084         * tests/test-truncf2.c: Likewise.
29085         * tests/test-truncl.c: Likewise.
29086         * tests/test-uname.c: Likewise.
29087         * tests/test-unlink.c: Likewise.
29088         * tests/test-unlinkat.c: Likewise.
29089         * tests/test-unsetenv.c: Likewise.
29090         * tests/test-usleep.c: Likewise.
29091         * tests/test-utimens.c: Likewise.
29092         * tests/test-utimensat.c: Likewise.
29093         * tests/test-vasnprintf-posix.c: Likewise.
29094         * tests/test-vasnprintf-posix2.c: Likewise.
29095         * tests/test-vasnprintf.c: Likewise.
29096         * tests/test-vasprintf-posix.c: Likewise.
29097         * tests/test-vasprintf.c: Likewise.
29098         * tests/test-vdprintf-posix.c: Likewise.
29099         * tests/test-vfprintf-posix.c: Likewise.
29100         * tests/test-vprintf-posix.c: Likewise.
29101         * tests/test-vsnprintf-posix.c: Likewise.
29102         * tests/test-vsnprintf.c: Likewise.
29103         * tests/test-vsprintf-posix.c: Likewise.
29104         * tests/test-wcrtomb.c: Likewise.
29105         * tests/test-wcsnrtombs.c: Likewise.
29106         * tests/test-wcsrtombs.c: Likewise.
29107         * tests/test-wctype.c: Likewise.
29108         * tests/test-wcwidth.c: Likewise.
29109         * tests/test-xfprintf-posix.c: Likewise.
29110         * tests/test-xmemdup0.c: Likewise.
29111         * tests/test-xprintf-posix.c: Likewise.
29112         * tests/test-xvasprintf.c: Likewise.
29113         * tests/unicase/test-locale-language.c: Likewise.
29114         * tests/unicase/test-mapping-part1.h: Likewise.
29115         * tests/unicase/test-predicate-part1.h: Likewise.
29116         * tests/unicase/test-u8-casecmp.c: Likewise.
29117         * tests/unicase/test-u8-casecoll.c: Likewise.
29118         * tests/unicase/test-u8-casefold.c: Likewise.
29119         * tests/unicase/test-u8-is-cased.c: Likewise.
29120         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29121         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29122         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29123         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29124         * tests/unicase/test-u8-tolower.c: Likewise.
29125         * tests/unicase/test-u8-totitle.c: Likewise.
29126         * tests/unicase/test-u8-toupper.c: Likewise.
29127         * tests/unicase/test-u16-casecmp.c: Likewise.
29128         * tests/unicase/test-u16-casecoll.c: Likewise.
29129         * tests/unicase/test-u16-casefold.c: Likewise.
29130         * tests/unicase/test-u16-is-cased.c: Likewise.
29131         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29132         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29133         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29134         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29135         * tests/unicase/test-u16-tolower.c: Likewise.
29136         * tests/unicase/test-u16-totitle.c: Likewise.
29137         * tests/unicase/test-u16-toupper.c: Likewise.
29138         * tests/unicase/test-u32-casecmp.c: Likewise.
29139         * tests/unicase/test-u32-casecoll.c: Likewise.
29140         * tests/unicase/test-u32-casefold.c: Likewise.
29141         * tests/unicase/test-u32-is-cased.c: Likewise.
29142         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29143         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29144         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29145         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29146         * tests/unicase/test-u32-tolower.c: Likewise.
29147         * tests/unicase/test-u32-totitle.c: Likewise.
29148         * tests/unicase/test-u32-toupper.c: Likewise.
29149         * tests/unicase/test-ulc-casecmp.c: Likewise.
29150         * tests/unicase/test-ulc-casecoll.c: Likewise.
29151         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29152         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29153         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29154         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29155         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29156         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29157         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29158         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29159         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29160         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29161         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29162         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29163         * tests/unictype/test-bidi_byname.c: Likewise.
29164         * tests/unictype/test-bidi_name.c: Likewise.
29165         * tests/unictype/test-bidi_of.c: Likewise.
29166         * tests/unictype/test-bidi_test.c: Likewise.
29167         * tests/unictype/test-block_list.c: Likewise.
29168         * tests/unictype/test-block_of.c: Likewise.
29169         * tests/unictype/test-block_test.c: Likewise.
29170         * tests/unictype/test-categ_and.c: Likewise.
29171         * tests/unictype/test-categ_and_not.c: Likewise.
29172         * tests/unictype/test-categ_byname.c: Likewise.
29173         * tests/unictype/test-categ_name.c: Likewise.
29174         * tests/unictype/test-categ_none.c: Likewise.
29175         * tests/unictype/test-categ_of.c: Likewise.
29176         * tests/unictype/test-categ_or.c: Likewise.
29177         * tests/unictype/test-categ_test_withtable.c: Likewise.
29178         * tests/unictype/test-combining.c: Likewise.
29179         * tests/unictype/test-decdigit.c: Likewise.
29180         * tests/unictype/test-digit.c: Likewise.
29181         * tests/unictype/test-mirror.c: Likewise.
29182         * tests/unictype/test-numeric.c: Likewise.
29183         * tests/unictype/test-pr_byname.c: Likewise.
29184         * tests/unictype/test-pr_test.c: Likewise.
29185         * tests/unictype/test-predicate-part1.h: Likewise.
29186         * tests/unictype/test-scripts.c: Likewise.
29187         * tests/unictype/test-sy_c_ident.c: Likewise.
29188         * tests/unictype/test-sy_java_ident.c: Likewise.
29189         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29190         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29191         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29192         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29193         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29194         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29195         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29196         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29197         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29198         * tests/uninorm/test-compat-decomposition.c: Likewise.
29199         * tests/uninorm/test-composition.c: Likewise.
29200         * tests/uninorm/test-decomposing-form.c: Likewise.
29201         * tests/uninorm/test-decomposition.c: Likewise.
29202         * tests/uninorm/test-u8-nfc.c: Likewise.
29203         * tests/uninorm/test-u8-nfd.c: Likewise.
29204         * tests/uninorm/test-u8-nfkc.c: Likewise.
29205         * tests/uninorm/test-u8-nfkd.c: Likewise.
29206         * tests/uninorm/test-u8-normcmp.c: Likewise.
29207         * tests/uninorm/test-u8-normcoll.c: Likewise.
29208         * tests/uninorm/test-u16-nfc.c: Likewise.
29209         * tests/uninorm/test-u16-nfd.c: Likewise.
29210         * tests/uninorm/test-u16-nfkc.c: Likewise.
29211         * tests/uninorm/test-u16-nfkd.c: Likewise.
29212         * tests/uninorm/test-u16-normcmp.c: Likewise.
29213         * tests/uninorm/test-u16-normcoll.c: Likewise.
29214         * tests/uninorm/test-u32-nfc.c: Likewise.
29215         * tests/uninorm/test-u32-nfd.c: Likewise.
29216         * tests/uninorm/test-u32-nfkc.c: Likewise.
29217         * tests/uninorm/test-u32-nfkd.c: Likewise.
29218         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29219         * tests/uninorm/test-u32-normcmp.c: Likewise.
29220         * tests/uninorm/test-u32-normcoll.c: Likewise.
29221         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29222         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29223         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29224         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29225         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29226         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29227         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29228         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29229         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29230         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29231         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29232         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29233         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29234         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29235         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29236         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29237         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29238         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29239         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29240         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29241         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29242         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29243         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29244         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29245         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29246         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29247         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29248         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29249         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29250         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29251         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29252         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29253         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29254         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29255         * tests/uniwidth/test-u8-width.c: Likewise.
29256         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29257         * tests/uniwidth/test-u16-width.c: Likewise.
29258         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29259         * tests/uniwidth/test-u32-width.c: Likewise.
29260         * tests/uniwidth/test-uc_width.c: Likewise.
29261         * tests/uniwidth/test-uc_width2.c: Likewise.
29262         * modules/acl-tests (Files): Add tests/macros.h.
29263         * modules/areadlink-tests (Files): Likewise.
29264         * modules/areadlink-with-size-tests (Files): Likewise.
29265         * modules/areadlinkat-tests (Files): Likewise.
29266         * modules/areadlinkat-with-size-tests (Files): Likewise.
29267         * modules/argmatch-tests (Files): Likewise.
29268         * modules/argv-iter-tests (Files): Likewise.
29269         * modules/array-list-tests (Files): Likewise.
29270         * modules/array-mergesort-tests (Files): Likewise.
29271         * modules/array-oset-tests (Files): Likewise.
29272         * modules/avltree-list-tests (Files): Likewise.
29273         * modules/avltree-oset-tests (Files): Likewise.
29274         * modules/avltreehash-list-tests (Files): Likewise.
29275         * modules/base64-tests (Files): Likewise.
29276         * modules/binary-io-tests (Files): Likewise.
29277         * modules/bitrotate-tests (Files): Likewise.
29278         * modules/btowc-tests (Files): Likewise.
29279         * modules/byteswap-tests (Files): Likewise.
29280         * modules/c-ctype-tests (Files): Likewise.
29281         * modules/c-stack-tests (Files): Likewise.
29282         * modules/c-strcase-tests (Files): Likewise.
29283         * modules/c-strcasestr-tests (Files): Likewise.
29284         * modules/c-strstr-tests (Files): Likewise.
29285         * modules/canonicalize-lgpl-tests (Files): Likewise.
29286         * modules/canonicalize-tests (Files): Likewise.
29287         * modules/carray-list-tests (Files): Likewise.
29288         * modules/ceilf-tests (Files): Likewise.
29289         * modules/ceill-tests (Files): Likewise.
29290         * modules/chown-tests (Files): Likewise.
29291         * modules/cloexec-tests (Files): Likewise.
29292         * modules/copy-file-tests (Files): Likewise.
29293         * modules/count-one-bits-tests (Files): Likewise.
29294         * modules/dprintf-posix-tests (Files): Likewise.
29295         * modules/dup2-tests (Files): Likewise.
29296         * modules/dup3-tests (Files): Likewise.
29297         * modules/duplocale-tests (Files): Likewise.
29298         * modules/fbufmode-tests (Files): Likewise.
29299         * modules/fchdir-tests (Files): Likewise.
29300         * modules/fcntl-safer-tests (Files): Likewise.
29301         * modules/fcntl-tests (Files): Likewise.
29302         * modules/fdopendir-tests (Files): Likewise.
29303         * modules/fdutimensat-tests (Files): Likewise.
29304         * modules/fflush-tests (Files): Likewise.
29305         * modules/filevercmp-tests (Files): Likewise.
29306         * modules/flock-tests (Files): Likewise.
29307         * modules/floorf-tests (Files): Likewise.
29308         * modules/floorl-tests (Files): Likewise.
29309         * modules/fnmatch-tests (Files): Likewise.
29310         * modules/fopen-safer-tests (Files): Likewise.
29311         * modules/fopen-tests (Files): Likewise.
29312         * modules/fpending-tests (Files): Likewise.
29313         * modules/fprintf-posix-tests (Files): Likewise.
29314         * modules/fpurge-tests (Files): Likewise.
29315         * modules/freadable-tests (Files): Likewise.
29316         * modules/freadahead-tests (Files): Likewise.
29317         * modules/freading-tests (Files): Likewise.
29318         * modules/freadptr-tests (Files): Likewise.
29319         * modules/freadseek-tests (Files): Likewise.
29320         * modules/freopen-tests (Files): Likewise.
29321         * modules/frexp-nolibm-tests (Files): Likewise.
29322         * modules/frexp-tests (Files): Likewise.
29323         * modules/frexpl-nolibm-tests (Files): Likewise.
29324         * modules/frexpl-tests (Files): Likewise.
29325         * modules/fseek-tests (Files): Likewise.
29326         * modules/fseeko-tests (Files): Likewise.
29327         * modules/fstrcmp-tests (Files): Likewise.
29328         * modules/fsync-tests (Files): Likewise.
29329         * modules/ftell-tests (Files): Likewise.
29330         * modules/ftello-tests (Files): Likewise.
29331         * modules/func-tests (Files): Likewise.
29332         * modules/futimens-tests (Files): Likewise.
29333         * modules/fwritable-tests (Files): Likewise.
29334         * modules/fwriting-tests (Files): Likewise.
29335         * modules/getcwd-tests (Files): Likewise.
29336         * modules/getdate-tests (Files): Likewise.
29337         * modules/getdelim-tests (Files): Likewise.
29338         * modules/getdtablesize-tests (Files): Likewise.
29339         * modules/getgroups-tests (Files): Likewise.
29340         * modules/getline-tests (Files): Likewise.
29341         * modules/getndelim2-tests (Files): Likewise.
29342         * modules/glob-tests (Files): Likewise.
29343         * modules/hash-tests (Files): Likewise.
29344         * modules/i-ring-tests (Files): Likewise.
29345         * modules/iconv-tests (Files): Likewise.
29346         * modules/iconv_open-utf-tests (Files): Likewise.
29347         * modules/idpriv-drop-tests (Files): Likewise.
29348         * modules/idpriv-droptemp-tests (Files): Likewise.
29349         * modules/inet_ntop-tests (Files): Likewise.
29350         * modules/inet_pton-tests (Files): Likewise.
29351         * modules/isblank-tests (Files): Likewise.
29352         * modules/isfinite-tests (Files): Likewise.
29353         * modules/isinf-tests (Files): Likewise.
29354         * modules/isnan-tests (Files): Likewise.
29355         * modules/isnand-nolibm-tests (Files): Likewise.
29356         * modules/isnand-tests (Files): Likewise.
29357         * modules/isnanf-nolibm-tests (Files): Likewise.
29358         * modules/isnanf-tests (Files): Likewise.
29359         * modules/isnanl-nolibm-tests (Files): Likewise.
29360         * modules/isnanl-tests (Files): Likewise.
29361         * modules/lchown-tests (Files): Likewise.
29362         * modules/ldexpl-tests (Files): Likewise.
29363         * modules/link-tests (Files): Likewise.
29364         * modules/linkat-tests (Files): Likewise.
29365         * modules/linked-list-tests (Files): Likewise.
29366         * modules/linkedhash-list-tests (Files): Likewise.
29367         * modules/localename-tests (Files): Likewise.
29368         * modules/lseek-tests (Files): Likewise.
29369         * modules/lstat-tests (Files): Likewise.
29370         * modules/mbmemcasecmp-tests (Files): Likewise.
29371         * modules/mbmemcasecoll-tests (Files): Likewise.
29372         * modules/mbrtowc-tests (Files): Likewise.
29373         * modules/mbscasecmp-tests (Files): Likewise.
29374         * modules/mbscasestr-tests (Files): Likewise.
29375         * modules/mbschr-tests (Files): Likewise.
29376         * modules/mbscspn-tests (Files): Likewise.
29377         * modules/mbsinit-tests (Files): Likewise.
29378         * modules/mbsncasecmp-tests (Files): Likewise.
29379         * modules/mbsnrtowcs-tests (Files): Likewise.
29380         * modules/mbspbrk-tests (Files): Likewise.
29381         * modules/mbspcasecmp-tests (Files): Likewise.
29382         * modules/mbsrchr-tests (Files): Likewise.
29383         * modules/mbsrtowcs-tests (Files): Likewise.
29384         * modules/mbsspn-tests (Files): Likewise.
29385         * modules/mbsstr-tests (Files): Likewise.
29386         * modules/memchr-tests (Files): Likewise.
29387         * modules/memchr2-tests (Files): Likewise.
29388         * modules/memcmp-tests (Files): Likewise.
29389         * modules/memmem-tests (Files): Likewise.
29390         * modules/memrchr-tests (Files): Likewise.
29391         * modules/mkdir-tests (Files): Likewise.
29392         * modules/mkfifo-tests (Files): Likewise.
29393         * modules/mkfifoat-tests (Files): Likewise.
29394         * modules/mknod-tests (Files): Likewise.
29395         * modules/nanosleep-tests (Files): Likewise.
29396         * modules/nl_langinfo-tests (Files): Likewise.
29397         * modules/obstack-printf-tests (Files): Likewise.
29398         * modules/open-tests (Files): Likewise.
29399         * modules/openat-tests (Files): Likewise.
29400         * modules/pipe-filter-gi-tests (Files): Likewise.
29401         * modules/pipe-filter-ii-tests (Files): Likewise.
29402         * modules/pipe2-tests (Files): Likewise.
29403         * modules/popen-safer-tests (Files): Likewise.
29404         * modules/popen-tests (Files): Likewise.
29405         * modules/posixtm-tests (Files): Likewise.
29406         * modules/pread-tests (Files): Likewise.
29407         * modules/printf-frexp-tests (Files): Likewise.
29408         * modules/printf-frexpl-tests (Files): Likewise.
29409         * modules/printf-posix-tests (Files): Likewise.
29410         * modules/priv-set-tests (Files): Likewise.
29411         * modules/quotearg-tests (Files): Likewise.
29412         * modules/random_r-tests (Files): Likewise.
29413         * modules/rawmemchr-tests (Files): Likewise.
29414         * modules/rbtree-list-tests (Files): Likewise.
29415         * modules/rbtree-oset-tests (Files): Likewise.
29416         * modules/rbtreehash-list-tests (Files): Likewise.
29417         * modules/readlink-tests (Files): Likewise.
29418         * modules/remove-tests (Files): Likewise.
29419         * modules/rename-tests (Files): Likewise.
29420         * modules/renameat-tests (Files): Likewise.
29421         * modules/rmdir-tests (Files): Likewise.
29422         * modules/round-tests (Files): Likewise.
29423         * modules/roundf-tests (Files): Likewise.
29424         * modules/roundl-tests (Files): Likewise.
29425         * modules/safe-alloc-tests (Files): Likewise.
29426         * modules/setenv-tests (Files): Likewise.
29427         * modules/sigaction-tests (Files): Likewise.
29428         * modules/signbit-tests (Files): Likewise.
29429         * modules/sleep-tests (Files): Likewise.
29430         * modules/snprintf-posix-tests (Files): Likewise.
29431         * modules/snprintf-tests (Files): Likewise.
29432         * modules/sprintf-posix-tests (Files): Likewise.
29433         * modules/stat-tests (Files): Likewise.
29434         * modules/stat-time-tests (Files): Likewise.
29435         * modules/strcasestr-tests (Files): Likewise.
29436         * modules/strchrnul-tests (Files): Likewise.
29437         * modules/strerror-tests (Files): Likewise.
29438         * modules/striconv-tests (Files): Likewise.
29439         * modules/striconveh-tests (Files): Likewise.
29440         * modules/striconveha-tests (Files): Likewise.
29441         * modules/strsignal-tests (Files): Likewise.
29442         * modules/strstr-tests (Files): Likewise.
29443         * modules/strtod-tests (Files): Likewise.
29444         * modules/strverscmp-tests (Files): Likewise.
29445         * modules/symlink-tests (Files): Likewise.
29446         * modules/symlinkat-tests (Files): Likewise.
29447         * modules/trunc-tests (Files): Likewise.
29448         * modules/truncf-tests (Files): Likewise.
29449         * modules/truncl-tests (Files): Likewise.
29450         * modules/uname-tests (Files): Likewise.
29451         * modules/unicase/cased-tests (Files): Likewise.
29452         * modules/unicase/ignorable-tests (Files): Likewise.
29453         * modules/unicase/locale-language-tests (Files): Likewise.
29454         * modules/unicase/tolower-tests (Files): Likewise.
29455         * modules/unicase/totitle-tests (Files): Likewise.
29456         * modules/unicase/toupper-tests (Files): Likewise.
29457         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29458         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29459         * modules/unicase/u8-casefold-tests (Files): Likewise.
29460         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29461         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29462         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29463         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29464         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29465         * modules/unicase/u8-tolower-tests (Files): Likewise.
29466         * modules/unicase/u8-totitle-tests (Files): Likewise.
29467         * modules/unicase/u8-toupper-tests (Files): Likewise.
29468         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29469         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29470         * modules/unicase/u16-casefold-tests (Files): Likewise.
29471         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29472         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29473         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29474         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29475         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29476         * modules/unicase/u16-tolower-tests (Files): Likewise.
29477         * modules/unicase/u16-totitle-tests (Files): Likewise.
29478         * modules/unicase/u16-toupper-tests (Files): Likewise.
29479         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29480         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29481         * modules/unicase/u32-casefold-tests (Files): Likewise.
29482         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29483         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29484         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29485         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29486         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29487         * modules/unicase/u32-tolower-tests (Files): Likewise.
29488         * modules/unicase/u32-totitle-tests (Files): Likewise.
29489         * modules/unicase/u32-toupper-tests (Files): Likewise.
29490         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29491         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29492         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29493         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29494         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29495         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29496         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29497         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29498         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29499         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29500         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29501         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29502         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29503         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29504         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29505         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29506         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29507         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29508         * modules/unictype/block-list-tests (Files): Likewise.
29509         * modules/unictype/block-of-tests (Files): Likewise.
29510         * modules/unictype/block-test-tests (Files): Likewise.
29511         * modules/unictype/category-C-tests (Files): Likewise.
29512         * modules/unictype/category-Cc-tests (Files): Likewise.
29513         * modules/unictype/category-Cf-tests (Files): Likewise.
29514         * modules/unictype/category-Cn-tests (Files): Likewise.
29515         * modules/unictype/category-Co-tests (Files): Likewise.
29516         * modules/unictype/category-Cs-tests (Files): Likewise.
29517         * modules/unictype/category-L-tests (Files): Likewise.
29518         * modules/unictype/category-Ll-tests (Files): Likewise.
29519         * modules/unictype/category-Lm-tests (Files): Likewise.
29520         * modules/unictype/category-Lo-tests (Files): Likewise.
29521         * modules/unictype/category-Lt-tests (Files): Likewise.
29522         * modules/unictype/category-Lu-tests (Files): Likewise.
29523         * modules/unictype/category-M-tests (Files): Likewise.
29524         * modules/unictype/category-Mc-tests (Files): Likewise.
29525         * modules/unictype/category-Me-tests (Files): Likewise.
29526         * modules/unictype/category-Mn-tests (Files): Likewise.
29527         * modules/unictype/category-N-tests (Files): Likewise.
29528         * modules/unictype/category-Nd-tests (Files): Likewise.
29529         * modules/unictype/category-Nl-tests (Files): Likewise.
29530         * modules/unictype/category-No-tests (Files): Likewise.
29531         * modules/unictype/category-P-tests (Files): Likewise.
29532         * modules/unictype/category-Pc-tests (Files): Likewise.
29533         * modules/unictype/category-Pd-tests (Files): Likewise.
29534         * modules/unictype/category-Pe-tests (Files): Likewise.
29535         * modules/unictype/category-Pf-tests (Files): Likewise.
29536         * modules/unictype/category-Pi-tests (Files): Likewise.
29537         * modules/unictype/category-Po-tests (Files): Likewise.
29538         * modules/unictype/category-Ps-tests (Files): Likewise.
29539         * modules/unictype/category-S-tests (Files): Likewise.
29540         * modules/unictype/category-Sc-tests (Files): Likewise.
29541         * modules/unictype/category-Sk-tests (Files): Likewise.
29542         * modules/unictype/category-Sm-tests (Files): Likewise.
29543         * modules/unictype/category-So-tests (Files): Likewise.
29544         * modules/unictype/category-Z-tests (Files): Likewise.
29545         * modules/unictype/category-Zl-tests (Files): Likewise.
29546         * modules/unictype/category-Zp-tests (Files): Likewise.
29547         * modules/unictype/category-Zs-tests (Files): Likewise.
29548         * modules/unictype/category-and-not-tests (Files): Likewise.
29549         * modules/unictype/category-and-tests (Files): Likewise.
29550         * modules/unictype/category-byname-tests (Files): Likewise.
29551         * modules/unictype/category-name-tests (Files): Likewise.
29552         * modules/unictype/category-none-tests (Files): Likewise.
29553         * modules/unictype/category-of-tests (Files): Likewise.
29554         * modules/unictype/category-or-tests (Files): Likewise.
29555         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29556         * modules/unictype/combining-class-tests (Files): Likewise.
29557         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29558         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29559         * modules/unictype/ctype-blank-tests (Files): Likewise.
29560         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29561         * modules/unictype/ctype-digit-tests (Files): Likewise.
29562         * modules/unictype/ctype-graph-tests (Files): Likewise.
29563         * modules/unictype/ctype-lower-tests (Files): Likewise.
29564         * modules/unictype/ctype-print-tests (Files): Likewise.
29565         * modules/unictype/ctype-punct-tests (Files): Likewise.
29566         * modules/unictype/ctype-space-tests (Files): Likewise.
29567         * modules/unictype/ctype-upper-tests (Files): Likewise.
29568         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29569         * modules/unictype/decimal-digit-tests (Files): Likewise.
29570         * modules/unictype/digit-tests (Files): Likewise.
29571         * modules/unictype/mirror-tests (Files): Likewise.
29572         * modules/unictype/numeric-tests (Files): Likewise.
29573         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29574         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29575         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29576         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29577         Likewise.
29578         * modules/unictype/property-bidi-block-separator-tests (Files):
29579         Likewise.
29580         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29581         Likewise.
29582         * modules/unictype/property-bidi-common-separator-tests (Files):
29583         Likewise.
29584         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29585         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29586         Likewise.
29587         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29588         Likewise.
29589         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29590         Likewise.
29591         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29592         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29593         Likewise.
29594         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29595         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29596         Likewise.
29597         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29598         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29599         * modules/unictype/property-bidi-segment-separator-tests (Files):
29600         Likewise.
29601         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29602         * modules/unictype/property-byname-tests (Files): Likewise.
29603         * modules/unictype/property-combining-tests (Files): Likewise.
29604         * modules/unictype/property-composite-tests (Files): Likewise.
29605         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29606         * modules/unictype/property-dash-tests (Files): Likewise.
29607         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29608         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29609         Likewise.
29610         * modules/unictype/property-deprecated-tests (Files): Likewise.
29611         * modules/unictype/property-diacritic-tests (Files): Likewise.
29612         * modules/unictype/property-extender-tests (Files): Likewise.
29613         * modules/unictype/property-format-control-tests (Files): Likewise.
29614         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29615         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29616         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29617         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29618         * modules/unictype/property-hyphen-tests (Files): Likewise.
29619         * modules/unictype/property-id-continue-tests (Files): Likewise.
29620         * modules/unictype/property-id-start-tests (Files): Likewise.
29621         * modules/unictype/property-ideographic-tests (Files): Likewise.
29622         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29623         * modules/unictype/property-ids-trinary-operator-tests (Files):
29624         Likewise.
29625         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29626         * modules/unictype/property-iso-control-tests (Files): Likewise.
29627         * modules/unictype/property-join-control-tests (Files): Likewise.
29628         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29629         * modules/unictype/property-line-separator-tests (Files): Likewise.
29630         * modules/unictype/property-logical-order-exception-tests (Files):
29631         Likewise.
29632         * modules/unictype/property-lowercase-tests (Files): Likewise.
29633         * modules/unictype/property-math-tests (Files): Likewise.
29634         * modules/unictype/property-non-break-tests (Files): Likewise.
29635         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29636         * modules/unictype/property-numeric-tests (Files): Likewise.
29637         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29638         * modules/unictype/property-other-default-ignorable-code-point-tests
29639         (Files): Likewise.
29640         * modules/unictype/property-other-grapheme-extend-tests (Files):
29641         Likewise.
29642         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29643         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29644         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29645         * modules/unictype/property-other-math-tests (Files): Likewise.
29646         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29647         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29648         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29649         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29650         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29651         * modules/unictype/property-private-use-tests (Files): Likewise.
29652         * modules/unictype/property-punctuation-tests (Files): Likewise.
29653         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29654         * modules/unictype/property-radical-tests (Files): Likewise.
29655         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29656         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29657         * modules/unictype/property-space-tests (Files): Likewise.
29658         * modules/unictype/property-terminal-punctuation-tests (Files):
29659         Likewise.
29660         * modules/unictype/property-test-tests (Files): Likewise.
29661         * modules/unictype/property-titlecase-tests (Files): Likewise.
29662         * modules/unictype/property-unassigned-code-value-tests (Files):
29663         Likewise.
29664         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29665         * modules/unictype/property-uppercase-tests (Files): Likewise.
29666         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29667         * modules/unictype/property-white-space-tests (Files): Likewise.
29668         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29669         * modules/unictype/property-xid-start-tests (Files): Likewise.
29670         * modules/unictype/property-zero-width-tests (Files): Likewise.
29671         * modules/unictype/scripts-tests (Files): Likewise.
29672         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29673         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29674         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29675         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29676         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29677         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29678         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29679         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29680         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29681         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29682         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29683         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29684         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29685         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29686         * modules/uninorm/composition-tests (Files): Likewise.
29687         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29688         * modules/uninorm/decomposition-tests (Files): Likewise.
29689         * modules/uninorm/filter-tests (Files): Likewise.
29690         * modules/uninorm/nfc-tests (Files): Likewise.
29691         * modules/uninorm/nfd-tests (Files): Likewise.
29692         * modules/uninorm/nfkc-tests (Files): Likewise.
29693         * modules/uninorm/nfkd-tests (Files): Likewise.
29694         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29695         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29696         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29697         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29698         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29699         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29700         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29701         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29702         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29703         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29704         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29705         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29706         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29707         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29708         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29709         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29710         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29711         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29712         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29713         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29714         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29715         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29716         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29717         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29718         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29719         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29720         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29721         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29722         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29723         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29724         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29725         * modules/uniwidth/u8-width-tests (Files): Likewise.
29726         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29727         * modules/uniwidth/u16-width-tests (Files): Likewise.
29728         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29729         * modules/uniwidth/u32-width-tests (Files): Likewise.
29730         * modules/uniwidth/width-tests (Files): Likewise.
29731         * modules/unlink-tests (Files): Likewise.
29732         * modules/unsetenv-tests (Files): Likewise.
29733         * modules/usleep-tests (Files): Likewise.
29734         * modules/utimens-tests (Files): Likewise.
29735         * modules/utimensat-tests (Files): Likewise.
29736         * modules/vasnprintf-posix-tests (Files): Likewise.
29737         * modules/vasnprintf-tests (Files): Likewise.
29738         * modules/vasprintf-posix-tests (Files): Likewise.
29739         * modules/vasprintf-tests (Files): Likewise.
29740         * modules/vdprintf-posix-tests (Files): Likewise.
29741         * modules/vfprintf-posix-tests (Files): Likewise.
29742         * modules/vprintf-posix-tests (Files): Likewise.
29743         * modules/vsnprintf-posix-tests (Files): Likewise.
29744         * modules/vsnprintf-tests (Files): Likewise.
29745         * modules/vsprintf-posix-tests (Files): Likewise.
29746         * modules/wcrtomb-tests (Files): Likewise.
29747         * modules/wcsnrtombs-tests (Files): Likewise.
29748         * modules/wcsrtombs-tests (Files): Likewise.
29749         * modules/wctype-tests (Files): Likewise.
29750         * modules/wcwidth-tests (Files): Likewise.
29751         * modules/xmemdup0-tests (Files): Likewise.
29752         * modules/xprintf-posix-tests (Files): Likewise.
29753         * modules/xvasprintf-tests (Files): Likewise.
29754
29755 2009-12-24  Eric Blake  <ebb9@byu.net>
29756
29757         test-nanosleep: fix typo
29758         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29759         patch.
29760         Reported by Bruno Haible.
29761
29762 2009-12-24  Bruno Haible  <bruno@clisp.org>
29763
29764         Reduce namespace pollution on glibc systems.
29765         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29766         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29767         systems.
29768         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29769         <getopt.h> on glibc systems.
29770         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29771         systems.
29772         * lib/fcntl.c: Include <unistd.h> here instead.
29773
29774 2009-12-24  Bruno Haible  <bruno@clisp.org>
29775
29776         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29777
29778 2009-12-24  Eric Blake  <ebb9@byu.net>
29779
29780         tests: add signature checks
29781         * tests/signature.h (SIGNATURE_CHECK): New file.
29782         * modules/atexit-tests (Files): Use it.
29783         * modules/btowc-tests (Files): Likewise.
29784         * modules/canonicalize-lgpl-tests (Files): Likewise.
29785         * modules/ceilf-tests (Files): Likewise.
29786         * modules/ceill-tests (Files): Likewise.
29787         * modules/chown-tests (Files): Likewise.
29788         * modules/dprintf-posix-tests (Files): Likewise.
29789         * modules/dup2-tests (Files): Likewise.
29790         * modules/dup3-tests (Files): Likewise.
29791         * modules/duplocale-tests (Files): Likewise.
29792         * modules/fchdir-tests (Files): Likewise.
29793         * modules/fcntl-tests (Files): Likewise.
29794         * modules/fdopendir-tests (Files): Likewise.
29795         * modules/fflush-tests (Files): Likewise.
29796         * modules/flock-tests (Files): Likewise.
29797         * modules/floorf-tests (Files): Likewise.
29798         * modules/floorl-tests (Files): Likewise.
29799         * modules/fnmatch-tests (Files): Likewise.
29800         * modules/fopen-tests (Files): Likewise.
29801         * modules/fprintf-posix-tests (Files): Likewise.
29802         * modules/freopen-tests (Files): Likewise.
29803         * modules/frexp-nolibm-tests (Files): Likewise.
29804         * modules/frexp-tests (Files): Likewise.
29805         * modules/frexpl-nolibm-tests (Files): Likewise.
29806         * modules/frexpl-tests (Files): Likewise.
29807         * modules/fseek-tests (Files): Likewise.
29808         * modules/fseeko-tests (Files): Likewise.
29809         * modules/fsync-tests (Files): Likewise.
29810         * modules/ftell-tests (Files): Likewise.
29811         * modules/ftello-tests (Files): Likewise.
29812         * modules/futimens-tests (Files): Likewise.
29813         * modules/getaddrinfo-tests (Files): Likewise.
29814         * modules/getcwd-tests (Files): Likewise.
29815         * modules/getdelim-tests (Files): Likewise.
29816         * modules/getdtablesize-tests (Files): Likewise.
29817         * modules/getgroups-tests (Files): Likewise.
29818         * modules/gethostname-tests (Files): Likewise.
29819         * modules/getline-tests (Files): Likewise.
29820         * modules/getopt-posix-tests (Files): Likewise.
29821         * modules/gettimeofday-tests (Files): Likewise.
29822         * modules/glob-tests (Files): Likewise.
29823         * modules/iconv-tests (Files): Likewise.
29824         * modules/inet_ntop-tests (Files): Likewise.
29825         * modules/inet_pton-tests (Files): Likewise.
29826         * modules/isblank-tests (Files): Likewise.
29827         * modules/lchown-tests (Files): Likewise.
29828         * modules/ldexpl-tests (Files): Likewise.
29829         * modules/link-tests (Files): Likewise.
29830         * modules/linkat-tests (Files): Likewise.
29831         * modules/lseek-tests (Files): Likewise.
29832         * modules/lstat-tests (Files): Likewise.
29833         * modules/mbrtowc-tests (Files): Likewise.
29834         * modules/mbsinit-tests (Files): Likewise.
29835         * modules/mbsnrtowcs-tests (Files): Likewise.
29836         * modules/mbsrtowcs-tests (Files): Likewise.
29837         * modules/memchr-tests (Files): Likewise.
29838         * modules/memcmp-tests (Files): Likewise.
29839         * modules/memmem-tests (Files): Likewise.
29840         * modules/memrchr-tests (Files): Likewise.
29841         * modules/mkdir-tests (Files): Likewise.
29842         * modules/mkfifo-tests (Files): Likewise.
29843         * modules/mkfifoat-tests (Files): Likewise.
29844         * modules/mknod-tests (Files): Likewise.
29845         * modules/nanosleep-tests (Files): Likewise.
29846         * modules/nl_langinfo-tests (Files): Likewise.
29847         * modules/obstack-printf-tests (Files): Likewise.
29848         * modules/open-tests (Files): Likewise.
29849         * modules/openat-tests (Files): Likewise.
29850         * modules/perror-tests (Files): Likewise.
29851         * modules/pipe2-tests (Files): Likewise.
29852         * modules/poll-tests (Files): Likewise.
29853         * modules/popen-tests (Files): Likewise.
29854         * modules/posix_spawn-tests (Files): Likewise.
29855         * modules/posix_spawnp-tests (Files): Likewise.
29856         * modules/pread-tests (Files): Likewise.
29857         * modules/printf-posix-tests (Files): Likewise.
29858         * modules/pty-tests (Files): Likewise.
29859         * modules/random_r-tests (Files): Likewise.
29860         * modules/rawmemchr-tests (Files): Likewise.
29861         * modules/readlink-tests (Files): Likewise.
29862         * modules/remove-tests (Files): Likewise.
29863         * modules/rename-tests (Files): Likewise.
29864         * modules/renameat-tests (Files): Likewise.
29865         * modules/rmdir-tests (Files): Likewise.
29866         * modules/round-tests (Files): Likewise.
29867         * modules/roundf-tests (Files): Likewise.
29868         * modules/roundl-tests (Files): Likewise.
29869         * modules/select-tests (Files): Likewise.
29870         * modules/setenv-tests (Files): Likewise.
29871         * modules/sigaction-tests (Files): Likewise.
29872         * modules/sleep-tests (Files): Likewise.
29873         * modules/snprintf-posix-tests (Files): Likewise.
29874         * modules/snprintf-tests (Files): Likewise.
29875         * modules/sprintf-posix-tests (Files): Likewise.
29876         * modules/stat-tests (Files): Likewise.
29877         * modules/strcasestr-tests (Files): Likewise.
29878         * modules/strchrnul-tests (Files): Likewise.
29879         * modules/strerror-tests (Files): Likewise.
29880         * modules/strsignal-tests (Files): Likewise.
29881         * modules/strstr-tests (Files): Likewise.
29882         * modules/strtod-tests (Files): Likewise.
29883         * modules/strverscmp-tests (Files): Likewise.
29884         * modules/symlink-tests (Files): Likewise.
29885         * modules/symlinkat-tests (Files): Likewise.
29886         * modules/times-tests (Files): Likewise.
29887         * modules/trunc-tests (Files): Likewise.
29888         * modules/truncf-tests (Files): Likewise.
29889         * modules/truncl-tests (Files): Likewise.
29890         * modules/tsearch-tests (Files): Likewise.
29891         * modules/uname-tests (Files): Likewise.
29892         * modules/unlink-tests (Files): Likewise.
29893         * modules/unsetenv-tests (Files): Likewise.
29894         * modules/usleep-tests (Files): Likewise.
29895         * modules/utimensat-tests (Files): Likewise.
29896         * modules/vasprintf-tests (Files): Likewise.
29897         * modules/vdprintf-posix-tests (Files): Likewise.
29898         * modules/vfprintf-posix-tests (Files): Likewise.
29899         * modules/vprintf-posix-tests (Files): Likewise.
29900         * modules/vsnprintf-posix-tests (Files): Likewise.
29901         * modules/vsnprintf-tests (Files): Likewise.
29902         * modules/vsprintf-posix-tests (Files): Likewise.
29903         * modules/wcrtomb-tests (Files): Likewise.
29904         * modules/wcsnrtombs-tests (Files): Likewise.
29905         * modules/wcsrtombs-tests (Files): Likewise.
29906         * modules/wcwidth-tests (Files): Likewise.
29907         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29908         * tests/test-isinf.c (isinf): Likewise.
29909         * tests/test-isnan.c (isnan): Likewise.
29910         * tests/test-signbit.c (signbit): Likewise.
29911         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29912         declaration, either as macro or with correct signature.
29913         (select): Ensure function under test is declared with correct
29914         signature in correct header.
29915         * tests/test-atexit.c (atexit): Likewise.
29916         * tests/test-btowc.c (btowc): Likewise.
29917         * tests/test-canonicalize-lgpl.c (realpath)
29918         (canonicalize_file_name): Likewise.
29919         * tests/test-ceilf1.c (ceilf): Likewise.
29920         * tests/test-ceill.c (ceill): Likewise.
29921         * tests/test-chown.c (chown): Likewise.
29922         * tests/test-dprintf-posix.c (dprintf): Likewise.
29923         * tests/test-dup2.c (dup2): Likewise.
29924         * tests/test-dup3.c (dup3): Likewise.
29925         * tests/test-duplocale.c (duplocale): Likewise.
29926         * tests/test-fchdir.c (fchdir): Likewise.
29927         * tests/test-fchownat.c (fchownat): Likewise.
29928         * tests/test-fcntl.c (fcntl): Likewise.
29929         * tests/test-fdopendir.c (fdopendir): Likewise.
29930         * tests/test-fflush.c (fflush): Likewise.
29931         * tests/test-flock.c (flock): Likewise.
29932         * tests/test-floorf1.c (floorf): Likewise.
29933         * tests/test-floorl.c (floorl): Likewise.
29934         * tests/test-fnmatch.c (fnmatch): Likewise.
29935         * tests/test-fopen.c (fopen): Likewise.
29936         * tests/test-fprintf-posix.c (fprintf): Likewise.
29937         * tests/test-freopen.c (freopen): Likewise.
29938         * tests/test-frexp.c (frexp): Likewise.
29939         * tests/test-frexpl.c (frexpl): Likewise.
29940         * tests/test-fseek.c (fseek): Likewise.
29941         * tests/test-fseeko.c (fseeko): Likewise.
29942         * tests/test-fstatat.c (fstatat): Likewise.
29943         * tests/test-fsync.c (fsync): Likewise.
29944         * tests/test-ftell.c (ftell): Likewise.
29945         * tests/test-ftello.c (ftello): Likewise.
29946         * tests/test-futimens.c (futimens): Likewise.
29947         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29948         (gai_strerror): Likewise.
29949         * tests/test-getcwd.c (getcwd): Likewise.
29950         * tests/test-getdelim.c (getdelim): Likewise.
29951         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29952         * tests/test-getgroups.c (getgroups): Likewise.
29953         * tests/test-gethostname.c (gethostname): Likewise.
29954         * tests/test-getline.c (getline): Likewise.
29955         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29956         Likewise.
29957         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29958         * tests/test-glob.c (glob, globfree): Likewise.
29959         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29960         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29961         * tests/test-inet_pton.c (inet_pton): Likewise.
29962         * tests/test-isblank.c (isblank): Likewise.
29963         * tests/test-lchown.c (lchown): Likewise.
29964         * tests/test-ldexpl.c (ldexpl): Likewise.
29965         * tests/test-link.c (link): Likewise.
29966         * tests/test-linkat.c (linkat): Likewise.
29967         * tests/test-lseek.c (lseek): Likewise.
29968         * tests/test-lstat.c (lstat): Likewise.
29969         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29970         * tests/test-mbsinit.c (mbsinit): Likewise.
29971         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29972         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29973         * tests/test-memchr.c (memchr): Likewise.
29974         * tests/test-memcmp.c (memcmp): Likewise.
29975         * tests/test-memmem.c (memmem): Likewise.
29976         * tests/test-memrchr.c (memrchr): Likewise.
29977         * tests/test-mkdir.c (mkdir): Likewise.
29978         * tests/test-mkdirat.c (mkdirat): Likewise.
29979         * tests/test-mkfifo.c (mkfifo): Likewise.
29980         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29981         * tests/test-mknod.c (mknod): Likewise.
29982         * tests/test-nanosleep.c (nanosleep): Likewise.
29983         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29984         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29985         Likewise.
29986         * tests/test-open.c (open): Likewise.
29987         * tests/test-openat.c (openat): Likewise.
29988         * tests/test-perror.c (perror): Likewise.
29989         * tests/test-pipe2.c (pipe2): Likewise.
29990         * tests/test-poll.c (poll): Likewise.
29991         * tests/test-popen.c (popen, pclose): Likewise.
29992         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29993         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29994         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29995         (posix_spawn_file_actions_destroy)
29996         (posix_spawn_file_actions_addclose)
29997         (posix_spawn_file_actions_addopen)
29998         (posix_spawn_file_actions_adddup2): Likewise.
29999         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30000         * tests/test-pread.c (pread): Likewise.
30001         * tests/test-printf-posix.c (printf): Likewise.
30002         * tests/test-pty.c (openpty, forkpty): Likewise.
30003         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30004         (random_r): Likewise.
30005         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30006         * tests/test-readlink.c (readlink): Likewise.
30007         * tests/test-remove.c (remove): Likewise.
30008         * tests/test-rename.c (rename): Likewise.
30009         * tests/test-renameat.c (renameat): Likewise.
30010         * tests/test-rmdir.c (rmdir): Likewise.
30011         * tests/test-round1.c (round): Likewise.
30012         * tests/test-roundf1.c (roundf): Likewise.
30013         * tests/test-roundl.c (roundl): Likewise.
30014         * tests/test-setenv.c (setenv): Likewise.
30015         * tests/test-sigaction.c (sigaction): Likewise.
30016         * tests/test-sleep.c (sleep): Likewise.
30017         * tests/test-snprintf.c (snprintf): Likewise.
30018         * tests/test-sprintf-posix.c (sprintf): Likewise.
30019         * tests/test-stat.c (stat): Likewise.
30020         * tests/test-stpncpy.c (stpncpy): Likewise.
30021         * tests/test-strcasestr.c (strcasestr): Likewise.
30022         * tests/test-strchrnul.c (strchrnul): Likewise.
30023         * tests/test-strerror.c (strerror): Likewise.
30024         * tests/test-strsignal.c (strsignal): Likewise.
30025         * tests/test-strstr.c (strstr): Likewise.
30026         * tests/test-strtod.c (strtod): Likewise.
30027         * tests/test-strverscmp.c (strverscmp): Likewise.
30028         * tests/test-symlink.c (symlink): Likewise.
30029         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30030         * tests/test-times.c (times): Likewise.
30031         * tests/test-trunc1.c (trunc): Likewise.
30032         * tests/test-truncf1.c (truncf): Likewise.
30033         * tests/test-truncl.c (truncl): Likewise.
30034         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30035         Likewise.
30036         * tests/test-uname.c (uname): Likewise.
30037         * tests/test-unlink.c (unlink): Likewise.
30038         * tests/test-unlinkat.c (unlinkat): Likewise.
30039         * tests/test-unsetenv.c (unsetenv): Likewise.
30040         * tests/test-usleep.c (usleep): Likewise.
30041         * tests/test-utimensat.c (utimensat): Likewise.
30042         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30043         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30044         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30045         * tests/test-vprintf-posix.c (vprintf): Likewise.
30046         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30047         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30048         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30049         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30050         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30051         * tests/test-wcwidth.c (wcwidth): Likewise.
30052
30053         build: pull in conditional headers during GNULIB_POSIXCHECK
30054         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30055         definitions from any conditionally-included headers.
30056         * lib/stdlib.in.h (includes): Likewise.
30057         * lib/unistd.in.h (includes): Likewise.
30058
30059 2009-12-24  Bruno Haible  <bruno@clisp.org>
30060
30061         * tests/test-argv-iter.c: Include header file being tested immediately
30062         after config.h.
30063         * tests/test-base64.c: Likewise.
30064         * tests/test-flock.c: Likewise.
30065         * tests/test-fsync.c: Likewise.
30066         * tests/test-getdate.c: Likewise.
30067         * tests/test-getndelim2.c: Likewise.
30068         * tests/test-isfinite.c: Likewise.
30069         * tests/test-isinf.c: Likewise.
30070         * tests/test-strerror.c: Likewise.
30071         * tests/test-strsignal.c: Likewise.
30072
30073 2009-12-23  Eric Blake  <ebb9@byu.net>
30074
30075         unistd: work around cygwin bug
30076         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30077         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30078         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30079
30080 2009-12-23  Bruno Haible  <bruno@clisp.org>
30081
30082         localename: More tests.
30083         * tests/test-localename.c (SIZEOF): New macro.
30084         (categories): New variable.
30085         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30086         test_locale_name_default): Add test w.r.t. thread locale.
30087         (test_locale_name_thread): New function.
30088         (main): Invoke it.
30089
30090         localename: Make aware of thread locale.
30091         * lib/localename.h (gl_locale_name_thread): New declaration.
30092         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30093         behaviour with respect to thread locale.
30094         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30095         <langinfo.h>, glthread/lock.h.
30096         (SIZE_BITS): New macro.
30097         (string_hash): New function.
30098         (struct hash_node): New type.
30099         (HASH_TABLE_SIZE): New macro.
30100         (struniq_hash_table, struniq_lock): New variables.
30101         (struniq): New function.
30102         (gl_locale_name_thread): New function.
30103         (gl_locale_name): Invoke it.
30104         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30105         * modules/localename (Depends-on): Add lock.
30106         Reported by Mike Gran <spk121@yahoo.com>.
30107
30108 2009-12-23  Eric Blake  <ebb9@byu.net>
30109
30110         va-args: new module
30111         * modules/va-args: New file.
30112         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30113         * MODULES.html.sh (Core language properties): Mention it.
30114
30115         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30116         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30117         named alias for __attribute__((__unused__)).
30118         * lib/chown.c: Update client.
30119         * lib/fchmodat.c: Likewise.
30120         * lib/fts.c: Likewise.
30121         * lib/getdate.y: Likewise.
30122         * lib/getgroups.c: Likewise.
30123         * lib/getopt.c: Likewise.
30124         * lib/getugroups.c: Likewise.
30125         * lib/mkdir.c: Likewise.
30126         * lib/mkfifo.c: Likewise.
30127         * lib/mkfifoat.c: Likewise.
30128         * lib/mknod.c: Likewise.
30129         * lib/mknodat.c: Likewise.
30130         * lib/readlink.c: Likewise.
30131         * lib/se-context.in.h: Likewise.
30132         * lib/se-selinux.in.h: Likewise.
30133         * lib/sockets.c: Likewise.
30134         * lib/symlink.c: Likewise.
30135         * lib/symlinkat.c: Likewise.
30136         * lib/unicodeio.c: Likewise.
30137         * lib/unistr.h: Likewise.
30138         * tests/test-areadlink.c: Likewise.
30139         * tests/test-areadlinkat.c: Likewise.
30140         * tests/test-filenamecat.c: Likewise.
30141         * tests/test-fseeko.c: Likewise.
30142         * tests/test-ftello.c: Likewise.
30143         * tests/test-getdate.c: Likewise.
30144         * tests/test-getgroups.c: Likewise.
30145         * tests/test-gethostname.c: Likewise.
30146         * tests/test-quotearg.c: Likewise.
30147         * tests/test-version-etc.c: Likewise.
30148         * tests/test-xalloc-die.c: Likewise.
30149         * tests/test-xfprintf-posix.c: Likewise.
30150         * tests/test-xprintf-posix.c: Likewise.
30151         * tests/test-xvasprintf.c: Likewise.
30152
30153         tests: avoid compiler warnings
30154         * tests/test-fcntl.c (main): Delete unused parameters.
30155         * tests/test-freopen-safer.c (main): Likewise.
30156         * tests/test-xalloc-die.c (main): Mark unused parameters.
30157         * tests/test-fseeko.c (main): Likewise.
30158         * tests/test-ftello.c (main): Likewise.
30159         * tests/test-nanosleep.c (main): Avoid declaration warning.
30160         * tests/test-sleep.c (main): Likewise.
30161         * tests/test-unsetenv.c (main): Silence warning about string
30162         literal.
30163         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30164
30165 2009-12-23  Bruno Haible  <bruno@clisp.org>
30166
30167         * tests/test-localename.c (test_locale_name): New function, extracted
30168         from main. Also test mixed situations.
30169         (test_locale_name_posix, test_locale_name_environ,
30170         test_locale_name_default): New functions.
30171         (main): Invoke them all.
30172         * modules/localename-tests (configure.ac): Test for newlocale.
30173
30174 2009-12-23  Bruno Haible  <bruno@clisp.org>
30175
30176         unistd: Ensure getcwd gets declared before being overridden.
30177         * lib/unistd.in.h: Conditionally include <io.h>.
30178
30179 2009-12-22  Bruno Haible  <bruno@clisp.org>
30180
30181         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30182         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30183         (gl_WCHAR_H): Invoke it.
30184         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30185         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30186         Reported by Karl Berry <karl@freefriends.org>.
30187
30188 2009-12-22  Eric Blake  <ebb9@byu.net>
30189
30190         math, unistd: avoid redundant includes
30191         * lib/math.in.h (isnan): No need to re-include <math.h>.
30192         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30193
30194         getsubopt: work around cygwin bug
30195         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30196         avoid conflicting with system getsubopt.
30197         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30198         bug.
30199
30200         getopt: synchronize from glibc
30201         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30202         parameter order.  Adjust all callers.
30203         (_getopt_internal_r, main): Adjust quoting in error messages.
30204         Drop considerations for outdated POSIX 1003.2 error message.
30205         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30206         callers.
30207         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30208
30209         test-getopt: test stderr behavior
30210         * modules/getopt-posix-tests (Depends-on): Add dup2.
30211         * tests/test-getopt.c (ASSERT): Avoid stderr.
30212         (main): Move stderr to a temporary file.
30213         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30214         Instead, add parameter to inform caller if output occurred.
30215         (test_getopt): Adjust all existing tests to expect silence, and
30216         add new tests of leading ":".
30217         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30218         glibc shortcomings with leading "-:" or "+:" in optstring.
30219         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30220         Likewise.
30221         * doc/posix-functions/getopt.texi (getopt): Likewise.
30222
30223         test-getopt: enhance test
30224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30225         supports optind=0.
30226         * tests/test-getopt.c (OPTIND_MIN): Move...
30227         * tests/test-getopt.h (OPTIND_MIN): ...here.
30228         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30229         Require that optind=0 works, since modern BSD supports it in
30230         addition to optreset, and since coreutils expects it.
30231         (test_getopt_long_only): New test.
30232         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30233         glibc shortcomings with 'W;', and enforcement of optind=0.
30234         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30235         Likewise.
30236
30237 2009-12-21  Bruno Haible  <bruno@clisp.org>
30238
30239         localename: Improvements for MacOS X and Cygwin.
30240         * lib/localename.h (gl_locale_name_environ): New declaration.
30241         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30242         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30243         (gl_locale_name_posix): Invoke it.
30244         (gl_locale_name_default): Add comments. Use Windows native API also on
30245         Cygwin.
30246
30247 2009-12-21  Bruno Haible  <bruno@clisp.org>
30248
30249         Update list of Win32 locale ids.
30250         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30251         (LANG_SAMI): Renamed from LANG_SAAMI.
30252         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30253         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30254         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30255         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30256         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30257         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30258         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30259         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30260         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30261         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30262         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30263         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30264         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30265         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30266         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30267         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30268         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30269         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30270         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30271         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30272         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30273         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30274         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30275         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30276         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30277         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30278         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30279         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30280         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30281         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30282         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30283         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30284         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30285         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30286         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30287         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30288         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30289         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30290         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30291         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30292         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30293         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30294         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30295         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30296         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30297         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30298         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30299         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30300         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30301         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30302         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30303         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30304         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30305         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30306         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30307         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30308         Add more languages and countries for Sami, Sorbian. Add more countries
30309         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30310         for Pashto. Change country for Syriac, Tswana.
30311
30312 2009-12-21  Eric Blake  <ebb9@byu.net>
30313
30314         test-utimens: avoid spurious failure
30315         * tests/test-chown.h (nap): Factor...
30316         * tests/nap.h: ...into new file.
30317         * tests/test-lchown.h (nap): Avoid duplication.
30318         * tests/test-utimens-common.h (nap): Use shared implementation,
30319         necessary on file systems with 1-second resolution.
30320         * modules/chown-tests (Files): Include new file.
30321         * modules/fdutimensat-tests (Files): Likewise.
30322         * modules/futimens-tests (Files): Likewise.
30323         * modules/lchown-tests (Files): Likewise.
30324         * modules/openat-tests (Files): Likewise.
30325         * modules/utimens-tests (Files): Likewise.
30326         * modules/utimensat-tests (Files): Likewise.
30327
30328 2009-12-19  Eric Blake  <ebb9@byu.net>
30329
30330         futimens, utimensat: work around Linux bug
30331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30332         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30333         * lib/utimensat.c (rpl_utimensat): Work around it.
30334         * lib/futimens.c (rpl_futimens): Adjust comment.
30335
30336         utimens: work around Linux ctime bug
30337         * lib/utimens.c (detect_ctime_bug): New helper function.
30338         (update_timespec): Differentiate between workaround needed for
30339         this bug vs. what is needed for systems that lack utimensat.
30340         (fdutimens, lutimens): Work around bug.
30341
30342         utimens: check for ctime update
30343         * tests/test-utimens-common.h (check_ctime): Define.
30344         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30345         * tests/test-futimens.h (test_futimens): Likewise.
30346         * tests/test-lutimens.h (test_lutimens): Likewise.
30347         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30348         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30349
30350 2009-12-19  Bruno Haible  <bruno@clisp.org>
30351
30352         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30353         * tests/test-dprintf-posix2.sh: New file.
30354         * tests/test-dprintf-posix2.c: New file.
30355         * modules/dprintf-posix-tests (Files): Add them.
30356         (configure.ac): Check for getrlimit and setrlimit.
30357         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30358
30359 2009-12-19  Bruno Haible  <bruno@clisp.org>
30360
30361         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30362         * tests/test-fprintf-posix3.sh: New file.
30363         * tests/test-fprintf-posix3.c: New file.
30364         * modules/fprintf-posix-tests (Files): Add them.
30365         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30366
30367 2009-12-19  Eric Blake  <ebb9@byu.net>
30368
30369         dirfd: fix prototype
30370         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30371         * lib/dirfd.c (dirfd): Likewise.
30372
30373         canonicalize: reduce memory usage
30374         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30375         allocation to size.
30376         Reported by Solar Designer <solar@openwall.com>.
30377
30378 2009-12-19  Bruno Haible  <bruno@clisp.org>
30379
30380         New module attribute 'Applicability'.
30381         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30382         * gnulib-tool: New option --extract-applicability.
30383         (func_usage): Document it.
30384         (sed_extract_prog): Recognize it.
30385         (func_get_applicability): New function.
30386         (func_import): Generalize handling of 'link-warning' module.
30387         * modules/link-warning (Applicability): New section.
30388         * modules/arg-nonnull (Applicability): New section.
30389         Repoted by Simon Josefsson <simon@josefsson.org>.
30390
30391 2009-12-19  Bruno Haible  <bruno@clisp.org>
30392
30393         fflush: tweak
30394         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30395         * lib/fseeko.c (rpl_fseeko): Likewise.
30396
30397 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30398
30399         * lib/gl_list.h: Fix typo in comment.
30400
30401 2009-12-16  Eric Blake  <ebb9@byu.net>
30402
30403         fcntl: use to simplify other modules
30404         * modules/cloexec (Depends-on): Add fcntl.
30405         * modules/fchdir (Depends-on): Likewise.
30406         * modules/fd-safer-flag (Depends-on): Likewise.
30407         * modules/unistd-safer (Depends-on): Likewise.
30408         * modules/dup3 (configure.ac): Set module indicator.
30409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30410         missing.
30411         * lib/fchdir.c (_gl_register_dup): Fix comment.
30412         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30413         * lib/dup-safer.c (dup_safer): Likewise.
30414         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30415         * lib/dup3.c (dup3): Likewise.
30416         * tests/test-fchdir.c (main): Enhance test.
30417         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30418
30419         fcntl: port portions of fcntl to mingw
30420         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30421         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30422         replacement for mingw.
30423         * modules/fcntl (Description): Update.
30424         (Depends-on): Add dup2.
30425         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30426         * modules/fcntl-h (Makefile.am): Substitute it.
30427         * lib/fcntl.in.h (fcntl): Update declaration.
30428         (F_DUPFD, F_GETFD): New macros, when needed.
30429         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30430         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30431         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30432         we now guarantee.
30433
30434         fcntl: work around cygwin bug in F_DUPFD
30435         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30436         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30437         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30438         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30439         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30440
30441         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30442         * modules/fcntl (Files): List new files.
30443         (configure.ac): Run a test.
30444         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30445         * lib/fcntl.c (rpl_fcntl): Likewise.
30446         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30447         (gl_FCNTL_H): Always replace fcntl.h.
30448         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30449         * lib/fcntl.in.h (fcntl): Declare replacement.
30450         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30451         needed, plus a witness.
30452         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30453         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30454         * tests/test-fcntl.c: New file.
30455         * modules/fcntl-tests: Likewise.
30456
30457         binary-io: avoid potential compilation warning
30458         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30459         directives.
30460
30461         fflush: avoid compilation error on NetBSD
30462         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30463         between off_t and fpos_t, since the latter is sometimes a struct.
30464         * lib/fseeko.c (rpl_fseeko): Likewise.
30465         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30466
30467 2009-12-15  Eric Blake  <ebb9@byu.net>
30468
30469         fcntl-h, stdio, sys_ioctl: fix declarations
30470         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30471         function must not take arguments.
30472         * lib/sys_ioctl.in.h (ioctl): Likewise.
30473         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30474         (open): Add a link warning.
30475
30476 2009-12-15  Jim Meyering  <meyering@redhat.com>
30477
30478         areadlink, areadlink-with-size: relax license to LGPLv2+
30479         * modules/areadlink (License): Relax to LGPLv2+.
30480         * modules/areadlink-with-size (License): Likewise.
30481
30482 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30483             Bruno Haible  <bruno@clisp.org>
30484
30485         *printf: Fix memory leak.
30486         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30487         * lib/vfprintf.c (vfprintf): Likewise.
30488         * lib/dprintf.c (dprintf): Likewise.
30489         * lib/vdprintf.c (vdprintf): Likewise.
30490
30491 2009-12-14  Eric Blake  <ebb9@byu.net>
30492
30493         accept4: adjust module dependencies
30494         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30495
30496         utimens: one more try at avoiding compiler warning
30497         * lib/utimens.c (lutimens): Lower scope of result.
30498
30499 2009-12-13  Bruno Haible  <bruno@clisp.org>
30500
30501         Move the malloc checking from module 'list' to new module 'xlist'.
30502         * modules/xlist: New file.
30503         * lib/gl_xlist.h: New file.
30504         * lib/gl_xlist.c: New file.
30505         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30506         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30507         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30508         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30509         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30510         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30511         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30512         gl_sortedlist_nx_add): New declarations.
30513         (struct gl_list_implementation): Rename and change methods accordingly.
30514         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30515         (gl_list_nx_create): Renamed from gl_list_create.
30516         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30517         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30518         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30519         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30520         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30521         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30522         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30523         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30524         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30525         gl_list_create_empty.
30526         (gl_list_nx_create): Renamed from gl_list_create.
30527         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30528         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30529         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30530         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30531         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30532         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30533         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30534         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30535         * lib/gl_array_list.c: Don't include xalloc.h.
30536         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30537         NULL upon out-of-memory.
30538         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30539         out-of-memory.
30540         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30541         Change return type to 'int'.
30542         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30543         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30544         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30545         upon out-of-memory.
30546         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30547         upon out-of-memory.
30548         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30549         upon out-of-memory.
30550         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30551         upon out-of-memory.
30552         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30553         out-of-memory.
30554         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30555         Update.
30556         (gl_array_list_implementation): Update.
30557         * lib/gl_carray_list.c: Don't include xalloc.h.
30558         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30559         Return NULL upon out-of-memory.
30560         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30561         out-of-memory.
30562         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30563         Change return type to 'int'.
30564         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30565         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30566         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30567         upon out-of-memory.
30568         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30569         upon out-of-memory.
30570         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30571         out-of-memory.
30572         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30573         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30574         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30575         Update.
30576         (gl_carray_list_implementation): Update.
30577         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30578         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30579         gl_linked_create_empty. Return NULL upon out-of-memory.
30580         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30581         out-of-memory.
30582         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30583         Change return type to 'int'. Return -1 upon out-of-memory.
30584         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30585         out-of-memory.
30586         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30587         upon out-of-memory.
30588         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30589         upon out-of-memory.
30590         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30591         NULL upon out-of-memory.
30592         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30593         upon out-of-memory.
30594         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30595         out-of-memory.
30596         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30597         Update.
30598         * lib/gl_linked_list.c: Don't include xalloc.h.
30599         (gl_linked_list_implementation): Update.
30600         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30601         (add_to_bucket): Change return type to 'int'.
30602         (gl_linkedhash_list_implementation): Update.
30603         * lib/gl_anytree_list1.h (free_subtree): New function.
30604         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30605         gl_tree_create_empty. Return NULL upon out-of-memory.
30606         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30607         Change return type to 'int'. Return -1 upon out-of-memory.
30608         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30609         out-of-memory.
30610         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30611         (gl_tree_remove_node): New function, moved here from
30612         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30613         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30614         Update.
30615         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30616         malloc, not xmalloc. Return NULL upon out-of-memory.
30617         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30618         out-of-memory.
30619         (gl_tree_remove_node_from_tree): New function, extracted from
30620         gl_tree_remove_node.
30621         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30622         upon out-of-memory.
30623         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30624         out-of-memory.
30625         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30626         upon out-of-memory.
30627         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30628         upon out-of-memory.
30629         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30630         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30631         not xmalloc. Return NULL upon out-of-memory.
30632         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30633         out-of-memory.
30634         (gl_tree_remove_node_from_tree): New function, extracted from
30635         gl_tree_remove_node.
30636         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30637         upon out-of-memory.
30638         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30639         out-of-memory.
30640         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30641         upon out-of-memory.
30642         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30643         upon out-of-memory.
30644         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30645         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30646         gl_anytree_list1.h before gl_anyavltree_list2.h.
30647         (gl_avltree_list_implementation): Update.
30648         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30649         gl_anytree_list1.h before gl_anyavltree_list2.h.
30650         (gl_rbtree_list_implementation): Update.
30651         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30652         Change return type to 'int'. Return -1 upon out-of-memory. Use
30653         __builtin_expect.
30654         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30655         (gl_avltreehash_list_implementation): Update.
30656         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30657         (gl_rbtreehash_list_implementation): Update.
30658         * modules/array-list (Depends-on): Remove xalloc.
30659         * modules/carray-list (Depends-on): Likewise.
30660         * modules/linked-list (Depends-on): Likewise.
30661         * modules/linkedhash-list (Depends-on): Likewise.
30662         * modules/avltree-list (Depends-on): Likewise.
30663         * modules/rbtree-list (Depends-on): Likewise.
30664         * modules/avltreehash-list (Depends-on): Likewise.
30665         * modules/rbtreehash-list (Depends-on): Likewise.
30666
30667         * modules/xsublist: New file.
30668         * lib/gl_xsublist.h: New file.
30669         * lib/gl_xsublist.c: New file.
30670         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30671         (gl_sublist_nx_create): New declaration.
30672         * lib/gl_sublist.c: Don't include xalloc.h.
30673         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30674         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30675         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30676         Change return type to 'int'. Return -1 upon out-of-memory.
30677         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30678         upon out-of-memory.
30679         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30680         NULL upon out-of-memory.
30681         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30682         upon out-of-memory.
30683         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30684         NULL upon out-of-memory.
30685         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30686         NULL upon out-of-memory.
30687         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30688         upon out-of-memory.
30689         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30690         (gl_sublist_list_implementation): Update.
30691         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30692         upon out-of-memory.
30693         * modules/sublist (Depends-on): Remove xalloc.
30694
30695         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30696         * tests/test-carray_list.c: Likewise.
30697         * tests/test-linked_list.c: Likewise.
30698         * tests/test-linkedhash_list.c: Likewise.
30699         * tests/test-avltree_list.c: Likewise.
30700         * tests/test-rbtree_list.c: Likewise.
30701         * tests/test-avltreehash_list.c: Likewise.
30702         * tests/test-rbtreehash_list.c: Likewise.
30703         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30704         * modules/carray-list-tests (Makefile.am): Likewise.
30705         * modules/linked-list-tests (Makefile.am): Likewise.
30706         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30707         * modules/avltree-list-tests (Makefile.am): Likewise.
30708         * modules/rbtree-list-tests (Makefile.am): Likewise.
30709         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30710         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30711
30712         * NEWS: Mention the changes.
30713
30714         * lib/clean-temp.c: Include gl_xlist.h.
30715         * modules/clean-temp (Depends-on): Add xlist.
30716
30717         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30718         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30719
30720         * tests/test-array_oset.c: Include gl_xlist.h.
30721         * modules/array-oset-tests (Depends-on): Add xlist.
30722
30723         Reported by José E. Marchesi <jemarch@gnu.org>.
30724
30725 2009-12-13  Bruno Haible  <bruno@clisp.org>
30726
30727         Move the malloc checking from module 'oset' to new module 'xoset'.
30728         * modules/xoset: New file.
30729         * lib/gl_xoset.h: New file.
30730         * lib/gl_xoset.c: New file.
30731         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30732         declarations.
30733         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30734         (struct gl_oset_implementation): Rename and change methods accordingly.
30735         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30736         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30737         'int'. Mark as __warn_unused_result__.
30738         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30739         gl_oset_create_empty.
30740         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30741         'int'.
30742         * lib/gl_array_oset.c: Don't include xalloc.h.
30743         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30744         malloc, not xmalloc.
30745         (grow): Change return type to 'int'. Don't call xalloc_die.
30746         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30747         to 'int'.
30748         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30749         'int'.
30750         (gl_array_oset_implementation): Update.
30751         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30752         gl_tree_create_empty.
30753         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30754         'int'.
30755         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30756         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30757         xmalloc.
30758         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30759         not xmalloc.
30760         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30761         xmalloc.
30762         (gl_avltree_oset_implementation): Update.
30763         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30764         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30765         xmalloc.
30766         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30767         not xmalloc.
30768         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30769         xmalloc.
30770         (gl_rbtree_oset_implementation): Update.
30771         * modules/array-oset (Depends-on): Remove xalloc.
30772         * modules/avltree-oset (Depends-on): Likewise.
30773         * modules/rbtree-oset (Depends-on): Likewise.
30774         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30775         * tests/test-avltree_oset.c: Likewise.
30776         * tests/test-rbtree_oset.c: Likewise.
30777         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30778         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30779         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30780         * NEWS: Mention the change.
30781
30782 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30783
30784         maint.mk: allow a project to override release-prep commands
30785         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30786         commands into a new rule.
30787         (release-prep): New rule.
30788         (release-prep-hook): New overridable variable.
30789
30790 2009-12-13  Bruno Haible  <bruno@clisp.org>
30791
30792         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30793
30794 2009-12-13  Jim Meyering  <meyering@redhat.com>
30795
30796         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30797         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30798
30799 2009-12-12  Bruno Haible  <bruno@clisp.org>
30800
30801         duplocale: Tweak.
30802         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30803
30804 2009-12-12  Karl Berry  <karl@gnu.org>
30805
30806         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30807
30808 2009-12-12  Bruno Haible  <bruno@clisp.org>
30809
30810         * m4/po.m4: Undo incorrect untabification.
30811
30812 2009-12-12  Bruno Haible  <bruno@clisp.org>
30813
30814         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30815         * modules/c-strtod (Depends-on): Add locale.
30816         * modules/c-strtold (Depends-on): Likewise.
30817
30818 2009-12-12  Bruno Haible  <bruno@clisp.org>
30819
30820         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30821
30822 2009-12-11  Eric Blake  <ebb9@byu.net>
30823
30824         setenv: relax requirement in light of POSIX ruling
30825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30826         not NULL.
30827         * tests/test-setenv.c (main): Relax test.
30828         * tests/test-unsetenv.c (main): Likewise.
30829         * doc/posix-functions/setenv.texi (setenv): Document this.
30830         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30831
30832 2009-12-11  Bruno Haible  <bruno@clisp.org>
30833
30834         New module 'fd-safer-flag'.
30835         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30836         * lib/dup-safer.c (dup_safer_flag): Remove function.
30837         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30838         * lib/fd-safer.c (fd_safer_flag): Remove function.
30839         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30840         * modules/cloexec (configure.ac): Drop indicator macro.
30841         * modules/fd-safer-flag: New file.
30842         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30843         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30844         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30845
30846 2009-12-11  Bruno Haible  <bruno@clisp.org>
30847
30848         Tests for module 'nl_langinfo'.
30849         * modules/nl_langinfo-tests: New file.
30850         * tests/test-nl_langinfo.sh: New file.
30851         * tests/test-nl_langinfo.c: New file.
30852
30853         New module 'nl_langinfo'.
30854         * lib/nl_langinfo.c: New file.
30855         * m4/nl_langinfo.m4: New file.
30856         * modules/nl_langinfo: New file.
30857         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30858
30859 2009-12-11  Bruno Haible  <bruno@clisp.org>
30860
30861         Tests for module 'langinfo'.
30862         * modules/langinfo-tests: New file.
30863         * tests/test-langinfo.c: New file.
30864
30865         New module 'langinfo'.
30866         * lib/langinfo.in.h: New file.
30867         * m4/langinfo_h.m4: New file.
30868         * modules/langinfo: New file.
30869         * doc/posix-headers/langinfo.texi: Mention the new module.
30870
30871 2009-12-11  Bruno Haible  <bruno@clisp.org>
30872
30873         * lib/config.charset: Untabify.
30874
30875 2009-12-11  Bruno Haible  <bruno@clisp.org>
30876
30877         * modules/unistd-safer (configure.ac): Drop indicator macro.
30878
30879 2009-12-11  Bruno Haible  <bruno@clisp.org>
30880
30881         Move pipe2-safer code to its own file.
30882         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30883         * lib/pipe-safer.c (pipe2_safer): Remove function.
30884         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30885         (Makefile.am): Add it to lib_SOURCES.
30886
30887 2009-12-10  Bruno Haible  <bruno@clisp.org>
30888
30889         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30890
30891 2009-12-10  Bruno Haible  <bruno@clisp.org>
30892
30893         Declare which arguments expect non-NULL values, for GCC and clang.
30894         * build-aux/arg-nonnull.h: New file.
30895         * modules/arg-nonnull: New file.
30896         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30897         (inet_ntop, inet_pton): Use it.
30898         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30899         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30900         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30901         (open, openat): Use it.
30902         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30903         (fnmatch): Use it.
30904         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30905         (getopt, getopt_long, getopt_long_only): Use it.
30906         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30907         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30908         Use it.
30909         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30910         (iconv_open): Use it.
30911         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30912         (strtoimax, strtoumax): Use it.
30913         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30914         (duplocale): Use it.
30915         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30916         (frexp, frexpl): Use it.
30917         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30918         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30919         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30920         (tsearch, tfind, tdelete, twalk): Use it.
30921         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30922         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30923         sigpending): Use it.
30924         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30925         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30926         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30927         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30928         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30929         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30930         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30931         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30932         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30933         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30934         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30935         Use it.
30936         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30937         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30938         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30939         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30940         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30941         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30942         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30943         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30944         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30945         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30946         strtoull, unsetenv): Use it.
30947         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30948         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30949         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30950         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30951         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30952         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30953         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30954         (strcasecmp, strncasecmp): Use it.
30955         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30956         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30957         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30958         rpl_setsockopt): Use it.
30959         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30960         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30961         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30962         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30963         (gettimeofday): Use it.
30964         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30965         (times): Use it.
30966         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30967         (uname): Use it.
30968         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30969         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30970         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30971         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30972         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30973         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30974         unlinkat, write): Use it.
30975         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30976         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30977         * lib/argv-iter.h: Include arg-nonnull.h.
30978         (_ATTRIBUTE_NONNULL_): Remove macro.
30979         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30980         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30981         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30982         optimization.
30983         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30984         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30985         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30986         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30987         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30988         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30989         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30990         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30991         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30992         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30993         * modules/dirent (Depends-on): Add arg-nonnull.
30994         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30995         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30996         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30997         * modules/fnmatch (Depends-on): Add arg-nonnull.
30998         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30999         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31000         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31001         * modules/glob (Depends-on): Add arg-nonnull.
31002         (Makefile.am): Insert arg-nonnull.h into glob.h.
31003         * modules/iconv_open (Depends-on): Add arg-nonnull.
31004         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31005         * modules/inttypes (Depends-on): Add arg-nonnull.
31006         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31007         * modules/locale (Depends-on): Add arg-nonnull.
31008         (Makefile.am): Insert arg-nonnull.h into locale.h.
31009         * modules/math (Depends-on): Add arg-nonnull.
31010         (Makefile.am): Insert arg-nonnull.h into math.h.
31011         * modules/netdb (Depends-on): Add arg-nonnull.
31012         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31013         * modules/search (Depends-on): Add arg-nonnull.
31014         (Makefile.am): Insert arg-nonnull.h into search.h.
31015         * modules/signal (Depends-on): Add arg-nonnull.
31016         (Makefile.am): Insert arg-nonnull.h into signal.h.
31017         * modules/spawn (Depends-on): Add arg-nonnull.
31018         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31019         * modules/stdio (Depends-on): Add arg-nonnull.
31020         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31021         * modules/stdlib (Depends-on): Add arg-nonnull.
31022         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31023         * modules/string (Depends-on): Add arg-nonnull.
31024         (Makefile.am): Insert arg-nonnull.h into string.h.
31025         * modules/strings (Depends-on): Add arg-nonnull.
31026         (Makefile.am): Insert arg-nonnull.h into strings.h.
31027         * modules/sys_socket (Depends-on): Add arg-nonnull.
31028         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31029         * modules/sys_stat (Depends-on): Add arg-nonnull.
31030         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31031         * modules/sys_time (Depends-on): Add arg-nonnull.
31032         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31033         * modules/sys_times (Depends-on): Add arg-nonnull.
31034         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31035         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31036         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31037         * modules/time (Depends-on): Add arg-nonnull.
31038         (Makefile.am): Insert arg-nonnull.h into time.h.
31039         * modules/unistd (Depends-on): Add arg-nonnull.
31040         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31041         * modules/wchar (Depends-on): Add arg-nonnull.
31042         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31043         * modules/argv-iter (Depends-on): Add arg-nonnull.
31044         * tests/test-canonicalize.c (null_ptr): New function.
31045         (main): Use it.
31046         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31047         (main): Use it.
31048         * tests/test-memmem.c (null_ptr): New function.
31049         (main): Use it.
31050         Reported by Jim Meyering.
31051
31052 2009-12-10  Bruno Haible  <bruno@clisp.org>
31053
31054         Use spaces for indentation, not tabs.
31055         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31056         * m4/*.m4: Untabify.
31057         * build-aux/*.h: Untabify.
31058         * tests/**/*.[hc]: Untabify.
31059         * README: New section "Indent with spaces, not TABs", based on
31060         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31061         * NEWS: Mention the change.
31062
31063 2009-12-10  Bruno Haible  <bruno@clisp.org>
31064
31065         pty test: Fix link error.
31066         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31067         test_pty_LDADD.
31068
31069 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31070
31071         * modules/pty: New file.
31072         * modules/pty-tests: New file.
31073         * m4/pty.m4: New file.
31074         * tests/test-pty.c: New file.
31075         * doc/glibc-headers/pty.texi: Modified.
31076         * doc/glibc-functions/forkpty.texi: Modified.
31077         * doc/glibc-functions/openpty.texi: Modified.
31078
31079 2009-12-10  Bruno Haible  <bruno@clisp.org>
31080
31081         Avoid syntax error in C++ mode.
31082         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31083
31084 2009-12-10  Bruno Haible  <bruno@clisp.org>
31085
31086         Use sed with option -e.
31087         * gnulib-tool (func_version, func_emit_copyright_notice,
31088         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31089         option -e to sed.
31090         * modules/link-warning (Makefile.am): Likewise.
31091
31092 2009-12-10  Jim Meyering  <meyering@redhat.com>
31093
31094         mgetgroups: do not write bytes beyond end of malloc'd buffer
31095         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31096         username, we call getgroups with a one-element-shorter buffer,
31097         but still told it the length was original, max_n_groups.
31098
31099 2009-12-09  Eric Blake  <ebb9@byu.net>
31100
31101         cloexec: relax license
31102         * modules/cloexec (Maintainer): Add myself.
31103         (License): Use LGPL, not GPL.
31104
31105         link-warning: optimize generation
31106         * modules/link-warning (Makefile.am): Reduce process usage.
31107
31108 2009-12-09  Bruno Haible  <bruno@clisp.org>
31109
31110         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31111         workaround was added on 2009-11-17.
31112
31113 2009-12-09  Jim Meyering  <meyering@redhat.com>
31114             Bruno Haible  <bruno@clisp.org>
31115
31116         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31117         * modules/link-warning (Makefile.am): Make the comment-removing sed
31118         command more robust in the face of bootstrap-prepended comment lines.
31119
31120 2009-12-09  Bruno Haible  <bruno@clisp.org>
31121
31122         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31123         most one group.
31124
31125 2009-12-09  Simon Josefsson <simon@josefsson.org>
31126             Bruno Haible  <bruno@clisp.org>
31127
31128         * build-aux/link-warning.h: Add copyright notice.
31129         * modules/link-warning (Makefile.am): Generate link-warning.h from
31130         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31131         * NEWS: Mention change in link-warning module.
31132         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31133         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31134         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31135         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31136         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31137         * modules/math (Makefile.am): Add dependency to math.h.
31138         * modules/search (Makefile.am): Add dependency to search.h.
31139         * modules/signal (Makefile.am): Add dependency to signal.h.
31140         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31141         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31142         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31143         * modules/string (Makefile.am): Add dependency to string.h.
31144         * modules/strings (Makefile.am): Add dependency to strings.h.
31145         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31146         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31147         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31148         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31149         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31150         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31151         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31152         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31153         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31154
31155 2009-12-09  Bruno Haible  <bruno@clisp.org>
31156
31157         fchdir: Optimize away rpl_fstat when possible.
31158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31159         REPLACE_OPEN_DIRECTORY.
31160         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31161
31162 2009-12-09  Bruno Haible  <bruno@clisp.org>
31163
31164         * lib/fchdir.c: Update comment.
31165
31166 2009-12-09  Bruno Haible  <bruno@clisp.org>
31167
31168         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31169
31170 2009-12-08  Eric Blake  <ebb9@byu.net>
31171
31172         fchdir: avoid memory leak on re-registration.
31173         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31174
31175 2009-12-08  Jim Meyering  <meyering@redhat.com>
31176
31177         init.sh: avoid Solaris 10 /bin/sh portability problem
31178         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31179         sourced script:
31180           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31181           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31182           bar
31183         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31184         and two tests used that idiom.
31185         * tests/init.sh: Update suggested usage comments.
31186         (path_prepend_): New function, to be used in place
31187         of the --src-path=DIR option.
31188         (setup_): Move PATH-prepending code into path_prepend_.
31189         * tests/test-pread.sh: Adapt to new usage.
31190         * tests/test-xalloc-die.sh: Likewise.
31191
31192 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31193
31194         * doc/gnulib.texi (Glibc pty.h): Add.
31195         * doc/glibc-functions/forkpty.texi: Add.
31196         * doc/glibc-functions/openpty.texi: Add.
31197         Suggested by Bruno Haible.
31198
31199 2009-12-08  Eric Blake  <ebb9@byu.net>
31200
31201         fchdir: fix logic bugs
31202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31203         * tests/test-fchdir.c (main): Enhance test.
31204         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31205         is in use.
31206
31207         dup2: fix logic bugs
31208         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31209         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31210         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31211         exists.
31212         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31213
31214 2009-12-07  Eric Blake  <ebb9@byu.net>
31215
31216         unlink: fix m4 detection
31217         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31218
31219         unistd-safer: add unit test
31220         * modules/unistd-safer-tests: New file.
31221         * tests/test-dup-safer.c: Likewise.
31222         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31223         * tests/test-dup2.c (setmode): Likewise.
31224         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31225
31226         cloexec: preserve text vs. binary across dup_cloexec
31227         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31228         mode.
31229         * modules/dup2-tests (Depends-on): Add binary-io.
31230         * modules/cloexec-tests (Depends-on): Likewise.
31231         * tests/test-dup2.c (setmode, is_mode): New helpers.
31232         (main): Add tests that translation mode is preserved.
31233         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31234         Reported by Bruno Haible.
31235
31236         mgetgroups: reduce duplicate listings
31237         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31238         resulting array.
31239         * tests/test-chown.h (test_chown): Simplify client.
31240         * tests/test-lchown.h (test_lchown): Likewise.
31241
31242 2009-12-06  Bruno Haible  <bruno@clisp.org>
31243
31244         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31245         value.
31246
31247 2009-12-06  Bruno Haible  <bruno@clisp.org>
31248
31249         * lib/progname.c: Include stdio.h, stdlib.h.
31250         (set_program_name): Reject a NULL argument.
31251
31252 2009-12-05  Eric Blake  <ebb9@byu.net>
31253
31254         pipe2-safer: new module
31255         * modules/pipe2-safer: New file.
31256         * lib/unistd-safer.h (pipe2_safer): New prototype.
31257         * lib/unistd--.h (pipe2): New wrapper.
31258         * lib/pipe-safer.c (pipe2_safer): New function.
31259         * modules/pipe (Depends-on): Add pipe2-safer.
31260         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31261
31262         stdlib-safer: preserve cloexec flag for mkostemp[s]
31263         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31264         fd_safer_flag.
31265
31266         unistd-safer: allow preservation of cloexec status via flag
31267         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31268         prototypes.
31269         * lib/dup-safer.c (dup_safer_flag): New function.
31270         * lib/fd-safer.c (fd_safer_flag): Likewise.
31271         * modules/cloexec (configure.ac): Set witness.
31272
31273         test-dup2: enhance test
31274         * modules/dup2-tests (Depends-on): Add cloexec.
31275         * tests/test-dup2.c (main): Enhance test.
31276
31277         cloexec: add dup_cloexec
31278         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31279         header and comments.
31280         * lib/cloexec.c (set_cloexec_flag): Add comments.
31281         (dup_cloexec): New function, with mingw implementation borrowed
31282         from...
31283         * lib/w32spawn.h (dup_noinherit): ...here.
31284         * modules/execute (Depends-on): Add cloexec.
31285         * modules/pipe (Depends-on): Likewise.
31286         * modules/cloexec (Depends-on): Add dup2.
31287         * modules/cloexec-tests (Files): New file.
31288         * tests/test-cloexec.c: Likewise.
31289
31290         test-xalloc-die: fix test for mingw
31291         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31292         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31293         directory and .exe suffix off argv[0] output.
31294
31295         test-fseeko: fix test for mingw
31296         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31297         than undefining fseek, so test will pass on mingw.
31298
31299 2009-12-05  Bruno Haible  <bruno@clisp.org>
31300
31301         * lib/progname.h (set_program_name): Clarify specification.
31302         * lib/progname.c (set_program_name): Likewise.
31303         Reported by Jim Meyering.
31304
31305 2009-12-05  Jim Meyering  <meyering@redhat.com>
31306
31307         maint.mk: backslash-escape parens in default regexp
31308         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31309         backslash-escape the literal parentheses.
31310
31311         maint.mk: news-date-check: use grep -E
31312         * top/maint.mk (today): Define a Make variable, not a...
31313         (news-date-check): ...shell variable.
31314         (news-date-regexp): Use the Make variable.
31315         Use grep's -E option.  Change the failing diagnostic to mention
31316         the variable, $(news-date-regexp).
31317
31318 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31319
31320         maintainer-makefile: allow customization of NEWS entry format
31321         * top/maint.mk (news-date-regexp): New overridable variable.
31322         (news-date-check): Use it.
31323
31324 2009-12-04  Eric Blake  <ebb9@byu.net>
31325
31326         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31327         * lib/mgetgroups.h (xgetgroups): New prototype.
31328         * lib/mgetgroups.c (xgetgroups): New wrapper.
31329         (mgetgroups): Handle ENOSYS.
31330         * modules/mgetgroups (Depends-on): Add realloc.
31331         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31332
31333         mgetgroups: avoid argument promotion issues with -1
31334         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31335         for invalid gid_t.
31336         * tests/test-chown.h (getegid, test_chown): Likewise.
31337         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31338
31339 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31340
31341         exclude: Fix header file problems.
31342         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31343
31344 2009-12-01  Jim Meyering  <meyering@redhat.com>
31345
31346         fts: fts_open: do not let an empty string cause immediate failure
31347         This is required in support of GNU rm, for which the command
31348         "rm A '' B" must process and remove both A and B, in spite of
31349         the empty string argument.
31350         * lib/fts.c (fts_open): Do not let the presence of an empty string
31351         cause fts_open to fail immediately.  Most fts-using tools must be
31352         able to process all arguments, in order, and can be expected to
31353         diagnose such arguments themselves.
31354
31355 2009-11-30  Eric Blake  <ebb9@byu.net>
31356
31357         utimens: fix compilation error
31358         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31359         Declare variable at right scope.
31360
31361 2009-11-29  Jim Meyering  <meyering@redhat.com>
31362
31363         bootstrap: handle perl-5.11's changed --version output
31364         * build-aux/bootstrap (get_version): Handle perl separately,
31365         since perl-5.11's --version output is different.
31366
31367 2009-11-28  Jim Meyering  <meyering@redhat.com>
31368
31369         userspec: depend on the inttostr module, too
31370         * modules/userspec (Depends-on): Add inttostr.
31371
31372         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31373         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31374         number of MAXUID when it evaluates to (uid_t) -1.
31375         Likewise for group ID.  Reported by Matt McCutchen in
31376         <http://savannah.gnu.org/bugs/?28113>
31377
31378         userspec: reformat to use spaces, not TABs
31379         * lib/userspec.c: Expand TABs to spaces.
31380         Add Emacs' "indent-tabs-mode: nil" hint.
31381
31382 2009-11-27  Eric Blake  <ebb9@byu.net>
31383
31384         getopt-gnu: flush out another BSD bug
31385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31386         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31387         flush out BSD bug.
31388         * tests/test-getopt.h (test_getopt): End lists with NULL.
31389         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31390         (test_getopt_long_posix): Enhance test.
31391         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31392         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31393         getopt-gnu.
31394         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31395         Likewise.
31396
31397 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31398
31399         * modules/idpriv-droptemp-tests (Notice): Fix text.
31400
31401 2009-11-27  Jim Meyering  <meyering@redhat.com>
31402
31403         test-xalloc-die: avoid spurious failure due to libtool argv difference
31404         In a libtool-enabled project, this test would fail due to a difference
31405         in the emitted program name, e.g.,
31406         -test-xalloc-die: memory exhausted
31407         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31408         Use program to avoid that.
31409         * modules/xalloc-die-tests (Depends-on): Add progname.
31410         * tests/test-xalloc-die.c: Include progname.h".
31411         (program_name): Remove decl.
31412         (main): Call set_program_name.
31413         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31414
31415 2009-11-26  Richard Jones  <rjones@redhat.com>
31416
31417         w32sock: leave win32 error in place.
31418         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31419
31420 2009-11-26  Eric Blake  <ebb9@byu.net>
31421
31422         init.sh: suggest to use skip_ and fail_ functions in comments
31423         * tests/init.sh: Add a sentence.
31424
31425 2009-11-25  Bruno Haible  <bruno@clisp.org>
31426
31427         init.sh: add documentation in comments
31428         * tests/init.sh: Add some developer and user documentation.
31429
31430 2009-11-26  Jim Meyering  <meyering@redhat.com>
31431
31432         init.sh: accommodate even those who specify bogus srcdir manually
31433         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31434         configure-time tests to be sanitized, so that there is no need to
31435         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31436         (with no double quotes) suffices.  However, since tests may be
31437         invoked manually, and since you may explicitly set srcdir to the
31438         name of a directory containing spaces, do quote its uses here.
31439         * tests/test-pread.sh: Likewise.
31440         Suggested by Bruno Haible.
31441
31442         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31443         * tests/test-pread.sh: Write no data into the pipe, because
31444         test-pread actually reads none.  This avoids a diagnostic,
31445         "bash: echo: write error: Broken pipe", that arises in the unusual
31446         event something is ignoring SIGPIPE, and might be interpreted
31447         as some sort of failure.  Reported by Bruno Haible.
31448
31449 2009-11-25  Jim Meyering  <meyering@redhat.com>
31450
31451         test-pread: cover failure with ESPIPE and EINVAL
31452         * tests/test-pread.c (main): Test for failure, too.
31453         * tests/test-pread.sh: Invoke with stdin on a pipe.
31454         Suggested by Eric Blake.
31455
31456         pread: improvement and fix
31457         * modules/pread (Depends-on): Depend on lseek, for portability to
31458         e.g., mingw.  Suggested by Eric Blake.
31459         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31460
31461         unistd.in.h: correct declaration of pread
31462         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31463         Reported by Richard W.M. Jones.
31464
31465         test-pread.sh: distribute the test script
31466         * modules/pread-tests (Files): Include test-pread.sh.
31467
31468         test-pread.sh: clean up
31469         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31470         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31471         That is unnecessary, since it's always ".".
31472         Suggestion from Eric Blake.
31473
31474         test-pread.sh: make executable
31475         * tests/test-pread.sh: Set executable bit.
31476         Reported by Eric Blake.
31477
31478         correct typo in test-pread.sh
31479         * tests/test-pread.sh: Add #! line.
31480
31481         test pread
31482         * tests/test-pread.c: New file.
31483         * tests/test-pread.sh: Likewise.
31484         * modules/pread-tests: Likewise.
31485
31486         pread: new module
31487         * modules/pread: New file.
31488         * lib/unistd.in.h (pread): Define/declare.
31489         * lib/pread.c (pread): New file.
31490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31491         * modules/unistd (Makefile.am): Substitute witnesses.
31492         * doc/posix-functions/pread.texi (pread): Update.
31493         * MODULES.html.sh: Add pread.
31494
31495 2009-11-25  Jim Meyering  <meyering@redhat.com>
31496
31497         tests/init.sh: new file to be used via most *.sh tests
31498         * tests/init.sh: New file.
31499
31500 2009-11-25  Eric Blake  <ebb9@byu.net>
31501
31502         utimens: work around older Linux failure with symlinks
31503         * lib/utimens.c (lutimensat_works_really): New variable.
31504         (fdutimens, lutimens): Use it to manage kernels that support
31505         nanosecond times on files, but not on symlinks.
31506         Reported by OndÅ™ej Vašík.
31507
31508         utimes: fix configure grammar
31509         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31510
31511 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31512
31513         regex: Fix fastmap for multibyte character ranges.
31514         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31515         characters when a multibyte character range is included.
31516
31517 2009-11-22  Andy Wingo  <wingo@pobox.com>
31518
31519         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31520         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31521
31522 2009-11-24  Bruno Haible  <bruno@clisp.org>
31523
31524         doc: Most *_l functions exist in MacOS X 10.5.
31525         * doc/posix-functions/duplocale.texi: Update platforms list.
31526         * doc/posix-functions/freelocale.texi: Likewise.
31527         * doc/posix-functions/newlocale.texi: Likewise.
31528         * doc/posix-functions/uselocale.texi: Likewise.
31529         * doc/posix-functions/isalnum_l.texi: Likewise.
31530         * doc/posix-functions/isalpha_l.texi: Likewise.
31531         * doc/posix-functions/isblank_l.texi: Likewise.
31532         * doc/posix-functions/iscntrl_l.texi: Likewise.
31533         * doc/posix-functions/isdigit_l.texi: Likewise.
31534         * doc/posix-functions/isgraph_l.texi: Likewise.
31535         * doc/posix-functions/islower_l.texi: Likewise.
31536         * doc/posix-functions/isprint_l.texi: Likewise.
31537         * doc/posix-functions/ispunct_l.texi: Likewise.
31538         * doc/posix-functions/isspace_l.texi: Likewise.
31539         * doc/posix-functions/isupper_l.texi: Likewise.
31540         * doc/posix-functions/iswalnum_l.texi: Likewise.
31541         * doc/posix-functions/iswalpha_l.texi: Likewise.
31542         * doc/posix-functions/iswblank_l.texi: Likewise.
31543         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31544         * doc/posix-functions/iswctype_l.texi: Likewise.
31545         * doc/posix-functions/iswdigit_l.texi: Likewise.
31546         * doc/posix-functions/iswgraph_l.texi: Likewise.
31547         * doc/posix-functions/iswlower_l.texi: Likewise.
31548         * doc/posix-functions/iswprint_l.texi: Likewise.
31549         * doc/posix-functions/iswpunct_l.texi: Likewise.
31550         * doc/posix-functions/iswspace_l.texi: Likewise.
31551         * doc/posix-functions/iswupper_l.texi: Likewise.
31552         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31553         * doc/posix-functions/isxdigit_l.texi: Likewise.
31554         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31555         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31556         * doc/posix-functions/strcoll_l.texi: Likewise.
31557         * doc/posix-functions/strfmon_l.texi: Likewise.
31558         * doc/posix-functions/strftime_l.texi: Likewise.
31559         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31560         * doc/posix-functions/strxfrm_l.texi: Likewise.
31561         * doc/posix-functions/tolower_l.texi: Likewise.
31562         * doc/posix-functions/toupper_l.texi: Likewise.
31563         * doc/posix-functions/towctrans_l.texi: Likewise.
31564         * doc/posix-functions/towlower_l.texi: Likewise.
31565         * doc/posix-functions/towupper_l.texi: Likewise.
31566         * doc/posix-functions/wcscoll_l.texi: Likewise.
31567         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31568         * doc/posix-functions/wctrans_l.texi: Likewise.
31569         * doc/posix-functions/wctype_l.texi: Likewise.
31570         * doc/glibc-functions/strptime_l.texi: Likewise.
31571         * doc/glibc-functions/strtod_l.texi: Likewise.
31572         * doc/glibc-functions/strtof_l.texi: Likewise.
31573         * doc/glibc-functions/strtol_l.texi: Likewise.
31574         * doc/glibc-functions/strtold_l.texi: Likewise.
31575         * doc/glibc-functions/strtoll_l.texi: Likewise.
31576         * doc/glibc-functions/strtoul_l.texi: Likewise.
31577         * doc/glibc-functions/strtoull_l.texi: Likewise.
31578         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31579         * doc/glibc-functions/wcstod_l.texi: Likewise.
31580         * doc/glibc-functions/wcstof_l.texi: Likewise.
31581         * doc/glibc-functions/wcstol_l.texi: Likewise.
31582         * doc/glibc-functions/wcstold_l.texi: Likewise.
31583         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31584         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31585         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31586
31587 2009-11-24  Bruno Haible  <bruno@clisp.org>
31588
31589         duplocale: Fix logic bug.
31590         * lib/duplocale.c: Don't include <langinfo.h>.
31591         (_NL_LOCALE_NAME): Remove macro.
31592         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31593         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31594
31595 2009-11-23  Jim Meyering  <meyering@redhat.com>
31596
31597         test-update-copyright: don't hard-code /usr/bin/perl
31598         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31599         perl to print the current year.  Gilles Espinasse reported that
31600         the replaced use of perl was hard-coded as /usr/bin/perl.
31601
31602 2009-11-23  Bruno Haible  <bruno@clisp.org>
31603
31604         duplocale: Add support for glibc 2.3.x.
31605         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31606
31607 2009-11-22  Bruno Haible  <bruno@clisp.org>
31608
31609         vasnprintf: Tiny optimization.
31610         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31611         MacOS X.
31612
31613 2009-11-22  Bruno Haible  <bruno@clisp.org>
31614
31615         Tests for module 'duplocale'.
31616         * modules/duplocale-tests: New file.
31617         * tests/test-duplocale.c: New file.
31618
31619         New module 'duplocale'.
31620         * m4/duplocale.m4: New file.
31621         * lib/locale.in.h (duplocale): New declaration.
31622         * lib/duplocale.c: New file.
31623         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31624         gl_LOCALE_H_DEFAULTS): New macros.
31625         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31626         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31627         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31628         REPLACE_DUPLOCALE.
31629         * modules/duplocale: New file.
31630         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31631
31632 2009-11-22  Bruno Haible  <bruno@clisp.org>
31633
31634         * modules/locale-tests (configure.ac): Test for newlocale function.
31635         * tests/test-locale.c: When the system has extended locale functions,
31636         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31637
31638         locale: Make locale_t available when possible.
31639         * lib/locale.in.h: Include <xlocale.h> when it exists.
31640         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31641         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31642         * modules/locale (Depends-on): Add extensions.
31643         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31644         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31645
31646 2009-11-22  Bruno Haible  <bruno@clisp.org>
31647
31648         Add comments.
31649         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31650         invocation.
31651         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31652         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31653         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31654
31655 2009-11-22  Bruno Haible  <bruno@clisp.org>
31656
31657         error: account for the possibility of freopen (stdout).
31658         * lib/error.c: Include <unistd.h>.
31659         (flush_stdout): New function, extracted from error and error_at_line.
31660         Determine stdout's fd dynamically.
31661         (error, error_at_line): Invoke flush_stdout.
31662         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31663         * modules/error (Depends-on): Add unistd.
31664
31665 2009-11-22  Bruno Haible  <bruno@clisp.org>
31666
31667         diffseq: Add comment.
31668         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31669
31670 2009-11-22  Jim Meyering  <meyering@redhat.com>
31671
31672         c-stack: avoid defining an unused static function
31673         * lib/c-stack.c (find_stack_direction): Do not define this function
31674         when it will not be used.
31675
31676         diffseq: avoid spurious gcc warnings
31677         * lib/diffseq.h (IF_LINT2): Define.
31678         (compareseq): Use it to initialize two members of "part".
31679         This avoids two used-uninitialized warnings.
31680
31681 2009-11-21  Jim Meyering  <meyering@redhat.com>
31682
31683         c-stack: avoid "ignoring return value of `write'" warning
31684         * lib/c-stack.c: Include "ignore-value.h".
31685         (die): Explicitly ignore each write return value.
31686         * modules/c-stack (Depends-on): Add ignore-value.
31687
31688 2009-11-21  Bruno Haible  <bruno@clisp.org>
31689
31690         diffseq: reduce scope of variable 'best'.
31691         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31692         variable, earlier used for two different purposes.
31693
31694 2009-11-21  Jim Meyering  <meyering@redhat.com>
31695
31696         diffseq: remove useless assignment to "best"
31697         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31698         assignment.  At that point "best" is already guaranteed to be zero.
31699
31700 2009-11-20  Eric Blake  <ebb9@byu.net>
31701
31702         build: mention ftp redirector in release announcements
31703         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31704         values that used to come from cfg.mk; mention FTP redirect URL.
31705         * build-aux/announce-gen: Mention the mirror list.
31706         Suggested by Karl Berry.
31707
31708         nanosleep: improve port to mingw
31709         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31711         LIB_NANOSLEEP, but only when needed.
31712         * modules/select (Link): Document LIBSOCKET.
31713         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31714         enough.
31715
31716         nanosleep: work around cygwin bug
31717         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31718         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31719         bug.
31720         (getnow): Delete, not needed.
31721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31722         LIB_CLOCK_GETTIME.
31723         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31724         clock-time, gettime.
31725         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31726         bug.
31727         * modules/nanosleep-tests: New test.
31728         * tests/test-nanosleep.c: New file.
31729
31730         sleep: work around cygwin bug
31731         * lib/sleep.c (rpl_sleep): Work around the bug.
31732         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31733         (gl_PREREQ_SLEEP): Delete unused macro.
31734         * modules/sleep (Depends-on): Add verify.
31735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31736         * modules/unistd (Makefile.am): Substitute witness.
31737         * lib/unistd.in.h (sleep): Update prototype.
31738         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31739         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31740         * modules/sleep-tests (Depends-on): Check for alarm.
31741
31742 2009-11-20  Jim Meyering  <meyering@redhat.com>
31743
31744         maint.mk: improve sc_prohibit_magic_number_exit
31745         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31746         so it does not match uses like System.exit(1).
31747         Add comments showing how to correct all offenders.
31748
31749 2009-11-19  Eric Blake  <ebb9@byu.net>
31750
31751         xalloc-die-tests: add missing library
31752         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31753
31754         test-xvasprintf: silence compiler warnings
31755         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31756         empty string from gcc.
31757
31758 2009-11-19  Jim Meyering  <meyering@redhat.com>
31759
31760         xfreopen: new module, from coreutils
31761         * modules/xfreopen: New module.
31762         * lib/xfreopen.c: New file.
31763         * lib/xfreopen.h: New file.
31764         * MODULES.html.sh (File stream based Input/Output"): Add it.
31765
31766 2009-11-19  Eric Blake  <ebb9@byu.net>
31767
31768         manywarnings: depend on warnings
31769         * modules/manywarnings (Depends-on): Add warnings.
31770
31771         build: avoid compiler warnings
31772         * lib/select.c (rpl_select): Delete unused variable.
31773         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31774
31775 2009-11-18  Eric Blake  <ebb9@byu.net>
31776
31777         tests: avoid false negative with --with-packager
31778         * tests/test-version-etc.sh: Discard packager information.
31779         * tests/test-argp-version-etc-1.sh: Likewise.
31780         Reported by Mike Frysinger.
31781
31782         utimens: fix regression on Solaris
31783         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31784         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31785         can only change fd timestamps via futimesat.  Instead, use an
31786         additional witness macro to avoid BSD bug.
31787         Reported by Jim Meyering.
31788
31789 2009-11-17  Eric Blake  <ebb9@byu.net>
31790
31791         usleep: use it to simplify tests
31792         * modules/stat-time-tests (Depends-on): Add usleep.
31793         (configure.ac): Drop usleep check.
31794         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31795         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31796         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31797         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31798         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31799         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31800         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31801         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31802         Likewise.
31803         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31804         * tests/test-lchown.h (nap): Likewise.
31805         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31806         * tests/test-stat-time.c (nap): Likewise.
31807         * tests/test-utimens-common.h (nap): Update comments.
31808
31809         usleep: new module
31810         * modules/usleep: New file.
31811         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31812         * lib/usleep.c (usleep): Likewise.
31813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31814         * modules/unistd (Makefile.am): Substitute witnesses.
31815         * lib/unistd.in.h (usleep): Add declaration.
31816         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31817         * MODULES.html.sh (Date and time): Likewise.
31818         * modules/usleep-tests (Depends-on): New test.
31819         * tests/test-usleep.c: New file.
31820
31821         chown: work around OpenBSD bug
31822         * lib/chown.c (rpl_chown): Work around the bug.
31823         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31824         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31826         * modules/chown (Depends-on): Add stdbool.
31827         * modules/lchown (Depends-on): Likewise.
31828         * doc/posix-functions/chown.texi (chown): Document the bug.
31829         * doc/posix-functions/lchown.texi (lchown): Likewise.
31830         * tests/test-lchown.h (test_chown): Relax test.
31831
31832         mkstemp: avoid conflict with C++ keyword template
31833         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31834         * lib/mkostemp.c (mkostemp): Likewise.
31835         * lib/mkostemps.c (mkostemps): Likewise.
31836         * lib/mkstemp.c (mkstemp): Likewise.
31837         * lib/mkstemps.c (mkstemps): Likewise.
31838
31839         xalloc-die-tests: optimize
31840         * tests/test-xalloc-die.sh: Reduce number of processes.
31841
31842 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31843
31844         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31845         patch from ludo@gnu.org (Ludovic Courtès).
31846
31847 2009-11-17  Jim Meyering  <meyering@redhat.com>
31848
31849         version-etc: use proper license string
31850         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31851         * modules/version-etc-fsf: Likewise.
31852
31853 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31854
31855         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31856         printed to stdout.  Deal with EOL differences.
31857
31858 2009-11-17  Eric Blake  <ebb9@byu.net>
31859
31860         unsetenv: work around Solaris bug
31861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31862         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31863         Reported by Jim Meyering.
31864
31865         vasnprintf: avoid compiler warnings
31866         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31867         variables.
31868         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31869
31870 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31871
31872         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31873         settings since xalloc-die is no longer the self test,
31874         xalloc-die.sh is.
31875
31876 2009-11-17  Jim Meyering  <meyering@redhat.com>
31877
31878         test-xalloc-die.sh: make the code agree with the commit log
31879         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31880         at the end, just in case you happen to have a test-xalloc-die
31881         program in some other PATH directory.
31882
31883         test-xalloc-die.sh: fix a portability bug
31884         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31885         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31886         Otherwise, argv[0] (as often seen in diagnostics) would be too
31887         system-dependent, sometimes with, and sometimes without the leading "./".
31888
31889         version-etc-fsf: relax license to LGPLv3+
31890         * modules/version-etc-fsf (License): Relax license.
31891
31892 2009-11-16  Eric Blake  <ebb9@byu.net>
31893
31894         xalloc-die-tests: avoid printing null pointer
31895         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31896         shell script.
31897         * tests/test-xalloc-die.c (program_name): Declare.
31898         * tests/test-xalloc-die.sh (tmpfiles): New file.
31899
31900         setenv, unsetenv: work around various bugs
31901         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31902         (setenv) [HAVE_SETENV]: Work around bugs.
31903         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31905         for bugs.
31906         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31907         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31909         * modules/stdlib (Makefile.am): Update substitutions.
31910         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31911         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31912         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31913         * modules/setenv-tests: New test.
31914         * modules/unsetenv-tests: Likewise.
31915         * tests/test-setenv.c: New file.
31916         * tests/test-unsetenv.c: Likewise.
31917
31918 2009-11-16  Jim Meyering  <meyering@redhat.com>
31919
31920         version-etc: relax license to LGPLv3+
31921         * modules/version-etc (License): Relax license.
31922
31923         better AC_REQUIRE expanded-before-required-warning avoidance
31924         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31925         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31926         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31927         which is no longer needed.
31928
31929 2009-11-16  Eric Blake  <ebb9@byu.net>
31930
31931         test-freading: clean up temporary file
31932         * tests/test-freading.c (main): Remove file on success, and use
31933         ASSERT more liberally.
31934         Reported by Jim Meyering.
31935
31936 2009-11-16  Jim Meyering  <meyering@redhat.com>
31937
31938         avoid new AC_REQUIRE expanded-before-required warnings
31939         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31940         merely using it.
31941         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31942         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31943
31944 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31945
31946         * tests/test-xalloc-die.c: New file.
31947         * modules/xalloc-die-tests: New file.
31948         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31949         XFAIL_TESTS so it can be appended by modules.
31950
31951 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31952
31953         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31954         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31955
31956 2009-11-14  Eric Blake  <ebb9@byu.net>
31957
31958         fnmatch: avoid compiler warning
31959         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31960         to silence compiler warning about mismatch signedness in ?:.
31961         Reported by Robert Millan.
31962
31963         intprops: add double-inclusion guard
31964         * lib/intprops.h: Allow idempotent includes.
31965         Suggested by Bruce Korb.
31966
31967         openat: detect Solaris fchownat bug
31968         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31969         penalizing glibc chownat when only lchownat is broken.
31970         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31971         trailing slash bugs.
31972         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31973         * modules/openat-tests (Files): Include more files.
31974         (Depends-on): Add mgetgroups, sleep, stat-time.
31975         (configure.ac): Add additional checks.
31976         (Makefile.am): Build new test.
31977         * tests/test-fchownat.c: New file.
31978
31979         lchown: detect Solaris and FreeBSD bug
31980         * lib/lchown.c (rpl_lchown): Work around bug.
31981         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31983         * modules/unistd (Makefile.am): Populate it.
31984         * lib/unistd.in.h (lchown): Update declaration.
31985         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31986         * modules/lchown-tests: New file.
31987         * tests/test-lchown.h (test_lchown): Likewise.
31988         * tests/test-lchown.c (main): Likewise.
31989
31990         chown: detect Solaris and FreeBSD bug
31991         * lib/chown.c (rpl_chown): Work around bug.
31992         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31993         (gl_PREREQ_CHOWN): Delete.
31994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31995         * modules/unistd (Makefile.am): Populate it.
31996         * lib/unistd.in.h (chown): Update declaration.
31997         * lib/lchown.c (chown): Update client.
31998         * modules/lchown (Depends-on): Add lstat.
31999         * doc/posix-functions/chown.texi (chown): Document the bug.
32000         * doc/posix-functions/getgroups.texi (getgroups): Document
32001         getgroups pitfall.
32002         * modules/chown-tests: New file.
32003         * tests/test-chown.h (test_chown): Likewise.
32004         * tests/test-chown.c (main): Likewise.
32005
32006 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32007
32008         gnulib-tool: correctly detect absence of m4 directories
32009         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32010
32011 2009-11-14  Jim Meyering  <meyering@redhat.com>
32012
32013         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32014         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32015
32016 2009-11-14  John W. Eaton  <jwe@gnu.org>
32017
32018         strftime.h: wrap funtion declaration in extern "C" block
32019         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32020
32021 2009-11-13  Eric Blake  <ebb9@byu.net>
32022
32023         getgroups: avoid compiler warning
32024         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32025
32026         getgroups: work around FreeBSD bug
32027         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32029         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32030         * tests/test-getgroups.c (main): Fix buffer overrun.
32031
32032         getgroups: avoid compilation failure
32033         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32034         * modules/getgroups (Depends-on): Add stdint.
32035
32036 2009-11-13  Jim Meyering  <meyering@redhat.com>
32037
32038         test-getgroups: avoid compilation failure
32039         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32040
32041 2009-11-13  Eric Blake  <ebb9@byu.net>
32042
32043         mgetgroups: new module, taken from coreutils
32044         * modules/mgetgroups: New file.
32045         * lib/mgetgroups.h: Likewise.
32046         * lib/mgetgroups.c (mgetgroups): Likewise.
32047         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32048         * MODULES.html.sh (Users and groups): Mention it.
32049
32050         getgroups: don't expose GETGROUPS_T to user
32051         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32052         an element at a time if GETGROUPS_T is wrong size.
32053         * lib/getugroups.h (getugroups): Change signature.
32054         * lib/unistd.in.h (getgroups): Likewise.
32055         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32056         signature needs fixing.
32057         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32058         AC_TYPE_GETGROUPS.
32059         * modules/group-member (Depends-on): Add getgroups.
32060         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32061         (group_member): Rely on getgroups replacement.
32062         * lib/getugroups.c (getugroups): Use gid_t.
32063         * tests/test-getgroups.c (main): Likewise.
32064         * NEWS: Mention the signature change.
32065         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32066         problem with signature.
32067         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32068         GETGROUPS_T is still useful for setgroups.
32069
32070         getgroups, getugroups: provide stubs for mingw
32071         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32072         * lib/getugroups.c (getugroups): Likewise.
32073         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32074         function.  Modernize replacement scheme.
32075         (gl_PREREQ_GETGROUPS): Delete.
32076         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32077         * modules/getgroups (configure.ac): Declare witness.
32078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32079         * modules/unistd (Depends-on): Substitute witness.
32080         * lib/unistd.in.h (getgroups): Declare replacement.
32081
32082         getgroups: avoid calling exit
32083         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32084         drop xalloc.
32085         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32086         dependencies.
32087         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32088         exiting, in the rare case of malloc failure.
32089
32090         getgroups: fix logic error
32091         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32092         has more than 20 groups.
32093         * modules/getgroups-tests: New test.
32094         * tests/test-getgroups.c: New file.
32095
32096 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32097
32098         * tests/test-base64.c: Improve.
32099
32100 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32101
32102         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32103         Blake <ebb9@byu.net>.
32104
32105 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32106
32107         * tests/test-xvasprintf.c: Add %s%s related checks.
32108
32109 2009-11-12  Eric Blake  <ebb9@byu.net>
32110
32111         version-etc: match standards.texi style
32112         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32113         and use <> only for URLs.
32114
32115 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32116
32117         fts: do not fail on a submount during traversal
32118         * lib/fts.c (fts_build): Read the stat info again after opening
32119         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32120         Original report at http://bugzilla.redhat.com/501848.
32121
32122 2009-11-12  Jim Meyering  <meyering@redhat.com>
32123
32124         bootstrap: sync from coreutils
32125         * build-aux/bootstrap (bootstrap_epilogue): New function.
32126         Use git_modules_config in one more place.  This make bootstrap's
32127         --gnulib-srcdir option more useful for testing.
32128
32129         bootstrap: generalize autoheader check
32130         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32131         AC_CONFIG_HEADERS.
32132
32133 2009-11-11  Eric Blake  <ebb9@byu.net>
32134
32135         mkfifoat: use new modules for Solaris and BSD bugs
32136         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32137         * lib/mkfifoat.c (mknodat): Split...
32138         * lib/mknodat.c (mknodat): ...into new file.
32139         * modules/mkfifoat (Files): Ship new file.
32140         (Depends-on): Add mkfifo, mknod.
32141         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32142         (Depends-on): Add symlink.
32143         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32144         redundant with test_mkfifo.h.
32145         (do_mkfifoat, do_mknodat): New helpers.
32146
32147         mknod: new module
32148         * modules/mknod: New file.
32149         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32150         * lib/mknod.c (mknod): Likewise.
32151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32152         defaults.
32153         * modules/sys_stat (Makefile.am): Substitute them.
32154         * lib/sys_stat.in.h (mknod): Declare replacement.
32155         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32156         Document it.
32157         * doc/posix-functions/mknod.texi (mknod): Likewise.
32158         * modules/mknod-tests: New test.
32159         * tests/test-mknod.c: Likewise.
32160
32161         mkfifo: new module
32162         * modules/mkfifo: New file.
32163         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32164         * lib/mkfifo.c (mkfifo): Likewise.
32165         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32166         defaults.
32167         * modules/sys_stat (Makefile.am): Substitute them.
32168         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32169         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32170         Document it.
32171         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32172         * modules/mkfifo-tests: New test.
32173         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32174         from test-mkfifoat.c.
32175         * tests/test-mkfifo.c: New file.
32176
32177         readlink: detect FreeBSD bug
32178         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32179         slash on symlink.
32180         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32181         * tests/test-readlink.h (test_readlink): Enhance test.
32182
32183         symlink: detect FreeBSD bug
32184         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32185         slash on symlink.
32186         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32187         * tests/test-symlink.h (test_symlink): Enhance test.
32188
32189 2009-11-10  Eric Blake  <ebb9@byu.net>
32190
32191         link: detect FreeBSD bug
32192         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32193         symlink.
32194         * doc/posix-functions/link.texi (link): Document the bug.
32195         * tests/test-link.h (test_link): Enhance test.
32196         * tests/test-linkat.c (main): Update caller.
32197
32198         unlink, remove: detect FreeBSD bug
32199         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32200         slash on symlink.
32201         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32202         * doc/posix-functions/remove.texi (remove): Likewise.
32203         * tests/test-unlink.h (test_unlink): Enhance test.
32204         * tests/test-remove.c (main): Likewise.
32205
32206 2009-11-09  Eric Blake  <ebb9@byu.net>
32207
32208         rename: detect FreeBSD bug
32209         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32210         slash on symlink.
32211         * modules/renameat-tests (Depends-on): Add filenamecat.
32212         * tests/test-rename.h (test_rename): Allow one more errno.
32213         * tests/test-renameat.c (main): Likewise.
32214         * doc/posix-functions/rename.texi (rename): Document the bug.
32215
32216         open: detect FreeBSD bug
32217         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32218         symlink.
32219         * doc/posix-functions/open.texi (open): Document the bug.
32220         * doc/posix-functions/utimes.texi (utimes): Likewise.
32221         * tests/test-open.h (test_open): Add parameters, and test symlink
32222         handling.
32223         * tests/test-open.c (main): Adjust caller.
32224         * tests/test-fcntl-safer.c (main): Likewise.
32225         * modules/open-tests (Depends-on): Add stdbool, symlink.
32226         * modules/fcntl-safer-tests (Depends-on): Likewise.
32227         * tests/test-openat.c (main): Add test-open tests.
32228
32229         stat: detect FreeBSD bug
32230         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32231         symlink.
32232         * doc/posix-functions/stat.texi (stat): Document the bug.
32233         * tests/test-stat.h (test_stat_func): Add argument.
32234         * tests/test-stat.c (main): Adjust caller.
32235         * tests/test-fstatat.c (main): Likewise.
32236         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32237         Reported by Jim Meyering.
32238
32239 2009-11-09  James Youngman  <jay@gnu.org>
32240
32241         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32242         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32243
32244 2009-11-08  Jim Meyering  <meyering@redhat.com>
32245
32246         utimens: remove invalid futimesat call
32247         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32248         It used the file descriptor of the target file as the DIR_FD
32249         parameter and NULL as the file name.  That caused failure with
32250         errno == EFAULT on FreeBSD-8.0-rc2
32251
32252 2009-11-07  Eric Blake  <ebb9@byu.net>
32253
32254         fflush, freadseek: use fseeko, not fseek
32255         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32256         (clear_ungetc_buffer): Avoid potential problems on large files.
32257         * lib/freadseek.c (freadseek): Likewise.
32258         * modules/freadseek (Depends-on): Add fseeko.
32259         * modules/fseek (configure.ac): Set a witness.
32260         * tests/test-fflush.c (main): Use fseeko.
32261         * tests/test-fpurge.c (fseek): Disable link warning.
32262         * tests/test-freadable.c (fseek): Likewise.
32263         * tests/test-freading.c (fseek): Likewise.
32264         * tests/test-fseeko.c (fseek): Likewise.
32265         * tests/test-ftell.c (fseek): Likewise.
32266         * tests/test-ftello.c (fseek): Likewise.
32267         * tests/test-fwritable.c (fseek): Likewise.
32268         * tests/test-fwriting.c (fseek): Likewise.
32269
32270 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32271
32272         * modules/memchr (Depends-on): Drop getpagesize dependency.
32273
32274 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32275
32276         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32277         Reported by Ludovic Courtès.
32278         * build-aux/pmccabe2html: Improve example usage.
32279         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32280
32281 2009-11-06  Jim Meyering  <meyering@redhat.com>
32282
32283         do-release-commit-and-tag: New module.
32284         Automate the release-commit and tag process.
32285         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32286         * modules/do-release-commit-and-tag: New file.
32287         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32288
32289 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32290
32291         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32292         because test-select.c uses inet_pton.
32293
32294 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32295
32296         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32297         GETADDRINFO_LIB.  Bump serial number.
32298         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32299         Suggested by Eric Blake <ebb9@byu.net>.
32300
32301 2009-11-05  Eric Blake  <ebb9@byu.net>
32302
32303         strtod: detect darwin bug
32304         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32305         Reported by Leo Davis.
32306
32307         freopen-safer: new module
32308         * modules/freopen-safer: New module.
32309         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32310         * lib/freopen-safer.c (freopen_safer): New file.
32311         * lib/stdio-safer.h (freopen_safer): New declaration.
32312         * lib/stdio--.h (freopen): New override.
32313         * MODULES.html.sh (File stream based Input/Output): Mention it.
32314         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32315         freopen-safer module.
32316         * doc/posix-functions/stderr.texi (stderr): Likewise.
32317         * doc/posix-functions/stdin.texi (stdin): Likewise.
32318         * doc/posix-functions/stdout.texi (stdout): Likewise.
32319         * modules/freopen-safer-tests: New test.
32320         * tests/test-reopen-safer.c: New file.
32321
32322 2009-11-05  Jim Meyering  <meyering@redhat.com>
32323
32324         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32325         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32326
32327 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32328
32329         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32330
32331 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32332
32333         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32334
32335 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32336
32337         Fix link error.
32338         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32339         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32340
32341 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32342
32343         * tests/test-func.c: Also test value of __func__.
32344
32345 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32346
32347         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32348         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32349
32350 2009-11-05  Bruno Haible  <bruno@clisp.org>
32351
32352         Fix link error.
32353         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32354         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32355         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32356
32357 2009-11-05  Bruno Haible  <bruno@clisp.org>
32358
32359         Tests for module 'inet_pton'.
32360         * modules/inet_pton-tests: New file.
32361         * tests/test-inet_pton.c: New file.
32362
32363 2009-11-05  Bruno Haible  <bruno@clisp.org>
32364
32365         Tests for module 'inet_ntop'.
32366         * modules/inet_ntop-tests: New file.
32367         * tests/test-inet_ntop.c: New file.
32368
32369 2009-11-04  Eric Blake  <ebb9@byu.net>
32370
32371         stdlib-safer: wrap all mkstemp variants
32372         * modules/mkostemp (configure.ac): Set witness.
32373         * modules/mkostemps (configure.ac): Likewise.
32374         * modules/mkstemps (configure.ac): Likewise.
32375         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32376         (mkstemps_safer): Wrap more functions.
32377         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32378         wrapping.
32379         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32380         (mkstemps_safer): Implement the wrappers.
32381
32382         mkstemps, mkostemps: new modules
32383         * modules/mkostemps: New module.
32384         * modules/mkstemps: Likewise.
32385         * lib/mkostemps.c (mkostemps): New file.
32386         * lib/mkstemps.c (mkstemps): Likewise.
32387         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32388         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32390         * modules/stdlib (Makefile.am): Substitute them.
32391         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32392         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32393         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32394         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32395         * MODULES.html.sh (File system functions): Mention them.
32396
32397         tempname: resync from glibc
32398         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32399         same values for __GT_FILE as glibc.  Abort even when assertions
32400         are disabled.
32401         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32402         match its value otherwise.  Allow idempotent inclusion.
32403         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32404         * lib/mkostemp.c (mkostemp): Likewise.
32405         * lib/mkstemp.c (mkstemp): Likewise.
32406         * lib/tmpfile.c (tmpfile): Likewise.
32407         * NEWS: Document this.
32408
32409         utimens: fix use of futimens on older Linux
32410         * lib/utimens.c (fdutimens): Use updated, rather than original,
32411         timespec to avoid bug in older Linux kernel.
32412         Reported by Simon Josefsson.
32413
32414 2009-11-04  Bruno Haible  <bruno@clisp.org>
32415
32416         Make num_processors more flexible and consistent.
32417         * lib/nproc.h (enum nproc_query): New type.
32418         (num_processors): Add a 'query' argument.
32419         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32420         (num_processors): Add a 'query' argument. Test the value of the
32421         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32422         mingw, count the number of CPUs available for the current process.
32423         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32424         Check for sched_getaffinity and sched_getaffinity_np.
32425         * modules/nproc (Depends-on): Add c-ctype, extensions.
32426         * NEWS: Mention the change.
32427
32428 2009-11-03  Bruno Haible  <bruno@clisp.org>
32429
32430         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32431
32432 2009-11-03  Jim Meyering  <meyering@redhat.com>
32433
32434         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32435         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32436         if it is defined.
32437
32438 2009-11-02  Eric Blake  <ebb9@byu.net>
32439
32440         mktime, timegm: share common declaration
32441         * lib/mktime-internal.h: New file.
32442         * lib/mktime.c: Use it rather than open-coding a declaration.
32443         * lib/timegm.c: Likewise.
32444         * modules/mktime (Files): Ship it.
32445         * modules/timegm (Files): Likewise.
32446         Suggested by Bruno Haible.
32447
32448         test-update-copyright: update test to match script changes
32449         * tests/test-update-copyright.sh: Avoid hard-coding perl
32450         location.  Don't update *.bak created by earlier runs.
32451
32452 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32453             Simon Josefsson  <simon@josefsson.org>
32454             Bruno Haible  <bruno@clisp.org>
32455
32456         Fix link error on Solaris 8.
32457         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32458         also in libnsl. Define also INET_PTON_LIB.
32459         * modules/inet_pton (Link): New section.
32460
32461 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32462             Bruno Haible  <bruno@clisp.org>
32463
32464         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32465         * modules/inet_ntop (Link): New section.
32466         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32467
32468 2009-11-02  Eric Blake  <ebb9@byu.net>
32469
32470         maint: avoid compiler warnings in m4 macros
32471         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32472         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32473
32474 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32475
32476         * m4/pmccabe2html.m4: Remove file.
32477         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32478         function.  Change maintainer.
32479         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32480         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32481         Courtès).
32482
32483 2009-10-31  Eric Blake  <ebb9@byu.net>
32484
32485         fseeko: fix m4 regression
32486         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32487         regression from 2009-10-27.
32488         Reported by Ralf Wildenhues.
32489
32490 2009-10-31  Jim Meyering  <meyering@redhat.com>
32491
32492         inttostr: aesthetics and improved (compile-time) safety
32493         Define inttype_is_signed rather than inttype_is_unsigned,
32494         since the sole use is via "#if inttype_is_signed".
32495         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32496         inttype_is_unsigned.
32497         * lib/offtostr.c (inttype_is_signed): Likewise.
32498         * lib/uinttostr.c (inttype_is_signed): Likewise.
32499         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32500         * lib/inttostr.c (inttostr): Use verify to cross-check the
32501         inttype_is_signed value and the signedness of the actual type.
32502         * modules/inttostr (Depends-on): Add verify.
32503
32504 2009-10-30  Eric Blake  <ebb9@byu.net>
32505
32506         build: avoid compiler warnings
32507         * lib/fchmodat.c (lchmod): Mark unused variables.
32508         * lib/getopt.c (_getopt_initialize): Likewise.
32509         * lib/mktime.c (__mktime_internal): Provide prototype.
32510         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32511         older gcc that do not understand #pragma GCC diagnostic.
32512         * lib/uinttostr.c (inttype_is_unsigned): Define.
32513         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32514
32515 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32516
32517         stat: fix compilation on AIX
32518         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32519         only see struct stat64.
32520
32521 2009-10-30  Eric Blake  <ebb9@byu.net>
32522
32523         exclude: make more robust
32524         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32525         rather than masking a coding bug.
32526         Suggested by Bruno Haible.
32527
32528 2009-10-30  Jim Meyering  <meyering@redhat.com>
32529
32530         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32531         Rather than putting #!/usr/bin/perl on the first line,
32532         start with a variant of what's recommended by "man perlrun" that
32533         invokes the first "perl" program from your shell's search path.
32534         * build-aux/gitlog-to-changelog: Replace #!... as above.
32535         Add a "Local Variables" perl mode setting.
32536         Prompted by a patch from Ludovic Courtès.
32537         Improved by Eric Blake.
32538         * build-aux/useless-if-before-free: Likewise.
32539         * build-aux/announce-gen: Likewise.
32540         * build-aux/update-copyright: Likewise.
32541
32542 2009-10-29  Eric Blake  <ebb9@byu.net>
32543
32544         filenamecat-lgpl: adjust clients
32545         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32546         filenamecat.
32547         * modules/renameat (Depends-on): Likewise.
32548
32549         filenamecat: split into filenamecat-lgpl
32550         * modules/filenamecat-lgpl: New module.
32551         * modules/filenamecat (Files): Move library-safe files into
32552         filenamecat-lgpl.
32553         (Depends-on): Add filenamecat-lgpl.
32554         (configure.ac): Declare witness.
32555         * lib/filenamecat.h (file_name_concat): Only declare when using
32556         GPL module.
32557         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32558         Move...
32559         * lib/filenamecat-lgpl.c: ...into new file.
32560         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32561         (gl_FILE_NAME_CONCAT): Use it.
32562         * MODULES.html.sh (File system functions): Mention new module.
32563
32564         argp: avoid memory leak
32565         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32566         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32567         base_name, since the latter malloc()s and can call exit().
32568         Leak introduced 2006-07-03.
32569
32570         dirname-lgpl: adjust clients that don't need full dirname
32571         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32572         * modules/filenamecat (Depends-on): Likewise.
32573         * modules/linkat (Depends-on): Likewise.
32574         * modules/mkancesdirs (Depends-on): Likewise.
32575         * modules/mkdir (Depends-on): Likewise.
32576         * modules/openat (Depends-on): Likewise.
32577         * modules/savewd (Depends-on): Likewise.
32578         * modules/rename (Depends-on): Likewise.
32579         (License): Relax license.
32580         * modules/mkdir-tests (Depends-on): Drop progname.
32581         (Makefile.am): Delete unneeded LDADD.
32582         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32583
32584         dirname: split into dirname-lgpl
32585         * modules/dirname-lgpl: New module.
32586         * modules/dirname (Files): Move library-safe files into
32587         dirname-lgpl.
32588         (Depends-on): Add dirname-lgpl.
32589         (configure.ac): Declare witness.
32590         * modules/double-slash-root (License): Relax license.
32591         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32592         module.
32593         * lib/dirname.c (dir_len, mdir_name): Move...
32594         * lib/dirname-lgpl.c: ...into new file.
32595         * lib/basename.c (last_component, base_len): Move...
32596         * lib/basename-lgpl.c: ...into new file.
32597         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32598         (gl_DIRNAME): Use it.
32599         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32600         Mention new module.
32601         * modules/dirname-tests (Depends-on): Add progname.
32602         * tests/test-dirname.c (program_name): Delete.
32603
32604         mkdir: make safe for libraries
32605         * modules/mkdir (Depends-on): Drop xalloc.
32606         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32607         exit.
32608
32609         tests: avoid some compiler warnings
32610         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32611         literals.
32612         * tests/test-memchr.c (main): Avoid type mismatch.
32613         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32614         * tests/test-base64.c (main): Likewise.
32615         * tests/test-getdelim.c (main): Likewise.
32616         * tests/test-gethostname.c (main): Likewise.
32617         * tests/test-getline.c (main): Likewise.
32618         * tests/test-netinet_in.c (main): Likewise.
32619         * tests/test-select.c (open_server_socket, main): Likewise.
32620         * tests/test-select-stdin.c (main): Likewise.
32621         * tests/test-sockets.c (main): Likewise.
32622         * tests/test-strsignal.c (main): Likewise.
32623         * tests/test-sys_select.c (main): Likewise.
32624         * tests/test-sys_socket.c (main): Likewise.
32625         * tests/test-u64.c (main): Likewise.
32626         * tests/test-xfprintf-posix.c (main): Likewise.
32627         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32628
32629         sockets: avoid compiler warning
32630         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32631
32632         maint: detect usage(1) and other suspicious exits
32633         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32634
32635 2009-10-29  Jim Meyering  <meyering@redhat.com>
32636
32637         timespec: long-to-int truncation could make timespec_cmp malfunction
32638         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32639         a multiple of 2^32 nanoseconds as no difference.
32640
32641 2009-10-28  Jim Meyering  <meyering@redhat.com>
32642
32643         fprintftime: wrap macro code argument in "do {...} while(0)"
32644         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32645         cpy macro must be a statement that can be followed by a semicolon.
32646         Now that the else clause contains a comment and is hence longer
32647         than one line, I require curly braces.  That in turn requires
32648         that we wrap this code block in the standard do...while(0).
32649
32650         fprintftime: remove stray semicolon from previous change
32651         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32652
32653         fprintftime: avoid a warning about ignored fwrite return value
32654         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32655         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32656         that is unsafe.
32657         * modules/fprintftime (Depends-on): Add ignore-value.
32658
32659         exclude: avoid an unwarranted warning
32660         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32661
32662 2009-10-27  Eric Blake  <ebb9@byu.net>
32663
32664         fseek: avoid compilation failure when fflush is replaced
32665         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32666         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32667         module is in use.
32668         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32669         module is not in use; since REPLACE_FSEEK worked otherwise.
32670         (GNULIB_FTELLO): Likewise for ftell.
32671         Reported by Ian Beckwith and others.
32672
32673 2009-10-27  Bruno Haible  <bruno@clisp.org>
32674
32675         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32676         Reported by Jim Meyering.
32677
32678 2009-10-27  Jim Meyering  <jim@meyering.net>
32679             Bruno Haible  <bruno@clisp.org>
32680
32681         Avoid warning despite dropping the return value of fwrite.
32682         * lib/unicodeio.c: Include ignore-value.h.
32683         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32684         * modules/unicodeio (Depends-on): Add ignore-value.
32685
32686 2009-10-26  Eric Blake  <ebb9@byu.net>
32687
32688         areadlinkat: fix fallback path
32689         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32690         pointer and zero.
32691
32692 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32693
32694         Use a better IO block size for modern systems
32695         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32696         * lib/md2.c: Likewise.
32697         * lib/md4.c: Likewise.
32698         * lib/md5.c: Likewise.
32699         * lib/sha1.c: Likewise.
32700         * lib/sha256.c: Likewise.
32701         * lib/sha512.c: Likewise.
32702
32703 2009-10-22  Eric Blake  <ebb9@byu.net>
32704
32705         tests: avoid several compiler warnings
32706         * tests/test-getcwd.c (main): Avoid buffer underflow.
32707         * tests/test-getdate.c (main): String literals are not safe with
32708         putenv, so use setenv.  Declare unused argument.
32709         * modules/getdate-tests (Depends-on): Add setenv.
32710         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32711         problems with string literals in char *.
32712         * tests/test-hash.c (main): Avoid shadowing declaration.
32713         (insert_new): Treat string literals as char const *.
32714         * tests/test-getopt.h (test_getopt): Likewise.
32715         (getopt_loop): Alter types to minimize casting elsewhere.
32716         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32717         (test_getopt_long_posix): Likewise.
32718         (do_getopt_long): Add wrapper to minimize casting.
32719         * tests/test-atexit.c (clear_temp_file): Use void.
32720         * tests/test-areadlink-with-size.c (main): Declare unused
32721         arguments.
32722         * tests/test-areadlink.c (main): Likewise.
32723         * tests/test-areadlinkat-with-size.c (main): Likewise.
32724         * tests/test-areadlinkat.c (main): Likewise.
32725         * tests/test-canonicalize-lgpl.c (main): Likewise.
32726         * tests/test-canonicalize.c (main): Likewise.
32727         * tests/test-dirent-safer.c (main): Likewise.
32728         * tests/test-dirname.c (main): Likewise.
32729         * tests/test-dup2.c (main): Likewise.
32730         * tests/test-fchdir.c (main): Likewise.
32731         * tests/test-fcntl-h.c (main): Likewise.
32732         * tests/test-fcntl-safer.c (main): Likewise.
32733         * tests/test-fdopendir.c (main): Likewise.
32734         * tests/test-fdutimensat.c (main): Likewise.
32735         * tests/test-fflush.c (main): Likewise.
32736         * tests/test-filenamecat.c (main): Likewise.
32737         * tests/test-filevercmp.c (main): Likewise.
32738         * tests/test-fopen-safer.c (main): Likewise.
32739         * tests/test-fopen.c (main): Likewise.
32740         * tests/test-fpending.c (main): Likewise.
32741         * tests/test-fpurge.c (main): Likewise.
32742         * tests/test-freading.c (main): Likewise.
32743         * tests/test-fstatat.c (main): Likewise.
32744         * tests/test-fsync.c (main): Likewise.
32745         * tests/test-futimens.c (main): Likewise.
32746         * tests/test-getndelim2.c (main): Likewise.
32747         * tests/test-gettimeofday.c (main): Likewise.
32748         * tests/test-getopt.c (main): Likewise.
32749         * tests/test-i-ring.c (main): Likewise.
32750         * tests/test-inttypes.c (main): Likewise.
32751         * tests/test-link.c (main): Likewise.
32752         * tests/test-lstat.c (main): Likewise.
32753         * tests/test-math.c (main): Likewise.
32754         * tests/test-md5.c (main): Likewise.
32755         * tests/test-memchr2.c (main): Likewise.
32756         * tests/test-memrchr.c (main): Likewise.
32757         * tests/test-mkdir.c (main): Likewise.
32758         * tests/test-mkdirat.c (main): Likewise.
32759         * tests/test-mkfifoat.c (main): Likewise.
32760         * tests/test-open.c (main): Likewise.
32761         * tests/test-openat-safer.c (main): Likewise.
32762         * tests/test-openat.c (main): Likewise.
32763         * tests/test-quotearg.c (main): Likewise.
32764         * tests/test-rawmemchr.c (main): Likewise.
32765         * tests/test-readlink.c (main): Likewise.
32766         * tests/test-remove.c (main): Likewise.
32767         * tests/test-rename.c (main): Likewise.
32768         * tests/test-renameat.c (main): Likewise.
32769         * tests/test-rmdir.c (main): Likewise.
32770         * tests/test-sha1.c (main): Likewise.
32771         * tests/test-signal.c (main): Likewise.
32772         * tests/test-sigaction.c (main): Likewise.
32773         * tests/test-stat.c (main): Likewise.
32774         * tests/test-stat-time.c (main): Likewise.
32775         * tests/test-stddef.c (main): Likewise.
32776         * tests/test-stdint.c (main): Likewise.
32777         * tests/test-stdio.c (main): Likewise.
32778         * tests/test-stdlib.c (main): Likewise.
32779         * tests/test-strchrnul.c (main): Likewise.
32780         * tests/test-strerror.c (main): Likewise.
32781         * tests/test-string.c (main): Likewise.
32782         * tests/test-strtod.c (main): Likewise.
32783         * tests/test-strverscmp.c (main): Likewise.
32784         * tests/test-symlink.c (main): Likewise.
32785         * tests/test-symlinkat.c (main): Likewise.
32786         * tests/test-sys_stat.c (main): Likewise.
32787         * tests/test-sys_time.c (main): Likewise.
32788         * tests/test-time.c (main): Likewise.
32789         * tests/test-unistd.c (main): Likewise.
32790         * tests/test-unlink.c (main): Likewise.
32791         * tests/test-unlinkat.c (main): Likewise.
32792         * tests/test-utimens.c (main): Likewise.
32793         * tests/test-utimensat.c (main): Likewise.
32794         * tests/test-version-etc.c (main): Likewise.
32795         * tests/test-wchar.c (main): Likewise.
32796         * tests/test-wctype.c (main): Likewise.
32797         * tests/test-xprintf-posix.c (main): Likewise.
32798         * tests/test-posixtm.c (main): Likewise.
32799         (STREQ): Delete unused macro.
32800         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32801         shadowed variables.
32802         * tests/test-memchr.c (main): Likewise.
32803
32804 2009-10-21  Eric Blake  <ebb9@byu.net>
32805
32806         areadlinkat: avoid failure on older glibc
32807         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32808         rather than mis-comparing 0 against FUNC_RESULT of char*.
32809
32810 2009-10-21  Bruno Haible  <bruno@clisp.org>
32811
32812         * modules/stpncpy (License): Relicense under LGPLv2+.
32813         Reported by David Lutterkort <lutter@redhat.com>.
32814
32815 2009-10-20  Eric Blake  <ebb9@byu.net>
32816
32817         utimensat: work around Solaris 9 bug
32818         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32819         has trailing slash bugs.
32820         * tests/test-lutimens.h (test_lutimens): Enhance test.
32821         * tests/test-utimens.h (test_utimens): Likewise.
32822         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32823         * doc/posix-functions/utimes.texi (utimes): Likewise.
32824         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32825         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32826         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32827         * doc/posix-functions/futimens.texi (futimens): Likewise.
32828
32829         fdutimensat: new module
32830         * modules/fdutimensat: New file.
32831         * lib/fdutimensat.c (fdutimensat): Likewise.
32832         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32833         * MODULES.html.sh (File system functions): Mention module.
32834         * modules/fdutimensat-tests: New test.
32835         * tests/test-fdutimensat.c: Likewise.
32836
32837         doc: regenerate INSTALL
32838         * doc/INSTALL: Reflect recent autoconf update.
32839         * doc/INSTALL.ISO: Likewise.
32840         * doc/INSTALL.UTF-8: Likewise.
32841
32842 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32843
32844         acl: warn if ACL support is not detected
32845         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32846
32847 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32848
32849         * lib/nproc.h: Add extern "C" block for C++.
32850
32851 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32852             Bruno Haible  <bruno@clisp.org>
32853
32854         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32855         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32856         * doc/posix-functions/isalpha.texi: Likewise.
32857         * doc/posix-functions/isblank.texi: Likewise.
32858         * doc/posix-functions/iscntrl.texi: Likewise.
32859         * doc/posix-functions/isdigit.texi: Likewise.
32860         * doc/posix-functions/isgraph.texi: Likewise.
32861         * doc/posix-functions/islower.texi: Likewise.
32862         * doc/posix-functions/isprint.texi: Likewise.
32863         * doc/posix-functions/ispunct.texi: Likewise.
32864         * doc/posix-functions/isspace.texi: Likewise.
32865         * doc/posix-functions/isupper.texi: Likewise.
32866         * doc/posix-functions/isxdigit.texi: Likewise.
32867
32868 2009-10-18  Bruno Haible  <bruno@clisp.org>
32869
32870         Tests for module 'isblank'.
32871         * modules/isblank-tests: New file.
32872         * tests/test-isblank.c: New file.
32873
32874         New module 'isblank'.
32875         * lib/isblank.c: New file.
32876         * m4/isblank.m4: New file.
32877         * modules/isblank: New file.
32878         * doc/posix-functions/isblank.texi: Mention the new module.
32879
32880 2009-10-18  Bruno Haible  <bruno@clisp.org>
32881
32882         New module 'ctype'.
32883         * lib/ctype.in.h: New file.
32884         * m4/ctype.m4: New file.
32885         * modules/ctype: New file.
32886         * doc/posix-headers/ctype.texi: Mention the new module.
32887
32888 2009-10-18  Jim Meyering  <meyering@redhat.com>
32889
32890         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32891         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32892         right after its initialization, rather than farther down.
32893         Keeping these in close proximity makes it easier to ensure
32894         that each such variable is initialized.  E.g.,
32895
32896             LIB_CLOCK_GETTIME=
32897             AC_SUBST([LIB_CLOCK_GETTIME])
32898
32899         This change also increments these serial numbers.
32900         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32901         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32903
32904 2009-10-18  Bruno Haible  <bruno@clisp.org>
32905
32906         Don't let environment variables perturb build.
32907         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32908         (gl_PREREQ_GETHRXTIME): ... not here.
32909
32910 2009-10-18  Bruno Haible  <bruno@clisp.org>
32911
32912         Avoid symlink attack in localcharset module.
32913         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32914         (O_NOFOLLOW): Define fallback.
32915         (get_charset_aliases): Don't open the file if it is a symbolic link.
32916         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32917         gl_FCNTL_H.
32918         (gl_FCNTL_H): Require it.
32919         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32920         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32921         Reported by Fergal Glynn <fglynn@veracode.com>.
32922
32923 2009-10-18  Bruno Haible  <bruno@clisp.org>
32924
32925         Implement nproc for mingw.
32926         * lib/nproc.c: Include <windows.h>
32927         (num_processors): On native Windows platforms, try GetSystemInfo.
32928
32929 2009-10-18  Bruno Haible  <bruno@clisp.org>
32930
32931         Implement nproc for IRIX.
32932         * lib/nproc.c: Include <sys/sysmp.h>.
32933         (num_processors): On IRIX systems, try sysmp.
32934         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32935
32936 2009-10-18  Bruno Haible  <bruno@clisp.org>
32937
32938         Implement nproc for HP-UX.
32939         * lib/nproc.c: Include <sys/pstat.h>
32940         (num_processors): On HP-UX systems, try pstat_getdynamic.
32941         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32942         pstat_getdynamic.
32943
32944 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32945             Bruno Haible  <bruno@clisp.org>
32946
32947         Implement nproc for NetBSD, OpenBSD.
32948         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32949         (ARRAY_SIZE): New macro.
32950         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32951         * m4/nproc.m4: New file.
32952         * modules/nproc (Files): Add m4/nproc.m4.
32953         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32954         (Makefile.am): Instead, augment lib_SOURCES.
32955
32956 2009-10-18  Bruno Haible  <bruno@clisp.org>
32957
32958         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32959         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32960         sys/param.h.
32961
32962 2009-10-16  Eric Blake  <ebb9@byu.net>
32963
32964         utimensat: new module
32965         * modules/utimensat: New file.
32966         * lib/utimensat.c (utimensat): Likewise.
32967         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32968         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32969         so we can work around Linux bugs.
32970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32971         * modules/sys_stat (Makefile.am): Substitute them.
32972         * lib/sys_stat.in.h (utimensat): Declare it.
32973         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32974         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32975         * modules/utimensat-tests: New test.
32976         * tests/test-utimensat.c: Likewise.
32977
32978         utimens: let lutimens work on non-symlinks
32979         * lib/utimens.c (lutimens): Fall back to utimens rather than
32980         failing with ENOSYS, when file is not a symlink.
32981         (utimens): Reduce redirection.
32982         * tests/test-lutimens.h (test_lutimens): Update test to cover
32983         non-symlinks.
32984         * tests/test-utimens.h (test_utimens): Update test to cover
32985         symlinks.
32986         * tests/test-utimens.c (main): Update caller.
32987
32988         utimens: cache whether utimensat syscall works
32989         * lib/utimens.c (utimensat_works_really): New cache variable.
32990         (fdutimens, lutimens): Use it to avoid failing syscall.
32991
32992         test-stat-time, test-utimens: improve portability
32993         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32994         ext4 on alpha, and for cygwin.
32995         * tests/test-utimens-common.h: New file.
32996         (nap): Factor delays into single function.
32997         * tests/test-lutimens.h (test_lutimens): Use new header.
32998         * tests/test-futimens.h (test_futimens): Likewise.
32999         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33000         timestamps to occur from same machine, as was done previously for
33001         test_utimens.
33002         * modules/utimens-tests (Files): Ship new file.
33003         * modules/futimens-tests (Files): Likewise.
33004         Reported in part by Jim Meyering.
33005
33006         sys_stat: sort replacement declarations
33007         * lib/sys_stat.in.h: Sort declarations.
33008         * lib/futimens.c (futimens): Fix typo.
33009
33010 2009-10-15  Jim Meyering  <meyering@redhat.com>
33011
33012         don't let environment settings perturb build
33013         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33014         could cause a configure-time and/or build-time malfunction.
33015         Typically, a configure-time function-in-library test is performed
33016         via code like this:
33017
33018           LIB_VAR=
33019           AC_SUBST([LIB_VAR])
33020           prefix_saved_LIBS=$LIBS
33021             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33022                        [test "$ac_cv_search_FUNC" = "none required" ||
33023                         LIB_VAR=$ac_cv_search_FUNC])
33024           LIBS=$prefix_saved_LIBS
33025
33026         However, in each of the files affected by this change, the LIB_VAR=
33027         initialization was omitted.  Thus, when set in the environment, its
33028         value would propagate into generated Makefiles when FUNC is not found
33029         in LIB_NAME.
33030         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33031         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33033
33034 2009-10-14  Eric Blake  <ebb9@byu.net>
33035
33036         fchdir: avoid infinite recursion in mingw
33037         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33038         recursing.
33039
33040         test-stat-time: port to mingw
33041         * tests/test-stat-time.c (force_unlink): Return a value.
33042         (test_ctime) [W32]: Fix compilation error.
33043         (nap): Don't call usleep with too large an argument.  Use
33044         force_unlink.
33045         * doc/pastposix-functions/usleep.texi (usleep): Document the
33046         portability issue.
33047
33048 2009-10-13  Jim Meyering  <meyering@redhat.com>
33049
33050         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33051         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33052         * modules/pipe-filter-ii: Likewise.
33053         * modules/sys_socket-tests: Likewise.
33054         * modules/tsearch-tests: Likewise.
33055         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33056         (check): Depend on it.
33057
33058 2009-10-12  Eric Blake  <ebb9@byu.net>
33059
33060         utimens-tests: port to NFS file systems
33061         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33062         comparisons to avoid spurious failures from timestamp drift
33063         between NFS machines.
33064
33065 2009-10-12  Eric Blake  <ebb9@byu.net>
33066
33067         stat-time-tests: minor cleanups
33068         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33069         * tests/test-stat-time.c (nap): Separate assignment from call.
33070         Suggested by Paolo Bonzini and Bruno Haible.
33071
33072         sys_stat: guarantee struct timespec
33073         * lib/sys_stat.in.h (includes): Always include <time.h>
33074         * modules/sys_stat (Depends-on): Add time.
33075         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33076         mode_t permission values.
33077         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33078         get at subsecond timestamps.
33079
33080 2009-10-10  Eric Blake  <ebb9@byu.net>
33081
33082         futimens: new module
33083         * modules/futimens: New file.
33084         * lib/futimens.c (futimens): Likewise.
33085         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33086         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33087         we can work around Linux bugs.
33088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33089         * modules/sys_stat (Makefile.am): Substitute them.
33090         * lib/sys_stat.in.h (futimens): Declare it.
33091         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33092         * doc/posix-functions/futimens.texi (futimens): Likewise.
33093         * modules/futimens-tests: New test.
33094         * tests/test-futimens.c: Likewise.
33095
33096         utimens: introduce fdutimens
33097         * lib/utimens.h (fdutimens): New prototype.
33098         * lib/utimens.c (gl_futimens): Move guts...
33099         (fdutimens): ...to new interface.
33100         * tests/test-utimens.c (do_fdutimens): Use it.
33101
33102         utimens: add UTIME_NOW and UTIME_OMIT support
33103         * lib/utimens.c (validate_timespec, update_timespec): New helper
33104         functions.
33105         (gl_futimens, lutimens): Use them.
33106         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33107         stdbool, sys_stat.
33108         (Link): Mention resulting library dependency.
33109         * modules/utimecmp (Link): Likewise.
33110         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33111         (Makefile.am): Pick up library dependency.
33112         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33113         definition.
33114         * tests/test-sys_stat.c: Test the definitions.
33115         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33116         * NEWS: Document library dependency.
33117
33118         utimecmp: support symlink timestamps
33119         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33120         hashing when possible.  Use pathconf when available.
33121         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33122         * modules/utimecmp (Depends-on): Add lstat.
33123
33124         utimens: add lutimens interface
33125         * lib/utimens.c (lutimens): New function.
33126         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33127         * lib/utimens.h (lutimens): Declare new interface.
33128         * tests/test-utimens.c (main): Enhance test.
33129         * tests/test-lutimens.h (test_lutimens): New file.
33130         * modules/utimens-tests (Files): Distribute it.
33131         (Depends-on): Add symlink.
33132         (configure.ac): Check for usleep.
33133
33134         utimens: validate futimens usage
33135         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33136         fewer syscalls on failure later on.  Avoid compiler warning on
33137         mingw.
33138         * modules/utimens (Depends-on): Add dup2.
33139
33140         utimens: add test
33141         * modules/utimens-tests: New test.
33142         * tests/test-utimens.h: New file.
33143         * tests/test-futimens.h: Likewise.
33144         * tests/test-utimens.c: Likewise.
33145
33146         doc: mention timestamp portability issues
33147         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33148         instead.
33149         * doc/posix-functions/utime.texi (utime): Likewise.
33150         * doc/posix-functions/utimes.texi (utimes): Likewise.
33151         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33152         instead.
33153         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33154         module.
33155         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33156         Mention weakness with symlink timestamps.
33157         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33158         to utimensat/futimens instead.
33159         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33160
33161         test-dup2: enhance test
33162         * tests/test-dup2.c (main): Also check AT_FDCWD.
33163
33164         test-stat-time: avoid more spurious failures
33165         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33166         xfs; and avoid race if the two timestamps cross quantization edge.
33167
33168         relocatable: prefer 'file system' over 'filesystem'
33169         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33170         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33171         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33172         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33173         * lib/relocatable.c (compute_curr_prefix): Likewise.
33174
33175 2009-10-10  Jim Meyering  <meyering@redhat.com>
33176
33177         stat-time-tests: check for the usleep function
33178         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33179
33180 2009-10-10  Bruno Haible  <bruno@clisp.org>
33181
33182         * modules/xnanosleep: Put the Link section after the Include section.
33183
33184 2009-10-09  Eric Blake  <ebb9@byu.net>
33185
33186         dup2: work around FreeBSD 6.1 bug
33187         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33188         * doc/posix-functions/dup2.texi (dup2): Document it.
33189         Reported by Nelson H. F. Beebe and Jim Meyering.
33190
33191         test-stat-time: port to buggy NFS clients
33192         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33193         (test_ctime): Also skip test if mtime and ctime are skewed.
33194
33195         maint: prefer 'file system' over 'filesystem'
33196         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33197         * doc/posix-functions/lstat.texi (lstat): Likewise.
33198         * lib/file-has-acl.c (file_has_acl): Likewise.
33199         * lib/fwriteerror.c [TEST]: Likewise.
33200         * tests/test-areadlink.h (test_areadlink): Likewise.
33201         * tests/test-areadlinkat-with-size.c (main): Likewise.
33202         * tests/test-areadlinkat.c (main): Likewise.
33203         * tests/test-canonicalize-lgpl.c (main): Likewise.
33204         * tests/test-canonicalize.c (main): Likewise.
33205         * tests/test-fstatat.c (main): Likewise.
33206         * tests/test-linkat.c (main): Likewise.
33207         * tests/test-lstat.h (test_lstat_func): Likewise.
33208         * tests/test-mkdir.h (test_mkdir): Likewise.
33209         * tests/test-readlink.h (test_readlink): Likewise.
33210         * tests/test-remove.c (main): Likewise.
33211         * tests/test-rename.h (test_rename): Likewise.
33212         * tests/test-renameat.c (main): Likewise.
33213         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33214         * tests/test-symlink.h (test_symlink): Likewise.
33215         * tests/test-symlinkat.c (main): Likewise.
33216         * tests/test-unlink.h (test_unlink_func): Likewise.
33217         * tests/test-unlinkat.c (main): Likewise.
33218
33219         maint: make realtime library usage explicit
33220         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33221         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33222         * modules/settime (Link): Likewise.
33223         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33224
33225         test-stat-time: speed up execution
33226         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33227         warning on mingw.
33228         (nap): New helper function.
33229         (prepare_test): Use it to reduce sleep time.
33230         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33231         execution.
33232         * modules/stat-time-tests (configure.ac): Check for usleep.
33233
33234 2009-10-09  Jim Meyering  <meyering@redhat.com>
33235
33236         selinux-h: always use getfilecon wrappers
33237         * lib/getfilecon.c: New file.
33238         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33239         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33240         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33241         (fgetfilecon): Provide a stub.
33242         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33243         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33244         file unconditionally.
33245         When <selinux/selinux.h> is found, arrange to use wrappers.
33246         * modules/selinux-h (Files): Add getfilecon.c.
33247         (Makefile.am): Substitute include-next-related bits
33248         into the now-always-generated selinux/selinux.h file.
33249         * doc/glibc-functions/lgetfilecon.texi: New file.
33250         * doc/glibc-functions/fgetfilecon.texi: New file.
33251         * doc/glibc-functions/getfilecon.texi: New file.
33252         * doc/glibc-functions/getfilecon-desc.texi: New file.
33253         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33254         which to pull in the new files.
33255         * MODULES.html.sh (Misc): Add selinux-h.
33256
33257 2009-10-08  Jim Meyering  <meyering@redhat.com>
33258
33259         unistd: fix comment typo
33260         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33261
33262 2009-10-08  Eric Blake  <ebb9@byu.net>
33263
33264         areadlink: use SIZE_MAX consistently
33265         * modules/areadlink (Depends-on): Add stdint.
33266         * modules/areadlink-with-size (Depends-on): Likewise.
33267         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33268         gives NULL; drop sys/types, since unistd gives size_t; and add
33269         stdint for SIZE_MAX.
33270         (SIZE_MAX): Rely on headers.
33271         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33272         and add stdint.
33273         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33274         (SIZE_MAX): Likewise.
33275         (INITIAL_BUF_SIZE): Turn into enum.
33276         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33277
33278 2009-10-08  Jim Meyering  <meyering@redhat.com>
33279
33280         areadlinkat: avoid compilation failure
33281         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33282         Fix typo in comment.
33283
33284 2009-10-07  Eric Blake  <ebb9@byu.net>
33285
33286         areadlinkat-with-size: new module
33287         * modules/areadlinkat-with-size: New module.
33288         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33289         * lib/areadlink.h (areadlinkat): Declare it.
33290         * MODULES.html.sh (File system functions): Mention it.
33291         * modules/areadlinkat-with-size-tests: New test.
33292         * tests/test-areadlinkat-with-size.c: New file.
33293
33294         xreadlinkat: new module
33295         * modules/xreadlinkat: New module.
33296         * lib/xreadlinkat.c (xreadlinkat): New file.
33297         * lib/xreadlink.h (xreadlinkat): Declare it.
33298         * MODULES.html.sh (File system functions): Mention it.
33299
33300         areadlinkat: new module
33301         * lib/at-func.c (FUNC_FAIL): New define.
33302         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33303         * modules/areadlinkat: New module.
33304         * lib/linkat.c (areadlinkat): Move...
33305         * lib/areadlinkat.c (areadlinkat): ...to new file.
33306         * lib/areadlink.h (areadlinkat): Declare it.
33307         * modules/linkat (Depends-on): Add areadlinkat.
33308         * MODULES.html.sh (File system functions): Mention it.
33309         * modules/areadlinkat-tests: New test.
33310         * tests/test-areadlinkat.c: New file.
33311
33312         areadlink, areadlink-with-size: add tests
33313         * modules/areadlink-tests: New test.
33314         * modules/areadlink-with-size-tests: Likewise.
33315         * tests/test-areadlink.h: New file.
33316         * tests/test-areadlink.c: Likewise.
33317         * tests/test-areadlink-with-size.c: Likewise.
33318
33319         maint: minor cleanups
33320         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33321         _UNUSED_PARAMETER_ instead.
33322         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33323         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33324         * modules/linkat-tests (Files): Distribute test-link.h.
33325
33326         openat, utimens: whitespace cleanup
33327         * lib/openat.c: Prefer space throughout, rather than mix of 8
33328         spaces vs. tabs.
33329         * lib/at-func.c: Likewise.
33330         * lib/utimens.c: Likewise.
33331
33332         openat: avoid using wrong fd
33333         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33334         working directory chooses same fd.
33335         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33336
33337         mkdir, mkdirat: fix cygwin 1.5.x bug
33338         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33339         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33340         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33341         bug.
33342         (gl_PREREQ_MKDIR): Delete unused macro.
33343         * modules/mkdir (Files): Track file rename.
33344         (configure.ac): Update macro name.
33345         * modules/openat (Depends-on): Add mkdir.
33346         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33347
33348         mkdir, mkdirat: add tests
33349         * modules/mkdir-tests: New test.
33350         * tests/test-mkdir.h: New file.
33351         * tests/test-mkdir.c: Likewise.
33352         * tests/test-mkdirat.c: Likewise.
33353         * modules/openat-tests (Files): Add new files.
33354         (Makefile.am): Run new test.
33355
33356 2009-10-06  Eric Blake  <ebb9@byu.net>
33357
33358         doc: tweak *at function documentation
33359         * doc/posix-functions/faccessat.texi (faccessat): Mention
33360         known issue with replacement.
33361         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33362         * doc/posix-functions/linkat.texi (linkat): Likewise.
33363         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33364         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33365         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33366         * doc/posix-functions/renameat.texi (renameat): Likewise.
33367         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33368
33369         openat: fix GNU/Hurd bug in unlinkat
33370         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33371         broken.
33372         * doc/posix-functions/unlink.texi (unlink): Document this.
33373         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33374
33375         fdopendir: fix GNU/Hurd bug
33376         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33377         allowing non-directory fds.
33378         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33379         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33380         * modules/dirent (Makefile.am): Substitute it.
33381         * lib/dirent.in.h (fdopendir): Declare replacement.
33382         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33383         * tests/test-fdopendir.c (main): Test something other than
33384         /dev/null, since on Hurd that behaves like a directory.
33385
33386         test-symlink: port to GNU/Hurd
33387         * tests/test-symlink.h (test_symlink): Relax expected errno.
33388
33389         doc: tweak more cygwin information
33390         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33391         now compatible with glibc.
33392         * doc/posix-functions/getopt.texi (getopt): Likewise.
33393
33394         getopt-gnu: add another test
33395         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33396         guarantee behavior relied on by m4.
33397         * tests/test-getopt.c (main): Use it.
33398         * modules/getopt-posix-tests (Depends-on): Add setenv.
33399         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33400
33401         getopt: fix compilation on darwin
33402         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33403         include.
33404         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33405         Reported by Ludovic Courtès.
33406
33407 2009-10-06  Bruno Haible  <bruno@clisp.org>
33408
33409         * modules/size_max (Description): Discourage its use.
33410         Reported by Simon Josefsson.
33411
33412 2009-10-06  Jim Meyering  <meyering@redhat.com>
33413
33414         linkat: avoid compilation failure
33415         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33416
33417 2009-10-05  Eric Blake  <ebb9@byu.net>
33418
33419         linkat: support Linux 2.6.17
33420         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33421         linkat on Linux, but allow cache variable override.
33422         * lib/linkat.c (rpl_linkat): Define override.
33423         * modules/linkat (Depends-on): Add symlinkat.
33424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33425         * modules/unistd (Makefile.am): Substitute it.
33426         * lib/unistd.in.h (linkat): Declare replacement.
33427         Reported by Pádraig Brady.
33428
33429         quotearg: port test to systems with C.UTF-8 locale
33430         * tests/test-quotearg.c (struct result_strings): Add another
33431         member, differentiating between C.ASCII and C.UTF-8 handling.
33432         (compare_strings): Add parameter.
33433         (main): Adjust all callers.
33434
33435         getopt: avoid clash with FreeBSD _getopt_internal
33436         * lib/getopt.in.h (_getopt_internal): Override the name.
33437         * lib/getopt_int.h (includes): Pick up any overrides.
33438         Reported by Reuben Thomas.
33439
33440         hash: allow C89 compilation
33441         * lib/hash.c (check_tuning): Move declaration before statement.
33442         Reported by Reuben Thomas.
33443
33444 2009-10-05  Karl Berry  <karl@gnu.org>
33445
33446         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33447
33448 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33449             Bruno Haible  <bruno@clisp.org>
33450
33451         * lib/uname.c (uname): Use a table-driven algorithm to compute
33452         Windows NT versions.
33453
33454 2009-10-04  Bruno Haible  <bruno@clisp.org>
33455
33456         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33457         program_invocation_short_name.
33458         * modules/progname (configure.ac): Test for presence of
33459         program_invocation_short_name.
33460         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33461
33462 2009-10-04  Bruno Haible  <bruno@clisp.org>
33463
33464         * lib/progname.c (set_program_name): Fix comment.
33465         Reported by Jim Meyering.
33466
33467 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33468             Bruno Haible  <bruno@clisp.org>
33469
33470         * lib/uname.c: Include <string.h>.
33471         (uname): Do only one call to GetVersionEx in the common case.
33472
33473 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33474             Bruno Haible  <bruno@clisp.org>
33475
33476         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33477         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33478         (uname): Add support for Windows CE and various non-x86 CPU types.
33479
33480 2009-10-03  Bruno Haible  <bruno@clisp.org>
33481
33482         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33483         invocation to tests/configure.ac.
33484         Reported by Ian Beckwith <ianb@erislabs.net>.
33485
33486 2009-10-02  Eric Blake  <ebb9@byu.net>
33487
33488         fchdir: avoid compiler warning
33489         * lib/fchdir.c (canonicalize_file_name)
33490         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33491
33492         test-open: support mingw errno values
33493         * tests/test-open.h (test_open): Relax test.
33494         * tests/test-fopen.h (test_fopen): Likewise.
33495         * tests/test-openat-safer.c (main): Likewise.
33496
33497         open: fix opening directory on mingw
33498         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33499
33500         test-open: on GNU/Hurd, /dev/null is a directory
33501         * tests/test-fopen.h (main): Rename...
33502         (test_fopen): ...to this.  Use a guaranteed non-directory when
33503         confirming open behavior on trailing slash.
33504         * tests/test-openat-safer.c (main): Likewise.
33505         * tests/test-open.h (main): Likewise....
33506         (test_open): ...to this.
33507         * tests/test-fopen.c (main): Adjust caller.
33508         * tests/test-fopen-safer.c (main): Likewise.
33509         * tests/test-open.c (main): Likewise.
33510         * tests/test-fcntl-safer.c (main): Likewise.
33511         Reported by Samuel Thibault.
33512
33513         rename, fchdir: don't ignore chdir failure
33514         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33515         * lib/rename.c (rpl_rename) [W32]: Likewise.
33516         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33517         an empty destination directory if source cannot be renamed,
33518         although there is still possibility for failure.
33519         * doc/posix-functions/rename.texi (rename): Document the race.
33520         Reported by Jim Meyering.
33521
33522         maint: cleanup whitespace in recent commits
33523         * lib/rename.c (rpl_rename): Remove tabs.
33524         * tests/test-link.h (test_link): Likewise.
33525         * lib/fchdir.c (get_name): Likewise.
33526         Reported by Jim Meyering.
33527
33528 2009-10-02  Ben Pfaff  <blp@gnu.org>
33529
33530         relocatable-prog-wrapper: Add missing dependency on
33531         double-slash-root.
33532         * modules/relocatable-prog-wrapper: Add dependency.
33533         Reported by Ian Beckwith <ianb@erislabs.net>.
33534
33535 2009-10-02  Eric Blake  <ebb9@byu.net>
33536
33537         renameat: fix Solaris bugs
33538         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33539         needed fixing.
33540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33541         * modules/stdio (Makefile.am): Substitute it.
33542         * lib/stdio.in.h (renameat): Declare replacement.
33543         * lib/renameat.c (rpl_renameat): Implement fix.
33544
33545         renameat: new module
33546         * modules/renameat: New file.
33547         * lib/renameat.c (renameat): Likewise.
33548         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33550         * modules/stdio (Makefile.am): Substitute them.
33551         * lib/stdio.in.h (renameat): Declare it.
33552         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33553         * doc/posix-functions/renameat.texi (renameat): Likewise.
33554         * modules/renameat-tests: New test.
33555         * tests/test-renameat.c: Likewise.
33556
33557         rename: fix mingw bugs
33558         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33559         directory overwrite bugs.
33560
33561         rename: fix another cygwin 1.5 bug
33562         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33563         checks.
33564         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33565         unnecessary cygwin workarounds.  Also work around bug with moving
33566         full directory onto an empty one.
33567         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33568
33569         rename-dest-slash: merge into rename module
33570         * modules/rename-dest-slash (Status): Mark obsolete.
33571         (Depends-on): Add rename.
33572         (Files): Let rename do it all.
33573         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33574         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33575         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33576         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33577         * lib/rename.c (rpl_rename): Update comments.
33578
33579         rename: fix cygwin 1.5.x bugs
33580         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33581         * lib/rename.c (rpl_rename): Work around them.
33582         * modules/rename (Depends-on): Add same-inode.
33583
33584         rename: fix Solaris 10 bug
33585         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33586         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33587         was the only bug.
33588
33589         rename: fix Solaris 9 bug
33590         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33591         on non-directory.  Avoid calling exit.
33592         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33593         strdup.
33594         * modules/rename-tests (Depends-on): Drop lstat.
33595         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33596         (gl_PREREQ_RENAME): Delete unused macro.
33597
33598         rename-dest-slash: fix NetBSD bug
33599         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33600         links.
33601         * modules/rename-dest-slash (Depends-on): Add same-inode.
33602
33603         rename-tests: new test, exposes several platform bugs
33604         * modules/rename-tests: New file.
33605         * tests/test-rename.h: Likewise.
33606         * tests/test-rename.c: Likewise.
33607         * doc/posix-functions/rename.texi (rename): Improve documentation,
33608         including bugs that will eventually be fixed in gnulib.
33609
33610 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33611
33612         * lib/uname.c: Include <stdlib.h>
33613         (uname): Assume version info is available.
33614
33615 2009-10-02  Jim Meyering  <meyering@redhat.com>
33616
33617         gnu-web-doc-update: correct --help output
33618         * build-aux/gnu-web-doc-update: Make --help output relevant.
33619
33620         gnu-web-doc-update: add standard options
33621         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33622
33623         gnu-web-doc-update: New module.
33624         Use this script to automatically update the on-line web documentation
33625         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33626         * modules/gnu-web-doc-update: New file, from coreutils.
33627         * build-aux/gnu-web-doc-update: New script.
33628
33629 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33630
33631         link: LoadLibrary is not needed.
33632         * lib/link.c: Use GetModuleHandle.
33633
33634 2009-10-01  Eric Blake  <ebb9@byu.net>
33635
33636         getopt: bump serial number
33637         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33638         change.
33639
33640         tests: tighten link, rmdir, and remove tests
33641         * tests/test-link.h (includes): No need to use <config.h> here.
33642         Clean up if directory hard link was created, otherwise test for
33643         trailing '.'.
33644         * tests/test-linkat.c (main): Simplify.
33645         * tests/test-remove.c (main): Enhance test for trailing '.'.
33646         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33647
33648 2009-10-01  Jim Meyering  <meyering@redhat.com>
33649
33650         maint.mk: requiring "make major" was annoying, for a "minor" release.
33651         What is intended is "stable", to contrast with alpha and beta,
33652         so require "make stable", not "make major".
33653         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33654         (get_tool_versions): Likewise.
33655         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33656
33657 2009-09-30  Ben Pfaff  <blp@gnu.org>
33658
33659         Fix broken build of replacement for Windows tmpfile().
33660         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33661         flags argument added along with the 'mkostemp' module.
33662
33663 2009-09-28  Bruno Haible  <bruno@clisp.org>
33664
33665         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33666         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33667         to 'remove_elt'.
33668         (gl_list_remove): Update.
33669         * lib/gl_list.c (gl_list_remove): Update.
33670         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33671         to 'remove_elt'.
33672         (gl_oset_remove): Update.
33673         * lib/gl_list.c (gl_oset_remove): Update.
33674         Reported by Eric Blake.
33675
33676 2009-09-28  Eric Blake  <ebb9@byu.net>
33677
33678         doc: mention yet more cygwin 1.7 status
33679         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33680         cygwin.
33681         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33682         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33683
33684         argp: fix test failure
33685         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33686         that are not upper-case.  Pass correct range to tolower.
33687
33688 2009-09-27  Jim Meyering  <meyering@redhat.com>
33689
33690         test-yesno: work around sparc-dash here-document infelicity
33691         Without this change, the literal \177 byte in a here document
33692         would make dash 0.5.5.1-3 access uninitialized memory.
33693         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33694         Instead, use a marker, "@", and filter through tr to create the desired
33695         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33696
33697 2009-09-27  Bruno Haible  <bruno@clisp.org>
33698
33699         Disable untested support for new flavours of ACLs on AIX.
33700         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33701         progress.
33702         * lib/set-mode-acl.c (qset_acl): Likewise.
33703
33704 2008-12-07  Bruno Haible  <bruno@clisp.org>
33705
33706         Add support for new flavours of ACLs on AIX. (Untested.)
33707         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33708         (file_has_acl): Add support for newer AIX.
33709         * lib/set-mode-acl.c (qset_acl): Likewise.
33710         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33711         Rainer Tammer <tammer@tammer.net>.
33712
33713 2009-09-26  Eric Blake  <ebb9@byu.net>
33714
33715         argp: fix compilation of getopt
33716         * lib/getopt.in.h (includes): Use different guard than glibc.
33717         Reported by Sergey Poznyakoff.
33718
33719         doc: mention more cygwin 1.7 status
33720         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33721         bug.
33722         * doc/posix-functions/execl.texi (execl): Likewise.
33723         * doc/posix-functions/execle.texi (execle): Likewise.
33724         * doc/posix-functions/execlp.texi (execlp): Likewise.
33725         * doc/posix-functions/execv.texi (execv): Likewise.
33726         * doc/posix-functions/execve.texi (execve): Likewise.
33727         * doc/posix-functions/execvp.texi (execvp): Likewise.
33728         * doc/glibc-functions/canonicalize_file_name.texi
33729         (canonicalize_file_name): Cygwin 1.7 now provides this.
33730         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33731         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33732         on AT_SYMLINK_NOFOLLOW.
33733
33734 2009-09-24  Eric Blake  <ebb9@byu.net>
33735
33736         test-linkat: make test more robust
33737         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33738
33739         getopt: fix inclusion guards for cygwin
33740         * modules/getopt-posix (Depends-on): Add include-next.
33741         (Makefile.am): Substitute more items in replacement header.
33742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33743         <getopt.h>.
33744         * lib/getopt.in.h (includes): Use split inclusion guard, and
33745         prefer <getopt.h> over include <unistd.h> when one is present.
33746         (option): Also override name of 'struct option'.
33747
33748         same-inode: revert prior change; it is not yet ready
33749         * NEWS: Undo mention of this change.
33750         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33751         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33752         * lib/cycle-check.c (cycle_check): Likewise.
33753         * lib/same.c (same_name): Likewise.
33754         * lib/at-func2.c (at_func2): Likewise.
33755
33756 2009-09-23  Eric Blake  <ebb9@byu.net>
33757
33758         linkat: new module
33759         * modules/linkat: New file.
33760         * lib/at-func2.c (at_func2): Likewise.
33761         * lib/linkat.c (linkat): Likewise.
33762         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33763         * lib/openat-priv.h (at_func2): Add declaration.
33764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33765         * modules/unistd (Makefile.am): Substitute them.
33766         * lib/unistd.in.h (linkat): Declare it.
33767         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33768         * doc/posix-functions/linkat.texi (linkat): Likewise.
33769         * doc/posix-functions/link.texi (link): Tweak wording.
33770         * tests/test-link.c (main): Move guts...
33771         * tests/test-link.h (test_link): ...into new file.
33772         * modules/linkat-tests: New test.
33773         * tests/test-linkat.c: Likewise.
33774         * modules/link-tests (Files): Ship new file.
33775         (Depends-on): Add stdbool.
33776
33777         dirname: add library-safe mdir_name
33778         * lib/dirname.h (mdir_name): New prototype.
33779         * lib/dirname.c (dir_name): Move guts...
33780         (mdir_name): ...to new function that avoids xalloc_die.
33781
33782         fchdir: another mingw fix
33783         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33784         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33785         on mingw (where it has not yet been ported), and make it optional
33786         elsewhere.
33787         (_gl_register_fd): Use it.
33788
33789         same-inode: make SAME_INODE tri-state, to port to mingw
33790         * NEWS: Mention this change.
33791         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33792         st_ino always being 0.
33793         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33794         * lib/cycle-check.c (cycle_check): Likewise.
33795         * lib/same.c (same_name): Likewise.
33796
33797         lstat: avoid mingw compilation error
33798         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33799         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33800         lstat ourselves.
33801         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33802         was adequate.
33803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33804         the checks for lstat.
33805         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33806
33807         link: fix test failure on Solaris 9
33808         * lib/link.c (rpl_link): Don't assume link will catch bogus
33809         trailing slash on source.
33810
33811         test-symlinkat: enhance test
33812         * tests/test-readlink.c (main): Move guts...
33813         * tests/test-readlink.h (test_readlink): ...into new file.
33814         * tests/test-symlink.c (main): Move guts...
33815         * tests/test-symlink.h (test_symlink): ...into new file.
33816         * tests/test-symlinkat.c (main): Use new files for further
33817         coverage.
33818         (do_symlink, do_readlink): New helper functions.
33819         * modules/symlink-tests (Files): Ship new file.
33820         (Depends-on): Add stdbool.
33821         * modules/readlink-tests (Files): Ship new file.
33822         (Depends-on): Add stdbool.
33823         * modules/symlinkat-tests (Files): Use new files.
33824
33825 2009-09-23  Eric Blake  <ebb9@byu.net>
33826
33827         readlink: document portability issue with symlink length
33828         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33829         systems have bogus st_size on symlinks, and mention the
33830         areadlink-with-size module.
33831         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33832         * doc/posix-functions/readlink.texi (readlink): Mention the
33833         areadlink module, and ERANGE failure.
33834         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33835         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33836
33837         readlink: fix Solaris 9 bug with trailing slash
33838         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33839         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33840         * doc/posix-functions/readlink.texi (readlink): Document this.
33841         * modules/readlink-tests: New test.
33842         * tests/test-readlink.c: Likewise.
33843
33844         readlink: fix cygwin 1.5.x bug with return type
33845         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33846         * lib/unistd.in.h (readlink): Use ssize_t.
33847         * lib/readlink.c (readlink): Likewise.
33848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33849         * modules/unistd (Makefile.am): Substitute it.
33850         * lib/unistd.in.h (readlink): Declare replacement.
33851         * doc/posix-functions/readlink.texi (readlink): Document this.
33852
33853         symlink: use throughout gnulib
33854         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33855         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33856         symlink is not used.
33857         * modules/symlinkat (Depends-on): Add symlink.
33858         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33859         * modules/canonicalize-tests (Depends-on): Likewise.
33860         * modules/lstat-tests (Depends-on): Likewise.
33861         * modules/openat-tests (Depends-on): Likewise.
33862         * modules/remove-tests (Depends-on): Likewise.
33863         * modules/rmdir-tests (Depends-on): Likewise.
33864         * modules/unlink-tests (Depends-on): Likewise.
33865         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33866         * tests/test-canonicalize.c (symlink): Likewise.
33867         * tests/test-fstatat.c (symlink): Likewise.
33868         * tests/test-lstat.c (symlink): Likewise.
33869         * tests/test-remove.c (symlink): Likewise.
33870         * tests/test-rmdir.c (symlink): Likewise.
33871         * tests/test-unlink.c (symlink): Likewise.
33872         * tests/test-unlinkat.c (symlink): Likewise.
33873
33874         symlink: new module, for Solaris 9 bug
33875         * modules/symlink: New file.
33876         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33877         * lib/symlink.c: Likewise.
33878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33879         * modules/unistd (Makefile.am): Substitute them.
33880         * lib/unistd.in.h (symlink): Declare replacement.
33881         * MODULES.html.sh (File system functions): Mention it.
33882         * doc/posix-functions/symlink.texi (symlink): Likewise.
33883         * modules/symlink-tests: New test.
33884         * tests/test-symlink.c: Likewise.
33885
33886 2009-09-23  Bruno Haible  <bruno@clisp.org>
33887
33888         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33889         when needed.
33890         Test case: gnulib-tool --import --with-tests atexit inttypes.
33891         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33892
33893 2009-09-23  Bruno Haible  <bruno@clisp.org>
33894
33895         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33896         subcommand, not in a subshell.
33897
33898 2009-09-22  Eric Blake  <ebb9@byu.net>
33899
33900         unistd: sort replacement declarations
33901         * lib/unistd.in.h: Sort declarations.
33902
33903         open, openat: minor optimization
33904         * lib/open.c (open): If open succeeded, len is non-zero.
33905         * lib/openat.c (rpl_openat): Likewise.
33906
33907         link-follow: ensure correct result
33908         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33909         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33910         distinguish between possible failures.
33911
33912 2009-09-21  Eric Blake  <ebb9@byu.net>
33913
33914         fts: avoid compiler warning
33915         * lib/fts.c (dirent_inode_sort_may_be_useful)
33916         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33917
33918 2009-09-19  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/progreloc.c (canonicalize_file_name): New declaration.
33921
33922 2009-09-19  Eric Blake  <ebb9@byu.net>
33923
33924         link: fix quoting
33925         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33926
33927         openat: fix openat bugs on Solaris 9
33928         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33929         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33930         * modules/openat (Depends-on): Add open.
33931         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33932         * modules/fcntl-h (Makefile.am): Substitute it.
33933         * lib/fcntl.in.h (openat): Declare replacement.
33934         * doc/posix-functions/openat.texi (openat): Document this.
33935
33936         openat: move fstatat and unlinkat into correct files
33937         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33938         compiled.
33939         * lib/openat.c (fstatat, unlinkat): Move...
33940         * lib/fstatat.c (fstatat): ...into correct files.
33941         * lib/unlinkat.c (unlinkat): Likewise.
33942
33943         openat: fix unlinkat bugs on Solaris 9
33944         * lib/unlinkat.c (unlinkat): New file.
33945         * modules/openat (Depends-on): Add unlink.
33946         (Files): Distribute it.
33947         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33948         trailing slash behavior is broken.
33949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33950         * modules/unistd (Makefile.am): Substitute it.
33951         * lib/unistd.in.h (unlinkat): Declare replacement.
33952         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33953
33954         openat: fix fstatat bugs on Solaris 9
33955         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33956         stat.
33957         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33958
33959         test-unlinkat: enhance test, to expose Solaris 9 bug
33960         * tests/test-unlink.c (main): Factor guts...
33961         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33962         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33963         * tests/test-rmdir.c (main): Adjust caller.
33964         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33965         (unlinker): New helper function.
33966         (rmdirat): Enhance check.
33967         * modules/rmdir-tests (Depends-on): Add stdbool.
33968         * modules/unlink-tests (Depends-on): Likewise.
33969         (Files): Add test-unlink.h.
33970         * modules/openat-tests (Files): Likewise.
33971         (Depends-on): Add unlinkdir.
33972
33973         test-fstatat: new test, to expose Solaris 9 bugs
33974         * tests/test-stat.c (main): Factor guts...
33975         * tests/test-stat.h (test_stat_func): ...into new file.
33976         * tests/test-lstat.c (main): Factor guts...
33977         * tests/test-lstat.h (test_lstat_func): ...into new file.
33978         * tests/test-fstatat.c: New file.
33979         * modules/stat-tests (Files): Add test-stat.h.
33980         * modules/lstat-tests (Files): Add test-lstat.h.
33981         (Depends-on): Add stdbool.
33982         * modules/openat-tests (Depends-on): Add pathmax.
33983         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33984         (Makefile.am): Run new test.
33985
33986         remove: new module, for mingw and Solaris 9 bugs
33987         * modules/remove: New file.
33988         * lib/remove.c: Likewise.
33989         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33991         * modules/stdio (Makefile.am): Use them.
33992         * lib/stdio.in.h (remove): Declare replacement.
33993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33994         * doc/posix-functions/remove.texi (remove): Likewise.
33995         * modules/remove-tests: New test.
33996         * tests/test-remove.c: Likewise.
33997
33998         unlink: new module, for Solaris 9 bug
33999         * modules/unlink: New file.
34000         * lib/unlink.c: Likewise.
34001         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34003         * modules/unistd (Makefile.am): Use them.
34004         * lib/unistd.in.h (stat): Declare replacement.
34005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34006         * doc/posix-functions/unlink.texi (unlink): Likewise.
34007         * modules/unlink-tests: New test.
34008         * tests/test-unlink.c: Likewise.
34009
34010         lstat: fix Solaris 9 bug
34011         * lib/lstat.c (lstat): Also check for trailing slash on
34012         non-symlink, non-directories.  Use stat module to simplify logic.
34013         * doc/posix-functions/lstat.texi (lstat): Document it.
34014         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34015         (configure.ac): Check for symlink.
34016         * tests/test-lstat.c (main): Add more tests.
34017
34018         stat: add as dependency to other modules
34019         * modules/chown (Depends-on): Add stat.
34020         * modules/euidaccess (Depends-on): Likewise.
34021         * modules/fchdir (Depends-on): Likewise.
34022         * modules/isdir (Depends-on): Likewise.
34023         * modules/link (Depends-on): Likewise.
34024         * modules/lstat (Depends-on): Likewise.
34025         * modules/mkdir-p (Depends-on): Likewise.
34026         * modules/modechange (Depends-on): Likewise.
34027         * modules/open (Depends-on): Likewise.
34028         * modules/readlink (Depends-on): Likewise.
34029         * modules/same (Depends-on): Likewise.
34030
34031         stat: fix Solaris 9 bug
34032         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34033         slash.
34034         * lib/stat.c (rpl_stat): Work around it.
34035         * doc/posix-functions/stat.texi (stat): Update documentation.
34036
34037         stat: new module, for mingw bug
34038         * modules/stat: New file.
34039         * lib/stat.c: Likewise.
34040         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34042         * modules/sys_stat (Makefile.am): Use them.
34043         * lib/sys_stat.in.h (stat): Declare replacement.
34044         * lib/openat.c (fstatat): Deal with lstat and stat being function
34045         macros.
34046         * modules/openat (Depends-on): Add inline.
34047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34048         * doc/posix-functions/stat.texi (stat): Likewise.
34049         * modules/stat-tests: New test.
34050         * tests/test-stat.c: Likewise.
34051
34052 2009-09-19  Jim Meyering  <meyering@redhat.com>
34053
34054         syntax-check: detect unnecessary inclusion of canonicalize.h
34055         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34056
34057 2009-09-19  Eric Blake  <ebb9@byu.net>
34058
34059         canonicalize-lgpl: adjust clients to use correct header
34060         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34061         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34062         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34063         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34064         * lib/progreloc.c (includes): Likewise.
34065
34066 2009-09-19  Jim Meyering  <meyering@redhat.com>
34067
34068         test-posixtm.c: correct a comment
34069         * tests/test-posixtm.c: Correct first-line comment.
34070         Spotted by Eric Blake.
34071
34072 2009-09-16  Jim Meyering  <meyering@redhat.com>
34073
34074         posixtm-tests: make T const-correct; add a test case
34075         * tests/test-posixtm.c (T): Declare const.
34076         Add a test for -(2^31+1).
34077         Remove useless can-succeed-only-in-2002 test.
34078
34079         posixtm-tests: adjust the sole failing test
34080         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34081         expected output matches what mktime now produces.  Cross-checked via
34082         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34083
34084         posixtm: move #ifdef'd tests into a new module
34085         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34086         * tests/test-posixtm.c: ... this new file.
34087         * modules/posixtm-tests: New module.
34088
34089 2009-09-19  Eric Blake  <ebb9@byu.net>
34090
34091         openat: simplify use of at-func.c
34092         * lib/at-func.c (includes): Include prerequisites here, to
34093         simplify requirements on client files.
34094         * lib/openat-priv.h: Add double-inclusion guard.
34095         * lib/faccessat.c (includes): Simplify.
34096         * lib/fchmodat.c (includes): Likewise.
34097         * lib/fchownat.c (includes): Likewise.
34098         * lib/mkdirat.c (includes): Likewise.
34099         * lib/mkfifoat.c (includes): Likewise.
34100         * lib/symlinkat.c (includes): Likewise.
34101
34102         openat: allow return of fd 0
34103         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34104         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34105         unistd-safer.
34106         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34107         <fcntl.h>; this module does not leak fds.
34108         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34109         must be allowed to return 0, leaving openat_safer to add the
34110         safety.
34111         (openat_permissive): Avoid writing to just-opened fd 2 if
34112         restoring the current directory fails.
34113         * lib/openat-die.c (openat_restore_fail): Add comment.
34114         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34115         (save_cwd): Guarantee safe fd, but without use of open_safer.
34116         * tests/test-openat.c: New test.
34117         * modules/openat-tests (Files, Makefile.am): Distribute and build
34118         new file.
34119
34120         relocatable-prog-wrapper: fix build
34121         * modules/relocatable-prog-wrapper (Files): Update name of
34122         canonicalize m4 file, broken on 2009-09-17.
34123         Reported by emad hajjar <aleppos@hotmail.com>.
34124
34125 2009-09-19  Bruno Haible  <bruno@clisp.org>
34126
34127         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34128         * lib/safe-alloc.c: Likewise.
34129         Reported by Ian Beckwith <ianb@erislabs.net>.
34130
34131 2009-09-18  Bruno Haible  <bruno@clisp.org>
34132
34133         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34134         Reported by <erobles@sensacd.com.mx>.
34135
34136 2009-09-17  Eric Blake  <ebb9@byu.net>
34137
34138         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34139         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34140         slashes when checking if last component is missing.
34141         * tests/test-canonicalize.c (main): Test this.
34142
34143         canonicalize, canonicalize-lgpl: honor // if distinct from /
34144         * modules/canonicalize (Files): Add double-slash-root.m4.
34145         * modules/canonicalize-lgpl (Files): Likewise.
34146         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34147         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34148         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34149         fallback definition.
34150         (canonicalize_filename_mode): Use it to protect //.
34151         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34152         (__realpath): Likewise.
34153         * tests/test-canonicalize.c (main): Test this.
34154         * tests/test-canonicalize-lgpl.c (main): Likewise.
34155         * modules/canonicalize-tests (Depends-on): Add same-inode.
34156         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34157
34158         canonicalize-lgpl: fix glibc bug with trailing slash
34159         * m4/canonicalize-lgpl.m4: Move contents...
34160         * m4/canonicalize.m4: ...here.
34161         (gl_CANONICALIZE_LGPL): Factor realpath check...
34162         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34163         glibc 2.3.5 bug, fixed 2005-04-27.
34164         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34165         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34166         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34167         * modules/canonicalize-lgpl (Files): Manage file rename.
34168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34169         * modules/stdlib (Makefile.am): Substitute witness.
34170         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34171         is needed.
34172         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34173         replacement is required.
34174         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34175         * doc/glibc-functions/canonicalize_file_name.texi
34176         (canonicalize_file_name): Document this.
34177         * doc/posix-functions/realpath.texi (realpath): Likewise.
34178
34179         canonicalize-lgpl: reject non-directory with trailing slash
34180         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34181         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34182         catches failures in glibc 2.3.5.
34183         * tests/test-canonicalize.c (main): Likewise.
34184
34185         canonicalize-lgpl: use native realpath if it works
34186         * lib/canonicalize-lgpl.c (realpath): Guard with
34187         FUNC_REALPATH_WORKS.
34188         * lib/stdlib.in.h (realpath): Make declaration optional based on
34189         HAVE_REALPATH.
34190         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34191         native realpath works.
34192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34193         * modules/stdlib (Makefile.am): Substitute witness.
34194
34195         canonicalize, canonicalize-lgpl: use <stdlib.h>
34196         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34197         (Include): Mention <stdlib.h>.
34198         (configure.ac): Mention functions we provide.
34199         * modules/canonicalize (configure.ac): Likewise.
34200         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34201         realpath if canonicalize_file_name is missing.
34202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34203         * modules/stdlib (Makefile.am): Substitute witnesses.
34204         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34205         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34206         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34207         * NEWS: Document this.
34208         * doc/glibc-functions/canonicalize_file_name.texi
34209         (canonicalize_file_name): Likewise.
34210         * doc/posix-functions/realpath.texi (realpath): Likewise.
34211         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34212
34213         test-canonicalize: consolidate into single C program
34214         * tests/test-canonicalize.sh: Delete; move setup into...
34215         * tests/test-canonicalize.c (main): ...the program, making it
34216         easier to run in debugger.  Add some tests.
34217         * modules/canonicalize-tests (Files): Remove unused file.
34218         (Depends-on): Add progname.
34219         (configure.ac, Makefile.am): Simplify.
34220
34221         test-canonicalize-lgpl: consolidate into single C program
34222         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34223         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34224         easier to run in debugger.  Add some tests.
34225         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34226         (configure.ac, Makefile.am): Simplify.
34227
34228         canonicalize: avoid resolvepath
34229         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34230         unnecessary checks.
34231         * lib/canonicalize.c (includes): Simplify.
34232         (canonicalize_file_name): Drop resolvepath implementation.
34233         * modules/canonicalize (Depends-on): Drop filenamecat.
34234
34235         canonicalize: don't lose errno
34236         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34237         over calls to free.
34238
34239         canonicalize: simplify errno handling
34240         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34241         assignment.
34242
34243         canonicalize, canonicalize-lgpl: update module dependencies
34244         * modules/canonicalize (Depends-on): Add extensions, lstat,
34245         pathmax, stdlib.
34246         (Files): Drop pathmax.h.
34247         (configure.ac): Adjust macro name.
34248         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34249         lstat, stdlib, sys_stat.
34250         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34251         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34252         extensions.
34253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34254         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34255         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34256         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34257         declaration, if available.
34258         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34259         we can rely on the readlink module.
34260         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34261         (includes): Use <unistd.h> unconditionally.
34262
34263 2009-09-17  Eric Blake  <ebb9@byu.net>
34264
34265         maint: make Include sections of modules consistent
34266         * modules/alloca: Use only header name; no need to list #include.
34267         * modules/alloca-opt: Likewise.
34268         * modules/arpa_inet: Likewise.
34269         * modules/canon-host: Likewise.
34270         * modules/configmake: Likewise.
34271         * modules/dirent: Likewise.
34272         * modules/eealloc: Likewise.
34273         * modules/environ: Likewise.
34274         * modules/fchdir: Likewise.
34275         * modules/fcntl: Likewise.
34276         * modules/fcntl-h: Likewise.
34277         * modules/gethrxtime: Likewise.
34278         * modules/gettime: Likewise.
34279         * modules/ignore-value: Likewise.
34280         * modules/inet_ntop: Likewise.
34281         * modules/inet_pton: Likewise.
34282         * modules/inttypes: Likewise.
34283         * modules/isnand-nolibm: Likewise.
34284         * modules/isnanf-nolibm: Likewise.
34285         * modules/mbchar: Likewise.
34286         * modules/mbfile: Likewise.
34287         * modules/mbiter: Likewise.
34288         * modules/mbuiter: Likewise.
34289         * modules/netdb: Likewise.
34290         * modules/netinet_in: Likewise.
34291         * modules/nproc: Likewise.
34292         * modules/pagealign_alloc: Likewise.
34293         * modules/poll: Likewise.
34294         * modules/printf-frexp: Likewise.
34295         * modules/pthread: Likewise.
34296         * modules/putenv: Likewise.
34297         * modules/random_r: Likewise.
34298         * modules/relocatable-prog: Likewise.
34299         * modules/search: Likewise.
34300         * modules/select: Likewise.
34301         * modules/selinux-h: Likewise.
34302         * modules/settime: Likewise.
34303         * modules/signal: Likewise.
34304         * modules/size_max: Likewise.
34305         * modules/socklen: Likewise.
34306         * modules/ssize_t: Likewise.
34307         * modules/stdarg: Likewise.
34308         * modules/stdbool: Likewise.
34309         * modules/stddef: Likewise.
34310         * modules/stdint: Likewise.
34311         * modules/stdio: Likewise.
34312         * modules/stdlib: Likewise.
34313         * modules/string: Likewise.
34314         * modules/strings: Likewise.
34315         * modules/sys_file: Likewise.
34316         * modules/sys_ioctl: Likewise.
34317         * modules/sys_select: Likewise.
34318         * modules/sys_socket: Likewise.
34319         * modules/sys_stat: Likewise.
34320         * modules/sys_time: Likewise.
34321         * modules/sys_times: Likewise.
34322         * modules/sys_utsname: Likewise.
34323         * modules/sys_wait: Likewise.
34324         * modules/sysexits: Likewise.
34325         * modules/time: Likewise.
34326         * modules/times: Likewise.
34327         * modules/tmpfile: Likewise.
34328         * modules/trim: Likewise.
34329         * modules/unistd: Likewise.
34330         * modules/wchar: Likewise.
34331         * modules/wctype: Likewise.
34332
34333 2009-09-17  Bruno Haible  <bruno@clisp.org>
34334
34335         Make getdate.y compile on QNX and NetBSD 5 / i386.
34336         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34337         TIME_T_FITS_IN_LONG_INT.
34338         * lib/getdate.y (long_time_t): New type.
34339         (relative_time): Change type of 'seconds' field to long_time_t.
34340         (get_date): Update types of local variables. Check against overflow
34341         during conversion from long_time_t to time_t.
34342         Reported by Matt Kraai <kraai@ftbfs.org>
34343         and Hasso Tepper <hasso@netbsd.org>.
34344
34345 2009-09-17  Bruno Haible  <bruno@clisp.org>
34346
34347         * modules/COPYING: Update copyright years.
34348         * modules/README: Likeiwse.
34349         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34350         Reported by Ian Beckwith <ianb@erislabs.net>.
34351
34352 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34353
34354         * users.txt: Update references for gnuit package.
34355
34356 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34357
34358         * m4/getdelim.m4: Fix typo in copyright line.
34359
34360 2009-09-17  Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/atoll.c: Use the standard header with GPL copyright.
34363         * lib/argz.in.h: Likewise.
34364         * lib/glob.c: Likewise.
34365         * lib/glob-libc.h: Likewise.
34366         * lib/random_r.c: Likewise.
34367         * lib/siglist.h: Likewise.
34368         * lib/strsignal.c: Likewise.
34369         Reported by Ian Beckwith <ianb@erislabs.net>.
34370
34371 2009-09-17  Eric Blake  <ebb9@byu.net>
34372
34373         rmdir: ensure correct dependency order
34374         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34375
34376 2009-09-17  Bruno Haible  <bruno@clisp.org>
34377
34378         Disable assertion that fails on NetBSD 5 / i386.
34379         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34380         Reported by Sam Steingold <sds@gnu.org>
34381         and Hasso Tepper <hasso@netbsd.org>.
34382
34383 2009-09-16  Eric Blake  <ebb9@byu.net>
34384
34385         unlinkdir: port to mingw
34386         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34387         on which no one can unlink a directory.
34388
34389         stdlib: sort witness names
34390         * modules/stdlib (Makefile.am): Sort replacements.
34391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34392         * lib/stdlib.in.h: Likewise.
34393
34394         parse-duration-tests: avoid link failure
34395         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34396         LIBINTL.
34397         Reported by Tom G. Christensen.
34398
34399         openat-tests: ensure unlinkat behaves like rmdir
34400         * tests/test-rmdir.c (main): Factor guts...
34401         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34402         * modules/rmdir-tests (Files): Ship new file.
34403         * modules/openat-tests: New test.
34404         * tests/test-unlinkat.c: Likewise.
34405
34406         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34407         * modules/rmdir-errno (Status, Notice): Now obsolete.
34408
34409         rmdir: work around cygwin 1.5.x and mingw bugs
34410         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34411         * lib/rmdir.c (rmdir): Work around it.
34412         * modules/rmdir (Status, Notice): No longer obsolete.
34413         (Files): Add dos.m4.
34414         (Depends-on): Add unistd.
34415         (configure.ac): Set witnesses.
34416         (License): Relax to LGPLv2+.
34417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34418         * modules/unistd (Makefile.am): Substitute witnesses.
34419         * lib/unistd.in.h (rmdir): Declare replacement.
34420         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34421         * modules/rmdir-tests: New tests.
34422         * tests/test-rmdir.c: Likewise.
34423
34424 2009-09-15  Eric Blake  <ebb9@byu.net>
34425
34426         fchdir: improve use of replacement functions
34427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34428         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34430         REPLACE_CLOSEDIR.
34431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34432         * modules/sys_stat (Makefile.am): Substitute correct witness.
34433         * modules/dirent (Makefile.am): Likewise.
34434         * modules/unistd (Makefile.am): Likewise.
34435         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34436         * lib/unistd.in.h (dup): Likewise.
34437         * lib/sys_stat.in.h (fstat): Likewise.
34438
34439         maint: ignore gnulib-tool temp files
34440         * .gitignore: Ignore files created during gnulib-tool --test.
34441
34442 2009-09-13  Jim Meyering  <meyering@redhat.com>
34443
34444         posixtm: don't reject a time that specify "60" as the number of seconds
34445         * lib/posixtm.c (posixtime): The code to reject invalid dates
34446         would also reject a time specified with the .60 suffix.
34447         But POSIX allows that, in order to accommodate leap seconds.
34448         So don't reject it.
34449         (main): Adjust tests accordingly.
34450         * modules/posixtm (Depends-on): Add stpcpy.
34451
34452 2009-09-11  Jim Meyering  <meyering@redhat.com>
34453
34454         announce-gen: include [$release_type] in emitted Subject:
34455         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34456         e.g., [stable] in the emitted Subject: line.
34457
34458 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34459
34460         Remove obsolete macros from several modules.
34461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34462         obsolete Autoconf macros with their modern counterparts.
34463         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34464         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34465         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34466         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34467         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34468         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34470         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34471         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34472         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34473         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34475         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34476         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34477         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34478         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34479         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34480         * m4/time_r.m4 (gl_TIME_R): Likewise.
34481         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34482         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34483         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34484
34485         Fix copyright header in build-aux scripts.
34486         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34487         recommendation.
34488         * build-aux/ncftpput-ftp: Likewise.
34489         * build-aux/update-copyright: Likewise.
34490
34491 2009-09-09  Eric Blake  <ebb9@byu.net>
34492
34493         test-link: allow Linux choice of errno
34494         * tests/test-link.c (main): Relax test for alternate error.
34495
34496         strndup: fix improper m4 caching
34497         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34498         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34499         (gl_PREREQ_STRNDUP): Delete.
34500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34501         * modules/string (Makefile.am): Substitute it.
34502         * lib/string.in.h (strndup): Modernize prototype.
34503
34504         getcwd: port to mingw
34505         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34506         different from the POSIX assumptions made throughout the getcwd
34507         module; fortunately, the mingw getcwd does not need replacement.
34508         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34509         * modules/getcwd-tests: New test.
34510         * tests/test-getcwd.c: Likewise.
34511
34512         link: fix platform bugs
34513         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34514         * lib/link.c (link): Work around them.  Fix related mingw bug.
34515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34516         * modules/unistd (Makefile.am): Substitute it.
34517         * lib/unistd.in.h (link): Declare replacement.
34518         * doc/posix-functions/link.texi (link): Document this.
34519         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34520
34521         test-link: consolidate into single C program, test more cases
34522         * tests/test-link.sh: Delete.
34523         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34524         at least Cygwin and Solaris.
34525         * modules/link-tests (Files): Remove unused file.
34526         (Depends-on): Add errno, sys_stat.
34527         (Makefile.am): Simplify.
34528
34529 2009-09-08  Bruno Haible  <bruno@clisp.org>
34530
34531         Work around towlower, towupper bug on mingw.
34532         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34533         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34534         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34535         * doc/posix-functions/towupper.texi: Likewise.
34536         Reported by Eric Blake.
34537
34538 2009-09-08  Jim Meyering  <meyering@redhat.com>
34539
34540         build: don't try to run autoheader if we don't use it
34541         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34542         is not used in configure.ac.
34543
34544 2009-09-08  Eric Blake  <ebb9@byu.net>
34545
34546         euidaccess: fix compilation error
34547         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34548
34549         rawmemchr: relax license
34550         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34551         okay.
34552         Reported by Jim Meyering.
34553
34554         mkfifoat: new module
34555         * modules/mkfifoat: New file.
34556         * lib/mkfifoat.c: Likewise.
34557         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34559         * modules/sys_stat (Makefile.am): Use them.
34560         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34561         * MODULES.html.sh (File system functions): Mention module.
34562         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34563         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34564         * modules/mkfifoat-tests: New test.
34565         * tests/test-mkfifoat.c: Likewise.
34566
34567         strchrnul: relax license
34568         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34569         okay.
34570         Reported by Jim Meyering.
34571
34572 2009-09-08  Eric Blake  <ebb9@byu.net>
34573
34574         fstatat: fix compilation on Solaris
34575         * lib/fstatat.c (includes): Add fcntl.h.
34576         Reported by Pádraig Brady.
34577
34578 2009-09-07  Eric Blake  <ebb9@byu.net>
34579
34580         rename: modernize replacement
34581         * modules/rename (Depends-on): Add stdio.
34582         (configure.ac): Declare witness.
34583         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34584         stdio take care of replacement.
34585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34586         * modules/stdio (Makefile.am): Substitute them.
34587         * lib/stdio.in.h (rename): Declare replacement.
34588         * lib/rename.c (includes): Allow cross-compilation to non-windows
34589         machines.
34590         * doc/posix-functions/rename.texi (rename): Improve
34591         documentation.
34592
34593         stdio: sort witness names
34594         * modules/stdio (Makefile.am): Sort replacements.
34595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34596         * lib/stdio.in.h: Likewise.
34597
34598         getcwd: minor cleanups
34599         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34600         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34601
34602         openat: provide more convenience names
34603         * modules/faccessat (configure.ac): Add C witness.
34604         * lib/unistd.in.h (readlinkat): Fix typo.
34605         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34606         convenience wrappers.
34607         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34608         wrappers in syntax checks.
34609
34610 2009-09-06  Eric Blake  <ebb9@byu.net>
34611
34612         doc: fix comments in recent patches
34613         * lib/faccessat.c: Mention correct function.
34614         * lib/fchmodat.c: Likewise.
34615         * lib/fchownat.c: Likewise.
34616         * lib/symlinkat.c: Likewise.
34617         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34618         constants.
34619
34620         faccessat, symlinkat: continue cleanup of previous patch
34621         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34622         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34623         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34625         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34626         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34627         set.
34628
34629 2009-09-06  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34632         (fstatat): Declare if GNULIB_FSTATAT is set.
34633         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34634         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34635         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34636         * modules/fcntl-h (Files): Remove m4/openat.m4.
34637         * modules/sys_stat (Files): Remove m4/openat.m4.
34638         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34639         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34640         * modules/unistd (Files): Remove m4/openat.m4.
34641         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34642         GNULIB_OPENAT.
34643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34644         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34646         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34647         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34648         gl_OPENAT_DEFAULTS.
34649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34650         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34651         Don't require gl_OPENAT_DEFAULTS.
34652         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34653         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34654         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34655         (gl_OPENAT_DEFAULTS): Remove macro.
34656
34657 2009-09-06  Bruno Haible  <bruno@clisp.org>
34658
34659         * modules/openat (configure.ac): Remove unneeded witness.
34660
34661 2009-09-06  Bruno Haible  <bruno@clisp.org>
34662
34663         Set errno to ENOSYS when a function is entirely unsupported.
34664         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34665         EOPNOTSUPP.
34666         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34667         * modules/chown (Depends-on): Remove errno.
34668
34669 2009-09-06  Bruno Haible  <bruno@clisp.org>
34670
34671         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34672
34673 2009-09-06  Bruno Haible  <bruno@clisp.org>
34674
34675         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34676
34677 2009-09-06  Ben Pfaff  <blp@gnu.org>
34678             Bruno Haible  <bruno@clisp.org>
34679
34680         Work around a glibc bug in strtok_r.
34681         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34682         Undefine if UNDEFINE_STRTOK_R is set.
34683         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34685         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34686         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34687         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34688         UNDEFINE_STRTOK_R.
34689         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34690
34691 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34692
34693         exclude: minor fix
34694         * lib/exclude.c: Include wctype.h
34695
34696 2009-09-06  Akim Demaille  <demaille@gostai.com>
34697
34698         bootstrap: improve error message
34699         * build-aux/bootstrap (find_tool): Upon failure, report the list
34700         of candidates.
34701         Honor the initial value of the envvar.
34702
34703 2009-09-05  Eric Blake  <ebb9@byu.net>
34704
34705         symlinkat: new module
34706         * modules/symlinkat: New file.
34707         * lib/symlinkat.c: Likewise.
34708         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34710         * modules/unistd (Makefile.am): Use them.
34711         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34712         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34713         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34714         * MODULES.html.sh (File system functions): Mention module.
34715         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34716         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34717         * modules/symlinkat-tests: New test.
34718         * tests/test-symlinkat.c: Likewise.
34719
34720         test-openat-safer: add more checks
34721         * tests/test-openat-safer.c (main): Check more code paths.
34722
34723 2009-09-05  Jim Meyering  <meyering@redhat.com>
34724
34725         syntax-check: detect unnecessary inclusion of openat.h
34726         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34727
34728 2009-09-05  Bruno Haible  <bruno@clisp.org>
34729
34730         Support towlower, towupper.
34731         * doc/posix-functions/towlower.texi: Mention module wctype.
34732         * doc/posix-functions/towupper.texi: Likewise.
34733         * lib/wctype.in.h (towlower, towupper): New functions.
34734         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34735         (ASSERT): New macro.
34736         (e): New variable.
34737         (main): Test also towlower, towupper. Test WEOF argument.
34738         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34739
34740 2009-09-05  Bruno Haible  <bruno@clisp.org>
34741
34742         Fix conversion behaviour when the input is invalid.
34743         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34744         mark occurring in first pass of indirect conversion.
34745         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34746         input.
34747         Found by clang's static analyzer.
34748
34749 2009-09-05  Bruno Haible  <bruno@clisp.org>
34750
34751         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34752         where direct conversion is possible.
34753
34754 2009-09-04  Eric Blake  <ebb9@byu.net>
34755
34756         openat: fail with ENOENT on empty name
34757         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34758         buffer.
34759
34760         link-follow: fix logic bug in prior patch
34761         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34762         reversed sense of yes and no in prior patch.  Avoid confusing
34763         compilation failure with desired semantics.
34764
34765         link-follow: accomodate mingw and cross-compilation
34766         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34767         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34768         cross-compilation results to -1, to make linkat easier to
34769         implement when cross-compiling.  Trivially support mingw.
34770         * modules/link-follow (configure.ac): Call new name.
34771         * NEWS: Mention this.
34772
34773 2009-09-03  Eric Blake  <ebb9@byu.net>
34774
34775         faccessat: compile replacement
34776         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34777         needed.
34778
34779         fts: fix compilation error
34780         * lib/fts.c (includes): Re-add "openat.h", for
34781         openat_needs_fchdir.
34782
34783         faccessat: new module
34784         * modules/faccessat: New file.
34785         * lib/faccessat.c: Likewise.
34786         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34788         * modules/unistd (Makefile.am): Use it.
34789         * lib/unistd.in.h (faccessat): Declare it.
34790         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34791         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34792         * MODULES.html.sh (File system functions): Mention it.
34793         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34794         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34795
34796         euidaccess: prefer POSIX over non-standard implementation
34797         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34798         * lib/euidaccess.c (euidaccess): Use it if available.
34799
34800         openat: make template easier to use
34801         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34802         AT_FUNC_F2 to be undefined.
34803         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34804         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34805         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34806         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34807         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34808         Likewise.
34809         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34810         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34811         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34812         Likewise.
34813
34814         openat: declare in POSIX headers
34815         * NEWS: Mention this.
34816         * modules/openat (configure.ac): Declare witnesses.
34817         (Depends-on): Add fcntl-h, sys_stat, unistd.
34818         (Include): Mention correct headers.
34819         * modules/fcntl-h (Depends-on): Add link-warning.
34820         (Files): Add openat.m4.
34821         (Makefile.am): Substitute witnesses.
34822         * modules/sys_stat (Files, Makefile.am): Likewise.
34823         * modules/unistd (Files, Makefile.am): Likewise.
34824         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34825         (gl_OPENAT_DEFAULTS): New macro.
34826         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34829         (SYS_STAT_H): Remove unused variable.
34830         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34831         * lib/fcntl--.h (includes): Remove unneeded header.
34832         * lib/openat-safer.c (includes): Likewise.
34833         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34834         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34835         appropriate headers.
34836         (__OPENAT_PREFIX): Delete.
34837         * lib/fcntl.in.h (openat): Provide declaration.
34838         (AT_FDCWD): Fix Solaris bug.
34839         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34840         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34841         * lib/fchmodat.c (includes):  Adjust to find declaration.
34842         * lib/fchownat.c (includes): Likewise.
34843         * lib/mkdirat.c (includes): Likewise.
34844         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34845         still visible.
34846
34847 2009-09-02  Eric Blake  <ebb9@byu.net>
34848
34849         errno: use consistently
34850         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34851         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34852         * lib/canonicalize.c (ELOOP): Likewise.
34853         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34854         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34855         * lib/lchown.c (EOPNOTSUPP): Likewise.
34856         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34857         * lib/savewd.c (ESTALE): Likewise.
34858         * lib/settime.c (ENOSYS): Likewise.
34859         * lib/utimens.c (ENOSYS): Likewise.
34860         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34861         * lib/chdir-safer.c (ELOOP): Likewise.
34862         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34863         * modules/c-stack (Depends-on): Add errno.
34864         * modules/canonicalize (Depends-on): Likewise.
34865         * modules/chdir-safer (Depends-on): Likewise.
34866         * modules/fdopendir (Depends-on): Likewise.
34867         * modules/inet_ntop (Depends-on): Likewise.
34868         * modules/inet_pton (Depends-on): Likewise.
34869         * modules/lchown (Depends-on): Likewise.
34870         * modules/openat (Depends-on): Likewise.
34871         * modules/savewd (Depends-on): Likewise.
34872         * modules/settime (Depends-on): Likewise.
34873         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34874
34875         fts: avoid leaking fds
34876         * modules/fts (Depends-on): Add cloexec.
34877         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34878         flag.
34879
34880         fts: make directory fds more robust
34881         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34882         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34883
34884         backupfile, chdir-long, fts, savedir: make safer
34885         * lib/backupfile.c (includes): Use "dirent--.h", since
34886         numbered_backup can write to stderr during readdir.
34887         * lib/savedir.c (includes): Likewise.
34888         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34889         emulation can write to stderr on failure.
34890         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34891         * lib/getcwd.c: Document why opendir_safer is unused.
34892         * lib/glob.c: Likewise.
34893         * lib/scandir.c: Likewise.
34894         * lib/openat-proc.c: Likewise, for open_safer.
34895         * modules/backupfile (Depends-on): Add dirent-safer.
34896         * modules/savedir (Depends-on): Likewise.
34897         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34898         * modules/chdir-long (Depends-on): Add openat-safer.
34899
34900         openat-safer: new module
34901         * modules/openat-safer: New file.
34902         * lib/openat-safer.c: Likewise.
34903         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34904         * lib/fcntl-safer.h (openat_safer): Declare.
34905         * lib/fcntl--.h (openat): Override.
34906         * MODULES.html.sh (File descriptor based I/O): Mention it.
34907         * lib/openat.h: Add double-inclusion guards.
34908         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34909         "fcntl--.h", so we can implement openat.
34910         * modules/openat-safer-tests: New test.
34911         * tests/test-openat-safer.c: New file.
34912
34913         dirent-safer: new module
34914         * modules/dirent-safer: New file.
34915         * lib/dirent--.h: Likewise.
34916         * lib/dirent-safer.h: Likewise.
34917         * lib/opendir-safer.c: Likewise.
34918         * m4/dirent-safer.m4: Likewise.
34919         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34920         * modules/dirent-safer-tests: New test.
34921         * tests/test-dirent-safer.c: New file.
34922         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34923
34924         fdopendir: optimize on mingw
34925         * lib/unistd.in.h (_gl_directory_name): New prototype.
34926         * lib/fchdir.c (_gl_directory_name): Implement it.
34927         (fchdir): Use it to simplify implementation.
34928         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34929         fchdir, when available, to avoid calling [f]chdir().
34930
34931         fdopendir: split into its own module
34932         * lib/openat.c (fdopendir): Move...
34933         * lib/fdopendir.c: ...into new file.
34934         * modules/fdopendir: New module.
34935         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34936         * modules/openat (Depends-on): Add fdopendir.
34937         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34938         fdopendir here.
34939         * modules/savedir (Depends-on): Only need fdopendir, not full
34940         openat.
34941         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34942         * lib/openat.h (fdopendir): Drop prototype.
34943         * lib/dirent.in.h (fdopendir): Provide prototype.
34944         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34945         * modules/dirent (Makefile.am): Substitute them.
34946         * MODULES.html.sh (File system functions): Mention it.
34947         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34948         * modules/fdopendir-tests: New file.
34949         * tests/test-fdopendir.c: Likewise.
34950
34951         fchdir: use more consistent macro convention
34952         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34953         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34954         REPLACE_FCHDIR, rather than relying on config.h macros.
34955         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34956         inside a single make-time REPLACE_FCHDIR block, rather than using
34957         the config.h FCHDIR_REPLACEMENT.
34958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34959         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34960         Manage fstat replacement.
34961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34962         REPLACE_FCHDIR.
34963         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34964         (Makefile.am): Substitute REPLACE_FCHDIR.
34965         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34966         FCHDIR_REPLACEMENT.
34967         * lib/dup-safer.c (dup_safer): Likewise.
34968         * lib/dup2.c (rpl_dup2): Likewise.
34969         * lib/dup3.c (rpl_dup3): Likewise.
34970         * lib/open.c (rpl_open): Likewise.
34971
34972         fchdir: simplify error handling, and support dup3
34973         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34974         stdbool, malloc-posix, realloc-posix.
34975         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34976         (ensure_dirs_slot): Return false on allocation failure.
34977         (rpl_dup2): Delete.
34978         (_gl_register_dup): New function.
34979         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34980         (_gl_register_fd): Close fd on allocation failure.
34981         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34982         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34983         prototype.
34984         (rpl_dup2_fchdir): Delete prototype.
34985         * lib/open.c (open): Update caller.
34986         * lib/dup2.c (dup2): Track fchdir metadata.
34987         * lib/dup3.c (dup3): Likewise.
34988         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34990
34991 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34992
34993         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34994         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34995         don't pass arguments to AC_OUTPUT.
34996
34997 2009-09-02  Bruno Haible  <bruno@clisp.org>
34998
34999         * modules/mkdtemp (License): Relicense under LGPLv2+.
35000         Reported by Paolo Bonzini.
35001
35002 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35003
35004         Replace uses of obsolete autoconf macros in Jim's modules.
35005         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35006         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35007         can evoke a warning from autoconf when run with -Wobsolete
35008         enabled.  They were declared obsolete for good reasons (see
35009         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35010         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35011         should not continue using the deprecated macros.
35012         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35013         obsolete Autoconf macros with modern counterparts.
35014         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35015         * m4/dos.m4 (gl_AC_DOS): Likewise.
35016         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35017         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35018         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35019         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35020         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35021         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35022         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35023         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35024         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35025         Likewise.
35026         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35027         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35028         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35029         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35030         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35031         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35032
35033 2009-09-01  Eric Blake  <ebb9@byu.net>
35034
35035         fchdir: fix off-by-one bug in previous patch
35036         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35037         (_gl_unregister_fd): Delete useless if.
35038
35039 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35040
35041         maint.mk: sort the list of syntax-check rules
35042         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35043         easier to get a sense of progress when the rules are run sequentially
35044         and take a long time.
35045
35046 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35047
35048         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35049         * modules/netinet_in: Likewise.
35050         * modules/sys_file: Likewise.
35051         * modules/sys_ioctl: Likewise.
35052         * modules/sys_select: Likewise.
35053         * modules/sys_socket: Likewise.
35054         * modules/sys_stat: Likewise.
35055         * modules/sys_time: Likewise.
35056         * modules/sys_times: Likewise.
35057         * modules/sys_utsname: Likewise.
35058         * modules/sys_wait: Likewise.
35059
35060 2009-09-01  Jim Meyering  <meyering@redhat.com>
35061
35062         fts: help ensure that return values are not ignored
35063         * lib/fts_.h (__GNUC_PREREQ): Define.
35064         (__attribute_warn_unused_result__): Define.
35065         (fts_children, fts_close, fts_open, fts_read): Declare with
35066         __attribute_warn_unused_result__.
35067
35068         fts: fts_close now fails also when closing a dir file descriptor fails
35069         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35070         and propagate to caller, along with errno.
35071
35072         announce-gen: correct formatting in --help output
35073         * build-aux/announce-gen (usage): Move the one-line description in
35074         --help output "up", to where it belongs, just after Usage:.
35075
35076 2009-08-31  Eric Blake  <ebb9@byu.net>
35077
35078         fchdir: port to mingw
35079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35080         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35081         opened, then use a substitute.
35082         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35083         replacement.
35084         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35085         (_gl_register_fd): No need to check stat if open already filters
35086         all directories.
35087         (fchdir): Fix error condition to match POSIX.
35088         * modules/fchdir (Depends-on): Add sys_stat.
35089         * doc/posix-functions/open.texi (open): Document the limitation.
35090         * modules/fchdir-tests: New file.
35091         * tests/test-fchdir.c: Likewise.
35092
35093         canonicalize: allow cross-testing from cygwin to mingw
35094         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35095         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35096         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35097         Likewise.
35098         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35099         target does not support symlinks.
35100         * tests/test-canonicalize-lgpl.sh: Likewise.
35101
35102         chown: avoid compilation warning on mingw
35103         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35104         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35105         mingw.
35106         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35107         * modules/chown (Depends-on): Add errno.
35108
35109 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35110
35111         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35112         command.
35113
35114 2009-08-31  Jim Meyering  <meyering@redhat.com>
35115
35116         canonicalize: remove useless initialization
35117         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35118         initialization of local, "end".
35119
35120 2009-08-30  Bruno Haible  <bruno@clisp.org>
35121
35122         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35123         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35124         ENOSYS.
35125
35126 2009-08-30  Bruno Haible  <bruno@clisp.org>
35127
35128         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35129         /usr/xpg4/bin/tr when it exists.
35130         * tests/test-pipe-filter-gi1.sh: Likewise.
35131
35132 2009-08-30  Bruno Haible  <bruno@clisp.org>
35133
35134         Work around deficient /usr/bin/id program on Solaris.
35135         * tests/test-file-has-acl.sh (ID): New variable.
35136         * tests/test-set-mode-acl.sh (ID): Likewise.
35137         * tests/test-copy-acl.sh (ID): Likewise.
35138         * tests/test-copy-file.sh (ID): Likewise.
35139
35140 2009-08-30  Bruno Haible  <bruno@clisp.org>
35141
35142         New module 'xstriconveh'.
35143         * lib/xstriconveh.h: New file.
35144         * lib/xstriconveh.c: New file.
35145         * modules/xstriconveh: New file.
35146
35147 2009-08-30  Bruno Haible  <bruno@clisp.org>
35148
35149         Make it easier to use mem_cd_iconveh.
35150         * lib/striconveh.h (iconveh_t): New type.
35151         (iconveh_open, iconveh_close): New declarations.
35152         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35153         with a single 'const iconveh_t *' argument.
35154         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35155         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35156         with a single 'const iconveh_t *' argument.
35157         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35158         * tests/test-striconveh.c (main): Update.
35159         * NEWS: Mention the change.
35160
35161 2009-08-30  Bruno Haible  <bruno@clisp.org>
35162
35163         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35164         problem.
35165
35166 2009-08-30  Bruno Haible  <bruno@clisp.org>
35167
35168         Work around iconv_open problem on Solaris.
35169         * lib/iconv_open-solaris.gperf: New file.
35170         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35172         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35173         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35174         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35175         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35176
35177 2009-08-29  Jim Meyering  <meyering@redhat.com>
35178
35179         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35180         * top/maint.mk (cvs-check): Remove target; it was just an alias
35181         to the better-named vc-diff-check.
35182         (maintainer-distcheck): Remove rule.  It was used only from
35183         the (alpha/beta/major) target, and all of its commands but one
35184         were coreutils-specific.
35185         (vc-dist): Remove rule.
35186         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35187         Run vc-diff-check, not vc-dist.
35188         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35189
35190 2009-08-27  Bruno Haible  <bruno@clisp.org>
35191
35192         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35193         of 0.
35194
35195 2009-08-27  Bruno Haible  <bruno@clisp.org>
35196
35197         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35198         compilers.
35199         * doc/func.texi: Document the SunPRO C bug.
35200
35201 2009-08-27  Bruno Haible  <bruno@clisp.org>
35202
35203         Fix link error on Solaris.
35204         * tests/test-parse-duration.c (xstrdup): Remove function.
35205
35206 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35207
35208         ignore-value: handle pointer types, too
35209         * lib/ignore-value.h (__attribute__): Remove definition.
35210         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35211         of a more concise and more-often effective "(void) i" statement.
35212         (ignore_ptr): New function to suppress warnings from functions that
35213         return pointers, and to make it explicit that one function doesn't
35214         handle all cases.
35215
35216 2009-08-25  Bruno Haible  <bruno@clisp.org>
35217
35218         dup2: work around a Linux bug.
35219         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35220         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35221         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35222         Reported by Simon Josefsson.
35223
35224 2009-08-25  Jim Meyering  <meyering@redhat.com>
35225
35226         libguestfs uses gnulib
35227         * users.txt: Add libguestfs.
35228
35229 2009-08-24  Eric Blake  <ebb9@byu.net>
35230
35231         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35232         * lib/pipe2.c (includes): Add binary-io.h.
35233         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35234
35235 2009-08-24  Bruno Haible  <bruno@clisp.org>
35236
35237         Tolerate declared but missing accept4 syscall.
35238         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35239         available.
35240         * lib/sys_socket.in.h (accept4): If the function is already present,
35241         override it.
35242         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35243         * modules/accept4 (Makefile.am): Compile accept4.c always.
35244         Reported by Paolo Bonzini and Eric Blake.
35245
35246 2009-08-23  Bruno Haible  <bruno@clisp.org>
35247
35248         New module 'accept4'.
35249         * lib/sys_socket.in.h (accept4): New declaration.
35250         * lib/accept4.c: New file.
35251         * m4/accept4.m4: New file.
35252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35253         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35254         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35255         HAVE_ACCEPT4.
35256         * modules/accept4: New file.
35257         * doc/glibc-functions/accept4.texi: Mention the new module.
35258
35259 2009-08-24  Jim Meyering  <meyering@redhat.com>
35260
35261         progname: also set global program_invocation_name, when possible
35262         Before this change, a libtool-enabled program that calls glibc's
35263         error function would report the program name as
35264         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35265         * modules/progname (configure.ac): Check for a declaration of
35266         program_invocation_name.
35267         * lib/progname.c:  Include <errno.h>.
35268         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35269         Set program_invocation_name.
35270
35271 2009-08-23  Bruno Haible  <bruno@clisp.org>
35272
35273         * lib/dup3.c: Include <string.h>.
35274
35275 2009-08-23  Bruno Haible  <bruno@clisp.org>
35276
35277         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35278         * lib/pipe2.c (pipe2): Likewise.
35279         Suggested by Eric Blake.
35280
35281 2009-08-23  Bruno Haible  <bruno@clisp.org>
35282
35283         Tolerate declared but missing dup3 syscall.
35284         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35285         * lib/unistd.in.h (dup3): If the function is already present,
35286         override it.
35287         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35288         * modules/dup3 (Makefile.am): Compile dup3.c always.
35289         Reported by Paolo Bonzini.
35290
35291 2009-08-23  Bruno Haible  <bruno@clisp.org>
35292
35293         Tolerate declared but missing pipe2 syscall.
35294         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35295         available.
35296         * lib/unistd.in.h (pipe2): If the function is already present,
35297         override it.
35298         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35299         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35300         Reported by Paolo Bonzini.
35301
35302 2009-08-23  Bruno Haible  <bruno@clisp.org>
35303
35304         * lib/pipe2.c (pipe2): Move #ifs inside function.
35305
35306 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35307
35308         quotearg: document limitations of quote_these_too
35309         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35310         those limitations are created.
35311         * lib/quotearg.h (set_char_quoting): Document that digits and
35312         letters that are special after backslash are not permitted.
35313         (quotearg_char): Cross-reference set_char_quoting documentation.
35314
35315 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35316
35317         quotearg: implement custom_quoting_style
35318         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35319         right_quote fields.
35320         (set_custom_quoting): New public function.
35321         (quotearg_buffer_restyled): Add left_quote and right_quote
35322         arguments, handle them very much like locale quoting, and update
35323         all uses.
35324         (quotearg_n_custom): New public function.
35325         (quotearg_n_custom_mem): New public function.
35326         (quotearg_custom): New public function.
35327         (quotearg_custom_mem): New public function.
35328         * lib/quotearg.h: Prototype and document new public functions.
35329         (enum quoting_style): For escape_quoting_style and
35330         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35331         ignored even though they're otherwise like c_quoting_style.
35332         Add custom_quoting_style member and document with comparison to
35333         clocale_quoting_style.
35334         * tests/test-quotearg.c (custom_quotes): New array.
35335         (custom_results): New array.
35336         (main): Extend to test custom quoting.
35337
35338 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35339
35340         quotearg: fix right quote escaping when it's in quote_these_too
35341         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35342         quote, be sure to prepend only one backslash.
35343         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35344         (main): Test it.
35345
35346 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35347
35348         quotearg-tests: test escaping of embedded locale quotes
35349         * tests/test-quotearg.c (struct result_strings): Add member for
35350         new input.
35351         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35352         (inputs): Add new input.
35353         (results_g): Add expected results.
35354         (flag_results): Likewise.
35355         (locale_results): Likewise.
35356         (compare_strings): Check those.
35357
35358 2009-08-23  Bruno Haible  <bruno@clisp.org>
35359
35360         Tests for module 'dup3'.
35361         * modules/dup3-tests: New file.
35362         * tests/test-dup3.c: New file.
35363
35364         New module 'dup3'.
35365         * lib/unistd.in.h (dup3): New declaration.
35366         * lib/dup3.c: New file.
35367         * m4/dup3.m4: New file.
35368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35369         HAVE_DUP3.
35370         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35371         * modules/dup3: New file.
35372         * doc/glibc-functions/dup3.texi: Mention the new module.
35373
35374 2009-08-23  Bruno Haible  <bruno@clisp.org>
35375
35376         Tweak the dup2 test.
35377         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35378         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35379         the test file is still empty. Fix argument order of lseek.
35380
35381 2009-08-23  Bruno Haible  <bruno@clisp.org>
35382
35383         Avoid test link errors when the modules getopt-gnu, gettext are used.
35384         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35386
35387 2009-08-23  Bruno Haible  <bruno@clisp.org>
35388
35389         Fix getdtablesize() on mingw.
35390         * lib/getdtablesize.c (getdtablesize): Implement differently.
35391         * lib/unistd.in.h (getdtablesize): Improve comment.
35392
35393 2009-08-23  Bruno Haible  <bruno@clisp.org>
35394
35395         New module 'mkostemp'.
35396         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35397         * lib/stdlib.in.h (mksotemp): New declaration.
35398         * lib/mkostemp.c: New file, from glibc with modifications.
35399         * lib/tempname.h (GT_FILE): Remove outdated comment.
35400         (gen_tempname): Add flags argument.
35401         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35402         (__GT_FILE): Map to 1.
35403         (small_open, large_open): Remove macros.
35404         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35405         * lib/mkstemp.c (mkstemp): Update.
35406         * lib/mkdtemp.c (mkdtemp): Likewise.
35407         * m4/mkostemp.m4: New file.
35408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35409         HAVE_MKOSTEMP.
35410         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35411         HAVE_MKOSTEMP.
35412         * modules/mkostemp: New file, based on modules/mkstemp.
35413         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35414         * NEWS: Mention the change.
35415
35416 2009-08-23  Bruno Haible  <bruno@clisp.org>
35417
35418         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35419         Reported by Eric Blake.
35420
35421 2009-08-23  Bruno Haible  <bruno@clisp.org>
35422
35423         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35424         Reported by Eric Blake.
35425
35426 2009-08-23  Bruno Haible  <bruno@clisp.org>
35427
35428         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35429         * modules/pipe2 (Depends-on): Likewise.
35430
35431 2009-08-23  Eric Blake  <ebb9@byu.net>
35432
35433         fcntl-h: add O_TTY_INIT support
35434         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35435         * tests/test-fcntl-h.c (o): Test it.
35436         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35437
35438         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35439         * modules/fcntl: Move <fcntl.h> header replacement...
35440         * modules/fcntl-h: ...to new name, so as not to collide with
35441         like-named function.
35442         * tests/test-fcntl.c: Rename...
35443         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35444         * modules/fcntl-tests: Rename...
35445         * modules/fcntl-h-tests: ...to this.  Update test file name.
35446         * modules/chdir-long (Depends-on): Update clients.
35447         * modules/chdir-safer (Depends-on): Likewise.
35448         * modules/fcntl-safer (Depends-on): Likewise.
35449         * modules/fts (Depends-on): Likewise.
35450         * modules/mkancesdirs (Depends-on): Likewise.
35451         * modules/mkdir-p (Depends-on): Likewise.
35452         * modules/open (Depends-on): Likewise.
35453         * modules/savewd (Depends-on): Likewise.
35454         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35455         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35456
35457 2009-08-22  Bruno Haible  <bruno@clisp.org>
35458
35459         * modules/binary-io (License): Relicense under LGPL.
35460         * modules/pipe2 (License): Likewise.
35461
35462 2009-08-22  Bruno Haible  <bruno@clisp.org>
35463
35464         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35465         return value.
35466         * lib/pipe-filter-gi.c (filter_init): Likewise.
35467         Reported by Eric Blake.
35468
35469 2009-08-22  Bruno Haible  <bruno@clisp.org>
35470
35471         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35472         * modules/pipe (Depends-on): Add pipe2.
35473
35474 2009-08-22  Bruno Haible  <bruno@clisp.org>
35475
35476         Tests for module 'pipe2'.
35477         * modules/pipe2-tests: New file.
35478         * tests/test-pipe2.c: New file.
35479
35480         New module 'pipe2'.
35481         * lib/unistd.in.h (pipe2): New declaration.
35482         * lib/pipe2.c: New file.
35483         * m4/pipe2.m4: New file.
35484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35485         HAVE_PIPE2.
35486         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35487         * modules/pipe2: New file.
35488         * doc/glibc-functions/pipe2.texi: Mention the new module.
35489
35490 2009-08-22  Bruno Haible  <bruno@clisp.org>
35491
35492         Reference some new glibc functions.
35493         * doc/glibc-functions/accept4.texi: New file.
35494         * doc/glibc-functions/dup3.texi: New file.
35495         * doc/glibc-functions/mkostemp.texi: New file.
35496         * doc/glibc-functions/pipe2.texi: New file.
35497         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35498         (Glibc sys/socket.h): Refer to accept4.
35499         (Glibc unistd.h): Refer to dup3, pipe2.
35500         Reported by Eric Blake.
35501
35502 2009-08-22  Jim Meyering  <meyering@redhat.com>
35503             Bruno Haible  <bruno@clisp.org>
35504
35505         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35506         This makes it so packages using automake-1.11's silent-rules option
35507         can print e.g., a single "GEN    configmake.h" line, rather than
35508         the 30+ statements that perform the job.  If you want to see the
35509         actual commands, you can still run "make V=1".
35510         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35511         so that make output is abbreviated when those variables are defined
35512         appropriately.
35513         * modules/argz: Likewise.
35514         * modules/arpa_inet: Likewise.
35515         * modules/byteswap: Likewise.
35516         * modules/configmake: Likewise.
35517         * modules/dirent: Likewise.
35518         * modules/errno: Likewise.
35519         * modules/fcntl: Likewise.
35520         * modules/float: Likewise.
35521         * modules/fnmatch: Likewise.
35522         * modules/getopt-posix: Likewise.
35523         * modules/glob: Likewise.
35524         * modules/iconv_open: Likewise.
35525         * modules/inttypes: Likewise.
35526         * modules/localcharset: Likewise.
35527         * modules/locale: Likewise.
35528         * modules/math: Likewise.
35529         * modules/netdb: Likewise.
35530         * modules/netinet_in: Likewise.
35531         * modules/poll: Likewise.
35532         * modules/posix_spawnp-tests: Likewise.
35533         * modules/sched: Likewise.
35534         * modules/search: Likewise.
35535         * modules/selinux-h: Likewise.
35536         * modules/signal: Likewise.
35537         * modules/spawn: Likewise.
35538         * modules/stdarg: Likewise.
35539         * modules/stdbool: Likewise.
35540         * modules/stddef: Likewise.
35541         * modules/stdint: Likewise.
35542         * modules/stdio: Likewise.
35543         * modules/stdlib: Likewise.
35544         * modules/string: Likewise.
35545         * modules/strings: Likewise.
35546         * modules/sys_file: Likewise.
35547         * modules/sys_ioctl: Likewise.
35548         * modules/sys_select: Likewise.
35549         * modules/sys_socket: Likewise.
35550         * modules/sys_stat: Likewise.
35551         * modules/sys_time: Likewise.
35552         * modules/sys_times: Likewise.
35553         * modules/sys_utsname: Likewise.
35554         * modules/sys_wait: Likewise.
35555         * modules/sysexits: Likewise.
35556         * modules/time: Likewise.
35557         * modules/unistd: Likewise.
35558         * modules/wchar: Likewise.
35559         * modules/wctype: Likewise.
35560
35561 2009-08-22  Jim Meyering  <meyering@redhat.com>
35562
35563         announce-gen: detect write failure
35564         * build-aux/announce-gen: Add Coda at end.
35565         Remove equivalent-but-more-verbose block at top.
35566
35567 2009-08-19  Akim Demaille  <demaille@gostai.com>
35568
35569         bootstrap: --help to stdout.
35570         * bootstrap (usage): Don't send --help to stderr.
35571         Use a here doc instead of a long string.
35572
35573 2009-08-21  Eric Blake  <ebb9@byu.net>
35574
35575         test-popen-safer: split from test-popen
35576         * tests/test-popen.c (main): Move...
35577         * tests/test-popen.h: ...into new file.
35578         * tests/test-popen-safer2.c: New file.
35579         * modules/popen-tests (Files): Add test-popen.h.
35580         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35581         Suggested by Bruno Haible.
35582
35583         test-fcntl-safer: split from test-open
35584         * tests/test-open.c (main): Move...
35585         * tests/test-open.h: ...into new file.
35586         * tests/test-fcntl-safer.c: New file.
35587         * modules/open-tests (Files): Add test-open.h.
35588         * modules/fcntl-safer-tests: New file.
35589         Suggested by Bruno Haible.
35590
35591         test-fopen-safer: split from test-fopen
35592         * tests/test-fopen.c (main): Move...
35593         * tests/test-fopen.h: ...into new file.
35594         * tests/test-fopen-safer.c: New file.
35595         * modules/fopen-tests (Files): Add test-fopen.h.
35596         * modules/fopen-safer-tests: New file.
35597         Suggested by Bruno Haible.
35598
35599 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35600
35601         popen-safer: test O_CLOEXEC at run-time.
35602         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35603
35604 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35605
35606         fcntl: move more flags to the header
35607         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35608         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35609         * lib/fcntl.in.h: Do both things here.
35610
35611 2009-08-21  Jim Meyering  <meyering@redhat.com>
35612
35613         consistently remove $@-t before redirecting to it
35614         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35615         * modules/alloca-opt: Likewise.
35616         * modules/byteswap: Likewise.
35617         * modules/fnmatch: Likewise.
35618         * modules/getopt-posix: Likewise.
35619         * modules/glob: Likewise.
35620         * modules/poll: Likewise.
35621         * modules/posix_spawnp-tests: Likewise.
35622         * modules/sys_socket: Likewise.
35623         * modules/sysexits: Likewise.
35624
35625 2009-08-21  Eric Blake  <ebb9@byu.net>
35626
35627         popen: simplify access to original popen
35628         * lib/popen.c (rpl_popen): No need to worry about popen being a
35629         macro.
35630         Reported by Bruno Haible.
35631
35632 2009-08-20  Eric Blake  <ebb9@byu.net>
35633
35634         build: avoid some compiler warnings
35635         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35636         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35637         type.
35638         (new_exclude_segment, excluded_file_pattern_p)
35639         (excluded_file_name_p): Reduce scope.
35640         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35641         old-style declaration.
35642
35643 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35644
35645         * tests/test-exclude1.sh: Handle Windows EOL.
35646         * tests/test-exclude2.sh: Likewise.
35647         * tests/test-exclude3.sh: Likewise.
35648         * tests/test-exclude4.sh: Likewise.
35649         * tests/test-exclude5.sh: Likewise.
35650         * tests/test-exclude6.sh: Likewise.
35651         * tests/test-exclude7.sh: Likewise.
35652
35653 2009-08-19  Akim Demaille  <demaille@gostai.com>
35654
35655         bootstrap: find sha1sum when named gsha1sum.
35656         * bootstrap (find_tool): New.
35657         ($SHA1SUM): New.
35658         Use it.
35659
35660 2009-08-20  Jim Meyering  <meyering@redhat.com>
35661
35662         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35663         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35664         expression that converts "." in a file name to "\." in the resulting
35665         regexp.  Start with a dummy statement, so that prior shell variable
35666         definitions are expanded portably.  Reported by Simon Josefsson.
35667
35668 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35669
35670         Fix polling for writeability of a screen buffer.
35671         * lib/poll.c: Distinguish input and screen buffers for the
35672         Win32 implementation.
35673         * lib/select.c: Likewise.
35674
35675 2009-08-19  Eric Blake  <ebb9@byu.net>
35676
35677         popen-safer: prevent popen from clobbering std descriptors
35678         * modules/popen-safer: New file.
35679         * lib/popen-safer.c: Likewise.
35680         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35681         * lib/stdio--.h (popen): Provide override.
35682         * lib/stdio-safer.h (popen_safer): Provide declaration.
35683         * tests/test-popen.c (includes): Partially test this.
35684         * modules/popen-safer-tests: New file, for more tests.
35685         * tests/test-popen-safer.c: Likewise.
35686         * MODULES.html.sh (file stream based Input/Output): Mention it.
35687
35688         tests: test some of the *-safer modules
35689         * modules/fopen-safer (Depends-on): Add fopen.
35690         * modules/fcntl-safer (Depends-on): Add fcntl.
35691         * modules/stdlib-safer (Depends-on): Add stdlib.
35692         (configure.ac): Set indicator.
35693         * modules/unistd-safer (configure.ac): Likewise.
35694         * modules/tmpfile-safer (configure.ac): Likewise.
35695         (Depends-on): Add tmpfile.
35696         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35697         active.
35698         * tests/test-fopen.c (includes): Test safer versions when they are
35699         in use.
35700         * tests/test-open.c (includes): Likewise.
35701
35702         popen: fix cygwin 1.5 bug when stdin closed
35703         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35704         * modules/popen: New file.
35705         * modules/popen-tests: Likewise.
35706         * tests/test-popen.c: Likewise.
35707         * m4/popen.m4: Likewise.
35708         * lib/popen.c: Likewise.
35709         * lib/stdio.in.h (popen): New declaration.
35710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35711         * modules/stdio (Makefile.am): Likewise.
35712         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35713
35714 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35715
35716         maint.mk: give full control over update-copyright exclusions
35717         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35718         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35719         (update-copyright): Don't force inclusion of top-level
35720         ChangeLog.  Don't force exclusion of all COPYING files, but make
35721         them the default exclusion instead.
35722
35723 2009-08-16  Bruno Haible  <bruno@clisp.org>
35724
35725         Fix test failures on Solaris 10.
35726         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35727         tests when Solaris iconv() is used.
35728         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35729         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35730         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35731         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35732         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35733
35734 2009-08-16  Bruno Haible  <bruno@clisp.org>
35735
35736         Fix test failures on Solaris 10.
35737         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35738         'tr' program and pass it as first argument.
35739         * tests/test-pipe-filter-gi1.sh: Likewise.
35740         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35741         program as first argument.
35742         * tests/test-pipe-filter-gi1.c (main): Likewise.
35743
35744 2009-08-16  Eric Blake  <ebb9@byu.net>
35745
35746         fpurge: fix previous commits
35747         * modules/fpurge (Makefile.am): Make replacement conditional,
35748         partially reverting 2007-04-29 change; missed in previous
35749         attempt.
35750         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35751         is missing.
35752
35753 2009-08-16  Bruno Haible  <bruno@clisp.org>
35754
35755         Clarify fpurge's effect on the file position.
35756         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35757         * tests/test-fpurge.c (main): Make a second pass for checking the file
35758         position.
35759
35760 2009-08-16  Bruno Haible  <bruno@clisp.org>
35761
35762         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35763         declaration of fpurge is missing.
35764         * tests/test-fpurge.c (main): Check that the file has not more contents
35765         than expected. Close the file before removing it.
35766
35767 2009-08-15  Eric Blake  <ebb9@byu.net>
35768
35769         fpurge: don't wrap working cygwin implementation
35770         * lib/fpurge.c (fpurge): Fix comment typo.
35771         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35772         1.7 to avoid replacement.
35773         * tests/test-fpurge.c (main): Enhance test.
35774
35775 2009-08-15  Eric Blake  <ebb9@byu.net>
35776         and Jim Meyering  <meyering@redhat.com>
35777
35778         test-update-copyright: skip if perl is insufficient
35779         * tests/test-update-copyright.sh: Failure to run maintainer tool
35780         should not cause testsuite failure on cygwin 1.5.
35781
35782 2009-08-14  Eric Blake  <ebb9@byu.net>
35783
35784         doc: mention more functions added in cygwin 1.7.0
35785         * doc/posix-headers/limits.texi (limits.h): Update for recent
35786         cygwin additions.
35787         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35788         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35789         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35790         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35791         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35792
35793 2009-08-14  Eric Blake  <ebb9@byu.net>
35794
35795         maint.mk: simplify update-copyright rule
35796         * top/maint.mk (update-copyright-local): Delete, and document how
35797         to do it in cfg.mk instead.
35798         (update-copyright-exclude-regexp): Delete, and document how to do
35799         it in .x-update-copyright instead.
35800         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35801         exclude ChangeLog.
35802
35803 2009-08-14  Bruno Haible  <bruno@clisp.org>
35804
35805         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35806
35807 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35808
35809         maint.mk: support update-copyright-env
35810         * top/maint.mk (update-copyright-env): Define place-holder.
35811         (update-copyright): Expand $(update-copyright-env) before
35812         invoking update-copyright.
35813
35814 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35815
35816         update-copyright: implement forced reformatting
35817         * build-aux/update-copyright: Implement and document
35818         UPDATE_COPYRIGHT_FORCE.
35819         * tests/test-update-copyright.sh: Test it.
35820
35821 2009-08-14  Eric Blake  <ebb9@byu.net>
35822         and Bruno Haible  <bruno@clisp.org>
35823
35824         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35825         * tests/test-locale.c: Revert previous patch related to NULL.
35826         * tests/test-stdio.c: Likewise.
35827         * tests/test-stdlib.c: Likewise.
35828         * tests/test-string.c: Likewise.
35829         * tests/test-unistd.c: Likewise.
35830         * modules/time-tests (Depends-on): Add verify.
35831         * modules/wchar-tests (Depends-on): Likewise.
35832         * tests/test-time.c: Test for NULL compliance.
35833         * tests/test-wchar.c: Likewise.
35834         * modules/locale (Depends-on): Add stddef.
35835         * modules/stdio (Depends-on): Likewise.
35836         * modules/stdlib (Depends-on): Likewise.
35837         * modules/string (Depends-on): Likewise.
35838         * modules/time (Depends-on): Likewise.
35839         * modules/unistd (Depends-on): Likewise.
35840         * modules/wchar (Depends-on): Likewise.
35841         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35842         * lib/stdlib.in.h (includes): Likewise.
35843         * lib/string.in.h (includes): Likewise.
35844         * lib/time.in.h (includes): Likewise.
35845         * lib/unistd.in.h (includes): Likewise.
35846         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35847         replaced.
35848         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35849         * m4/stddef_h.m4: New file.
35850         * modules/stddef: Likewise.
35851         * lib/stddef.in.h: Likewise.
35852         * modules/stddef-tests: Likewise.
35853         * tests/test-stddef.c: Likewise.
35854         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35855         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35856         * doc/posix-headers/locale.texi (locale.h): Likewise.
35857         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35858         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35859         * doc/posix-headers/string.texi (string.h): Likewise.
35860         * doc/posix-headers/time.texi (time.h): Likewise.
35861         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35862         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35863
35864 2009-08-14  Eric Blake  <ebb9@byu.net>
35865
35866         doc: improve git diff of texinfo files
35867         * .gitattributes: Add rule for *.texi files, with hint on how to
35868         use it.
35869         Copied from m4, and based on a report by Bruno Haible.
35870
35871 2009-08-14  Bruno Haible  <bruno@clisp.org>
35872
35873         Disable multithread support by default on Cygwin 1.5.x for real.
35874         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35875
35876 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35877
35878         update-copyright: much ado about intervals
35879         * build-aux/update-copyright: Implement and document
35880         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35881         of copyright year intervals.
35882         Also, document UPDATE_COPYRIGHT_YEAR.
35883         * tests/test-update-copyright.sh: Test it.
35884
35885         update-copyright: convert 2-digit to 4-digit years
35886         * build-aux/update-copyright: Implement and document.
35887         * tests/test-update-copyright.sh: Update.
35888
35889 2009-08-14  Jim Meyering  <meyering@redhat.com>
35890
35891         test-exclude: avoid coreutils "make check" failure
35892         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35893         just as in test-argmatch.c.
35894
35895 2009-08-13  Eric Blake  <ebb9@byu.net>
35896
35897         test-dup2: fix bad assumption
35898         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35899         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35900
35901         test-version-etc: fix CRLF portability issue
35902         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35903         recognize \r.
35904         * tests/test-argp-version-etc-1.sh: Likewise.
35905
35906         getopt: update client modules
35907         * modules/argp (Depends-on): Use getopt-gnu.
35908         * modules/git-merge-changelog (Depends-on): Likewise.
35909         * modules/long-options (Depends-on): Likewise.
35910         * modules/xstrtol (Depends-on): Likewise.
35911
35912 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35913
35914         * tests/test-version-etc.sh: Don't fail on different
35915         project/version.  Don't fail on CRLF differences.  Rewrite to use
35916         multiple -e instead of multiple sed forks, suggested by Eric Blake
35917         <ebb9@byu.net>.
35918         * tests/test-argp-version-etc-1.sh: Likewise.
35919
35920 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35921
35922         * tests/test-version-etc.sh: Don't fail on different
35923         project/version.
35924
35925 2009-08-12  Bruno Haible  <bruno@clisp.org>
35926
35927         Tests for modules 'getopt-posix', 'getopt-gnu'.
35928         * modules/getopt-posix-tests: New file.
35929         * tests/test-getopt.c: New file.
35930         * tests/test-getopt.h: New file.
35931         * tests/test-getopt_long.h: New file.
35932
35933         New modules 'getopt-posix', 'getopt-gnu'.
35934         * modules/getopt-gnu: New file, renamed from modules/getopt.
35935         * modules/getopt-posix: New file.
35936         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35937         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35938         (gl_GETOPT): Remove macro.
35939         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35940         Disable the test against BSD systems that declare optreset. Test
35941         against mingw bug. Test against lack of support of optional arguments
35942         on many platforms.
35943         * doc/glibc-headers/getopt.texi: Update module name and list of
35944         relevant platforms.
35945         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35946         'getopt-gnu' and more portability problems.
35947         * NEWS: Mention the changes.
35948
35949 2009-08-12  Bruno Haible  <bruno@clisp.org>
35950
35951         Ensure that optarg etc. get declared by <unistd.h>.
35952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35953         AC_USE_SYSTEM_EXTENSIONS.
35954         * modules/getopt (Depends-on): Add 'extensions'.
35955
35956 2009-08-12  Bruno Haible  <bruno@clisp.org>
35957
35958         Avoid test link errors.
35959         * modules/pipe-filter-ii-tests (Makefile.am): Define
35960         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35961         * modules/pipe-filter-gi-tests (Makefile.am): Define
35962         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35964
35965 2009-08-12  Bruno Haible  <bruno@clisp.org>
35966
35967         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35968         gl_GETOPT_SUBSTITUTE before.
35969         (gl_GETOPT): Use it.
35970         * m4/argp.m4 (gl_ARGP): Update.
35971         Reported by Sergey Poznyakoff.
35972
35973         * m4/getopt.m4: Reorder macros.
35974         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35975         (gl_GETOPT_SUBSTITUTE): Remove macro.
35976
35977 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35978
35979         Minor improvement in gitlog-to-changelog
35980
35981         * build-aux/gitlog-to-changelog: New option `--format' makes
35982         output format string configurable.
35983
35984 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35985
35986         Optimize exclude: use hash tables for non-wildcard patterns.
35987
35988         * lib/exclude.c: Include hash.h and mbuiter.h
35989         (struct exclude_pattern, exclude_segment): New data types.
35990         (struct exclude): Rewrite.
35991         (fnmatch_pattern_has_wildcards): New function.
35992         (new_exclude_segment, free_exclude_segment): New functions.
35993         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35994         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35995         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35996         * modules/exclude: Depend on hash and mbuiter.
35997
35998         * modules/exclude-tests: New file.
35999         * tests/test-exclude.c: New file.
36000         * tests/test-exclude1.sh: New file.
36001         * tests/test-exclude2.sh: New file.
36002         * tests/test-exclude3.sh: New file.
36003         * tests/test-exclude4.sh: New file.
36004         * tests/test-exclude5.sh: New file.
36005         * tests/test-exclude6.sh: New file.
36006         * tests/test-exclude7.sh: New file.
36007
36008 2009-08-12  Bruno Haible  <bruno@clisp.org>
36009
36010         Ensure that getopt() gets declared by <unistd.h>.
36011         * lib/unistd.in.h: Conditionally include getopt.h.
36012         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36013         Set GNULIB_UNISTD_H_GETOPT.
36014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36015         GNULIB_UNISTD_H_GETOPT.
36016         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36017
36018 2009-08-12  Bruno Haible  <bruno@clisp.org>
36019
36020         Clarify logic.
36021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36022         gl_replace_getopt instead of GETOPT_H.
36023
36024 2009-08-12  Bruno Haible  <bruno@clisp.org>
36025
36026         * m4/getopt.m4: Add comments.
36027
36028 2009-08-12  Bruno Haible  <bruno@clisp.org>
36029
36030         Disable multithread support by default on Cygwin 1.5.x.
36031         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36032         set gl_use_threads=no if not specified otherwise.
36033
36034 2009-08-11  Bruno Haible  <bruno@clisp.org>
36035
36036         Avoid compilation error on NetBSD 5.0.
36037         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36038         * tests/test-stdio.c: Likewise.
36039         * tests/test-stdlib.c: Likewise.
36040         * tests/test-string.c: Likewise.
36041         * tests/test-unistd.c: Likewise.
36042         Reported by Greg Troxel <gdt@ir.bbn.com>
36043         at <https://savannah.gnu.org/support/?106973>.
36044
36045 2009-08-11  Bruno Haible  <bruno@clisp.org>
36046
36047         * modules/dup2-tests (Depends-on): Remove close.
36048
36049         Undo 2009-07-19 commit.
36050         * modules/acl-tests (Depends-on): Remove close.
36051         * modules/binary-io-tests (Depends-on): Likewise.
36052         * modules/closein-tests (Depends-on): Likewise.
36053         * modules/flock-tests (Depends-on): Likewise.
36054         * modules/fsync-tests (Depends-on): Likewise.
36055         * modules/lseek-tests (Depends-on): Likewise.
36056         * modules/pipe-tests (Depends-on): Likewise.
36057         * modules/posix_spawn-tests (Depends-on): Likewise.
36058         * modules/posix_spawnp-tests (Depends-on): Likewise.
36059         * modules/stat-time-tests (Depends-on): Likewise.
36060         * modules/yesno-tests (Depends-on): Likewise.
36061
36062 2009-08-10  Bruno Haible  <bruno@clisp.org>
36063
36064         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36065
36066 2009-08-10  Bruno Haible  <bruno@clisp.org>
36067
36068         Fix a gcc warning.
36069         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36070
36071 2009-08-10  Bruno Haible  <bruno@clisp.org>
36072
36073         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36074         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36075         not only the first time.
36076         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36077         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36078         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36079         is 1, not only the the first time.
36080
36081 2009-08-10  Bruno Haible  <bruno@clisp.org>
36082
36083         Make it possible to use module 'gethostname' without module 'close'.
36084         * lib/unistd.in.h (close): Evoke a link error only if
36085         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36087         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36088         * modules/unistd (Makefile.am): Substitute
36089         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36090         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36091         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36092         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36093         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36094         * modules/sys_ioctl (Makefile.am): Substitute
36095         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36096         * modules/socket (configure.ac): On native Windows, set
36097         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36098         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36099         Reported by Sam Steingold <sds@gnu.org>.
36100
36101 2009-08-10  Bruno Haible  <bruno@clisp.org>
36102
36103         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36104         * modules/ioctl (configure.ac): Likewise.
36105
36106 2009-08-10  Bruno Haible  <bruno@clisp.org>
36107
36108         Avoid collision between gnulib wrapper and libintl wrapper.
36109         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36110         already defined in intl/printf.c.
36111         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36112         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36113
36114 2009-08-09  Bruno Haible  <bruno@clisp.org>
36115
36116         Make <sys/select.h> really self-contained, also on Solaris 10.
36117         * lib/sys_select.in.h: Include <string.h>.
36118         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36119         Solaris 10 problem.
36120         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36121         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36122         Reported by Jim Meyering.
36123
36124 2009-08-09  Bruno Haible  <bruno@clisp.org>
36125
36126         Avoid warnings from 'aclocal' that are due to a use of macro name
36127         AM_XGETTEXT_OPTION that is not defined in automake.
36128         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36129         automake.
36130         * modules/error (configure.ac): Likewise.
36131         * modules/propername (configure.ac): Likewise.
36132         * modules/vasprintf (configure.ac): Likewise.
36133         * modules/verror (configure.ac): Likewise.
36134         * modules/xprintf (configure.ac): Likewise.
36135         * modules/xvasprintf (configure.ac): Likewise.
36136
36137 2009-08-08  Bruno Haible  <bruno@clisp.org>
36138
36139         Avoid compilation error in C++ mode.
36140         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36141         Reported by Sam Steingold <sds@gnu.org>.
36142
36143 2009-08-08  Bruno Haible  <bruno@clisp.org>
36144
36145         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36146         for the various Unix platforms.
36147         * doc/posix-headers/limits.texi: Update platforms list regarding
36148         HOST_NAME_MAX.
36149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36150
36151 2009-08-07  Jim Meyering  <meyering@redhat.com>
36152
36153         selinux-at: fix typo in a comment
36154         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36155         Spotted by Paolo Bonzini.
36156
36157         selinux-at: remove redundant m4 code, add documentation
36158         * modules/selinux-at (configure.ac): Remove redundant code.
36159         LIB_SELINUX is already set via the dependent module, selinux-h.
36160         (Include): Add quotes around selinux-at.h.
36161         * lib/selinux-at.h: Add documentation.
36162         Reported by Bruno Haible in
36163         http://marc.info/?l=gnulib-bug&m=124958988300749
36164
36165 2009-08-07  Bruno Haible  <bruno@clisp.org>
36166
36167         Avoid link error on MacOS X 10.3 and 10.4.
36168         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36169         on non-ELF systems.
36170         * lib/argp-pv.c (argp_program_version): Likewise.
36171         Reported by Simon Josefsson.
36172
36173 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36174
36175         * tests/test-version-etc.sh: Use $EXEEXT.
36176
36177 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36178
36179         update-copyright: update documentation to point to maint.mk
36180         * build-aux/update-copyright: Here.
36181
36182 2009-08-06  Jim Meyering  <meyering@redhat.com>
36183
36184         maint.mk: support update-copyright-local
36185         * top/maint.mk (update-copyright-local): Define place-holder.
36186         (update-copyright): Depend on $(update-copyright-local).
36187
36188 2009-08-06  Jim Meyering  <meyering@redhat.com>
36189
36190         selinux-at: new module
36191         Initially written for coreutils, this module will soon be
36192         used by findutils, too.
36193         * MODULES.html.sh [Misc]: Add selinux-at.
36194         * lib/selinux-at.h: New file, from coreutils.
36195         * lib/selinux-at.c: Likewise.
36196         * modules/selinux-at: Likewise.
36197         (License): Change from LGPL to GPL, since it depends
36198         on the GPL'd openat module.
36199
36200         doc: update README
36201         * README: Remove references to cogito.
36202         Remove cvs-repo-updating instructions from 2007.
36203         Don't imply that CVS is better if you have limited disk space.
36204
36205 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36206
36207         update-copyright: support C-style comments
36208         * build-aux/update-copyright: Implement and document.
36209         * tests/test-update-copyright.sh: Test.
36210
36211 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36212
36213         update-copyright: support omitted "(C)"
36214         * build-aux/update-copyright: Implement and document.  Also,
36215         allow variable whitespace before "(C)".
36216         * tests/test-update-copyright.sh: Test.
36217
36218 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36219
36220         update-copyright: don't trip on non-FSF copyright statements
36221         * build-aux/update-copyright: Fix so that the first correctly
36222         formatted FSF copyright statement is recognized no matter what
36223         appears before it.  Update documentation.
36224         * tests/test-update-copyright.sh: Test that.
36225
36226 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36227
36228         update-copyright: clean up code a little
36229         * build-aux/update-copyright: Append "_re" to the name of any
36230         variable holding a regular expression.
36231         Replace "old" and "new" with "stmt" in variable names.
36232         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36233         handled correctly.
36234         Format code more consistently.
36235
36236 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36237
36238         update-copyright-tests: improve portability
36239         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36240         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36241
36242 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36243
36244         update-copyright: support @copyright{} and &copy;
36245         * build-aux/update-copyright: Implement and document.
36246         * tests/test-update-copyright.sh: Test.
36247
36248 2009-08-04  Jim Meyering  <meyering@redhat.com>
36249
36250         update-copyright-tests: correctly test EOL=\r\n handling
36251         * tests/test-update-copyright.sh: Put \r at the end of some lines
36252         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36253
36254         maint.mk: make update-copyright exclusion list more configurable
36255         * top/maint.mk (update-copyright): Default to excluding COPYING,
36256         but allow an override, in case someone does want to update that file.
36257
36258         maint.mk: don't update copyright date in COPYING
36259         * top/maint.mk (update-copyright): Exclude COPYING.
36260
36261         maint.mk: add a copyright-updating rule
36262         * top/maint.mk (update-copyright): New rule.
36263         Derived from coreutils/Makefile.am.
36264
36265         update-copyright: rename some variables
36266         * build-aux/update-copyright: Rename a few variables for clarity.
36267         Tweak syntax.  List Joel E. Denny as coauthor.
36268
36269 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36270
36271         update-copyright: fix bug for 2-digit last year and add tests
36272         * build-aux/update-copyright: Fix bug.
36273         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36274         specified.
36275         * modules/update-copyright-tests: New
36276         * tests/test-update-copyright.sh: New.
36277
36278 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36279
36280         update-copyright: handle leading tabs in line prefix
36281         * build-aux/update-copyright: Count leading tabs as 8 spaces
36282         when computing margin.  This helps with the formatting of
36283         ChangeLogs, for example.
36284         Fix documentation a little.
36285
36286 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36287
36288         update-copyright: support EOL=\r\n
36289         * build-aux/update-copyright: Implement that.
36290
36291 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36292
36293         update-copyright: automatically format copyright statements
36294         * build-aux/update-copyright: Implement that.
36295         Also, be a little more predictable and safer by always failing
36296         when the full copyright format is not perfectly recognized as an
36297         unbroken whole.  Discussed at
36298         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36299         Rewrite documentation.
36300
36301 2009-08-03  Bruno Haible  <bruno@clisp.org>
36302
36303         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36304
36305 2009-08-02  Bruno Haible  <bruno@clisp.org>
36306
36307         Tests for module 'uname'.
36308         * modules/uname-tests: New file.
36309         * tests/test-uname.c: New file.
36310
36311         New module 'uname'.
36312         * lib/uname.c: New file.
36313         * m4/uname.m4: New file.
36314         * modules/uname: New file.
36315         * doc/posix-functions/uname.texi: Mention the new module.
36316
36317 2009-08-02  Bruno Haible  <bruno@clisp.org>
36318
36319         Tests for module 'sys_utsname'.
36320         * modules/sys_utsname-tests: New file.
36321         * tests/test-sys_utsname.c: New file.
36322
36323         New module 'sys_utsname'.
36324         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36325         * m4/sys_utsname_h.m4: New file.
36326         * modules/sys_utsname: New file.
36327         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36328
36329 2009-08-02  Bruno Haible  <bruno@clisp.org>
36330
36331         Implicitly initialize the sockets library.
36332         * lib/gethostname.c: Include sockets.h.
36333         (rpl_gethostname): Invoke gl_sockets_startup.
36334         * lib/socket.c: Include sockets.h.
36335         (rpl_socket): Invoke gl_sockets_startup.
36336         * modules/gethostname (Depends-on): Add sockets.
36337         * modules/socket (Depends-on): Likewise.
36338         * tests/test-poll.c: Don't include sockets.h.
36339         (main): Don't invoke gl_sockets_startup.
36340         * tests/test-select.c: Don't include sockets.h.
36341         (main): Don't invoke gl_sockets_startup.
36342
36343 2009-08-02  Bruno Haible  <bruno@clisp.org>
36344
36345         Allow multiple calls to gl_sockets_startup.
36346         * lib/sockets.c (initialized_sockets_version): New variable.
36347         (gl_sockets_startup): Do nothing if already called for this or a higher
36348         version.
36349         (gl_sockets_cleanup): Reset initialized_sockets_version.
36350
36351 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36352
36353         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36354         different project/version.
36355
36356 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36357             Bruno Haible  <bruno@clisp.org>
36358
36359         Tests for module 'pipe-filter-gi'.
36360         * modules/pipe-filter-gi-tests: New file.
36361         * tests/test-pipe-filter-gi1.sh: New file.
36362         * tests/test-pipe-filter-gi1.c: New file.
36363         * tests/test-pipe-filter-gi2.sh: New file.
36364         * tests/test-pipe-filter-gi2-main.c: New file.
36365         * tests/test-pipe-filter-gi2-child.c: New file.
36366
36367         New module 'pipe-filter-gi'.
36368         * lib/pipe-filter-gi.c: New file.
36369         * modules/pipe-filter-gi: New file.
36370
36371 2009-08-02  Bruno Haible  <bruno@clisp.org>
36372             Paolo Bonzini  <bonzini@gnu.org>
36373
36374         Tests for module 'pipe-filter-ii'.
36375         * modules/pipe-filter-ii-tests: New file.
36376         * tests/test-pipe-filter-ii1.sh: New file.
36377         * tests/test-pipe-filter-ii1.c: New file.
36378         * tests/test-pipe-filter-ii2.sh: New file.
36379         * tests/test-pipe-filter-ii2-main.c: New file.
36380         * tests/test-pipe-filter-ii2-child.c: New file.
36381
36382         New module 'pipe-filter-ii'.
36383         * lib/pipe-filter.h: New file.
36384         * lib/pipe-filter-ii.c: New file.
36385         * lib/pipe-filter-aux.h: New file.
36386         * modules/pipe-filter-ii: New file.
36387
36388 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36389
36390         * lib/gc-libgcrypt.c: Change copyright to FSF.
36391         * lib/gc-gnulib.c: Likewise.
36392
36393 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36394
36395         * lib/gethostname.c: Include limits.h.
36396
36397 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36398             Bruno Haible  <bruno@clisp.org>
36399
36400         Ensure HOST_NAME_MAX as part of the gethostname module.
36401         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36402         define also HOST_NAME_MAX.
36403         * tests/test-gethostname.c: Include <limits.h>.
36404         (main): Check also HOST_NAME_MAX.
36405         * doc/posix-headers/limits.texi: Document the mingw problem.
36406
36407 2009-08-02  Bruno Haible  <bruno@clisp.org>
36408
36409         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36410         Add comments.
36411
36412 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36413
36414         * lib/gethostname.c: Add Windows wrapper.
36415         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36416         * modules/gethostname: Depend on sys_socket & errno, for also
36417         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36418         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36419
36420 2009-07-31  Jim Meyering  <meyering@redhat.com>
36421
36422         getloadavg: fix symbol name in comment
36423         * lib/getloadavg.c: Correct a typo I introduced when adding
36424         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36425         Matt Kraai spotted the problem.
36426
36427 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36428
36429         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36430         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36431         code also if ! defined N_NAME_POINTER.
36432         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36433         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36434         but the n_name member is a 12-byte array.
36435
36436 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36437
36438         update-copyright: generalize comment handling
36439         * build-aux/update-copyright: Handle copyright statements
36440         within more comment styles.
36441         Document usage.
36442         Report any file with an external copyright holder or parse failure.
36443
36444 2009-07-29  Jim Meyering  <meyering@redhat.com>
36445
36446         mktime: correct setting of REPLACE_MKTIME
36447         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36448
36449         update-copyright: new module
36450         * modules/update-copyright: New file.
36451         * build-aux/update-copyright: New file.
36452         * MODULES.html.sh (maint+release support): Add update-copyright.
36453
36454 2009-07-27  Bruno Haible  <bruno@clisp.org>
36455
36456         Fix compilation error when <ctime> is used and mktime is replaced.
36457         * lib/time.in.h (mktime): New declaration.
36458         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36459         REPLACE_MKTIME instead of defining mktime in config.h.
36460         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36461         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36462         Reported by Ross McFarland <rwmcfa1@neces.com>.
36463
36464 2009-07-27  Bruno Haible  <bruno@clisp.org>
36465
36466         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36467         Reported by Matt Kraai <mkraai@beckman.com>.
36468
36469 2009-07-25  Jim Meyering  <meyering@redhat.com>
36470
36471         maint.mk: avoid warnings about missing files
36472         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36473         diagnostic when .prev-version does not exist.
36474         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36475         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36476         nonexistent cfg.mk.
36477         Suggestions from Simon Josefsson.
36478
36479 2009-07-25  Bruno Haible  <bruno@clisp.org>
36480
36481         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36482         defined as macros. Needed on QNX 6.4.1.
36483         Reported by Matt Kraai <mkraai@beckman.com>.
36484
36485 2009-07-23  Jim Meyering  <meyering@redhat.com>
36486
36487         maint.mk: invoke "make dist" with a working value of XZ_OPT
36488         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36489
36490 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36491
36492         Make fseeko.c compile on QNX.
36493         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36494
36495 2009-07-22  Peter Simons  <simons@cryp.to>
36496
36497         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36498         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36499         * lib/md4.h: Likewise.
36500         * lib/md5.h: Likewise.
36501         * lib/sha1.h: Likewise.
36502         * lib/sha256.h: Likewise.
36503         * lib/sha512.h: Likewise.
36504
36505         tests-sha1: don't assign literal string to 'char *' variable
36506         * tests/test-sha1.c (main): Declare locals with "const" to match
36507         attributes of the right hand side.
36508
36509 2009-07-21  Eric Blake  <ebb9@byu.net>
36510
36511         dup2: fix more mingw problems
36512         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36513         fd to itself.
36514         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36515         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36516         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36517         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36518         care of mingw bugs.
36519
36520 2009-07-21  Jim Meyering  <meyering@redhat.com>
36521
36522         vc-list-files: avoid failure when /bin/sh is dash
36523         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36524         On some Debian based systems, /bin/sh is a symlink to dash, and running
36525         this command would omit the "/" following each 'tests' prefix:
36526           dash -x build-aux/vc-list-files -C . tests
36527         That is because bash and dash work differently:
36528           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36529           bash ok
36530           dash odd
36531
36532 2009-07-21  Eric Blake  <ebb9@byu.net>
36533
36534         dup2-tests: test previous patch
36535         * modules/dup2-tests: New file.
36536         * tests/test-dup2.c: Likewise.
36537         * tests/test-open.c (main): Avoid unspecified behavior.
36538         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36539         test.
36540
36541         dup2: work around mingw and cygwin 1.5 bug
36542         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36544         * modules/unistd (Makefile.am): Substitute it.
36545         * lib/unistd.in.h (dup2): Declare the replacement.
36546         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36547         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36548         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36549         * modules/execute (Depends-on): Add dup2.
36550         * modules/fseterr (Depends-on): Likewise.
36551         * modules/pipe (Depends-on): Likewise.
36552         * modules/posix_spawn-internal (Depends-on): Likewise.
36553
36554 2009-07-21  Bruno Haible  <bruno@clisp.org>
36555
36556         * modules/.gitattributes: New file.
36557
36558 2009-07-20  Bruno Haible  <bruno@clisp.org>
36559
36560         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36561         (main): Use it.
36562
36563 2009-07-20  Eric Blake  <ebb9@byu.net>
36564
36565         test-pipe: make a bit more robust.
36566         * tests/test-pipe.c (myerr): Allow error messages regardless of
36567         what we do to stderr.
36568         (test_pipe): Rearrange to avoid deadlock.
36569         (child_main): Try a larger read, to ensure we avoided deadlock.
36570         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36571         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36572         if misused.
36573
36574 2009-07-19  Jim Meyering  <meyering@redhat.com>
36575
36576         fts: avoid false-positive cycle-detection
36577         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36578         for each new command line argument.
36579
36580 2009-07-19  Bruno Haible  <bruno@clisp.org>
36581
36582         Fix build error on mingw with the modules sys_select and unistd.
36583         * modules/acl-tests (Depends-on): Add close.
36584         * modules/binary-io-tests (Depends-on): Likewise.
36585         * modules/closein-tests (Depends-on): Likewise.
36586         * modules/flock-tests (Depends-on): Likewise.
36587         * modules/fsync-tests (Depends-on): Likewise.
36588         * modules/lseek-tests (Depends-on): Likewise.
36589         * modules/pipe-tests (Depends-on): Likewise.
36590         * modules/posix_spawn-tests (Depends-on): Likewise.
36591         * modules/posix_spawnp-tests (Depends-on): Likewise.
36592         * modules/stat-time-tests (Depends-on): Likewise.
36593         * modules/yesno-tests (Depends-on): Likewise.
36594
36595 2009-07-19  Bruno Haible  <bruno@clisp.org>
36596
36597         Unify conditionals.
36598         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36599         macros, not at the compiler macros.
36600         * lib/pipe.c: Likewise.
36601         * lib/execute.c: Likewise.
36602         * lib/spawni.c: Likewise.
36603
36604 2009-07-19  Bruno Haible  <bruno@clisp.org>
36605
36606         Fix handling of closed stdin/stdout/stderr on mingw.
36607         * lib/w32spawn.h: Include unistd.h.
36608         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36609         file descriptor with O_NOINHERIT flag.
36610         (fd_safer_noinherit): New function, based on fd-safer.c.
36611         (dup_safer_noinherit): New function, based on dup-safer.c.
36612         (undup_safer_noinherit): New function.
36613         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36614         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36615         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36616         instead of fd_safer.
36617         * tests/test-pipe.c: Include <windows.h>.
36618         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36619         result.
36620
36621         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36622         from main.
36623         (test_pipe): Pass an extra argument for disambiguation.
36624         (main): Invoke parent_main or child_main.
36625
36626         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36627         consistently.
36628
36629 2009-07-18  Eric Blake  <ebb9@byu.net>
36630
36631         test-pipe: fix mingw build
36632         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36633
36634 2009-07-18  Bruno Haible  <bruno@clisp.org>
36635
36636         * modules/pipe-tests (Makefile.am): Fix typo.
36637
36638 2009-07-18  Eric Blake  <ebb9@byu.net>
36639
36640         error: fix mingw build
36641         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36642         Reported by Bruno Haible.
36643
36644         error: avoid undefined use of stdout
36645         * lib/error.c (error, error_at_line): Check that fd 1 is open
36646         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36647         is handling faults and the close_stdout module wants to report the
36648         detection of closed stdout as an error.
36649
36650 2009-07-17  Eric Blake  <ebb9@byu.net>
36651
36652         pipe: be robust in face of closed fds
36653         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36654         should cause child to misbehave.
36655         * modules/pipe-tests: New module.
36656         * tests/test-pipe.c: New file.
36657         * tests/test-pipe.sh: New file.
36658         Reported by Akim Demaille.
36659
36660 2009-07-14  Bruno Haible  <bruno@clisp.org>
36661
36662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36663         Reported by anonymous kc.
36664
36665 2009-07-07  Jim Meyering  <meyering@redhat.com>
36666
36667         maint.mk: don't look for translatable strings in *.m4 or *.mk
36668         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36669         when searching for translatable strings.
36670
36671 2009-07-05  Jim Meyering  <meyering@redhat.com>
36672
36673         remove superfluous parentheses in STREQ definition
36674         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36675         * lib/getugroups.c (STREQ): Likewise.
36676         * lib/fnmatch.c (STREQ): Likewise.
36677         Spotted by Bruno Haible.
36678
36679 2009-07-04  Jim Meyering  <meyering@redhat.com>
36680
36681         argv-iter: new module
36682         * MODULES.html.sh: Add argv-iter.
36683         * lib/argv-iter.c, lib/argv-iter.h: New files.
36684         * modules/argv-iter: New file.
36685         * modules/argv-iter-tests: New file.
36686         * tests/test-argv-iter.c: Test it.
36687
36688 2009-07-04  Bruno Haible  <bruno@clisp.org>
36689
36690         Fix assertion.
36691         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36692         contains more exact copies of a given entry than file2, leave the extra
36693         copies unpaired rather than aborting.
36694         Reported by Eric Blake.
36695
36696 2009-07-02  Bruno Haible  <bruno@clisp.org>
36697
36698         Speedup git-merge-changelog for git cherry-pick.
36699         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36700         (entries_mapping_get): New function, extracted from compute_mapping.
36701         (entries_mapping_reverse_get): New function.
36702         (compute_mapping): Add a 'full' argument. Return the result in a
36703         'struct entries_mapping'.
36704         (main): Update. Access the mappings through entries_mapping_get.
36705         Reported by Eric Blake.
36706
36707 2009-07-02  Bruno Haible  <bruno@clisp.org>
36708
36709         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36710         best_i.
36711
36712 2009-07-02  Bruno Haible  <bruno@clisp.org>
36713
36714         Speed up approximate search for matching ChangeLog entries.
36715         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36716         argument. Call fstrcmp_bounded instead of fstrcmp.
36717         (compute_mapping, try_split_merged_entry, main): Update callers.
36718
36719 2009-07-02  Bruno Haible  <bruno@clisp.org>
36720
36721         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36722
36723 2009-06-30  Bruno Haible  <bruno@clisp.org>
36724
36725         Reduce the number of uc_is_cased calls.
36726         * lib/unicase.h (casing_suffix_context_t): Add
36727         'first_char_except_ignorable' field.
36728         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36729         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36730         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36731         Update initializer.
36732         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36733         case-ignorable characters.
36734         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36735         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36736         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36737         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36738         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36739
36740 2009-06-30  Bruno Haible  <bruno@clisp.org>
36741
36742         Tests for module 'unicase/ignorable'.
36743         * modules/unicase/ignorable-tests: New file.
36744         * tests/unicase/test-ignorable.c: New file, generated by
36745         gen-uni-tables.
36746
36747         Tests for module 'unicase/cased'.
36748         * modules/unicase/cased-tests: New file.
36749         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36750         * tests/unicase/test-predicate-part1.h: New file, derived from
36751         tests/unictype/test-predicate-part1.h.
36752         * tests/unicase/test-predicate-part2.h: New file, same as
36753         tests/unictype/test-predicate-part2.h.
36754
36755         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36756         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36757         (output_casing_properties): New function.
36758         (main): Call it.
36759         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36760         * lib/unicase/cased.c: Include unictype/bitmap.h.
36761         (uc_is_cased): Define through a bitmap lookup.
36762         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36763         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36764         (uc_is_case_ignorable): Define through a bitmap lookup.
36765         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36766         lib/unictype/bitmap.h.
36767         (Depends-on): Add inline. Clean up.
36768         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36769         lib/unictype/bitmap.h.
36770         (Depends-on): Add inline. Clean up.
36771         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36772         recognition.
36773         * tests/unicase/test-u16-tolower.c (main): Likewise.
36774         * tests/unicase/test-u32-tolower.c (main): Likewise.
36775
36776 2009-06-30  Bruno Haible  <bruno@clisp.org>
36777
36778         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36779         * lib/unicase/u16-casemap.c: Likewise.
36780         * lib/unicase/u32-casemap.c: Likewise.
36781
36782 2009-06-29  Bruno Haible  <bruno@clisp.org>
36783
36784         Define u32_casefold as a wrapper around u32_ct_casefold.
36785         * lib/unicase/u32-casefold.c: Update.
36786         * modules/unicase/u32-casefold (Depends-on): Add
36787         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36788         unicase/empty-suffix-context. Clean up.
36789
36790         Define u16_casefold as a wrapper around u16_ct_casefold.
36791         * lib/unicase/u16-casefold.c: Update.
36792         * modules/unicase/u16-casefold (Depends-on): Add
36793         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36794         unicase/empty-suffix-context. Clean up.
36795
36796         Define u8_casefold as a wrapper around u8_ct_casefold.
36797         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36798         * lib/unicase/u8-casefold.c: Update.
36799         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36800         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36801
36802         Define u32_totitle as a wrapper around u32_ct_totitle.
36803         * lib/unicase/u32-totitle.c: Update.
36804         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36805         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36806
36807         Define u16_totitle as a wrapper around u16_ct_totitle.
36808         * lib/unicase/u16-totitle.c: Update.
36809         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36810         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36811
36812         Define u8_totitle as a wrapper around u8_ct_totitle.
36813         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36814         functions.
36815         (FUNC): Delegate to U_CT_TOTITLE.
36816         * lib/unicase/u8-totitle.c: Update.
36817         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36818         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36819
36820         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36821         invocation.
36822         * modules/unicase/u32-tolower (Depends-on): Add
36823         unicase/empty-prefix-context, unicase/empty-suffix-context.
36824
36825         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36826         invocation.
36827         * modules/unicase/u16-tolower (Depends-on): Add
36828         unicase/empty-prefix-context, unicase/empty-suffix-context.
36829
36830         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36831         * modules/unicase/u8-tolower (Depends-on): Add
36832         unicase/empty-prefix-context, unicase/empty-suffix-context.
36833
36834         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36835         invocation.
36836         * modules/unicase/u32-toupper (Depends-on): Add
36837         unicase/empty-prefix-context, unicase/empty-suffix-context.
36838
36839         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36840         invocation.
36841         * modules/unicase/u16-toupper (Depends-on): Add
36842         unicase/empty-prefix-context, unicase/empty-suffix-context.
36843
36844         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36845         * modules/unicase/u8-toupper (Depends-on): Add
36846         unicase/empty-prefix-context, unicase/empty-suffix-context.
36847
36848         New module 'unicase/u32-ct-casefold'.
36849         * lib/unicase/u32-ct-casefold.c: New file.
36850         * modules/unicase/u32-ct-casefold: New file.
36851
36852         New module 'unicase/u16-ct-casefold'.
36853         * lib/unicase/u16-ct-casefold.c: New file.
36854         * modules/unicase/u16-ct-casefold: New file.
36855
36856         New module 'unicase/u8-ct-casefold'.
36857         * lib/unicase/u8-ct-casefold.c: New file.
36858         * lib/unicase/u-ct-casefold.h: New file, derived from
36859         lib/unicase/u-casefold.h.
36860         * modules/unicase/u8-ct-casefold: New file.
36861
36862         New module 'unicase/u32-ct-totitle'.
36863         * lib/unicase/u32-ct-totitle.c: New file.
36864         * modules/unicase/u32-ct-totitle: New file.
36865
36866         New module 'unicase/u16-ct-totitle'.
36867         * lib/unicase/u16-ct-totitle.c: New file.
36868         * modules/unicase/u16-ct-totitle: New file.
36869
36870         New module 'unicase/u8-ct-totitle'.
36871         * lib/unicase/u8-ct-totitle.c: New file.
36872         * lib/unicase/u-ct-totitle.h: New file, derived from
36873         lib/unicase/u-totitle.h.
36874         * modules/unicase/u8-ct-totitle: New file.
36875
36876         New module 'unicase/u32-ct-tolower'.
36877         * lib/unicase/u32-ct-tolower.c: New file.
36878         * modules/unicase/u32-ct-tolower: New file.
36879
36880         New module 'unicase/u16-ct-tolower'.
36881         * lib/unicase/u16-ct-tolower.c: New file.
36882         * modules/unicase/u16-ct-tolower: New file.
36883
36884         New module 'unicase/u8-ct-tolower'.
36885         * lib/unicase/u8-ct-tolower.c: New file.
36886         * modules/unicase/u8-ct-tolower: New file.
36887
36888         New module 'unicase/u32-ct-toupper'.
36889         * lib/unicase/u32-ct-toupper.c: New file.
36890         * modules/unicase/u32-ct-toupper: New file.
36891
36892         New module 'unicase/u16-ct-toupper'.
36893         * lib/unicase/u16-ct-toupper.c: New file.
36894         * modules/unicase/u16-ct-toupper: New file.
36895
36896         New module 'unicase/u8-ct-toupper'.
36897         * lib/unicase/u8-ct-toupper.c: New file.
36898         * modules/unicase/u8-ct-toupper: New file.
36899
36900         Add context arguments to u*_casemap functions.
36901         * lib/unicase/unicasemap.h: Include unicase.h.
36902         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36903         suffix_context arguments.
36904         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36905         functions.
36906         (FUNC): Add prefix_context and suffix_context arguments. Use
36907         uc_is_cased and uc_is_case_ignorable.
36908         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36909         * lib/unicase/u16-casemap.c: Likewise.
36910         * lib/unicase/u32-casemap.c: Likewise.
36911         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36912         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36913         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36914         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36915         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36916         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36917
36918         New module 'unicase/u32-suffix-context'.
36919         * lib/unicase/u32-suffix-context.c: New file.
36920         * modules/unicase/u32-suffix-context: New file.
36921
36922         New module 'unicase/u16-suffix-context'.
36923         * lib/unicase/u16-suffix-context.c: New file.
36924         * modules/unicase/u16-suffix-context: New file.
36925
36926         New module 'unicase/u8-suffix-context'.
36927         * lib/unicase/u8-suffix-context.c: New file.
36928         * lib/unicase/u-suffix-context.h: New file.
36929         * modules/unicase/u8-suffix-context: New file.
36930
36931         New module 'unicase/empty-suffix-context'.
36932         * lib/unicase/empty-suffix-context.c: New file.
36933         * modules/unicase/empty-suffix-context: New file.
36934
36935         New module 'unicase/u32-prefix-context'.
36936         * lib/unicase/u32-prefix-context.c: New file.
36937         * modules/unicase/u32-prefix-context: New file.
36938
36939         New module 'unicase/u16-prefix-context'.
36940         * lib/unicase/u16-prefix-context.c: New file.
36941         * modules/unicase/u16-prefix-context: New file.
36942
36943         New module 'unicase/u8-prefix-context'.
36944         * lib/unicase/u8-prefix-context.c: New file.
36945         * lib/unicase/u-prefix-context.h: New file.
36946         * lib/unicase/context.h: New file.
36947         * modules/unicase/u8-prefix-context: New file.
36948
36949         New module 'unicase/empty-prefix-context'.
36950         * lib/unicase/empty-prefix-context.c: New file.
36951         * modules/unicase/empty-prefix-context: New file.
36952
36953         New module 'unicase/ignorable'.
36954         * lib/unicase/ignorable.c: New file.
36955         * modules/unicase/ignorable: New file.
36956
36957         New module 'unicase/cased'.
36958         * lib/unicase/caseprop.h: New file.
36959         * lib/unicase/cased.c: New file.
36960         * modules/unicase/cased: New file.
36961
36962         New functions for case mapping of substrings.
36963         * lib/unicase.h (casing_prefix_context_t): New type.
36964         (unicase_empty_prefix_context): New variable.
36965         (u8_casing_prefix_context, u16_casing_prefix_context,
36966         u32_casing_prefix_context, u8_casing_prefixes_context,
36967         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36968         declarations.
36969         (casing_suffix_context_t): New type.
36970         (unicase_empty_suffix_context): New variable.
36971         (u8_casing_suffix_context, u16_casing_suffix_context,
36972         u32_casing_suffix_context, u8_casing_suffixes_context,
36973         u16_casing_suffixes_context, u32_casing_suffixes_context,
36974         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36975         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36976         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36977         declarations.
36978
36979 2009-06-28  Jim Meyering  <meyering@redhat.com>
36980
36981         boostrap: indent only with spaces
36982         * build-aux/bootstrap: Indent only with spaces, never TABs.
36983
36984         bootstrap: split long lines
36985         * build-aux/bootstrap: Keep line length < 80.
36986
36987         bootstrap: sync from coreutils
36988         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36989         just as autoreconf does.  Verify a list of prerequisite
36990         package-name,version-number pairs if defined in bootstrap.conf.
36991         Refer to README-prereq, if prerequisites are not satisfied.
36992
36993 2009-06-27  Eric Blake  <ebb9@byu.net>
36994
36995         tests: add test for bogus NULL definition
36996         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36997         * tests/test-stdlib.c: Likewise.
36998         * tests/test-string.c: Likewise.
36999         * tests/test-locale.c: Likewise.
37000         * tests/test-unistd.c: Likewise.
37001         * modules/stdio-tests (Depends-on): Add verify.
37002         * modules/stdlib-tests (Depends-on): Likewise.
37003         * modules/string-tests (Depends-on): Likewise.
37004         * modules/locale-tests (Depends-on): Likewise.
37005         * modules/unistd-tests (Depends-on): Likewise.
37006
37007 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37008
37009         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37010         self-explaining comment.
37011         * m4/selinux-selinux-h: Update serial.
37012         (gl_LIBSELINUX): New macro, adding a warning for missing development
37013         packages to code extracted from...
37014         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37015         Add warning for missing development packages here, too.
37016
37017 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37018
37019         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37020
37021 2009-06-25  Eric Blake  <ebb9@byu.net>
37022
37023         version-etc: fix regression
37024         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37025         gcc.
37026         (version_etc): Use it, to catch bugs with trailing NULL.
37027         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37028         (version_etc_va): Fix logic bug.
37029         * modules/version-etc-tests: Add test.
37030         * tests/test-version-etc.c: New file.
37031         * tests/test-version-etc.sh: Likewise.
37032
37033 2009-06-25  Sam Steingold  <sds@gnu.org>
37034
37035         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37036         mbtowc declaration.
37037
37038 2009-06-25  Eric Blake  <ebb9@byu.net>
37039
37040         fpurge: migrate into <stdio.h>
37041         * lib/fpurge.h: Delete...
37042         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37043         * lib/fpurge.c (fpurge): Change declaring header.
37044         * modules/fpurge (Files): Drop deleted file.
37045         (Depends-on): Add stdio.
37046         (configure.ac): Set witness.
37047         * modules/stdio (Makefile.am): Support fpurge macros.
37048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37049         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37050         * lib/fflush.c: Update client.
37051         * tests/test-fpurge.c: Likewise.
37052         * NEWS: Mention the change.
37053
37054 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37055
37056         * lib/argp-version-etc.c (program_authors): Add const
37057         qualifier.
37058         * lib/version-etc.c: Fix typos in the comments.
37059         * modules/argp-version-etc: Depends on version-etc.
37060
37061 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37062
37063         argp-version-etc: new module.
37064
37065         * lib/argp-version-etc.c: New file.
37066         * lib/argp-version-etc.h: New file.
37067         * modules/argp-version-etc: New file.
37068         * modules/argp-version-etc-tests: New file.
37069         * tests/test-argp-version-etc.c: New test.
37070         * tests/test-argp-version-etc-1.sh: New test.
37071
37072 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37073
37074         Provide additional interfaces and documentation for version-etc
37075         module.
37076
37077         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37078         interfaces.
37079         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37080         prototypes.
37081
37082 2009-06-24  Bruno Haible  <bruno@clisp.org>
37083
37084         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37085         HAVE_LIB${NAME} macro.
37086         Reported by Sam Steingold <sds@gnu.org>.
37087
37088 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37089
37090         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37091         needed.
37092
37093 2009-06-21  Bruno Haible  <bruno@clisp.org>
37094
37095         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37096         work.
37097         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37098         together with LIB${NAME}, LTLIB${NAME}.
37099         Reported by Sam Steingold <sds@gnu.org>.
37100
37101 2009-06-20  Jim Meyering  <meyering@redhat.com>
37102
37103         tests: make sc_require_test_exit_idiom more generic
37104         * top/maint.mk (Exit_witness_file): New overridable variable.
37105         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37106         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37107
37108 2009-06-19  Jim Meyering  <meyering@redhat.com>
37109
37110         hash: reverse order of src/dst parameters in an internal interface
37111         * lib/hash.c (transfer_entries): Reverse order of parameters to
37112         put DST before SRC.  Adjust callers.
37113
37114         tests: test-hash: avoid wholesale duplication
37115         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37116         Instead, use a loop and add a single conditional.
37117
37118         tests: test-hash: allow seed selection via a command line argument
37119         * tests/test-hash.c (get_seed): New function.
37120         (main): Use it.
37121
37122 2009-06-19  Eric Blake  <ebb9@byu.net>
37123
37124         hash: avoid memory leak on allocation failure
37125         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37126         failure.  Factor repeated algorithm...
37127         (transfer_entries): ...into new helper routine.
37128         (hash_delete): React to hash_rehash return value.
37129
37130         hash: reduce memory pressure in hash_rehash no-op case
37131         * lib/hash.c (next_prime): Avoid overflow.
37132         (hash_initialize): Factor bucket size computation...
37133         (compute_bucket_size): ...into new helper function.
37134         (hash_rehash): Use new function and open coding to reduce memory
37135         pressure, and avoid a memory leak in USE_OBSTACK code.
37136         Reported by Jim Meyering.
37137
37138 2009-06-18  Eric Blake  <ebb9@byu.net>
37139
37140         hash: make rotation more obvious
37141         * modules/hash (Depends-on): Add bitrotate and stdint.
37142         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37143         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37144         (SIZE_MAX): Rely on headers for definition.
37145         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37146         (raw_hasher): Use rotr_sz.
37147         Suggested by Jim Meyering.
37148
37149         hash: fix memory leak in last patch
37150         * lib/hash.c (hash_rehash): Avoid memory leak.
37151
37152         hash: avoid no-op rehashing
37153         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37154
37155         hash: provide default callback functions
37156         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37157         (hash_initialize): Use them as defaults.
37158         * tests/test-hash.c (main): Test this.
37159
37160         hash: minor optimization
37161         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37162         when possible.
37163         (hash_initialize): Document this promise.
37164         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37165         * tests/test-hash.c (hash_compare_strings): Test this.
37166
37167 2009-06-18  Bruno Haible  <bruno@clisp.org>
37168
37169         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37170         going to be replaced anyway.
37171
37172 2009-06-18  Bruno Haible  <bruno@clisp.org>
37173
37174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37175         in one place.
37176         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37177         be replaced anyway.
37178
37179 2009-06-18  Eric Blake  <ebb9@byu.net>
37180
37181         hash: check for resize before insertion
37182         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37183         threshold before insertion, so that a pathological hash_rehash
37184         that fills every bucket can still trigger another rehash.
37185
37186 2009-06-18  Jim Meyering  <meyering@redhat.com>
37187
37188         hash-tests: add a loop around the small tests
37189         * tests/test-hash.c (main): Repeat small tests with selected
37190         small initial table sizes.
37191
37192 2009-06-17  Eric Blake  <ebb9@byu.net>
37193
37194         hash: minor cleanups
37195         * lib/hash.h (hash_entry): Make opaque, by moving...
37196         * lib/hash.c (hash_entry): ...here.
37197         (hash_insert): Clarify restrictions on what can be inserted.
37198         (hash_get_next): Clarify when it is safe to remove an element
37199         during traversal.
37200         (check_tuning): Skip verification when tuning is known safe.
37201         (hash_initialize): Clarify restrictions on tuning.
37202
37203 2009-06-17  Jim Meyering  <jim@meyering.net>
37204         and Eric Blake  <ebb9@byu.net>
37205
37206         hash-tests: new module
37207         * modules/hash-tests: New file.
37208         * tests/test-hash.c: New file.
37209
37210 2009-06-17  Eric Blake  <ebb9@byu.net>
37211
37212         strstr-simple: document new module
37213         * MODULES.html.sh: Document new module.
37214
37215         strstr, strcasestr: replace on platforms with broken memchr
37216         * modules/strstr: Split into...
37217         * modules/strstr-simple: ...new module that does not care about
37218         performance, but does care about glibc bug.
37219         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37220         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37221         if platform memchr is broken, per Debian bug 521737.
37222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37223         memchr.
37224         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37225         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37226         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37227         * modules/mountlist (Depends-on): Add strstr-simple.
37228         * modules/gen-uni-tables (Depends-on): Likewise.
37229         * modules/argz (Depends-on): Add strstr.
37230
37231 2009-06-17  Bruno Haible  <bruno@clisp.org>
37232
37233         * modules/posix_spawn-internal (Depends-on): Add errno.
37234
37235 2009-06-17  Bruno Haible  <bruno@clisp.org>
37236
37237         Define missing ESTALE on Interix 3.5.
37238         * lib/errno.in.h (ESTALE): Assign a value if missing.
37239         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37240         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37241         missing.
37242         * doc/posix-headers/errno.texi: Mention the Interix bug.
37243         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37244
37245 2009-06-15  Eric Blake  <ebb9@byu.net>
37246
37247         memchr, memchr2: add valgrind exception
37248         * lib/memchr.valgrind: New file.
37249         * lib/memchr2.valgrind: New file.
37250         * modules/memchr (Files): Distribute valgrind file.
37251         * modules/memchr2 (Files): Likewise.
37252
37253         docs: memchr is no longer obsolete
37254         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37255         * lib/string.in.h (memchr): Simplify logic.
37256
37257 2009-06-14  Jim Meyering  <meyering@redhat.com>
37258
37259         link-follow: fix the "checking..." message to not mention trailing slash
37260         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37261         never considered trailing slashes.
37262
37263 2009-06-14  Bruno Haible  <bruno@clisp.org>
37264
37265         * m4/memchr.m4: Mention also the bug on IA-64.
37266         * doc/posix-functions/memchr.texi: Likewise.
37267
37268 2009-06-12  Eric Blake  <ebb9@byu.net>
37269
37270         memchr: detect broken x86_64 and alpha implementations
37271         * modules/memchr-tests (Depends-on): Move mmap detection...
37272         * modules/memchr (Depends-on): ...here.
37273         (configure.ac): Set indicator.
37274         * lib/string.in.h (memchr): Declare replacement.
37275         * modules/string (Makefile.am): Trigger replacement.
37276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37277         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37278         bugs.
37279         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37280         * modules/getpagesize (License): Relax license.
37281
37282 2009-06-11  Bruno Haible  <bruno@clisp.org>
37283
37284         * lib/idpriv.h: Add more references.
37285
37286 2009-06-08  Bruno Haible  <bruno@clisp.org>
37287
37288         Tests for module 'idpriv-droptemp'.
37289         * modules/idpriv-droptemp-tests: New file.
37290         * tests/test-idpriv-droptemp.sh: New file.
37291         * tests/test-idpriv-droptemp.su.sh: New file.
37292         * tests/test-idpriv-droptemp.c: New file.
37293
37294         New module 'idpriv-droptemp'.
37295         * lib/idpriv-droptemp.c: New file.
37296         * modules/idpriv-droptemp: New file.
37297
37298 2009-06-08  Bruno Haible  <bruno@clisp.org>
37299
37300         Tests for module 'idpriv-drop'.
37301         * modules/idpriv-drop-tests: New file.
37302         * tests/test-idpriv-drop.sh: New file.
37303         * tests/test-idpriv-drop.su.sh: New file.
37304         * tests/test-idpriv-drop.c: New file.
37305
37306         New module 'idpriv-drop'.
37307         * lib/idpriv.h: New file.
37308         * lib-idpriv-drop.c: New file.
37309         * m4/idpriv.m4: New file.
37310         * modules/idpriv-drop: New file.
37311
37312 2009-06-08  Bruno Haible  <bruno@clisp.org>
37313
37314         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37315         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37316         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37317         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37318         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37319         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37320         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37321
37322 2009-06-08  Eric Blake  <ebb9@byu.net>
37323
37324         test-strstr: use memory fence, when possible
37325         * tests/test-strstr.c (main): Use memory fence, in order to be
37326         more likely to trigger Debian bug 521737.
37327         * modules/strstr-tests (Files): Pull in additional files.
37328
37329         memchr: no longer obsolete, for wider field testing
37330         * modules/memchr (Status, Notice): Delete, this module is no
37331         longer obsolete.
37332         * modules/vasnprintf (Depends-on): Add memchr.
37333
37334 2009-06-07  Jim Meyering  <meyering@redhat.com>
37335
37336         hash: declare some functions with the warn_unused_result attribute
37337         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37338
37339 2009-06-07  Bruno Haible  <bruno@clisp.org>
37340
37341         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37342         Reported by Eric Blake.
37343
37344 2009-06-06  Eric Blake  <ebb9@byu.net>
37345
37346         test-alignof: fix typo with long double
37347         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37348         compiler error.
37349
37350 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37351
37352         Escape non-texinfo { and }s.
37353         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37354         markup error.
37355
37356 2009-06-04  Jim Meyering  <meyering@redhat.com>
37357
37358         gitlog-to-changelog: don't infloop on an empty commit log
37359         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37360         Reported by Boris Petersen <transacid@centerim.org>.
37361
37362 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37363
37364         version-etc: extend for packagers
37365         Add three new configure options, intended for packagers:
37366           --with-packager="packager name"
37367           --with-packager-version="packager-specific version"
37368           --with-packager-bug-reports="packager bug reporting"
37369         An example with coreutils:
37370           $ ./configure \
37371             --with-packager=Gentoo \
37372             --with-packager-bug-report=http://bugs.gentoo.org/ \
37373             --with-packager-version="patchset 1.6"
37374           $ ./src/ls --version | head -n2
37375           ls (GNU coreutils) 7.1-dirty
37376           Packaged by Gentoo (patchset 1.6)
37377         Note that the bug reporting info via --help doesn't show up because
37378         coreutils uses its own custom emit_bug_reporting_address() implementation
37379         in src/system.h.  If it didn't, it'd look like:
37380           $ ./src/ls --help | tail -n4
37381           Report bugs to <bug-coreutils@gnu.org>.
37382           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37383           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37384           General help using GNU software: <http://www.gnu.org/gethelp/>.
37385         * lib/version-etc.c: Print new information, if provided.
37386         * m4/version-etc.m4: New file.
37387         * modules/version-etc (Files): Add m4/version-etc.m4.
37388         (configure.ac): Add gl_VERSION_ETC.
37389
37390 2009-05-31  Bruno Haible  <bruno@clisp.org>
37391
37392         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37393         and 'int64_t'.
37394         * modules/alignof-tests (Dependencies): Add stdint.
37395         Reported by Eric Blake.
37396
37397 2009-05-31  Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37400         restriction due to compiler bugs.
37401         Reported by Eric Blake.
37402
37403 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37404             Bruno Haible  <bruno@clisp.org>
37405
37406         Fix test-alignof failure.
37407         * lib/alignof.h (alignof_slot): New macro.
37408         (alignof_type): New macro, with the same semantics as the previous
37409         'alignof'.
37410         (alignof): Alias to alignof_slot.
37411         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37412         check that the results are usable as constant expressions.
37413
37414 2009-05-31  Bruno Haible  <bruno@clisp.org>
37415
37416         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37417         * tests/test-memchr.c (main): Check that memchr does not read past the
37418         first occurrence of the byte.
37419         * tests/test-strstr.c (main): Update comment.
37420         Suggested by Eric Blake.
37421
37422 2009-05-30  Bruno Haible  <bruno@clisp.org>
37423
37424         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37425         detail how to use dumpbin.
37426         Reported by David Byron <dbyron@dbyron.com>.
37427
37428 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37429
37430         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37431
37432 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37433
37434         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37435
37436 2009-05-28  Bruno Haible  <bruno@clisp.org>
37437
37438         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37439         build-aux/ files.
37440
37441 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37442
37443         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37444
37445 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37446
37447         * gnulib-tool (sed_transform_main_lib_file)
37448         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37449         regexps.
37450
37451 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37452
37453         * tests/test-strstr.c: Add another self-test.
37454         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37455         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37456
37457 2009-05-23  Bruno Haible  <bruno@clisp.org>
37458
37459         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37460         change.
37461
37462 2009-05-21  Bruno Haible  <bruno@clisp.org>
37463
37464         Simplify use of mode_t varargs.
37465         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37466         uses 'mode_t' or 'int'.
37467         * lib/openat.c (openat): Likewise.
37468         * lib/open-safer.c (open_safer): Likewise.
37469         * m4/mode_t.m4: New file.
37470         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37471         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37472         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37473         * modules/open (Files): Add m4/mode_t.m4.
37474         * modules/openat (Files): Likewise.
37475         * modules/fcntl-safer (Files): Likewise.
37476         Suggested by Eric Blake.
37477
37478 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37479
37480         * doc/glibc-functions/fallocate.texi: New file.
37481         * doc/gnulib.texi: Include it.
37482
37483 2009-05-21  Eric Blake  <ebb9@byu.net>
37484             Bruno Haible  <bruno@clisp.org>
37485
37486         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37487         invocations.
37488         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37489
37490 2009-05-21  Eric Blake  <ebb9@byu.net>
37491             Bruno Haible  <bruno@clisp.org>
37492
37493         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37494         include_next. Fix of 2008-11-20 commit.
37495         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37496         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37497         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37498         NEXT_MATH_H.
37499         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37500         instead of NEXT_MATH_H.
37501
37502 2009-05-21  Bruno Haible  <bruno@clisp.org>
37503
37504         Avoid redefinition warnings for SIZE_MAX.
37505         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37506         Reported by Simon Josefsson.
37507
37508 2009-05-21  Bruno Haible  <bruno@clisp.org>
37509
37510         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37511         AC_CACHE_VAL.
37512
37513 2009-05-20  Bruno Haible  <bruno@clisp.org>
37514
37515         Make zeroptr.h work on mingw.
37516         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37517         mprotect.
37518         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37519         * modules/memchr2-tests (configure.ac): Likewise.
37520         * modules/memcmp-tests (configure.ac): Likewise.
37521         * modules/memmem-tests (configure.ac): Likewise.
37522         * modules/memrchr-tests (configure.ac): Likewise.
37523         Reported by Simon Josefsson.
37524
37525 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37526
37527         * tests/test-glob.c: Include string.h for strcmp prototype.
37528
37529 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37530
37531         * modules/getdelim (Depends-on): Add explicit stdint, although it
37532         was implicitly already pulled in via realloc-posix.
37533         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37534
37535 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37536
37537         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37538         G. Christensen" <tgc@jupiterrise.com>.
37539         * m4/sys_socket_h.m4: Check for sa_family_t.
37540         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37541         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37542         * tests/test-sys_socket.c: Check that sa_family_t works.
37543
37544 2009-05-18  Eric Blake  <ebb9@byu.net>
37545
37546         maint.mk: allow gnulib_dir in VPATH build
37547         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37548
37549 2009-05-15  Jim Meyering  <meyering@redhat.com>
37550
37551         maint.mk: Give gnulib_dir a default definition.
37552         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37553         Thus, most packages no longer need to specify this variable in cfg.mk
37554
37555 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37556
37557         rename.m4: fix typos that would make non-mingw cross-configure fail
37558         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37559
37560 2009-05-13  Eric Blake  <ebb9@byu.net>
37561
37562         mmap-anon: avoid out-of-order autoconf expansion
37563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37564         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37565         * modules/memchr-tests (Depends-on): Add extensions.
37566         * modules/memchr2-tests (Depends-on): Add extensions.
37567         * modules/memcmp-tests (Depends-on): Add extensions.
37568         * modules/memmem-tests (Depends-on): Add extensions.
37569         * modules/memrchr-tests (Depends-on): Add extensions.
37570
37571 2009-05-13  Bruno Haible  <bruno@clisp.org>
37572
37573         Make some tests ISO C 99 compliant.
37574         * tests/zerosize-ptr.h: New file.
37575         * tests/test-memchr.c: Include zerosize-ptr.h.
37576         (main): Use a zero-size object pointer instead of NULL.
37577         * tests/test-memchr2.c: Include zerosize-ptr.h.
37578         (main): Use a zero-size object pointer instead of NULL.
37579         * tests/test-memcmp.c: Include zerosize-ptr.h.
37580         (main): Use a zero-size object pointer instead of NULL.
37581         * tests/test-memmem.c: Include zerosize-ptr.h.
37582         (main): Use a zero-size object pointer instead of NULL.
37583         * tests/test-memrchr.c: Include zerosize-ptr.h.
37584         (main): Use a zero-size object pointer instead of NULL.
37585         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37586         m4/mmap-anon.m4.
37587         (Depends-on): Add getpagesize.
37588         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37589         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37590         m4/mmap-anon.m4.
37591         (Depends-on): Add getpagesize.
37592         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37593         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37594         m4/mmap-anon.m4.
37595         (Depends-on): Add getpagesize.
37596         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37597         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37598         m4/mmap-anon.m4.
37599         (Depends-on): Add getpagesize.
37600         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37601         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37602         m4/mmap-anon.m4.
37603         (Depends-on): Add getpagesize.
37604         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37605
37606 2009-05-12  Bruno Haible  <bruno@clisp.org>
37607
37608         Tests for module 'alignof'.
37609         * modules/alignof-tests: New file.
37610         * tests/test-alignof.c: New file.
37611
37612 2009-05-12  Bruno Haible  <bruno@clisp.org>
37613
37614         Fix alignof macro.
37615         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37616         vendor compilers that are always correct.
37617
37618 2009-05-12  Bruno Haible  <bruno@clisp.org>
37619
37620         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37621         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37622         not whether its fully works.
37623
37624 2009-05-12  Bruno Haible  <bruno@clisp.org>
37625
37626         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37627
37628 2009-05-12  Jim Meyering  <meyering@redhat.com>
37629
37630         * top/maint.mk: Adjust backslash alignment.
37631
37632 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37633
37634         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37635
37636 2009-05-11  Eric Blake  <ebb9@byu.net>
37637
37638         argp: avoid undefined behavior
37639         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37640         macros.
37641
37642 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37643
37644         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37645         user.name to prevent git commit from complaining.
37646
37647 2009-05-10  Bruno Haible  <bruno@clisp.org>
37648
37649         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37650         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37651         it rewrites every file name only once.
37652         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37653
37654 2009-05-08  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37657         instead of 'max'.
37658
37659 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37660
37661         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37662         sockaddr_storage test.
37663
37664 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37665
37666         * modules/sys_socket (Makefile.am): Substitute
37667         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37668         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37669         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37670         * tests/test-sys_socket.c: Check sockaddr_storage.
37671
37672 2009-05-08  Bruno Haible  <bruno@clisp.org>
37673
37674         New module 'alignof'.
37675         * lib/alignof.h: New file.
37676         * modules/alignof: New file.
37677
37678 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37679             Bruno Haible  <bruno@clisp.org>
37680
37681         Fix test-file-has-acl on FreeBSD.
37682         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37683         mask is implicitly added.
37684         * tests/test-file-has-acl.c: Include <signal.h>.
37685         (main): Terminate the test after 5 seconds.
37686         * modules/acl-tests (configure.ac): Check for alarm function.
37687
37688 2009-05-04  Bruno Haible  <bruno@clisp.org>
37689
37690         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37691         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37692         * modules/errno (configure.ac): Drop AC_REQUIRE.
37693         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37694         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37695
37696 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37697
37698         * modules/glob-tests: New module.
37699         * tests/test-glob.c: Add.
37700
37701 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37702
37703         * modules/fnmatch-tests: New module.
37704         * tests/test-fnmatch.c: Add.
37705
37706 2009-05-04  Eric Blake  <ebb9@byu.net>
37707
37708         maint: make the new no-submodule-changes rule VPATH-safe
37709         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37710
37711 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37712             Bruno Haible  <bruno@clisp.org>
37713
37714         acl: Fix infinite loop on FreeBSD.
37715         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37716         of return value from acl_get_entry.
37717         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37718         Likewise.
37719
37720 2009-05-03  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/acl-internal.h (acl_entries): Clarify return value.
37723         * lib/acl_entries.c (acl_entries): Likewise.
37724
37725 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37726
37727         Bug fix in acl module.
37728         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37729
37730 2009-05-03  Bruno Haible  <bruno@clisp.org>
37731
37732         Create gperf-generated file in the source dir, not in the build dir.
37733         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37734         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37735         * modules/unicase/locale-language (unicase/locale-languages.h):
37736         Likewise.
37737         * modules/unicase/special-casing (unicase/special-casing-table.h):
37738         Likewise.
37739         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37740         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37741         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37742         Reported by Ralf Wildenhues.
37743
37744 2009-05-03  Bruno Haible  <bruno@clisp.org>
37745
37746         * modules/fnmatch (Description, configure.ac): Taken from
37747         fnmatch-posix.
37748         * modules/fnmatch-posix: Turn into a symbolic reference to the
37749         'fnmatch' module, and deprecate.
37750         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37751
37752 2009-05-03  Bruno Haible  <bruno@clisp.org>
37753
37754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37755         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37756         Reported by Ralf Wildenhues.
37757
37758 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37759
37760         * m4/fnmatch.m4: Fix fnmatch re-define.
37761
37762 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37763
37764         priv-set: new module and tests; adapt write-any-file
37765         * lib/priv-set.c: New file.
37766         * lib/priv-set.h: New file.
37767         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37768         * lib/write-any-file.c: Simplify by using priv-set module.
37769         * m4/priv-set.m4: New file.
37770         * modules/priv-set: New file.
37771         * modules/unlinkdir: Add dependency on priv-set module.
37772         * modules/write-any-file: Likewise.
37773
37774         Tests for module 'priv-set'.
37775         * modules/priv-set-tests: New file.
37776         * tests/test-priv-set.c: New file.
37777
37778 2009-05-03  Jim Meyering  <meyering@redhat.com>
37779             Bruno Haible  <bruno@clisp.org>
37780
37781         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37782         use the converted UTF-8 variant of the name instead.
37783
37784 2009-05-03  Jim Meyering  <meyering@redhat.com>
37785
37786         tests: tighten some getdate tests
37787         * tests/test-getdate.c (main): Tighten tests: require equality,
37788         not just greater than.  Set TZ envvar to UTC0.
37789
37790 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37791
37792         getdate: correctly interpret "next monday" when run on a Monday
37793         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37794         that e.g., "next tues" (when run on a tuesday) results in a date
37795         that is one week in the future, and not today's date.
37796         I.e., add a week when the wday is the same as the current one.
37797         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37798         and earlier by Martin Bernreuther and Jan Minář.
37799         * tests/test-getdate.c (main): Check that "next DAY" is always in
37800         the future and that "last DAY" is always in the past.
37801
37802 2009-05-02  Jim Meyering  <meyering@redhat.com>
37803
37804         build: ensure that a release build fails when a submodule is unclean
37805         * top/maint.mk (no-submodule-changes): New rule.
37806         (alpha beta major): Depend on it.
37807
37808 2009-05-02  Bruno Haible  <bruno@clisp.org>
37809
37810         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37811         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37812         shell variable gl_fnmatch_required to detect which variant is
37813         requested.
37814         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37815         gl_FUNC_FNMATCH_POSIX.
37816         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37817         exclude fnmatch-posix.
37818
37819 2009-05-02  Bruno Haible  <bruno@clisp.org>
37820
37821         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37822         * modules/mbsrtowcs (License): Change to LGPLv2+.
37823         * modules/strnlen1 (License): Likewise.
37824         Reported by Simon Josefsson.
37825
37826 2009-05-02  Bruno Haible  <bruno@clisp.org>
37827
37828         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37829         "cross".
37830         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37831         gnulib-tool was called with option --source-base=lib.
37832
37833 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37834
37835         Use automake *-local hooks without commands, for extensibility.
37836         * modules/localcharset (Makefile.am): Rename install-exec-local
37837         rule to install-exec-localcharset, and make it a prerequisite of
37838         install-exec-local.  Likewise, rename the uninstall-local rule to
37839         uninstall-localcharset, and make it a prerequisite of the former.
37840
37841 2009-05-01  Bruno Haible  <bruno@clisp.org>
37842
37843         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37844         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37845         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37847         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37848         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37849         m4/locale-zh.m4, m4/codeset.m4.
37850
37851         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37852         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37853         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37854         m4/locale-zh.m4.
37855
37856         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37857         REPLACE_WCRTOMB if mbstate_t must be replaced.
37858         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37859         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37860
37861 2009-05-01  Bruno Haible  <bruno@clisp.org>
37862
37863         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37864         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37865         dngettext, dcngettext, textdomain, bindtextdomain,
37866         bind_textdomain_codeset): Undefine before redefining.
37867
37868 2009-04-30  Bruno Haible  <bruno@clisp.org>
37869
37870         Fix bug introduced on 2009-04-25.
37871         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37872         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37873         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37874         is defined.
37875         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37876         is defined.
37877         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37878         is defined.
37879         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37880
37881 2009-04-28  Bruno Haible  <bruno@clisp.org>
37882
37883         Comment tweaks.
37884         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37885         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37886         * lib/unicase.h (u*_casexfrm): Likewise.
37887         Reported by Paolo Bonzini.
37888
37889 2009-04-28  Bruno Haible  <bruno@clisp.org>
37890
37891         Fix a compilation error.
37892         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37893         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37894         Reported by Jim Meyering.
37895
37896 2009-04-27  Bruno Haible  <bruno@clisp.org>
37897
37898         New module 'libunistring'.
37899         * modules/libunistring: New file.
37900         * m4/libunistring.m4: New file.
37901         * MODULES.html.sh (Unicode string functions): Add it.
37902
37903 2009-04-27  Eric Blake  <ebb9@byu.net>
37904
37905         maint.mk: allow package-specific header to provide <config.h>
37906         * top/maint.mk (sc_require_config_h): New variable.
37907         (sc_require_config_h, sc_require_config_h_first): Use it.
37908
37909 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37910
37911         * top/maint.mk (sc_avoid_if_before_free): Except
37912         useless-if-before-free script.
37913
37914 2009-04-27  Eric Blake  <ebb9@byu.net>
37915
37916         maintainer-makefile: depend on all required helper scripts
37917         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37918         useless-if-before-free.
37919         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37920         version, rather than assuming gnulib checkout is available.
37921         Reported by Simen Josefsson.
37922
37923 2009-04-26  Bruno Haible  <bruno@clisp.org>
37924
37925         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37926         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37927         "../" or "..".
37928
37929 2009-04-26  Bruno Haible  <bruno@clisp.org>
37930
37931         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37932         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37933         AC_LIB_HAVE_LINKFLAGS.
37934
37935 2009-04-26  Bruno Haible  <bruno@clisp.org>
37936
37937         Simplify calling convention of u*_conv_from_encoding.
37938         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37939         u32_conv_from_encoding): Expect a resultbuf argument and return the
37940         result directly as a pointer.
37941         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37942         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37943         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37944         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37945         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37946         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37947         Update.
37948         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37949         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37950         * lib/vasnprintf.c (VASNPRINTF): Update.
37951         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37952         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37953         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37954         * NEWS: Mention the change.
37955
37956 2009-04-26  Bruno Haible  <bruno@clisp.org>
37957
37958         Simplify calling convention of u*_conv_to_encoding.
37959         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37960         u32_conv_to_encoding): Expect a resultbuf argument and return the
37961         result directly as a pointer.
37962         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37963         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37964         freeing scaled_offsets if mem_iconveha failed.
37965         * lib/unicase/u-casexfrm.h (FUNC): Update.
37966         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37967         * lib/vasnprintf.c (VASNPRINTF): Update.
37968         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37969         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37970         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37971         * NEWS: Mention the change.
37972
37973 2009-04-26  Bruno Haible  <bruno@clisp.org>
37974
37975         Avoid test failures on AIX and OSF/1.
37976         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37977         malloc(0).
37978         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37979         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37980         Likewise.
37981         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37982         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37983         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37984         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37985         * doc/posix-functions/malloc.texi: Document the portability problem
37986         related to malloc(0).
37987
37988 2009-04-26  Bruno Haible  <bruno@clisp.org>
37989
37990         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37991         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37992         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37993
37994 2009-04-25  Bruno Haible  <bruno@clisp.org>
37995
37996         Avoid link error when creating a namespace clean library.
37997         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37998         as macro with arguments if already defined as an alias.
37999         * lib/signbitf.c (gl_signbitf): Don't undefine.
38000         * lib/signbitd.c (gl_signbitd): Don't undefine.
38001         * lib/signbitl.c (gl_signbitl): Don't undefine.
38002
38003 2009-04-25  Jim Meyering  <meyering@redhat.com>
38004
38005         vc-list-files: fix another quoting bug
38006         * build-aux/vc-list-files: Avoid sed backslash expansion
38007         of pathological directory names.
38008
38009 2009-04-25  Eric Blake  <ebb9@byu.net>
38010
38011         vc-list-files: fix shell quoting error
38012         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38013         timestamp.
38014
38015 2009-04-25  Jim Meyering  <meyering@redhat.com>
38016
38017         vc-list-files: restore lost functionality with subdir argument
38018         * build-aux/vc-list-files: When given a non-"." sub-directory
38019         argument, substitute the $dir/ prefix back onto each resulting name.
38020         Otherwise, coreutils' root_tests check would fail.
38021
38022 2009-04-24  Eric Blake  <ebb9@byu.net>
38023
38024         vc-list-files: ignore git symlinks
38025         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38026         than ls-files, to ignore git symlinks.
38027
38028         maint.mk: import improvements from m4
38029         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38030         (move_if_change): Delete unused macro.
38031         (news-date-check, vc-diff-check): Support VPATH builds.
38032         (announcement): Likewise.  Split --bootstrap-tools list...
38033         (boostrap-tools): ...into separate list, which can be overridden
38034         in cfg.mk.
38035         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38036         requiring dependency on useless-if-before-free module.
38037         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38038         Support VPATH builds.
38039
38040 2009-04-24  Jim Meyering  <meyering@redhat.com>
38041
38042         maint.mk: remove coreutils-specific rules and variables
38043         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38044         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38045         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38046
38047         maint.mk: remove obsolete rule
38048         * top/maint.mk (rel-check): Remove rule.
38049         (WGET, WGETFLAGS): Remove now-unused variables.
38050
38051 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38052
38053         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38054         consistency.
38055
38056         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38057         '$(PATH_SEPARATOR)' instead of ':'.
38058
38059 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38060
38061         * lib/getopt1.c (main): Use 'const' for static array.
38062
38063 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38064
38065         * top/maint.mk: Sync with coreutils.
38066         * NEWS: Explain incompatibilities.
38067
38068 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38069             Bruno Haible  <bruno@clisp.org>
38070
38071         Fix cross-compilation results.
38072         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38073         statement, as third argument of AC_TRY_RUN.
38074         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38075         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38076         Likewise.
38077         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38078         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38079         Likewise.
38080         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38081         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38082         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38083
38084 2009-04-20  Bruno Haible  <bruno@clisp.org>
38085
38086         Avoid test failure on mingw.
38087         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38088
38089 2009-04-20  Bruno Haible  <bruno@clisp.org>
38090
38091         Avoid compilation error on mingw.
38092         * modules/localename-tests (Depends-on): Add locale.
38093
38094 2009-04-19  Bruno Haible  <bruno@clisp.org>
38095
38096         Support for building a shared library on Windows platforms.
38097         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38098         (main): Test the presence of UNINORM_NFC here.
38099         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38100         (main): Test the presence of UNINORM_NFD here.
38101         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38102         (main): Test the presence of UNINORM_NFKC here.
38103         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38104         (main): Test the presence of UNINORM_NFKD here.
38105
38106 2009-04-19  Bruno Haible  <bruno@clisp.org>
38107
38108         Avoid a compiler warning.
38109         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38110         Change type of variable 'sequence'.
38111
38112 2009-04-19  Bruno Haible  <bruno@clisp.org>
38113
38114         * modules/configmake (Makefile.am): When the contents of configmake.h
38115         does not change, arrange to preserve its modification time.
38116
38117 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38118
38119         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38120         gettext domain.
38121
38122 2009-04-16  Jim Meyering  <meyering@redhat.com>
38123
38124         useless-if-before-free: improve conversion code
38125         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38126         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38127
38128 2009-04-14  Bruno Haible  <bruno@clisp.org>
38129
38130         * modules/fcntl (Depends-on): Add extensions.
38131         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38132
38133 2009-04-12  Ben Pfaff  <blp@gnu.org>
38134
38135         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38136         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38137
38138 2009-03-20  Ben Pfaff  <blp@gnu.org>
38139
38140         Make rename replace existing destinations on Windows.
38141         * m4/rename.m4: Add test for Mingw.
38142         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38143         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38144         * doc/posix-functions/rename.texi: Document.
38145
38146 2009-04-10  Bruno Haible  <bruno@clisp.org>
38147
38148         New include file "iconveh.h".
38149         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38150         * lib/striconveh.h: Include it.
38151         (enum iconv_ilseq_handler): Remove definition.
38152         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38153         striconveh.h.
38154         * lib/striconveha.c: Include striconveh.h.
38155         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38156         * modules/striconveh (Files): Add lib/iconveh.h.
38157         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38158         lib/striconveh.h.
38159
38160 2009-04-10  Bruno Haible  <bruno@clisp.org>
38161
38162         * lib/uniconv.h: Update comment.
38163
38164 2009-04-10  Bruno Haible  <bruno@clisp.org>
38165
38166         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38167         always.
38168         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38169         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38170         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38171         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38172         "unistring-notinline.h", so that the function gets defined always.
38173         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38174         * lib/unistr/u8-uctomb.c: Likewise.
38175         * lib/unistr/u16-mbtouc.c: Likewise.
38176         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38177         * lib/unistr/u16-uctomb.c: Likewise.
38178         * lib/unistr/u32-mbtouc.c: Likewise.
38179         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38180         * lib/unistr/u32-uctomb.c: Likewise.
38181
38182 2009-04-10  Bruno Haible  <bruno@clisp.org>
38183
38184         Mark 'utime' obsolete.
38185         * modules/utime (Status, Notice): New sections.
38186         Suggested by Jim Meyering.
38187
38188         Fix cross-compile guess for utime test.
38189         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38190         autoconf.
38191         * doc/posix-functions/utime.texi: Give more precisions.
38192         Reported by Jan <ipif@ymail.com>.
38193
38194 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38195
38196         filevercmp: correct today's change
38197         * lib/filevercmp.c: Also handle coreutils' test inputs.
38198         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38199
38200         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38201         for reporting it.
38202         * lib/filevercmp.c: Special handle for "", "." and "..".
38203         * tests/test-filevercmp.c: Enlarge the set suite.
38204
38205 2009-04-07  Jim Meyering  <meyering@redhat.com>
38206
38207         useless-if-before-free: show how to remove braced useless free, too
38208         * build-aux/useless-if-before-free: still only in a comment, though.
38209
38210 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38211
38212         maint.mk: import changes to syntax-check macros from coreutils
38213         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38214         Use them in the relevant macros.
38215
38216 2009-04-06  Bruno Haible  <bruno@clisp.org>
38217
38218         Fix unportable use of bit-fields.
38219         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38220         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38221         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38222
38223 2009-04-06  Bruno Haible  <bruno@clisp.org>
38224
38225         Avoid test failures on AIX and OSF/1.
38226         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38227         that malloc(0) = NULL.
38228         * tests/unicase/test-u8-tolower.c (check): Likewise.
38229         * tests/unicase/test-u8-totitle.c (check): Likewise.
38230         * tests/unicase/test-u8-toupper.c (check): Likewise.
38231         * tests/unicase/test-u16-casefold.c (check): Likewise.
38232         * tests/unicase/test-u16-tolower.c (check): Likewise.
38233         * tests/unicase/test-u16-totitle.c (check): Likewise.
38234         * tests/unicase/test-u16-toupper.c (check): Likewise.
38235         * tests/unicase/test-u32-casefold.c (check): Likewise.
38236         * tests/unicase/test-u32-tolower.c (check): Likewise.
38237         * tests/unicase/test-u32-totitle.c (check): Likewise.
38238         * tests/unicase/test-u32-toupper.c (check): Likewise.
38239         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38240         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38241         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38242         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38243         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38244         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38245         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38246         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38247         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38248         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38249         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38250         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38251
38252 2009-04-05  Bruno Haible  <bruno@clisp.org>
38253
38254         Work around an autoconf limitation.
38255         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38256         comment line if it would be longer than 3 KB.
38257
38258 2009-04-05  Bruno Haible  <bruno@clisp.org>
38259
38260         Avoid test failure with libiconv-1.13.
38261         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38262         of the expected test results.
38263
38264 2009-04-05  Bruno Haible  <bruno@clisp.org>
38265
38266         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38267         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38268         that it should be installed.
38269
38270 2009-04-05  Bruno Haible  <bruno@clisp.org>
38271
38272         * gnulib-tool: New option --copy-file.
38273         (func_usage): Document it.
38274         (func_dest_tmpfilename): Moved out of func_import.
38275         (func_add_file, func_update_file): New functions, extracted from
38276         func_import.
38277         (func_import): Update.
38278
38279 2009-04-05  Karl Berry  <karl@gnu.org>
38280
38281         * README: prominently mention gnulib-tool.
38282         Rearrange sections so getting the code is near the top.
38283
38284 2009-04-05  Bruno Haible  <bruno@clisp.org>
38285
38286         * lib/unicase.h: Mention u*_cmp2.
38287         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38288         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38289         * lib/unicase/ulc-casecmp.c: Likewise.
38290         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38291         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38292         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38293         unistr/u8-cmp.
38294         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38295         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38296         unistr/u16-cmp.
38297         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38298         unistr/u32-cmp.
38299
38300         * lib/uninorm.h: Mention u*_cmp2.
38301         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38302         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38303         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38304         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38305         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38306         unistr/u8-cmp.
38307         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38308         unistr/u16-cmp.
38309         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38310         unistr/u32-cmp.
38311
38312         New module 'unistr/u32-cmp2'.
38313         * lib/unistr/u32-cmp2.c: New file.
38314         * modules/unistr/u32-cmp2: New file.
38315
38316         New module 'unistr/u16-cmp2'.
38317         * lib/unistr/u16-cmp2.c: New file.
38318         * modules/unistr/u16-cmp2: New file.
38319
38320         New module 'unistr/u8-cmp2'.
38321         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38322         * lib/unistr/u8-cmp2.c: New file.
38323         * lib/unistr/u-cmp2.h: New file.
38324         * modules/unistr/u8-cmp2: New file.
38325
38326 2009-04-05  Bruno Haible  <bruno@clisp.org>
38327
38328         * lib/unictype.h (uc_property_is_valid): New macro.
38329         * tests/unictype/test-pr_byname.c (main): Use it.
38330
38331         * lib/unistr.h: Doc fixes.
38332         * lib/uniconv.h: Doc fixes.
38333         * lib/unictype.h: Doc fixes.
38334
38335 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38336
38337         Port coreutils 7.2 to Solaris 8.
38338
38339         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38340         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38341         for Solaris 8.  This is a bit of a hack, as it means it's the
38342         caller's responsibility to add -lnsl if needed, but most likely it
38343         won't be needed since only getaddrinfo uses this and getaddrinfo
38344         isn't needed on Solaris 8.
38345
38346         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38347         problem to Solaris 8 encountered with coreutils 7.2, which
38348         resulted in a message "fnmatch.c:292: warning: passing argument 4
38349         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38350         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38351
38352 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38353
38354         * m4/ld-version-script.m4: Add FIXME comment.
38355
38356 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38357
38358         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38359         SOVERSION variable.
38360
38361 2009-04-02  Bruno Haible  <bruno@clisp.org>
38362
38363         * Makefile (info, html, dvi, pdf): Combine the rules.
38364         Suggested by Jim Meyering.
38365
38366 2009-04-01  Bruno Haible  <bruno@clisp.org>
38367
38368         * Makefile (info, html, dvi, pdf): New targets.
38369         Reported by Reuben Thomas <rrt@sc3d.org>.
38370
38371 2009-04-01  Bruno Haible  <bruno@clisp.org>
38372
38373         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38374         can be put into PATH.
38375         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38376
38377 2009-04-01  Bruno Haible  <bruno@clisp.org>
38378
38379         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38380
38381 2009-04-01  Bruno Haible  <bruno@clisp.org>
38382
38383         Rename module 'visibility'.
38384         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38385         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38386         * doc/gnulib.texi: Update.
38387         * MODULES.html.sh (Misc): Update.
38388         * NEWS: Mention the change.
38389
38390 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38391
38392         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38393         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38394         Eric Blake <ebb9@byu.net> for review.
38395         * MODULES.html.sh: Add lib-msvc-compat.
38396         * doc/gnulib.texi: Link to new section.
38397         * m4/ld-output-def.m4: New file.
38398         * doc/ld-output-def.texi: New file.
38399
38400 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38401
38402         Rename ld-version-script to lib-symbol-versions.  Suggested by
38403         Bruno Haible <bruno@clisp.org>.
38404         * modules/ld-version-script: Renamed to lib-symbol-versions.
38405         * doc/ld-version-script.texi: Fix module name.
38406         * MODULES.html.sh: Add lib-symbol-versions.
38407
38408 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38409
38410         * modules/u64-tests: New file.
38411         * tests/test-u64.c: New file.
38412
38413 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38414
38415         * MODULES.html.sh: Mention u64.
38416         * modules/u64: New module.
38417         * modules/crypto/sha512: Depend on u64 module instead of providing
38418         u64.h.
38419
38420 2009-03-27  Eric Blake  <ebb9@byu.net>
38421
38422         test-strerror: make debugging EAI_SYSTEM easier
38423         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38424         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38425         failure was EAI_SYSTEM.
38426
38427 2009-03-25  Bruno Haible  <bruno@clisp.org>
38428
38429         Fix a problem with --enable-relocatable on Solaris 7.
38430         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38431         since 2008-02-24.
38432
38433 2009-03-25  Eric Blake  <ebb9@byu.net>
38434
38435         test-sockets: avoid gcc warning
38436         * tests/test-sockets.c (main): Silence compiler warning.
38437
38438 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38439
38440         New modules nproc, pthread, contributed by Glen Lenker.
38441
38442         * MODULES.html.sh: Add pthread, nproc.
38443         * lib/nproc.c: New file.
38444         * lib/nproc.h: New file.
38445         * lib/pthread.in.h: New file.
38446         * m4/pthread.m4: New file.
38447         * modules/nproc: New file.
38448         * modules/pthread: New file.
38449
38450 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38451
38452         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38453         New variable.
38454
38455 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38456
38457         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38458         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38459         * tests/test-filevercmp.c: Add tests for backup suffixes.
38460
38461 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38462
38463         * modules/stdlib (Depends-on): Add stdint, needed when defining
38464         struct random_data on, for example, HP-UX 10.20.  Reported by
38465         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38466
38467 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38468
38469         * lib/readline.c (readline): Call fflush on stdout after printing
38470         prompt.
38471
38472 2009-03-20  Bruno Haible  <bruno@clisp.org>
38473
38474         Remove dependency from 'close' module to -lws2_32 on native Windows.
38475         * lib/close-hook.h: New file.
38476         * lib/close-hook.c: New file.
38477         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38478         w32sock.h.
38479         (_gl_close_fd_maybe_socket): Remove function.
38480         (rpl_close): Invoke execute_all_close_hooks instead of
38481         _gl_close_fd_maybe_socket.
38482         * lib/sockets.c: Include close-hook.h, w32sock.h.
38483         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38484         (close_sockets_hook): New variable.
38485         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38486         (gl_sockets_cleanup): Unregister it.
38487         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38488         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38489         * modules/close-hook: New file.
38490         * modules/close (Files): Remove lib/w32sock.h.
38491         (Depends-on): Add close-hook.
38492         (Link): Remove section.
38493         * modules/sockets (Files): Add lib/w32sock.h.
38494         (Depends-on): Add close-hook.
38495         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38496         invocation.
38497         * NEWS: Mention that LIB_CLOSE is gone.
38498
38499 2009-03-23  Eric Blake  <ebb9@byu.net>
38500
38501         signal-tests: test previous patch
38502         * tests/test-signal.c: New file.
38503         * modules/signal-tests: Likewise.
38504
38505         signal.h: always support 'volatile sig_atomic_t'
38506         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38507         (gl_SIGNAL_H_DEFAULTS): Add a default.
38508         * modules/signal (Makefile.am): Substitute if needed.
38509         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38510         users can blindly add volatile.
38511         * doc/posix-headers/signal.texi (signal.h): Document it.
38512         Reported by Matthew Woehlke.
38513
38514 2009-03-23  Jim Meyering  <meyering@redhat.com>
38515
38516         pathmax: PATH_MAX: use pathconf only when available
38517         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38518         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38519         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38520         This avoids a link failure in a PSP cross-compilation environment
38521         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38522
38523         * lib/vasnprintf.c (divide): Fix typo in comment.
38524
38525 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38526
38527         * gnulib-tool (func_filter_filelist): Fix comment.
38528
38529 2009-03-20  Bruno Haible  <bruno@clisp.org>
38530
38531         Make sockets.h self-contained.
38532         * lib/sockets.c: Include sockets.h first.
38533         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38534
38535 2009-03-19  Eric Blake  <ebb9@byu.net>
38536
38537         doc: mention more functions added in cygwin 1.7.0
38538         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38539         addition.
38540         * doc/posix-functions/log2f.texi: Likewise.
38541
38542 2009-03-19  Jim Meyering  <meyering@redhat.com>
38543
38544         fsusage: avoid syntax error due to statement-before-declaration
38545         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38546         after all declarations.  Reported by Matthew Woehlke in
38547         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38548
38549 2009-03-18  Eric Blake  <ebb9@byu.net>
38550
38551         build-aux/compile: sync from automake
38552         * build-aux/compile: New file, from automake.
38553         * config/srclist.txt: Mention build-aux/compile.
38554
38555 2009-03-17  Bruno Haible  <bruno@clisp.org>
38556
38557         * lib/git-merge-changelog.c: Fix typo in comment.
38558         Reported by Reuben Thomas <rrt@sc3d.org>.
38559
38560 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38561
38562         * m4/regex.m4: update and improve help for
38563         --without-included-regex.
38564
38565 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38566
38567         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38568         failure on missing include files.
38569
38570 2009-03-17  Eric Blake  <ebb9@byu.net>
38571
38572         doc: mention more functions added in cygwin 1.7.0
38573         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38574         addition.
38575         * doc/posix-functions/fwscanf.texi: Likewise.
38576         * doc/posix-functions/swprintf.texi: Likewise.
38577         * doc/posix-functions/swscanf.texi: Likewise.
38578         * doc/posix-functions/vfwprintf.texi: Likewise.
38579         * doc/posix-functions/vfwscanf.texi: Likewise.
38580         * doc/posix-functions/vswprintf.texi: Likewise.
38581         * doc/posix-functions/vswscanf.texi: Likewise.
38582         * doc/posix-functions/vwprintf.texi: Likewise.
38583         * doc/posix-functions/vwscanf.texi: Likewise.
38584         * doc/posix-functions/wcscasecmp.texi: Likewise.
38585         * doc/posix-functions/wcsdup.texi: Likewise.
38586         * doc/posix-functions/wcsftime.texi: Likewise.
38587         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38588         * doc/posix-functions/wprintf.texi: Likewise.
38589         * doc/posix-functions/wscanf.texi: Likewise.
38590         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38591
38592 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38593
38594         maint.mk: really add $(AM_MAKEFLAGS)
38595         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38596         was inadvertently omitted in the last commit.
38597         Spotted by Bruno Haible.
38598
38599         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38600         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38601         $(AM_MAKEFLAGS)' rather than plain `make'.
38602
38603         gnulib-tool: execute $MAKE not make
38604         * gnulib-tool: Default $MAKE to 'make'.
38605         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38606         than make.  Initialize $MAKE in the do-autobuild script.
38607
38608         gnulib-tool: use $MAKE not make in generated files
38609         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38610         make, in generated files.  Initialize $MAKE in the do-autobuild
38611         script.
38612
38613         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38614
38615         GNUmakefile: disable parallelism only for multiple, recursive targets
38616         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38617         additions in the Makefile.
38618         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38619         by Automake.
38620         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38621         are listed on the command line and at least one of them is
38622         listed in $(ALL_RECURSIVE_TARGETS).
38623
38624 2009-03-14  Bruno Haible  <bruno@clisp.org>
38625
38626         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38627         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38628         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38629         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38630         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38631         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38632         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38633         unistr/u8-uctomb.
38634         * modules/unistr/u8-strchr (Depends-on): Likewise.
38635         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38636         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38637         unistr/u16-uctomb.
38638         * modules/unistr/u16-strchr (Depends-on): Likewise.
38639         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38640
38641 2009-03-12  Bruno Haible  <bruno@clisp.org>
38642
38643         Work around select() bug on Interix 3.5.
38644         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38645         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38646         * m4/select.m4: New file.
38647         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38648         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38649         * modules/select (Files): Add m4/select.m4.
38650         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38651         * modules/nanosleep (Depends-on): Add select.
38652         * modules/poll (Depends-on): Likewise.
38653         * doc/posix-functions/select.texi: Mention the Interix bug.
38654         Reported by Markus Duft <mduft@gentoo.org>.
38655
38656         * lib/select.c: Renamed from lib/winsock-select.c.
38657         * modules/select (Files): Add lib/select.c, remove
38658         lib/winsock-select.c.
38659         (configure.ac): Update.
38660
38661 2009-03-12  Jim Meyering  <meyering@redhat.com>
38662
38663         avoid gcc warnings about unused macro definitions
38664         * lib/readtokens.c (STREQ): Remove unused definition.
38665         * lib/xmalloc.c (SIZE_MAX): Likewise.
38666         * lib/openat-die.c (N_): Likewise.
38667         * lib/mountlist.c (SIZE_MAX): Remove definition.
38668         Instead, include <stdint.h>.
38669         * lib/readutmp.c: Likewise.
38670         * modules/readutmp (Depends-on): Add stdint.
38671         * modules/mountlist (Depends-on): Add stdint.
38672         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38673
38674 2009-03-10  Bruno Haible  <bruno@clisp.org>
38675
38676         Tests for module 'mbmemcasecoll'.
38677         * modules/mbmemcasecoll-tests: New file.
38678         * tests/test-mbmemcasecoll1.sh: New file.
38679         * tests/test-mbmemcasecoll2.sh: New file.
38680         * tests/test-mbmemcasecoll3.sh: New file.
38681         * tests/test-mbmemcasecoll.c: New file.
38682
38683         New module 'mbmemcasecoll'.
38684         * lib/mbmemcasecoll.h: New file.
38685         * lib/mbmemcasecoll.c: New file.
38686         * modules/mbmemcasecoll: New file.
38687
38688         * tests/test-mbmemcasecmp.h: New file, extracted from
38689         tests/test-mbmemcasecmp.c.
38690         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38691         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38692         (main): Update.
38693         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38694
38695 2009-03-09  Bruno Haible  <bruno@clisp.org>
38696
38697         Tests for module 'mbmemcasecmp'.
38698         * modules/mbmemcasecmp-tests: New file.
38699         * tests/test-mbmemcasecmp1.sh: New file.
38700         * tests/test-mbmemcasecmp2.sh: New file.
38701         * tests/test-mbmemcasecmp3.sh: New file.
38702         * tests/test-mbmemcasecmp.c: New file.
38703
38704         New module 'mbmemcasecmp'.
38705         * lib/mbmemcasecmp.h: New file.
38706         * lib/mbmemcasecmp.c: New file.
38707         * modules/mbmemcasecmp: New file.
38708
38709 2009-03-09  Bruno Haible  <bruno@clisp.org>
38710
38711         Tests for module 'unicase/ulc-casecoll'.
38712         * modules/unicase/ulc-casecoll-tests: New file.
38713         * tests/unicase/test-ulc-casecoll1.sh: New file.
38714         * tests/unicase/test-ulc-casecoll2.sh: New file.
38715         * tests/unicase/test-ulc-casecoll.c: New file.
38716
38717         New module 'unicase/ulc-casecoll'.
38718         * lib/unicase.h (ulc_casecoll): New declaration.
38719         * lib/unicase/ulc-casecoll.c: New file.
38720         * modules/unicase/ulc-casecoll: New file.
38721
38722         New module 'unicase/ulc-casexfrm'.
38723         * lib/unicase.h (ulc_casexfrm): New declaration.
38724         * lib/unicase/ulc-casexfrm.c: New file.
38725         * modules/unicase/ulc-casexfrm: New file.
38726
38727 2009-03-09  Bruno Haible  <bruno@clisp.org>
38728
38729         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38730         invocations.
38731
38732         * m4/mbscasecmp.m4: Remove file.
38733         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38734         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38735
38736         * m4/mbscasestr.m4: Remove file.
38737         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38738         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38739
38740         * m4/mbschr.m4: Remove file.
38741         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38742         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38743
38744         * m4/mbscspn.m4: Remove file.
38745         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38746         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38747
38748         * m4/mbslen.m4: Remove file.
38749         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38750         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38751
38752         * m4/mbsncasecmp.m4: Remove file.
38753         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38754         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38755
38756         * m4/mbsnlen.m4: Remove file.
38757         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38758         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38759
38760         * m4/mbspbrk.m4: Remove file.
38761         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38762         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38763
38764         * m4/mbspcasecmp.m4: Remove file.
38765         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38766         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38767
38768         * m4/mbsrchr.m4: Remove file.
38769         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38770         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38771
38772         * m4/mbssep.m4: Remove file.
38773         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38774         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38775
38776         * m4/mbsspn.m4: Remove file.
38777         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38778         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38779
38780         * m4/mbsstr.m4: Remove file.
38781         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38782         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38783
38784         * m4/mbstok_r.m4: Remove file.
38785         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38786         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38787
38788         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38789
38790         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38791         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38792
38793         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38794
38795 2009-03-08  Bruno Haible  <bruno@clisp.org>
38796
38797         Tests for module 'unicase/ulc-casecmp'.
38798         * modules/unicase/ulc-casecmp-tests: New file.
38799         * tests/unicase/test-ulc-casecmp1.sh: New file.
38800         * tests/unicase/test-ulc-casecmp2.sh: New file.
38801         * tests/unicase/test-ulc-casecmp.c: New file.
38802
38803         New module 'unicase/ulc-casecmp'.
38804         * lib/unicase.h (ulc_casecmp): New declaration.
38805         * lib/unicase/ulc-casecmp.c: New file.
38806         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38807         'const SRC_UNIT *'.
38808         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38809         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38810         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38811         * modules/unicase/ulc-casecmp: New file.
38812
38813         Tests for module 'unicase/u32-is-cased'.
38814         * modules/unicase/u32-is-cased-tests: New file.
38815         * tests/unicase/test-u32-is-cased.c: New file.
38816
38817         Tests for module 'unicase/u16-is-cased'.
38818         * modules/unicase/u16-is-cased-tests: New file.
38819         * tests/unicase/test-u16-is-cased.c: New file.
38820
38821         Tests for module 'unicase/u8-is-cased'.
38822         * modules/unicase/u8-is-cased-tests: New file.
38823         * tests/unicase/test-u8-is-cased.c: New file.
38824         * tests/unicase/test-is-cased.h: New file.
38825
38826         New module 'unicase/u32-is-cased'.
38827         * lib/unicase/u32-is-cased.c: New file.
38828         * modules/unicase/u32-is-cased: New file.
38829
38830         New module 'unicase/u16-is-cased'.
38831         * lib/unicase/u16-is-cased.c: New file.
38832         * modules/unicase/u16-is-cased: New file.
38833
38834         New module 'unicase/u8-is-cased'.
38835         * lib/unicase/u8-is-cased.c: New file.
38836         * lib/unicase/u-is-cased.h: New file.
38837         * modules/unicase/u8-is-cased: New file.
38838
38839         Tests for module 'unicase/u32-is-casefolded'.
38840         * modules/unicase/u32-is-casefolded-tests: New file.
38841         * tests/unicase/test-u32-is-casefolded.c: New file.
38842
38843         Tests for module 'unicase/u16-is-casefolded'.
38844         * modules/unicase/u16-is-casefolded-tests: New file.
38845         * tests/unicase/test-u16-is-casefolded.c: New file.
38846
38847         Tests for module 'unicase/u8-is-casefolded'.
38848         * modules/unicase/u8-is-casefolded-tests: New file.
38849         * tests/unicase/test-u8-is-casefolded.c: New file.
38850         * tests/unicase/test-is-casefolded.h: New file.
38851
38852         New module 'unicase/u32-is-casefolded'.
38853         * lib/unicase/u32-is-casefolded.c: New file.
38854         * modules/unicase/u32-is-casefolded: New file.
38855
38856         New module 'unicase/u16-is-casefolded'.
38857         * lib/unicase/u16-is-casefolded.c: New file.
38858         * modules/unicase/u16-is-casefolded: New file.
38859
38860         New module 'unicase/u8-is-casefolded'.
38861         * lib/unicase/u8-is-casefolded.c: New file.
38862         * modules/unicase/u8-is-casefolded: New file.
38863
38864         Tests for module 'unicase/u32-is-titlecase'.
38865         * modules/unicase/u32-is-titlecase-tests: New file.
38866         * tests/unicase/test-u32-is-titlecase.c: New file.
38867
38868         Tests for module 'unicase/u16-is-titlecase'.
38869         * modules/unicase/u16-is-titlecase-tests: New file.
38870         * tests/unicase/test-u16-is-titlecase.c: New file.
38871
38872         Tests for module 'unicase/u8-is-titlecase'.
38873         * modules/unicase/u8-is-titlecase-tests: New file.
38874         * tests/unicase/test-u8-is-titlecase.c: New file.
38875         * tests/unicase/test-is-titlecase.h: New file.
38876
38877         New module 'unicase/u32-is-titlecase'.
38878         * lib/unicase/u32-is-titlecase.c: New file.
38879         * modules/unicase/u32-is-titlecase: New file.
38880
38881         New module 'unicase/u16-is-titlecase'.
38882         * lib/unicase/u16-is-titlecase.c: New file.
38883         * modules/unicase/u16-is-titlecase: New file.
38884
38885         New module 'unicase/u8-is-titlecase'.
38886         * lib/unicase/u8-is-titlecase.c: New file.
38887         * modules/unicase/u8-is-titlecase: New file.
38888
38889         Tests for module 'unicase/u32-is-lowercase'.
38890         * modules/unicase/u32-is-lowercase-tests: New file.
38891         * tests/unicase/test-u32-is-lowercase.c: New file.
38892
38893         Tests for module 'unicase/u16-is-lowercase'.
38894         * modules/unicase/u16-is-lowercase-tests: New file.
38895         * tests/unicase/test-u16-is-lowercase.c: New file.
38896
38897         Tests for module 'unicase/u8-is-lowercase'.
38898         * modules/unicase/u8-is-lowercase-tests: New file.
38899         * tests/unicase/test-u8-is-lowercase.c: New file.
38900         * tests/unicase/test-is-lowercase.h: New file.
38901
38902         New module 'unicase/u32-is-lowercase'.
38903         * lib/unicase/u32-is-lowercase.c: New file.
38904         * modules/unicase/u32-is-lowercase: New file.
38905
38906         New module 'unicase/u16-is-lowercase'.
38907         * lib/unicase/u16-is-lowercase.c: New file.
38908         * modules/unicase/u16-is-lowercase: New file.
38909
38910         New module 'unicase/u8-is-lowercase'.
38911         * lib/unicase/u8-is-lowercase.c: New file.
38912         * modules/unicase/u8-is-lowercase: New file.
38913
38914         Tests for module 'unicase/u32-is-uppercase'.
38915         * modules/unicase/u32-is-uppercase-tests: New file.
38916         * tests/unicase/test-u32-is-uppercase.c: New file.
38917
38918         Tests for module 'unicase/u16-is-uppercase'.
38919         * modules/unicase/u16-is-uppercase-tests: New file.
38920         * tests/unicase/test-u16-is-uppercase.c: New file.
38921
38922         Tests for module 'unicase/u8-is-uppercase'.
38923         * modules/unicase/u8-is-uppercase-tests: New file.
38924         * tests/unicase/test-u8-is-uppercase.c: New file.
38925         * tests/unicase/test-is-uppercase.h: New file.
38926
38927         New module 'unicase/u32-is-uppercase'.
38928         * lib/unicase/u32-is-uppercase.c: New file.
38929         * modules/unicase/u32-is-uppercase: New file.
38930
38931         New module 'unicase/u16-is-uppercase'.
38932         * lib/unicase/u16-is-uppercase.c: New file.
38933         * modules/unicase/u16-is-uppercase: New file.
38934
38935         New module 'unicase/u8-is-uppercase'.
38936         * lib/unicase/u8-is-uppercase.c: New file.
38937         * modules/unicase/u8-is-uppercase: New file.
38938
38939         New module 'unicase/u32-is-invariant'.
38940         * lib/unicase/u32-is-invariant.c: New file.
38941         * modules/unicase/u32-is-invariant: New file.
38942
38943         New module 'unicase/u16-is-invariant'.
38944         * lib/unicase/u16-is-invariant.c: New file.
38945         * modules/unicase/u16-is-invariant: New file.
38946
38947         New module 'unicase/u8-is-invariant'.
38948         * lib/unicase/u8-is-invariant.c: New file.
38949         * lib/unicase/invariant.h: New file.
38950         * lib/unicase/u-is-invariant.h: New file.
38951         * modules/unicase/u8-is-invariant: New file.
38952
38953         Tests for module 'unicase/u32-casecoll'.
38954         * modules/unicase/u32-casecoll-tests: New file.
38955         * tests/unicase/test-u32-casecoll.c: New file.
38956
38957         Tests for module 'unicase/u16-casecoll'.
38958         * modules/unicase/u16-casecoll-tests: New file.
38959         * tests/unicase/test-u16-casecoll.c: New file.
38960
38961         Tests for module 'unicase/u8-casecoll'.
38962         * modules/unicase/u8-casecoll-tests: New file.
38963         * tests/unicase/test-u8-casecoll.c: New file.
38964
38965         New module 'unicase/u32-casecoll'.
38966         * lib/unicase/u32-casecoll.c: New file.
38967         * modules/unicase/u32-casecoll: New file.
38968
38969         New module 'unicase/u16-casecoll'.
38970         * lib/unicase/u16-casecoll.c: New file.
38971         * modules/unicase/u16-casecoll: New file.
38972
38973         New module 'unicase/u8-casecoll'.
38974         * lib/unicase/u8-casecoll.c: New file.
38975         * lib/unicase/u-casecoll.h: New file.
38976         * modules/unicase/u8-casecoll: New file.
38977
38978         New module 'unicase/u32-casexfrm'.
38979         * lib/unicase/u32-casexfrm.c: New file.
38980         * modules/unicase/u32-casexfrm: New file.
38981
38982         New module 'unicase/u16-casexfrm'.
38983         * lib/unicase/u16-casexfrm.c: New file.
38984         * modules/unicase/u16-casexfrm: New file.
38985
38986         New module 'unicase/u8-casexfrm'.
38987         * lib/unicase/u8-casexfrm.c: New file.
38988         * lib/unicase/u-casexfrm.h: New file.
38989         * modules/unicase/u8-casexfrm: New file.
38990
38991         Tests for module 'unicase/u32-casecmp'.
38992         * modules/unicase/u32-casecmp-tests: New file.
38993         * tests/unicase/test-u32-casecmp.c: New file.
38994
38995         Tests for module 'unicase/u16-casecmp'.
38996         * modules/unicase/u16-casecmp-tests: New file.
38997         * tests/unicase/test-u16-casecmp.c: New file.
38998
38999         Tests for module 'unicase/u8-casecmp'.
39000         * modules/unicase/u8-casecmp-tests: New file.
39001         * tests/unicase/test-u8-casecmp.c: New file.
39002         * tests/unicase/test-casecmp.h: New file.
39003
39004         New module 'unicase/u32-casecmp'.
39005         * lib/unicase/u32-casecmp.c: New file.
39006         * modules/unicase/u32-casecmp: New file.
39007
39008         New module 'unicase/u16-casecmp'.
39009         * lib/unicase/u16-casecmp.c: New file.
39010         * modules/unicase/u16-casecmp: New file.
39011
39012         New module 'unicase/u8-casecmp'.
39013         * lib/unicase/u8-casecmp.c: New file.
39014         * lib/unicase/u-casecmp.h: New file.
39015         * modules/unicase/u8-casecmp: New file.
39016
39017         Tests for module 'unicase/u32-casefold'.
39018         * modules/unicase/u32-casefold-tests: New file.
39019         * tests/unicase/test-u32-casefold.c: New file.
39020
39021         Tests for module 'unicase/u16-casefold'.
39022         * modules/unicase/u16-casefold-tests: New file.
39023         * tests/unicase/test-u16-casefold.c: New file.
39024
39025         Tests for module 'unicase/u8-casefold'.
39026         * modules/unicase/u8-casefold-tests: New file.
39027         * tests/unicase/test-u8-casefold.c: New file.
39028
39029         New module 'unicase/u32-casefold'.
39030         * lib/unicase/u32-casefold.c: New file.
39031         * modules/unicase/u32-casefold: New file.
39032
39033         New module 'unicase/u16-casefold'.
39034         * lib/unicase/u16-casefold.c: New file.
39035         * modules/unicase/u16-casefold: New file.
39036
39037         New module 'unicase/u8-casefold'.
39038         * lib/unicase/u8-casefold.c: New file.
39039         * lib/unicase/u-casefold.h: New file.
39040         * modules/unicase/u8-casefold: New file.
39041
39042         New module 'unicase/tocasefold'.
39043         * lib/unicase/casefold.h: New file.
39044         * lib/unicase/tocasefold.c: New file.
39045         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39046         * modules/unicase/tocasefold: New file.
39047
39048         Tests for module 'unicase/u32-totitle'.
39049         * modules/unicase/u32-totitle-tests: New file.
39050         * tests/unicase/test-u32-totitle.c: New file.
39051
39052         Tests for module 'unicase/u16-totitle'.
39053         * modules/unicase/u16-totitle-tests: New file.
39054         * tests/unicase/test-u16-totitle.c: New file.
39055
39056         Tests for module 'unicase/u8-totitle'.
39057         * modules/unicase/u8-totitle-tests: New file.
39058         * tests/unicase/test-u8-totitle.c: New file.
39059
39060         New module 'unicase/u32-totitle'.
39061         * lib/unicase/u32-totitle.c: New file.
39062         * modules/unicase/u32-totitle: New file.
39063
39064         New module 'unicase/u16-totitle'.
39065         * lib/unicase/u16-totitle.c: New file.
39066         * modules/unicase/u16-totitle: New file.
39067
39068         New module 'unicase/u8-totitle'.
39069         * lib/unicase/u8-totitle.c: New file.
39070         * lib/unicase/u-totitle.h: New file.
39071         * modules/unicase/u8-totitle: New file.
39072
39073         Tests for module 'unicase/u32-tolower'.
39074         * modules/unicase/u32-tolower-tests: New file.
39075         * tests/unicase/test-u32-tolower.c: New file.
39076
39077         Tests for module 'unicase/u16-tolower'.
39078         * modules/unicase/u16-tolower-tests: New file.
39079         * tests/unicase/test-u16-tolower.c: New file.
39080
39081         Tests for module 'unicase/u8-tolower'.
39082         * modules/unicase/u8-tolower-tests: New file.
39083         * tests/unicase/test-u8-tolower.c: New file.
39084
39085         New module 'unicase/u32-tolower'.
39086         * lib/unicase/u32-tolower.c: New file.
39087         * modules/unicase/u32-tolower: New file.
39088
39089         New module 'unicase/u16-tolower'.
39090         * lib/unicase/u16-tolower.c: New file.
39091         * modules/unicase/u16-tolower: New file.
39092
39093         New module 'unicase/u8-tolower'.
39094         * lib/unicase/u8-tolower.c: New file.
39095         * modules/unicase/u8-tolower: New file.
39096
39097         Tests for module 'unicase/u32-toupper'.
39098         * modules/unicase/u32-toupper-tests: New file.
39099         * tests/unicase/test-u32-toupper.c: New file.
39100
39101         Tests for module 'unicase/u16-toupper'.
39102         * modules/unicase/u16-toupper-tests: New file.
39103         * tests/unicase/test-u16-toupper.c: New file.
39104
39105         Tests for module 'unicase/u8-toupper'.
39106         * modules/unicase/u8-toupper-tests: New file.
39107         * tests/unicase/test-u8-toupper.c: New file.
39108
39109         New module 'unicase/u32-toupper'.
39110         * lib/unicase/u32-toupper.c: New file.
39111         * modules/unicase/u32-toupper: New file.
39112
39113         New module 'unicase/u16-toupper'.
39114         * lib/unicase/u16-toupper.c: New file.
39115         * modules/unicase/u16-toupper: New file.
39116
39117         New module 'unicase/u8-toupper'.
39118         * lib/unicase/u8-toupper.c: New file.
39119         * modules/unicase/u8-toupper: New file.
39120
39121         New module 'unicase/u32-casemap'.
39122         * lib/unicase/u32-casemap.c: New file.
39123         * modules/unicase/u32-casemap: New file.
39124
39125         New module 'unicase/u16-casemap'.
39126         * lib/unicase/u16-casemap.c: New file.
39127         * modules/unicase/u16-casemap: New file.
39128
39129         New module 'unicase/u8-casemap'.
39130         * lib/unicase/unicasemap.h: New file.
39131         * lib/unicase/u8-casemap.c: New file.
39132         * lib/unicase/u-casemap.h: New file.
39133         * modules/unicase/u8-casemap: New file.
39134
39135         New module 'unicase/special-casing'.
39136         * lib/unicase/special-casing.h: New file.
39137         * lib/unicase/special-casing.c: New file.
39138         * lib/unicase/special-casing-table.gperf: New file, generated by
39139         gen-uni-tables.c.
39140         * modules/unicase/special-casing: New file.
39141
39142         Tests for module 'unicase/locale-language'.
39143         * modules/unicase/locale-language-tests: New file.
39144         * tests/unicase/test-locale-language.sh: New file.
39145         * tests/unicase/test-locale-language.c: New file.
39146
39147         New module 'unicase/locale-language'.
39148         * lib/unicase/locale-language.c: New file.
39149         * lib/unicase/locale-languages.gperf: New file.
39150         * modules/unicase/locale-language: New file.
39151
39152         Generate more tables for case conversion and case folding.
39153         * lib/gen-uni-tables.c (SCC_*): New enum items.
39154         (struct special_casing_rule): New type.
39155         (casing_rules, num_casing_rules, allocated_casing_rules): New
39156         variables.
39157         (add_casing_rule, fill_casing_rules): New functions.
39158         (struct casefold_rule): New type.
39159         (casefolding_rules, num_casefolding_rules,
39160         allocated_casefolding_rules): New variables.
39161         (fill_casefolding_rules): New function.
39162         (unicode_casefold): New variable.
39163         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39164         sort_casing_rules, output_casing_rules): New functions.
39165         (main): Accept to more arguments: SpecialCasing.txt and
39166         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39167         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39168         Output mapping for casefolding.
39169
39170         * lib/unicase.h: Include stdbool.h, uninorm.h.
39171         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39172         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39173         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39174         arguments.
39175         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39176         resultp arguments.
39177         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39178         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39179         resultp arguments.
39180         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39181         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39182         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39183         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39184         declarations.
39185         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39186
39187 2009-03-08  Bruno Haible  <bruno@clisp.org>
39188
39189         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39190         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39191         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39192         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39193
39194 2009-03-07  Bruno Haible  <bruno@clisp.org>
39195
39196         Adjust u*_normcmp, u*_normcoll API.
39197         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39198         u16_normcoll, u32_normcoll): Change failure conventions.
39199         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39200         errno and return -1.
39201         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39202
39203 2009-03-07  Bruno Haible  <bruno@clisp.org>
39204
39205         Tests for module 'uninorm/u32-normcoll'.
39206         * modules/uninorm/u32-normcoll-tests: New file.
39207         * tests/uninorm/test-u32-normcoll.c: New file.
39208
39209         Tests for module 'uninorm/u16-normcoll'.
39210         * modules/uninorm/u16-normcoll-tests: New file.
39211         * tests/uninorm/test-u16-normcoll.c: New file.
39212
39213         Tests for module 'uninorm/u8-normcoll'.
39214         * modules/uninorm/u8-normcoll-tests: New file.
39215         * tests/uninorm/test-u8-normcoll.c: New file.
39216
39217 2009-03-07  Bruno Haible  <bruno@clisp.org>
39218
39219         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39220         tests/uninorm/test-u32-normcmp.c.
39221         * tests/uninorm/test-u32-normcmp.c: Include it.
39222         (test_nonascii): New function, extracted from main. Add some more
39223         tests.
39224         (main): Invoke test_ascii and test_nonascii.
39225         * modules/uninorm/u32-normcmp-tests (Files): Add
39226         tests/uninorm/test-u32-normcmp.h.
39227         (Depends-on): Remove uninorm/u32-normcmp.
39228
39229         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39230         tests/uninorm/test-u16-normcmp.c.
39231         * tests/uninorm/test-u16-normcmp.c: Include it.
39232         (test_nonascii): New function, extracted from main. Add some more
39233         tests.
39234         (main): Invoke test_ascii and test_nonascii.
39235         * modules/uninorm/u16-normcmp-tests (Files): Add
39236         tests/uninorm/test-u16-normcmp.h.
39237         (Depends-on): Remove uninorm/u16-normcmp.
39238
39239         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39240         tests/uninorm/test-u8-normcmp.c.
39241         * tests/uninorm/test-u8-normcmp.c: Include it.
39242         (test_nonascii): New function, extracted from main. Add some more
39243         tests.
39244         (main): Invoke test_ascii and test_nonascii.
39245         * modules/uninorm/u8-normcmp-tests (Files): Add
39246         tests/uninorm/test-u8-normcmp.h.
39247         (Depends-on): Remove uninorm/u8-normcmp.
39248
39249 2009-03-07  Bruno Haible  <bruno@clisp.org>
39250
39251         New module 'uninorm/u32-normcoll'.
39252         * lib/uninorm/u32-normcoll.c: New file.
39253         * modules/uninorm/u32-normcoll: New file.
39254
39255         New module 'uninorm/u16-normcoll'.
39256         * lib/uninorm/u16-normcoll.c: New file.
39257         * modules/uninorm/u16-normcoll: New file.
39258
39259         New module 'uninorm/u8-normcoll'.
39260         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39261         declarations.
39262         * lib/uninorm/u8-normcoll.c: New file.
39263         * lib/uninorm/u-normcoll.h: New file.
39264         * modules/uninorm/u8-normcoll: New file.
39265
39266         New module 'uninorm/u32-normxfrm'.
39267         * lib/uninorm/u32-normxfrm.c: New file.
39268         * modules/uninorm/u32-normxfrm: New file.
39269
39270         New module 'uninorm/u16-normxfrm'.
39271         * lib/uninorm/u16-normxfrm.c: New file.
39272         * modules/uninorm/u16-normxfrm: New file.
39273
39274         New module 'uninorm/u8-normxfrm'.
39275         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39276         declarations.
39277         * lib/uninorm/u8-normxfrm.c: New file.
39278         * lib/uninorm/u-normxfrm.h: New file.
39279         * modules/uninorm/u8-normxfrm: New file.
39280
39281 2009-03-07  Bruno Haible  <bruno@clisp.org>
39282
39283         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39284         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39285         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39286
39287 2009-03-07  Bruno Haible  <bruno@clisp.org>
39288
39289         New module 'memxfrm'.
39290         * lib/memxfrm.h: New file.
39291         * lib/memxfrm.c: New file.
39292         * modules/memxfrm: New file.
39293
39294 2009-03-07  Bruno Haible  <bruno@clisp.org>
39295
39296         New module 'memcmp2'.
39297         * lib/memcmp2.h: New file.
39298         * lib/memcmp2.c: New file.
39299         * modules/memcmp2: New file.
39300
39301 2009-03-07  Bruno Haible  <bruno@clisp.org>
39302
39303         Tests for module 'uninorm/decomposing-form'.
39304         * modules/uninorm/decomposing-form-tests: New file.
39305         * tests/uninorm/test-decomposing-form.c: New file.
39306
39307         New module 'uninorm/decomposing-form'.
39308         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39309         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39310         Add 'decomposing_variant' field.
39311         * lib/uninorm/decomposing-form.c: New file.
39312         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39313         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39314         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39315         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39316         * modules/uninorm/decomposing-form: New file.
39317         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39318         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39319
39320 2009-03-07  Bruno Haible  <bruno@clisp.org>
39321
39322         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39323         strings.
39324
39325 2009-03-06  Bruno Haible  <bruno@clisp.org>
39326
39327         Tests for module 'uninorm/u32-normcmp'.
39328         * tests/uninorm/test-u32-normcmp.c: New file.
39329         * modules/uninorm/u32-normcmp-tests: New file.
39330
39331         Tests for module 'uninorm/u16-normcmp'.
39332         * tests/uninorm/test-u16-normcmp.c: New file.
39333         * modules/uninorm/u16-normcmp-tests: New file.
39334
39335         Tests for module 'uninorm/u8-normcmp'.
39336         * tests/uninorm/test-u8-normcmp.c: New file.
39337         * modules/uninorm/u8-normcmp-tests: New file.
39338
39339         New module 'uninorm/u32-normcmp'.
39340         * lib/uninorm/u32-normcmp.c: New file.
39341         * modules/uninorm/u32-normcmp: New file.
39342
39343         New module 'uninorm/u16-normcmp'.
39344         * lib/uninorm/u16-normcmp.c: New file.
39345         * modules/uninorm/u16-normcmp: New file.
39346
39347         New module 'uninorm/u8-normcmp'.
39348         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39349         declarations.
39350         * lib/uninorm/u8-normcmp.c: New file.
39351         * lib/uninorm/u-normcmp.h: New file.
39352         * modules/uninorm/u8-normcmp: New file.
39353
39354 2009-03-06  Bruno Haible  <bruno@clisp.org>
39355
39356         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39357         Reported by Eric Blake.
39358
39359 2009-03-06  Eric Blake  <ebb9@byu.net>
39360             Bruno Haible  <bruno@clisp.org>
39361
39362         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39363         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39364         condition.
39365         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39366         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39367         condition.
39368         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39369
39370 2009-03-06  Eric Blake  <ebb9@byu.net>
39371
39372         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39373         to avoid compiler warnings.
39374         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39375
39376 2009-03-05  Bruno Haible  <bruno@clisp.org>
39377
39378         * tests/test-ftell.c (main): Disable test beyond end of file on
39379         FreeMiNT.
39380         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39381
39382 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39383
39384         * lib/filevercmp.c: Move hidden files up in ordering.
39385         * tests/test-filevercmp.c: Add tests for hidden files.
39386
39387 2009-03-04  Bruno Haible  <bruno@clisp.org>
39388
39389         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39390         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39391         AM_CFLAGS.
39392         Reported by Simon Josefsson.
39393
39394 2009-03-03  Bruno Haible  <bruno@clisp.org>
39395
39396         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39397         Reported by Simon Josefsson.
39398
39399         * doc/ld-version-script.texi: Update node reference.
39400
39401 2009-03-03  Bruno Haible  <bruno@clisp.org>
39402
39403         * modules/visibility (License): Change to 'unlimited'.
39404         Suggested by Simon Josefsson.
39405
39406 2009-03-03  Jim Meyering  <meyering@redhat.com>
39407
39408         unlinkdir: cannot_unlink_dir may modify process state
39409         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39410         it's neither thread-safe nor appropriate for use in a library.
39411
39412 2009-03-03  Eric Blake  <ebb9@byu.net>
39413
39414         test-closein: silence test under Darwin
39415         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39416         care if it dies from EPIPE or EBADF.
39417
39418 2009-03-03  Bruno Haible  <bruno@clisp.org>
39419
39420         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39421         earlier.
39422         * doc/visibility.texi: Fix @node and @section.
39423
39424 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39425
39426         * doc/gnulib.texi: Link to sections for ld version script and
39427         visibility.
39428         * doc/visibility.texi: Add @node and @section.
39429         * modules/ld-version-script: New module.
39430         * m4/ld-version-script.m4: New file.
39431         * doc/ld-version-script.texi: New file.
39432
39433 2009-03-02  David Lutterkort  <lutter@redhat.com>
39434
39435         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39437
39438 2009-03-02  Bruno Haible  <bruno@clisp.org>
39439
39440         * doc/visibility.texi: Mention libtool's -export-symbols option.
39441
39442 2009-03-02  Jim Meyering  <meyering@redhat.com>
39443
39444         announce-gen: new option: --no-print-checksums
39445         * build-aux/announce-gen (usage): Describe it.
39446         (print_checksums): Print a newline here, not in the [*] footnote.
39447         (main): Honor it.
39448
39449 2009-03-01  Bruno Haible  <bruno@clisp.org>
39450
39451         Use socklen_t in the native Windows replacements prototypes.
39452         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39453         instead of 'int'.
39454         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39455         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39456         * modules/getsockopt (Depends-on): Add socklen.
39457         * modules/setsockopt (Depends-on): Add socklen.
39458
39459 2009-03-01  Bruno Haible  <bruno@clisp.org>
39460
39461         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39462         least 4.2.
39463
39464 2009-03-01  Eric Blake  <ebb9@byu.net>
39465             Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39468         error messages.
39469         * lib/wait-process.c (wait_subprocess): Omit error message about
39470         deadly signal sent to the child of termsigp != NULL.
39471
39472 2009-03-01  Eric Blake  <ebb9@byu.net>
39473
39474         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39475
39476 2009-03-01  Bruno Haible  <bruno@clisp.org>
39477
39478         Avoid a gcc warning.
39479         * tests/test-sched.c (b): Make global.
39480         Reported by Eric Blake.
39481
39482 2009-01-19  Martin Lambers  <marlam@marlam.de>
39483
39484         Provide POSIX semantics for socket timeout options on W32.
39485         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39486         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39487         * modules/setsockopt: Depend on sys_time module for struct timeval.
39488         * modules/getsockopt: Depend on sys_time module for struct timeval.
39489
39490 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39491
39492         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39493         __USE_GNU, for consistency with netdb.in.h.
39494         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39495
39496 2009-03-01  Bruno Haible  <bruno@clisp.org>
39497
39498         More support for FreeMiNT.
39499         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39500         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39501
39502 2009-03-01  Bruno Haible  <bruno@clisp.org>
39503
39504         More support for FreeMiNT.
39505         * lib/fpurge.c (fpurge): Correct last commit.
39506         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39507
39508 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39509
39510         Fix unportable awk script in vc-list-files.
39511         * build-aux/vc-list-files: In the replacement awk script, use
39512         substr with a second argument of 1, not zero.
39513         Report by Simon Josefsson.
39514
39515 2009-02-28  Bruno Haible  <bruno@clisp.org>
39516
39517         More support for FreeMiNT.
39518         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39519         to FreeMiNT today.
39520         * lib/fwriting.c (fwriting): Likewise.
39521         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39522
39523 2009-02-28  Bruno Haible  <bruno@clisp.org>
39524
39525         * tests/test-freadseek.c (main): Disable test beyond end of file on
39526         FreeMiNT.
39527         * tests/test-ftello.c (main): Likewise.
39528         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39529
39530 2009-02-28  Bruno Haible  <bruno@clisp.org>
39531
39532         Add tentative support for FreeMiNT.
39533         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39534         * lib/fpurge.c (fpurge): Likewise.
39535         * lib/freadable.c (freadable): Likewise.
39536         * lib/freading.c (freading): Likewise.
39537         * lib/freadptr.c (freadptr): Likewise.
39538         * lib/freadseek.c (freadptrinc): Likewise.
39539         * lib/fseeko.c (rpl_fseeko): Likewise.
39540         * lib/fseterr.c (fseterr): Likewise.
39541         * lib/fwritable.c (fwritable): Likewise.
39542         * lib/fwriting.c (fwriting): Likewise.
39543         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39544         Hourihane.
39545         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39546
39547 2009-02-28  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39550         SIGCHLD.
39551         Reported by Jim Meyering.
39552
39553 2009-02-28  Bruno Haible  <bruno@clisp.org>
39554
39555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39556         Mention the results of these tests on various platforms.
39557         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39558         order.
39559         * doc/posix-functions/printf.texi: Likewise.
39560         * doc/posix-functions/snprintf.texi: Likewise.
39561         * doc/posix-functions/sprintf.texi: Likewise.
39562         * doc/posix-functions/vfprintf.texi: Likewise.
39563         * doc/posix-functions/vprintf.texi: Likewise.
39564         * doc/posix-functions/vsnprintf.texi: Likewise.
39565         * doc/posix-functions/vsprintf.texi: Likewise.
39566         * doc/glibc-functions/obstack_printf.texi: Likewise.
39567         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39568
39569 2009-02-28  Bruno Haible  <bruno@clisp.org>
39570
39571         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39572         Reported by Loïc Minier <lool@dooz.org>.
39573
39574 2009-02-27  Bruno Haible  <bruno@clisp.org>
39575
39576         * gnulib-tool (func_import): Make the sed expression used to create the
39577         sed script for updating the .gitignore file POSIX compliant.
39578         Reported by Eric Blake.
39579
39580 2009-02-27  Bruno Haible  <bruno@clisp.org>
39581
39582         * gnulib-tool (sed): Don't alias as "sed --posix".
39583         Reported by Eric Blake.
39584
39585 2009-02-27  Bruno Haible  <bruno@clisp.org>
39586
39587         Avoid test link errors.
39588         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39589         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39590         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39591         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39593
39594 2009-02-27  Bruno Haible  <bruno@clisp.org>
39595
39596         Avoid spurious "(cached)" in configure output.
39597         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39598         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39599         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39600         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39601         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39602         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39603         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39604         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39605         Reported by Eric Blake.
39606
39607 2009-02-27  Eric Blake  <ebb9@byu.net>
39608
39609         printf: fix regression in previous patch
39610         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39611
39612 2009-02-27  Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39615         value.
39616         * lib/stdint.in.h: Likewise.
39617         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39618
39619 2009-02-27  Eric Blake  <ebb9@byu.net>
39620
39621         doc: mention more functions added in cygwin 1.7.0
39622         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39623         addition.
39624         * doc/posix-functions/open_wmemstream.texi: Likewise.
39625         * doc/posix-functions/wcsnlen.texi: Likewise.
39626         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39627         * doc/posix-functions/wcstod.texi: Likewise.
39628         * doc/posix-functions/wcstof.texi: Likewise.
39629         * doc/posix-functions/wcstoimax.texi: Likewise.
39630         * doc/posix-functions/wcstok.texi: Likewise.
39631         * doc/posix-functions/wcstoumax.texi: Likewise.
39632
39633         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39635         * doc/posix-functions/fprintf.texi: Update.
39636         * doc/posix-functions/printf.texi: Update.
39637         * doc/posix-functions/snprintf.texi: Update.
39638         * doc/posix-functions/sprintf.texi: Update.
39639         * doc/posix-functions/vfprintf.texi: Update.
39640         * doc/posix-functions/vprintf.texi: Update.
39641         * doc/posix-functions/vsnprintf.texi: Update.
39642         * doc/posix-functions/vsprintf.texi: Update.
39643         * doc/glibc-functions/obstack_printf.texi: Update.
39644         * doc/glibc-functions/obstack_vprintf.texi: Update.
39645
39646 2009-02-26  Eric Blake  <ebb9@byu.net>
39647
39648         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39649         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39650         compilation bug by using runtime conversion.
39651         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39652         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39653         * modules/ceill-tests (Files): Use nan.h.
39654         * modules/floorl-tests (Files): Likewise.
39655         * modules/frexpl-tests (Files): Likewise.
39656         * modules/isnanl-tests (Files): Likewise.
39657         * modules/ldexpl-tests (Files): Likewise.
39658         * modules/roundl-tests (Files): Likewise.
39659         * modules/truncl-tests (Files): Likewise.
39660         * tests/test-ceill.c (main): Use a working NaN.
39661         * tests/test-floorl.c (main): Likewise.
39662         * tests/test-frexpl.c (main): Likewise.
39663         * tests/test-isnan.c (test_long_double): Likewise.
39664         * tests/test-isnanl.h (main): Likewise.
39665         * tests/test-ldexpl.h (main): Likewise.
39666         * tests/test-roundl.h (main): Likewise.
39667         * tests/test-truncl.h (main): Likewise.
39668         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39669
39670 2009-02-26  Eric Blake  <ebb9@byu.net>
39671             Bruno Haible  <bruno@clisp.org>
39672
39673         Work around a *printf bug with %ls on Solaris.
39674         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39675         precision is specified, sprintf stops converting the wide string
39676         argument when the number of bytes that have been produced by this
39677         conversion equals or exceeds the precision.
39678         * doc/posix-functions/fprintf.texi: Update.
39679         * doc/posix-functions/printf.texi: Update.
39680         * doc/posix-functions/snprintf.texi: Update.
39681         * doc/posix-functions/sprintf.texi: Update.
39682         * doc/posix-functions/vfprintf.texi: Update.
39683         * doc/posix-functions/vprintf.texi: Update.
39684         * doc/posix-functions/vsnprintf.texi: Update.
39685         * doc/posix-functions/vsprintf.texi: Update.
39686         * doc/glibc-functions/obstack_printf.texi: Update.
39687         * doc/glibc-functions/obstack_vprintf.texi: Update.
39688
39689 2009-02-26  Eric Blake  <ebb9@byu.net>
39690
39691         stdlib: favor compiler check of random.h
39692         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39693         to avoid an ObjC random.h installed by Swarm.
39694
39695 2009-02-26  Bruno Haible  <bruno@clisp.org>
39696
39697         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39698         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39699         Reported by Gary V. Vaughan <gary@gnu.org>.
39700
39701 2009-02-26  Bruno Haible  <bruno@clisp.org>
39702
39703         Fix *printf behaviour regarding the %ls directive.
39704         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39705         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39706         NEED_PRINTF_DIRECTIVE_LS.
39707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39708         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39709         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39710         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39711         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39712         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39713         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39718         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39722         * doc/posix-functions/fprintf.texi: Update.
39723         * doc/posix-functions/printf.texi: Update.
39724         * doc/posix-functions/snprintf.texi: Update.
39725         * doc/posix-functions/sprintf.texi: Update.
39726         * doc/posix-functions/vfprintf.texi: Update.
39727         * doc/posix-functions/vprintf.texi: Update.
39728         * doc/posix-functions/vsnprintf.texi: Update.
39729         * doc/posix-functions/vsprintf.texi: Update.
39730         * doc/glibc-functions/obstack_printf.texi: Update.
39731         * doc/glibc-functions/obstack_vprintf.texi: Update.
39732         Reported by Eric Blake.
39733
39734 2009-02-25  Bruno Haible  <bruno@clisp.org>
39735
39736         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39737         with known value.
39738         Reported by Gary V. Vaughan <gary@gnu.org>.
39739
39740 2009-02-25  Bruno Haible  <bruno@clisp.org>
39741
39742         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39743         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39744         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39745         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39746         Reported by Gary V. Vaughan <gary@gnu.org>.
39747
39748 2009-02-25  Bruno Haible  <bruno@clisp.org>
39749
39750         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39751         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39752         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39753         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39754         Reported by Gary V. Vaughan <gary@gnu.org>.
39755
39756 2009-02-25  Eric Blake  <ebb9@byu.net>
39757
39758         tests: skip fseek/ftell tests if ungetc is broken
39759         * m4/ungetc.m4: New file.
39760         * modules/fseek-tests: Split test, so ungetc dependency is
39761         separate from rest of test.
39762         * modules/fseeko-tests: Likewise.
39763         * modules/ftell-tests: Likewise.
39764         * modules/ftello-tests: Likewise.
39765         * tests/test-fseek.c (main): Isolate ungetc dependency.
39766         * tests/test-fseeko.c (main): Likewise.
39767         * tests/test-ftell.c (main): Likewise.
39768         * tests/test-ftello.c (main): Likewise.
39769         * tests/test-fseek2.sh: New file.
39770         * tests/test-fseeko2.sh: Likewise.
39771         * tests/test-ftell2.sh: Likewise.
39772         * tests/test-ftello2.sh: Likewise.
39773
39774 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39775
39776         test-getaddrinfo: fix usage of skip return code 77
39777         * tests/test-gettaddrinfo.c: Return skip code 77 only
39778         for first occurance of skip (4x77 is not 77)
39779
39780 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39781
39782         strtod: avoid C99 decl-after-statement
39783         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39784
39785 2009-02-24  Eric Blake  <ebb9@byu.net>
39786
39787         strtod: detect HP-UX 11.31 bug
39788         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39789         Reported by Gary V. Vaughan.
39790
39791 2009-02-23  Bruno Haible  <bruno@clisp.org>
39792
39793         Fix invalid read past end of memory block.
39794         * lib/vasnprintf.c (DCHAR_SET): Define.
39795         (local_wcslen): Define only when needed.
39796         (local_strnlen, local_wcsnlen): New functions.
39797         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39798         directives that involve a conversion ourselves.
39799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39800         wcsnlen, mbrtowc, wcrtomb.
39801         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39802         * tests/test-vasprintf-posix.c (test_function): Likewise.
39803         * tests/test-snprintf-posix.h (test_function): Likewise.
39804         * tests/test-sprintf-posix.h (test_function): Likewise.
39805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39806
39807 2009-02-22  Bruno Haible  <bruno@clisp.org>
39808
39809         Implement new clarified decomposition of Hangul syllables.
39810         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39811         of type LTV, return only a pairwise decomposition.
39812         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39813         Likewise.
39814         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39815         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39816         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39817
39818 2009-02-22  Bruno Haible  <bruno@clisp.org>
39819
39820         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39821         zero-length results and shrink excess allocated memory.
39822         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39823         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39824         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39825         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39826         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39827         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39828         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39829         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39830         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39831         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39832         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39833         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39834
39835 2009-02-21  Bruno Haible  <bruno@clisp.org>
39836
39837         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39838         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39839         spaces after a period. Put a space between a macro name and its
39840         argument list. Trivial rewordings.
39841         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39842         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39843         (main): Return 0 explicitly.
39844
39845 2009-02-21  Bruno Haible  <bruno@clisp.org>
39846
39847         Tests for module 'uninorm/filter'.
39848         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39849         * modules/uninorm/filter-tests: New file.
39850
39851         New module 'uninorm/filter'.
39852         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39853         uninorm_filter_flush, uninorm_filter_free): New declarations.
39854         * lib/uninorm/uninorm-filter.c: New file.
39855         * modules/uninorm/filter: New file.
39856
39857 2009-02-21  Bruno Haible  <bruno@clisp.org>
39858
39859         Tests for module 'uninorm/nfkc'.
39860         * tests/uninorm/test-nfkc.c: New file.
39861         * tests/uninorm/test-u8-nfkc.c: New file.
39862         * tests/uninorm/test-u16-nfkc.c: New file.
39863         * tests/uninorm/test-u32-nfkc.c: New file.
39864         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39865         * tests/uninorm/test-u32-nfkc-big.c: New file.
39866         * modules/uninorm/nfkc-tests: New file.
39867
39868         New module 'uninorm/nfkc'.
39869         * lib/uninorm/nfkc.c: New file.
39870         * modules/uninorm/nfkc: New file.
39871
39872         Tests for module 'uninorm/nfkd'.
39873         * tests/uninorm/test-nfkd.c: New file.
39874         * tests/uninorm/test-u8-nfkd.c: New file.
39875         * tests/uninorm/test-u16-nfkd.c: New file.
39876         * tests/uninorm/test-u32-nfkd.c: New file.
39877         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39878         * tests/uninorm/test-u32-nfkd-big.c: New file.
39879         * modules/uninorm/nfkd-tests: New file.
39880
39881         New module 'uninorm/nfkd'.
39882         * lib/uninorm/nfkd.c: New file.
39883         * modules/uninorm/nfkd: New file.
39884
39885         Tests for module 'uninorm/nfc'.
39886         * tests/uninorm/test-nfc.c: New file.
39887         * tests/uninorm/test-u8-nfc.c: New file.
39888         * tests/uninorm/test-u16-nfc.c: New file.
39889         * tests/uninorm/test-u32-nfc.c: New file.
39890         * tests/uninorm/test-u32-nfc-big.sh: New file.
39891         * tests/uninorm/test-u32-nfc-big.c: New file.
39892         * modules/uninorm/nfc-tests: New file.
39893
39894         New module 'uninorm/nfc'.
39895         * lib/uninorm/nfc.c: New file.
39896         * modules/uninorm/nfc: New file.
39897
39898         Tests for module 'uninorm/nfd'.
39899         * tests/uninorm/test-nfd.c: New file.
39900         * tests/uninorm/test-u8-nfd.c: New file.
39901         * tests/uninorm/test-u16-nfd.c: New file.
39902         * tests/uninorm/test-u32-nfd.c: New file.
39903         * tests/uninorm/test-u32-nfd-big.sh: New file.
39904         * tests/uninorm/test-u32-nfd-big.c: New file.
39905         * tests/uninorm/test-u32-normalize-big.h: New file.
39906         * tests/uninorm/test-u32-normalize-big.c: New file.
39907         * tests/uninorm/NormalizationTest.txt: New file, created from
39908         Unicode 5.1.0 NormalizationTest.txt.
39909         * modules/uninorm/nfd-tests: New file.
39910
39911         New module 'uninorm/nfd'.
39912         * lib/uninorm/nfd.c: New file.
39913         * modules/uninorm/nfd: New file.
39914
39915         New module 'uninorm/u32-normalize'.
39916         * lib/uninorm/u32-normalize.c: New file.
39917         * modules/uninorm/u32-normalize: New file.
39918
39919         New module 'uninorm/u16-normalize'.
39920         * lib/uninorm/u16-normalize.c: New file.
39921         * modules/uninorm/u16-normalize: New file.
39922
39923         New module 'uninorm/u8-normalize'.
39924         * lib/uninorm/u8-normalize.c: New file.
39925         * lib/uninorm/normalize-internal.h: New file.
39926         * lib/uninorm/u-normalize-internal.h: New file.
39927         * modules/uninorm/u8-normalize: New file.
39928
39929         New module 'uninorm/decompose-internal'.
39930         * lib/uninorm/decompose-internal.c: New file.
39931         * modules/uninorm/decompose-internal: New file.
39932
39933         Tests for module 'uninorm/composition'.
39934         * tests/uninorm/test-composition.c: New file.
39935         * modules/uninorm/composition-tests: New file.
39936
39937         New module 'uninorm/composition'.
39938         * lib/uninorm/composition.c: New file.
39939         * lib/uninorm/composition-table.gperf: New file, generated by
39940         gen-uni-tables.
39941         * modules/uninorm/composition: New file.
39942
39943         Tests for module 'uninorm/compat-decomposition'.
39944         * tests/uninorm/test-compat-decomposition.c: New file.
39945         * modules/uninorm/compat-decomposition-tests: New file.
39946
39947         New module 'uninorm/compat-decomposition'.
39948         * lib/uninorm/decompose-internal.h: New file.
39949         * lib/uninorm/compat-decomposition.c: New file.
39950         * modules/uninorm/compat-decomposition: New file.
39951
39952         Tests for module 'uninorm/canonical-decomposition'.
39953         * tests/uninorm/test-canonical-decomposition.c: New file.
39954         * modules/uninorm/canonical-decomposition-tests: New file.
39955
39956         New module 'uninorm/canonical-decomposition'.
39957         * lib/uninorm/canonical-decomposition.c: New file.
39958         * modules/uninorm/canonical-decomposition: New file.
39959
39960         Tests for module 'uninorm/decomposition'.
39961         * tests/uninorm/test-decomposition.c: New file.
39962         * modules/uninorm/decomposition-tests: New file.
39963
39964         New module 'uninorm/decomposition'.
39965         * lib/uninorm/decomposition.c: New file.
39966         * modules/uninorm/decomposition: New file.
39967
39968         New module 'uninorm/decomposition-table'.
39969         * lib/uninorm/decomposition-table.h: New file.
39970         * lib/uninorm/decomposition-table.c: New file.
39971         * lib/uninorm/decomposition-table1.h: New file, generated by
39972         gen-uni-tables.
39973         * lib/uninorm/decomposition-table2.h: New file, generated by
39974         gen-uni-tables.
39975         * modules/uninorm/decomposition-table: New file.
39976
39977         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39978         (UC_DECOMP_*): New enumeration items.
39979         (get_decomposition): New function.
39980         (struct decomp_table): New type.
39981         (output_decomposition, output_decomposition_tables): New functions.
39982         (unicode_composition_exclusions): New variable.
39983         (fill_composition_exclusions, debug_output_composition_tables): New
39984         functions.
39985         (main): Accept one more argument. Invoke fill_composition_exclusions.
39986         Output decomposition and composition tables.
39987
39988         New module 'uninorm/base'.
39989         * lib/uninorm.h: New file.
39990         * lib/unictype.h: Update comment.
39991         * modules/uninorm/base: New file.
39992
39993 2009-02-21  David Lutterkort  <lutter@redhat.com>
39994
39995         Tests for module 'safe-alloc'.
39996         * tests/test-safe-alloc.c: New file.
39997         * modules/safe-alloc-tests: New file.
39998
39999         New module 'safe-alloc'.
40000         * lib/safe-alloc.h: New file.
40001         * lib/safe-alloc.c: New file.
40002         * m4/safe-alloc.m4: New file.
40003         * modules/safe-alloc: New file.
40004         * doc/safe-alloc.texi: New file.
40005         * doc/gnulib.texi: Include it.
40006         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40007         safe-alloc.
40008
40009 2009-02-18  Bruno Haible  <bruno@clisp.org>
40010
40011         Fix link error on non-glibc systems.
40012         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40013         variable.
40014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40015
40016 2009-02-18  Jim Meyering  <meyering@redhat.com>
40017
40018         fts: avoid used-uninitialized error due to recent change
40019         * lib/fts.c (fts_read): Guard uses of the new member,
40020         parent->fts_n_dirs_remaining, since it's not relevant for
40021         the parent of a directory specified on the command-line.
40022
40023 2009-02-17  James Youngman  <jay@gnu.org>
40024             Bruno Haible  <bruno@clisp.org>
40025
40026         * m4/include_next.m4: Reformulate comment.
40027
40028 2009-02-16  Jim Meyering  <meyering@redhat.com>
40029
40030         fts: add #if guards so that the fts_lgpl module still builds
40031         * lib/fts.c: Guard just-added hash-table-using parts with
40032         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40033         Reported by Simon Josefsson.
40034
40035 2009-02-15  Bruno Haible  <bruno@clisp.org>
40036
40037         * modules/array-mergesort-tests: New file.
40038         * tests/test-array-mergesort.c: New file.
40039
40040         New module 'array-mergesort'.
40041         * modules/array-mergesort: New file.
40042         * lib/array-mergesort.h: New file.
40043
40044 2009-02-15  Bruno Haible  <bruno@clisp.org>
40045
40046         Fix 2009-02-07 commit.
40047         * lib/gen-uni-tables.c (output_predicate, output_category,
40048         output_combclass, output_bidi_category, output_decimal_digit,
40049         output_digit, output_numeric, output_mirror, output_scripts,
40050         output_ident_category, output_simple_mapping): Fix format directives.
40051         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40052
40053 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40054
40055         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40056         fixes are available from IBM.
40057
40058 2009-02-13  Jim Meyering  <meyering@redhat.com>
40059
40060         fts: arrange not to stat non-directories in more cases
40061         This makes GNU find (when it doesn't need to stat each file)
40062         *much* more efficient at traversing reiserfs file systems.
40063         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40064         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40065         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40066         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40067         (leaf_optimization_applies): New function.
40068         (LCO_hash, LCO_compare): New helper functions.
40069         (link_count_optimize_ok): New function.
40070         (fts_stat): Initialize new member (if dir).
40071         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40072         we've just stat'ed a directory.  Skip the stat call when possible.
40073         ---
40074         Note this AFS-related exchange:
40075         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40076         and note find's pioctl call in find/fstype.c.
40077         But that is necessary only if you want to enable the
40078         optimization for AFS, and for now, I don't.
40079
40080         fts: move a function definition "up" (no semantic change)
40081         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40082         "up" to precede upcoming use of a related function.
40083
40084 2009-02-11  Jim Meyering  <meyering@redhat.com>
40085
40086         fts: correct internal computation of nlinks (optimization-related)
40087         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40088         whether the current entry is a directory, so don't test it.
40089
40090 2009-02-10  Bruno Haible  <bruno@clisp.org>
40091
40092         Tests for module 'uniwbrk/ulc-wordbreaks'.
40093         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40094         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40095         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40096
40097         Tests for module 'uniwbrk/u32-wordbreaks'.
40098         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40099         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40100
40101         Tests for module 'uniwbrk/u16-wordbreaks'.
40102         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40103         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40104
40105         Tests for module 'uniwbrk/u8-wordbreaks'.
40106         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40107         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40108
40109 2009-02-10  Bruno Haible  <bruno@clisp.org>
40110
40111         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40112         property.
40113         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40114         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40115         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40116
40117 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40118
40119         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40120         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40121
40122 2009-02-10  Bruno Haible  <bruno@clisp.org>
40123
40124         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40125         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40126         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40127         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40128         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40129         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40130
40131 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40132
40133         * lib/sockets.h (gl_fd_to_handle): New function.
40134
40135         * tests/test-sockets.c: Call gl_fd_to_handle.
40136
40137 2009-02-09  Bruno Haible  <bruno@clisp.org>
40138
40139         * doc/havelib.texi: Document the conventions on bi-arch systems.
40140
40141 2009-02-08  Bruno Haible  <bruno@clisp.org>
40142
40143         Document the AC_LIB_LINKFLAGS macro.
40144         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40145         * doc/gnulib.texi: Include it.
40146
40147 2009-02-08  Bruno Haible  <bruno@clisp.org>
40148
40149         Fix wrong order of sections, compared to TOC.
40150         * doc/gnulib.texi: Include relocatable-maint.texi after the
40151         "Regular expressions" node, not before.
40152
40153 2009-02-08  Bruno Haible  <bruno@clisp.org>
40154
40155         Tests for module 'unicase/totitle'.
40156         * modules/unicase/totitle-tests: New file.
40157
40158         Tests for module 'unicase/tolower'.
40159         * modules/unicase/tolower-tests: New file.
40160
40161         Tests for module 'unicase/toupper'.
40162         * modules/unicase/toupper-tests: New file.
40163         * tests/unicase/test-mapping-part1.h: New file.
40164         * tests/unicase/test-mapping-part2.h: New file.
40165
40166         New module 'unicase/totitle'.
40167         * modules/unicase/totitle: New file.
40168         * lib/unicase/totitle.c: New file.
40169
40170         New module 'unicase/tolower'.
40171         * modules/unicase/tolower: New file.
40172         * lib/unicase/tolower.c: New file.
40173
40174         New module 'unicase/toupper'.
40175         * modules/unicase/toupper: New file.
40176         * lib/unicase/toupper.c: New file.
40177         * lib/unicase/simple-mapping.h: New file.
40178
40179         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40180         (mapping_table): New structure.
40181         (output_simple_mapping): New function.
40182         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40183         * modules/gen-uni-tables (Description): Update.
40184         * lib/unicase/toupper.h: New file, automatically generated by
40185         gen-uni-tables.
40186         * lib/unicase/tolower.h: New file, automatically generated by
40187         gen-uni-tables.
40188         * lib/unicase/totitle.h: New file, automatically generated by
40189         gen-uni-tables.
40190         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40191         gen-uni-tables.
40192         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40193         gen-uni-tables.
40194         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40195         gen-uni-tables.
40196
40197         New module 'unicase/base'.
40198         * modules/unicase/base: New file.
40199         * lib/unicase.h: New file.
40200
40201 2009-02-08  Bruno Haible  <bruno@clisp.org>
40202
40203         New module 'uniwbrk/ulc-wordbreaks'.
40204         * modules/uniwbrk/ulc-wordbreaks: New file.
40205         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40206
40207         New module 'uniwbrk/u32-wordbreaks'.
40208         * modules/uniwbrk/u32-wordbreaks: New file.
40209         * lib/uniwbrk/u32-wordbreaks.c: New file.
40210
40211         New module 'uniwbrk/u16-wordbreaks'.
40212         * modules/uniwbrk/u16-wordbreaks: New file.
40213         * lib/uniwbrk/u16-wordbreaks.c: New file.
40214
40215         New module 'uniwbrk/u8-wordbreaks'.
40216         * modules/uniwbrk/u8-wordbreaks: New file.
40217         * lib/uniwbrk/u8-wordbreaks.c: New file.
40218         * lib/uniwbrk/u-wordbreaks.h: New file.
40219
40220         New module 'uniwbrk/table'.
40221         * modules/uniwbrk/table: New file.
40222         * lib/uniwbrk/wbrktable.h: New file.
40223         * lib/uniwbrk/wbrktable.c: New file.
40224
40225         New module 'uniwbrk/wordbreak-property'.
40226         * modules/uniwbrk/wordbreak-property: New file.
40227         * lib/uniwbrk/wordbreak-property.c: New file.
40228
40229         * lib/gen-uni-tables.c (WBP_*): New enum items.
40230         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40231         (unicode_org_wbp): New variable.
40232         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40233         New functions.
40234         (wbp_table): New structure.
40235         (output_wbp, output_wbrk_tables): New functions.
40236         (main): Accept additional argument. Invoke fill_org_wbp,
40237         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40238         output_wbrk_tables.
40239         * modules/gen-uni-tables (Description): Update.
40240         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40241         gen-uni-tables.
40242
40243         New module 'uniwbrk/base'.
40244         * modules/uniwbrk/base: New file.
40245         * lib/uniwbrk.h: New file.
40246
40247 2009-02-08  Bruno Haible  <bruno@clisp.org>
40248
40249         Update to Unicode 5.1.0.
40250         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40251         U+2185..U+2188.
40252         (is_property_default_ignorable_code_point): Don't include characters
40253         of category Cc or Cs and not-a-characters.
40254         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40255         U+0D79, U+109E, U+109F, U+A60C.
40256         * lib/unictype/bidi_of.h: Regenerated.
40257         * lib/unictype/blocks.h: Regenerated.
40258         * lib/unictype/categ_C.h: Regenerated.
40259         * lib/unictype/categ_Cf.h: Regenerated.
40260         * lib/unictype/categ_Cn.h: Regenerated.
40261         * lib/unictype/categ_L.h: Regenerated.
40262         * lib/unictype/categ_Ll.h: Regenerated.
40263         * lib/unictype/categ_Lm.h: Regenerated.
40264         * lib/unictype/categ_Lo.h: Regenerated.
40265         * lib/unictype/categ_Lu.h: Regenerated.
40266         * lib/unictype/categ_M.h: Regenerated.
40267         * lib/unictype/categ_Mc.h: Regenerated.
40268         * lib/unictype/categ_Me.h: Regenerated.
40269         * lib/unictype/categ_Mn.h: Regenerated.
40270         * lib/unictype/categ_N.h: Regenerated.
40271         * lib/unictype/categ_Nd.h: Regenerated.
40272         * lib/unictype/categ_Nl.h: Regenerated.
40273         * lib/unictype/categ_No.h: Regenerated.
40274         * lib/unictype/categ_P.h: Regenerated.
40275         * lib/unictype/categ_Pd.h: Regenerated.
40276         * lib/unictype/categ_Pe.h: Regenerated.
40277         * lib/unictype/categ_Pf.h: Regenerated.
40278         * lib/unictype/categ_Pi.h: Regenerated.
40279         * lib/unictype/categ_Po.h: Regenerated.
40280         * lib/unictype/categ_Ps.h: Regenerated.
40281         * lib/unictype/categ_S.h: Regenerated.
40282         * lib/unictype/categ_Sk.h: Regenerated.
40283         * lib/unictype/categ_Sm.h: Regenerated.
40284         * lib/unictype/categ_So.h: Regenerated.
40285         * lib/unictype/categ_of.h: Regenerated.
40286         * lib/unictype/combining.h: Regenerated.
40287         * lib/unictype/ctype_alnum.h: Regenerated.
40288         * lib/unictype/ctype_alpha.h: Regenerated.
40289         * lib/unictype/ctype_graph.h: Regenerated.
40290         * lib/unictype/ctype_lower.h: Regenerated.
40291         * lib/unictype/ctype_print.h: Regenerated.
40292         * lib/unictype/ctype_punct.h: Regenerated.
40293         * lib/unictype/ctype_upper.h: Regenerated.
40294         * lib/unictype/decdigit.h: Regenerated.
40295         * lib/unictype/digit.h: Regenerated.
40296         * lib/unictype/mirror.h: Regenerated.
40297         * lib/unictype/numeric.h: Regenerated.
40298         * lib/unictype/pr_alphabetic.h: Regenerated.
40299         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40300         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40301         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40302         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40303         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40304         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40305         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40306         * lib/unictype/pr_combining.h: Regenerated.
40307         * lib/unictype/pr_dash.h: Regenerated.
40308         * lib/unictype/pr_decimal_digit.h: Regenerated.
40309         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40310         * lib/unictype/pr_deprecated.h: Regenerated.
40311         * lib/unictype/pr_diacritic.h: Regenerated.
40312         * lib/unictype/pr_extender.h: Regenerated.
40313         * lib/unictype/pr_format_control.h: Regenerated.
40314         * lib/unictype/pr_grapheme_base.h: Regenerated.
40315         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40316         * lib/unictype/pr_grapheme_link.h: Regenerated.
40317         * lib/unictype/pr_id_continue.h: Regenerated.
40318         * lib/unictype/pr_id_start.h: Regenerated.
40319         * lib/unictype/pr_ideographic.h: Regenerated.
40320         * lib/unictype/pr_ignorable_control.h: Regenerated.
40321         * lib/unictype/pr_lowercase.h: Regenerated.
40322         * lib/unictype/pr_math.h: Regenerated.
40323         * lib/unictype/pr_numeric.h: Regenerated.
40324         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40325         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40326         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40327         * lib/unictype/pr_other_id_continue.h: Regenerated.
40328         * lib/unictype/pr_other_lowercase.h: Regenerated.
40329         * lib/unictype/pr_other_math.h: Regenerated.
40330         * lib/unictype/pr_punctuation.h: Regenerated.
40331         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40332         * lib/unictype/pr_soft_dotted.h: Regenerated.
40333         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40334         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40335         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40336         * lib/unictype/pr_uppercase.h: Regenerated.
40337         * lib/unictype/pr_xid_continue.h: Regenerated.
40338         * lib/unictype/pr_xid_start.h: Regenerated.
40339         * lib/unictype/pr_zero_width.h: Regenerated.
40340         * lib/unictype/scripts.h: Regenerated.
40341         * lib/unictype/scripts_byname.gperf: Regenerated.
40342         * lib/unictype/sy_java_ident.h: Regenerated.
40343         * lib/unilbrk/lbrkprop1.h: Regenerated.
40344         * lib/unilbrk/lbrkprop2.h: Regenerated.
40345         * tests/unictype/test-categ_C.c: Regenerated.
40346         * tests/unictype/test-categ_Cf.c: Regenerated.
40347         * tests/unictype/test-categ_Cn.c: Regenerated.
40348         * tests/unictype/test-categ_L.c: Regenerated.
40349         * tests/unictype/test-categ_Ll.c: Regenerated.
40350         * tests/unictype/test-categ_Lm.c: Regenerated.
40351         * tests/unictype/test-categ_Lo.c: Regenerated.
40352         * tests/unictype/test-categ_Lu.c: Regenerated.
40353         * tests/unictype/test-categ_M.c: Regenerated.
40354         * tests/unictype/test-categ_Mc.c: Regenerated.
40355         * tests/unictype/test-categ_Me.c: Regenerated.
40356         * tests/unictype/test-categ_Mn.c: Regenerated.
40357         * tests/unictype/test-categ_N.c: Regenerated.
40358         * tests/unictype/test-categ_Nd.c: Regenerated.
40359         * tests/unictype/test-categ_Nl.c: Regenerated.
40360         * tests/unictype/test-categ_No.c: Regenerated.
40361         * tests/unictype/test-categ_P.c: Regenerated.
40362         * tests/unictype/test-categ_Pd.c: Regenerated.
40363         * tests/unictype/test-categ_Pe.c: Regenerated.
40364         * tests/unictype/test-categ_Pf.c: Regenerated.
40365         * tests/unictype/test-categ_Pi.c: Regenerated.
40366         * tests/unictype/test-categ_Po.c: Regenerated.
40367         * tests/unictype/test-categ_Ps.c: Regenerated.
40368         * tests/unictype/test-categ_S.c: Regenerated.
40369         * tests/unictype/test-categ_Sk.c: Regenerated.
40370         * tests/unictype/test-categ_Sm.c: Regenerated.
40371         * tests/unictype/test-categ_So.c: Regenerated.
40372         * tests/unictype/test-ctype_alnum.c: Regenerated.
40373         * tests/unictype/test-ctype_alpha.c: Regenerated.
40374         * tests/unictype/test-ctype_graph.c: Regenerated.
40375         * tests/unictype/test-ctype_lower.c: Regenerated.
40376         * tests/unictype/test-ctype_print.c: Regenerated.
40377         * tests/unictype/test-ctype_punct.c: Regenerated.
40378         * tests/unictype/test-ctype_upper.c: Regenerated.
40379         * tests/unictype/test-decdigit.h: Regenerated.
40380         * tests/unictype/test-digit.h: Regenerated.
40381         * tests/unictype/test-numeric.h: Regenerated.
40382         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40383         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40384         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40385         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40386         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40387         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40388         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40389         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40390         * tests/unictype/test-pr_combining.c: Regenerated.
40391         * tests/unictype/test-pr_dash.c: Regenerated.
40392         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40393         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40394         * tests/unictype/test-pr_deprecated.c: Regenerated.
40395         * tests/unictype/test-pr_diacritic.c: Regenerated.
40396         * tests/unictype/test-pr_extender.c: Regenerated.
40397         * tests/unictype/test-pr_format_control.c: Regenerated.
40398         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40399         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40400         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40401         * tests/unictype/test-pr_id_continue.c: Regenerated.
40402         * tests/unictype/test-pr_id_start.c: Regenerated.
40403         * tests/unictype/test-pr_ideographic.c: Regenerated.
40404         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40405         * tests/unictype/test-pr_lowercase.c: Regenerated.
40406         * tests/unictype/test-pr_math.c: Regenerated.
40407         * tests/unictype/test-pr_numeric.c: Regenerated.
40408         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40409         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40410         Regenerated.
40411         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40412         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40413         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40414         * tests/unictype/test-pr_other_math.c: Regenerated.
40415         * tests/unictype/test-pr_punctuation.c: Regenerated.
40416         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40417         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40418         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40419         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40420         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40421         * tests/unictype/test-pr_uppercase.c: Regenerated.
40422         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40423         * tests/unictype/test-pr_xid_start.c: Regenerated.
40424         * tests/unictype/test-pr_zero_width.c: Regenerated.
40425
40426         Update to Unicode 5.1.0.
40427         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40428         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40429         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40430         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40431         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40432         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40433         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40434         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40435         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40436         (nonspacing_table_ind): Update.
40437         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40438
40439         Update to Unicode 5.1.0.
40440         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40441         code transform.
40442         * lib/uniname/uniname.c (unicode_character_name,
40443         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40444         * lib/uniname/uninames.h: Regenerated.
40445         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40446
40447 2009-02-07  Bruno Haible  <bruno@clisp.org>
40448
40449         Merge gen-ctype and gen-lbrk into a single program.
40450         * lib/gen-uni-tables.c: New file, incorporating
40451         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40452         Add directory prefixes to the names of the generated files.
40453         * lib/unictype/gen-ctype.c: Remove file.
40454         * lib/unilbrk/gen-lbrk.c: Remove file.
40455         * modules/gen-uni-tables: New file.
40456         * modules/unictype/gen-ctype: Remove file.
40457         * modules/unilbrk/gen-lbrk: Remove file.
40458
40459 2009-02-07  Bruno Haible  <bruno@clisp.org>
40460
40461         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40462
40463         New module 'unistr/u32-strcoll'.
40464         * modules/unistr/u32-strcoll: New file.
40465         * lib/unistr/u32-strcoll.c: New file.
40466
40467         New module 'unistr/u16-strcoll'.
40468         * modules/unistr/u16-strcoll: New file.
40469         * lib/unistr/u16-strcoll.c: New file.
40470
40471         New module 'unistr/u8-strcoll'.
40472         * modules/unistr/u8-strcoll: New file.
40473         * lib/unistr/u8-strcoll.c: New file.
40474         * lib/unistr/u-strcoll.h: New file.
40475
40476 2009-02-07  Bruno Haible  <bruno@clisp.org>
40477
40478         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40479         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40480         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40481         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40482         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40483         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40484
40485 2009-02-07  Bruno Haible  <bruno@clisp.org>
40486
40487         Make 64-bit clean.
40488         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40489         output_combclass, output_bidi_category, output_decimal_digit,
40490         output_digit, output_numeric, output_mirror, output_scripts,
40491         output_ident_category): Use proper width specifier in format strings.
40492
40493 2009-02-07  Bruno Haible  <bruno@clisp.org>
40494
40495         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40496         failure behaviour.
40497
40498 2009-02-07  Jim Meyering  <meyering@redhat.com>
40499
40500         regex: avoid compilation failure with upcoming gcc-4.4
40501         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40502         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40503         "... error: integer overflow in preprocessor expression".
40504
40505 2009-02-05  Ben Pfaff  <blp@gnu.org>
40506
40507         Fix link errors on Windows when close module is used.
40508         * modules/close: Add $(LIB_CLOSE) to Link section.
40509         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40510         $(LIB_CLOSE) on Windows.
40511
40512 2009-02-05  Jim Meyering  <meyering@redhat.com>
40513
40514         still avoid unused-parameter warnings, but do it cleanly
40515         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40516         (get_fs_usage): Cast to void instead.
40517         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40518         (dev_from_mount_options, read_file_system_list): Cast to void.
40519         Prompted by Bruno Haible.
40520
40521 2009-02-04  Jim Meyering  <meyering@redhat.com>
40522
40523         fsusage.c: correct copyright year
40524         * lib/fsusage.c: Reflect year in which the change is pushed into
40525
40526         avoid misc. warnings
40527         * lib/fsusage.c (UNUSED_PARAM): Define.
40528         (get_fs_usage): Mark parameter "disk" as unused.
40529         * lib/getugroups.c (getgrent): Use "void" in prototype.
40530         * lib/mountlist.c: Mark unused parameters.
40531         (read_file_system_list): Declare a local with "const".
40532         * lib/nanosleep.c (getnow): Declare static.
40533         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40534
40535         dirfd: set errno upon failure
40536         * lib/dirfd.c: Include <errno.h>.
40537         Set errno to ENOTSUP when returning -1.
40538         * modules/dirfd (Depends-on): Add errno.
40539         Suggested by John Kodis <kodis@comcast.net>.
40540
40541 2009-02-01  Bruno Haible  <bruno@clisp.org>
40542
40543         Don't assume sizeof (long) >= sizeof (void *).
40544         * lib/memcmp.c: Include stdint.h.
40545         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40546         srcp2 to 'const byte *'.
40547         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40548         types to uintptr_t.
40549         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40550         * modules/memcmp (Depends-on): Add stdint.
40551         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40552
40553 2009-01-30  Eric Blake  <ebb9@byu.net>
40554
40555         fix more require-before-expand issues
40556         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40557         expand, AC_PROG_AWK.
40558         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40559
40560 2009-01-28  Eric Blake  <ebb9@byu.net>
40561
40562         version-etc: use consistent URL formatting
40563         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40564         Improve formatting.  Use fputs for string without %.
40565
40566 2009-01-28  Jim Meyering  <meyering@redhat.com>
40567
40568         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40569         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40570         "underquoted definition of NAME" from autoconf-2.59.
40571
40572 2009-01-28  Bruno Haible  <bruno@clisp.org>
40573
40574         * doc/gnulib.texi: Add "Obsolete modules" to index.
40575
40576 2009-01-28  Jim Meyering  <meyering@redhat.com>
40577
40578         useless-if-before-free: recognize more variants
40579         * build-aux/useless-if-before-free: Also recognize e.g.,
40580         if (NULL != p) free (p);
40581
40582 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40583
40584         test-getaddrinfo: skip (don't fail) this test when there's no network
40585         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40586         on the presumption that it means you lack network access.
40587
40588 2009-01-26  Jim Meyering  <meyering@redhat.com>
40589
40590         fflush: avoid warnings on modern systems
40591         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40592         pos and result, into scopes where they're used.
40593
40594 2009-01-26  Eric Blake  <ebb9@byu.net>
40595
40596         Silence warning reintroduced by recent extensions patch.
40597         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40598         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40599         autoconf.
40600
40601         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40602         * m4/00gnulib.m4: New file.
40603         * gnulib-tool (func_get_filelist): Always use it.
40604         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40605         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40606
40607 2009-01-25  Bruno Haible  <bruno@clisp.org>
40608
40609         Make test-quotearg work on MacOS X and AIX.
40610         * tests/test-quotearg.sh: New file.
40611         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40612         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40613         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40614         include <libintl.h>.
40615         (fake_locale): Remove variable.
40616         (gettext, dgettext, dcgettext): Remove functions.
40617         (main): Instead of setting a fake locale, set a real locale. Call
40618         textdomain and bindtextdomain.
40619         * modules/quotearg-tests (Files): Add the new files.
40620         (Depends-on): Add gettext, setenv, unsetenv.
40621         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40622         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40623         Augment TESTS_ENVIRONMENT.
40624
40625 2009-01-25  Bruno Haible  <bruno@clisp.org>
40626
40627         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40628         fr_FR.ISO8859-1 locale on MacOS X.
40629         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40630         ja_JP.eucJP locale on MacOS X.
40631         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40632         zh_CN.GB18030 locale on MacOS X.
40633
40634 2009-01-25  Bruno Haible  <bruno@clisp.org>
40635
40636         Avoid link errors on MacOS X 10.3.
40637         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40638         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40639
40640 2009-01-25  Bruno Haible  <bruno@clisp.org>
40641
40642         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40643         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40644         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40645         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40646         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40647         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40648         posix_spawnattr_init, posix_spawnattr_setsigmask,
40649         posix_spawnattr_setflags, posix_spawnattr_destroy.
40650
40651         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40652         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40653         * modules/execute (Files): Remove m4/posix_spawn.m4.
40654         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40655         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40656         posix_spawnattr_init, posix_spawnattr_setsigmask,
40657         posix_spawnattr_setflags, posix_spawnattr_destroy.
40658
40659 2009-01-25  Bruno Haible  <bruno@clisp.org>
40660
40661         * lib/glthread/threadlib.c: Include <stdlib.h>.
40662
40663 2009-01-25  Bruno Haible  <bruno@clisp.org>
40664
40665         * lib/glthread/threadlib.c (dummy): New declaration.
40666
40667 2009-01-25  Bruno Haible  <bruno@clisp.org>
40668
40669         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40670         multibyte characters also for the GB18030 encoding. Don't crash when
40671         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40672
40673 2009-01-25  Bruno Haible  <bruno@clisp.org>
40674
40675         Avoid redefining 'struct random_data' on OSF/1 5.1.
40676         * lib/stdlib.in.h: Include <random.h> if it exists.
40677         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40678         HAVE_RANDOM_H. Include <random.h> when testing whether
40679         'struct random_data' exists.
40680         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40681
40682 2009-01-25  Bruno Haible  <bruno@clisp.org>
40683
40684         Don't install charset.alias on MacOS X >= 10.3.
40685         * lib/localcharset.c (DARWIN7): New macro.
40686         (get_charset_aliases): Hardcode the result for Darwin7.
40687         * modules/localcharset (install-exec-local): Don't install
40688         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40689
40690 2009-01-25  Bruno Haible  <bruno@clisp.org>
40691
40692         Don't install charset.alias on mingw and Cygwin.
40693         * modules/localcharset (install-exec-local): Don't install
40694         charset.alias on mingw and Cygwin, if the file does not yet exist.
40695         The result for these platforms is hardcoded in localcharset.c.
40696
40697 2009-01-25  Bruno Haible  <bruno@clisp.org>
40698
40699         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40700         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40701         before requiring AC_USE_SYSTEM_EXTENSIONS.
40702
40703 2009-01-25  Jim Meyering  <meyering@redhat.com>
40704
40705         c-strtod: avoid warnings
40706         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40707         "assignment discards qualifiers from pointer target type" warnings.
40708
40709 2009-01-24  Bruno Haible  <bruno@clisp.org>
40710
40711         Add support for non-UTF-8 locales on MacOS X.
40712         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40713         canonical encodings. For Darwin 7 and newer, don't map traditional
40714         encodings to UTF-8.
40715         Reported by Vincent Lefevre <vincent@vinc17.org>
40716         at <http://savannah.gnu.org/bugs/?25235>.
40717
40718 2009-01-24  Bruno Haible  <bruno@clisp.org>
40719
40720         * doc/gnulib.texi (Obsolete modules): New section.
40721         Reported by Mike Frysinger <vapier@gentoo.org>.
40722
40723 2009-01-24  Bruno Haible  <bruno@clisp.org>
40724
40725         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40726         (%.dvi): New rule.
40727
40728 2009-01-24  Bruno Haible  <bruno@clisp.org>
40729
40730         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40731         Reported by Eric Blake.
40732
40733 2009-01-24  Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40736         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40737         Reported by Gary V. Vaughan <gary@gnu.org>.
40738
40739 2009-01-24  Bruno Haible  <bruno@clisp.org>
40740
40741         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40742
40743 2009-01-23  Bruno Haible  <bruno@clisp.org>
40744
40745         Make c-strtod, c-strtold usable in libraries.
40746         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40747         (C_STRTOD): Call strdup instead of xstrdup.
40748         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40749         * modules/c-strtold (Depends-on): Likewise.
40750         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40751         * NEWS: Mention the change.
40752         Reported by Michael Gold <mgold@ncf.ca>.
40753
40754 2009-01-23  Jim Meyering  <meyering@redhat.com>
40755
40756         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40757         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40758         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40759
40760 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40761
40762         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40763         GNU CoreUtils.
40764         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40765         * modules/version-etc (Description): Update.
40766
40767 2009-01-22  Bruno Haible  <bruno@clisp.org>
40768
40769         Cache the C locale object.
40770         * lib/c-strtod.c (c_locale_cache): New variable.
40771         (c_locale): New function.
40772         (C_STRTOD): Use it, and don't call freelocale.
40773         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40774         Suggested by Paolo Bonzini.
40775
40776 2009-01-21  Bruno Haible  <bruno@clisp.org>
40777
40778         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40779         conditions other than overflow.
40780
40781 2009-01-21  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/c-strtod.c: Include errno.h.
40784         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40785         value from STRTOD_L and STRTOD.
40786
40787 2009-01-21  Bruno Haible  <bruno@clisp.org>
40788         and Jim Meyering  <meyering@redhat.com>
40789
40790         nanosleep: skip configure test (fail it) for apple universal builds
40791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40792         universal builds, assume that nanosleep does not work.
40793         * modules/nanosleep (Depends-on): Add multiarch.
40794
40795         mktime: skip configure test (fail it) for apple universal builds
40796         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40797         universal builds, assume that mktime does not work.
40798         * modules/mktime (Depends-on): Add multiarch.
40799
40800 2009-01-21  Eric Blake  <ebb9@byu.net>
40801
40802         multiarch: avoid expand-before-require warning
40803         * modules/multiarch (configure.ac): Require, rather than expand,
40804         gl_MULTIARCH.
40805         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40806         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40807         enforce that all clients require it.  Partial reversion of
40808         2008-12-29 patch.
40809
40810         error: avoid expand-before-require warning
40811         * modules/errno (configure.ac): Require, rather than expand,
40812         gl_HEADER_ERRNO_H.
40813         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40814         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40815         enforce that all clients require it.
40816
40817         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40818         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40819         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40820         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40821
40822 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40823
40824         Revert:
40825         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40826
40827         regex: do not depend on obsolete modules.
40828         * modules/regex: Remove memcmp and memmove.
40829
40830 2009-01-20  Bruno Haible  <bruno@clisp.org>
40831
40832         Make the 'link' module link on Windows NT 4.
40833         * lib/link.c (_WIN32_WINNT): Don't define.
40834         (CreateHardLinkFuncType): New type.
40835         (CreateHardLinkFunc, initialized): New variables.
40836         (initialize): New function.
40837         (link): Invoke CreateHardLink indirectly through the function pointer.
40838
40839 2009-01-20  Bruno Haible  <bruno@clisp.org>
40840
40841         Fix compilation failure on mingw.
40842         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40843
40844 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40845
40846         * doc/c-strtod.texi: Mention a couple of restrictions.
40847
40848 2009-01-20  Jim Meyering  <meyering@redhat.com>
40849
40850         gettimeofday: move more declarations out of functions
40851         * lib/gettimeofday.c: Move extern declarations of tzset and
40852         gmtime out of containing functions.  Prompted by Bruno Haible.
40853
40854 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40855
40856         regex: do not depend on obsolete modules.
40857         * modules/regex: Remove memcmp and memmove.
40858
40859 2009-01-19  Bruno Haible  <bruno@clisp.org>
40860
40861         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40862         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40863         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40864         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40865         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40866
40867 2009-01-19  Bruno Haible  <bruno@clisp.org>
40868
40869         * tests/test-link.c: Include <errno.h>.
40870         (main): Exit with code 77 when a hard link cannot be created due to
40871         the file system.
40872         * tests/test-link.sh: Skip test when a hard link cannot be created due
40873         to the file system.
40874         Suggested by Eric Blake.
40875
40876 2009-01-19  Martin Lambers  <marlam@marlam.de>
40877
40878         * modules/link-tests: New file.
40879         * tests/test-link.sh: New file.
40880         * tests/test-link.c: New file.
40881
40882 2009-01-19  Eric Blake  <ebb9@byu.net>
40883
40884         doc: mention another function added in cygwin 1.7.0
40885         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40886         Another new function in cygwin 1.7.
40887
40888 2009-01-19  Bruno Haible  <bruno@clisp.org>
40889
40890         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40891         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40892         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40893         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40894         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40895         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40896         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40897         * m4/md4.m4 (gl_MD4): Likewise.
40898         * m4/md5.m4 (gl_MD5): Likewise.
40899         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40900         * m4/sha1.m4 (gl_SHA1): Likewise.
40901         * m4/sha256.m4 (gl_SHA256): Likewise.
40902         * m4/sha512.m4 (gl_SHA512): Likewise.
40903
40904 2009-01-19  Bruno Haible  <bruno@clisp.org>
40905
40906         * modules/uniname/uniname-tests (Depends-on): Add progname.
40907         * tests/uniname/test-uninames.c: Include progname.h.
40908         (main): Call set_program_name.
40909
40910         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40911         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40912         (main): Call set_program_name.
40913
40914         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40915         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40916         (main): Call set_program_name.
40917
40918         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40919         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40920         (main): Call set_program_name.
40921
40922         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40923         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40924         (main): Call set_program_name.
40925
40926         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40927         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40928         (main): Call set_program_name.
40929
40930         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40931         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40932         (main): Call set_program_name.
40933
40934         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40935         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40936         (main): Call set_program_name.
40937
40938         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40939         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40940         (main): Call set_program_name.
40941
40942 2009-01-19  Eric Blake  <ebb9@byu.net>
40943
40944         test-unistd: test previous patch
40945         * tests/test-unistd.c: Test *_FILENO macros.
40946
40947         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40948         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40949         Guarantee a definition.
40950         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40951         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40952         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40953         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40954         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40955         Likewise.
40956         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40957         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40958         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40959         Likewise.
40960         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40961         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40962         (STDERR_FILENO): Likewise.
40963         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40964         (STDERR_FILENO): Likewise.
40965         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40966         (STDERR_FILENO): Likewise.
40967         Reported by Elbert Pol.
40968
40969 2009-01-19  Eric Blake  <ebb9@byu.net>
40970
40971         doc: mention more functions added in cygwin 1.7.0
40972         * doc/posix-functions/abort.texi (abort): Update wording related
40973         to cygwin.
40974         * doc/posix-functions/daylight.texi (daylight): Likewise.
40975         * doc/posix-functions/optarg.texi (optarg): Likewise.
40976         * doc/posix-functions/optarg.texi (opterr): Likewise.
40977         * doc/posix-functions/optarg.texi (optind): Likewise.
40978         * doc/posix-functions/optarg.texi (optopt): Likewise.
40979         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40980         worked in 1.5.x, and was withdrawn in 1.7.
40981         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40982         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40983         cygwin versions.
40984         * doc/posix-functions/perror.texi (perror): Likewise.
40985         * doc/posix-functions/printf.texi (printf): Likewise.
40986         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40987         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40988         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40989         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40990         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40991         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40992         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40993         Likewise.
40994         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40995         Likewise.
40996         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40997         this function.
40998         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40999         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41000         Likewise.
41001         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41002         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41003         * doc/posix-functions/confstr.texi (confstr): Likewise.
41004         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41005         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41006         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41007         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41008         * doc/posix-functions/fputws.texi (fputws): Likewise.
41009         * doc/posix-functions/fwide.texi (fwide): Likewise.
41010         * doc/posix-functions/getwc.texi (getwc): Likewise.
41011         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41012         * doc/posix-functions/putwc.texi (putwc): Likewise.
41013         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41014         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41015         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41016         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41017         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41018         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41019         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41020         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41021         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41022         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41023         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41024
41025 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41026
41027         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41028         * lib/ioctl.c: Include <sys/ioctl.h>.
41029
41030 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41031
41032         * modules/getdate-tests (Depends-on): Add progname.
41033         * tests/test-getdate.c: Use progname module, to avoid link errors
41034         on non-glibc systems.
41035
41036 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41037
41038         * modules/filenamecat-tests (Depends-on): Add progname.
41039         * modules/fstrcmp-tests (Depends-on): Likewise.
41040
41041         * tests/test-filenamecat.c: Use progname module, to avoid link
41042         errors on non-glibc systems.
41043         * tests/test-fstrcmp.c: Likewise.
41044
41045 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41046
41047         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41048         * lib/gettimeofday.c: Move extern declaration out of function.
41049
41050 2009-01-18  Bruno Haible  <bruno@clisp.org>
41051
41052         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41053         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41054         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41055
41056 2009-01-18  Bruno Haible  <bruno@clisp.org>
41057
41058         * lib/strftime.c (MEMPCPY): Remove unused macro.
41059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41060
41061 2009-01-18  Martin Lambers  <marlam@marlam.de>
41062
41063         New module 'link'.
41064         * lib/unistd.in.h (link): New declaration.
41065         * lib/link.c: New file.
41066         * m4/link.m4: New file.
41067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41068         HAVE_LINK.
41069         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41070         * modules/link: New file.
41071         * doc/posix-functions/link.texi: Mention the new module.
41072
41073 2009-01-18  Bruno Haible  <bruno@clisp.org>
41074
41075         * tests/test-avltree_list.c (main): Call set_program_name.
41076         * tests/test-avltree_oset.c (main): Likewise.
41077         * tests/test-obstack-printf.c: Include progname.h.
41078         (main): Call set_program_name.
41079         * tests/test-quotearg.c: Include progname.h.
41080         (main): Call set_program_name.
41081         * tests/test-xmemdup0.c: Include progname.h.
41082         (main): Call set_program_name.
41083
41084 2009-01-18  Bruno Haible  <bruno@clisp.org>
41085
41086         New module 'alphasort'.
41087         * lib/dirent.in.h (alphasort): New declaration.
41088         * lib/alphasort.c: New file, from glibc with modifications.
41089         * m4/alphasort.m4: New file.
41090         * modules/alphasort: New file.
41091         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41092         HAVE_ALPHASORT.
41093         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41094         HAVE_ALPHASORT.
41095         * doc/posix-functions/alphasort.texi: Mention the new module and the
41096         portability problems.
41097
41098 2009-01-18  Bruno Haible  <bruno@clisp.org>
41099
41100         New module 'scandir'.
41101         * lib/dirent.in.h (scandir): New declaration.
41102         * lib/scandir.c: New file, from glibc with modifications.
41103         * m4/scandir.m4: New file.
41104         * modules/scandir: New file.
41105         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41106         HAVE_SCANDIR.
41107         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41108         HAVE_SCANDIR.
41109         * doc/posix-functions/scandir.texi: Mention the new module and the
41110         portability problems.
41111
41112 2009-01-17  Bruno Haible  <bruno@clisp.org>
41113
41114         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41115         Update documentation.
41116         (func_remove_suffix): Escape all dots in the suffix. Update
41117         documentation.
41118         (func_filter_filelist): Update documentation.
41119         Reported by Ralf Wildenhues.
41120
41121 2009-01-17  Bruno Haible  <bruno@clisp.org>
41122
41123         * modules/dprintf-posix-tests: New file.
41124         * tests/test-dprintf-posix.sh: New file.
41125         * tests/test-dprintf-posix.c: New file.
41126
41127         New modules 'dprintf', 'dprintf-posix'.
41128         * lib/stdio.in.h (dprintf): New declaration.
41129         * lib/dprintf.c: New file.
41130         * m4/dprintf.m4: New file.
41131         * m4/dprintf-posix.m4: New file.
41132         * modules/dprintf: New file.
41133         * modules/dprintf-posix: New file.
41134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41135         HAVE_DPRINTF, REPLACE_DPRINTF.
41136         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41137         HAVE_DPRINTF, REPLACE_DPRINTF.
41138         * doc/posix-functions/dprintf.texi: Mention the new modules.
41139
41140 2009-01-17  Bruno Haible  <bruno@clisp.org>
41141
41142         * modules/vdprintf-posix-tests: New file.
41143         * tests/test-vdprintf-posix.sh: New file.
41144         * tests/test-vdprintf-posix.c: New file.
41145
41146         New modules 'vdprintf', 'vdprintf-posix'.
41147         * lib/stdio.in.h (vdprintf): New declaration.
41148         * lib/vdprintf.c: New file.
41149         * m4/vdprintf.m4: New file.
41150         * m4/vdprintf-posix.m4: New file.
41151         * modules/vdprintf: New file.
41152         * modules/vdprintf-posix: New file.
41153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41154         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41155         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41156         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41157         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41158
41159 2009-01-17  Bruno Haible  <bruno@clisp.org>
41160
41161         Fix replacement of fopen on mingw.
41162         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41163         mingw.
41164
41165 2009-01-17  Bruno Haible  <bruno@clisp.org>
41166
41167         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41168         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41169
41170 2009-01-17  Bruno Haible  <bruno@clisp.org>
41171
41172         Avoid test-fflush2.sh failure on mingw.
41173         * tests/test-fflush2.c: Include binary-io.h.
41174         (main): Put standard input into binary mode.
41175         * modules/fflush-tests (Depends-on): Add binary-io.
41176
41177 2009-01-17  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/wchar.in.h: In another particular situation, include only the
41180         system's <wchar.h> file.
41181         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41182         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41183         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41184
41185 2009-01-17  Bruno Haible  <bruno@clisp.org>
41186
41187         Support for stripping executables in --enable-relocatable.
41188         * build-aux/install-reloc: Expect one more argument, or an environment
41189         variable RELOC_STRIP_PROG. If set, strip the destination program and
41190         its wrapper.
41191         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41192         RELOC_STRIP_PROG.
41193         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41194         to set RELOCATABLE_STRIP.
41195         * NEWS: Mention the new Makefile requirement.
41196
41197 2009-01-17  Bruno Haible  <bruno@clisp.org>
41198
41199         * build-aux/install-reloc: Remove debugging information left over by
41200         C compiler on MacOS X.
41201
41202 2009-01-17  Bruno Haible  <bruno@clisp.org>
41203
41204         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41205         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41206         _NSGetExecutablePath.
41207
41208 2009-01-16  Jim Meyering  <meyering@redhat.com>
41209
41210         strerror: avoid warnings about discarding "const"
41211         * lib/strerror.c (rpl_strerror): Instead of returning a const
41212         string from each and every "case", use a variable, and add a single
41213         cast after the switch.
41214
41215 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41216
41217         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41218
41219 2009-01-16  Bruno Haible  <bruno@clisp.org>
41220
41221         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41222         array initializer syntax that also works in C++ mode.
41223         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41224
41225 2009-01-16  Jim Meyering  <meyering@redhat.com>
41226
41227         poll: suppress a warning
41228         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41229         to ignore "...unsigned expression < 0 is always false" warnings.
41230
41231 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41232
41233         poll: remove declarations of unused variables
41234         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41235         sockbuf and optlen.
41236
41237 2009-01-15  Bruno Haible  <bruno@clisp.org>
41238
41239         Make fflush-after-ungetc POSIX compliant on BSD systems.
41240         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41241         (clear_ungetc_buffer): Implement also for other systems.
41242         (rpl_fflush): On glibc systems, invoke
41243         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41244         clear_ungetc_buffer after fetching the stream's position, not before.
41245
41246 2009-01-15  Bruno Haible  <bruno@clisp.org>
41247
41248         Make fflush-after-ungetc POSIX compliant on glibc systems.
41249         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41250         after ungetc.
41251         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41252         (rpl_fflush): On glibc systems, simply call the system's fflush
41253         function after clearing the ungetc buffer.
41254         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41255         Instead, lseek only to the end of file, then use the system's fseeko
41256         for the rest. On glibc systems, reset the EOF indicator bit.
41257
41258 2009-01-15  Jim Meyering  <meyering@redhat.com>
41259
41260         openmp.m4: revert quote-adding change, for portability to older autoconf
41261         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41262         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41263         Simon Josefsson noticed the problem when using autoconf-2.61.
41264
41265 2009-01-15  Bruno Haible  <bruno@clisp.org>
41266
41267         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41268         * tests/test-fflush2.c (ASSERT): Always fail.
41269         (main): Add two tests for fflush() after ungetc(), taking into account
41270         the Austin Group's clarification.
41271         Suggested by Eric Blake.
41272
41273 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41274
41275         mktime.m4: remove K&R-style function prototypes
41276         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41277         for the Sun C++ compiler.
41278
41279 2009-01-14  Bruno Haible  <bruno@clisp.org>
41280
41281         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41282         while including <wchar.h>.
41283         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41284         the system's <wchar.h> file.
41285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41286
41287 2009-01-14  Bruno Haible  <bruno@clisp.org>
41288
41289         * m4/csharp.m4: Don't mention gettext on the serial number line.
41290         * m4/csharpexec.m4: Likewise.
41291         * m4/eaccess.m4: Likewise.
41292         * m4/javaexec.m4: Likewise.
41293         * m4/sig_atomic_t.m4: Likewise.
41294         * m4/tmpdir.m4: Likewise.
41295         * m4/intldir.m4: Bump gettext version.
41296         * m4/lib-ld.m4: Likewise.
41297
41298 2009-01-14  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/progname.c (set_program_name): Add more comments.
41301         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41302
41303 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41304
41305         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41306         were sys/stat.h does not define it.
41307
41308 2009-01-14  Jim Meyering  <meyering@redhat.com>
41309
41310         many *.m4 files: improve m4 quoting
41311         99% of this change was performed by running the following commands:
41312         git ls-files | grep '\.m4$' | xargs perl -pi \
41313           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41314           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41315           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41316           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41317         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41318         The remainder were to add Copyright dates, increment serial numbers,
41319         undo some changes in comments, exclude m4/intl.m4, and add quotes
41320         around the "1" in ",1" where the unusual spacing prohibited the
41321         above regexps from doing the job.  For more details, see
41322         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41323         * m4/acl.m4: Modified.
41324         * m4/afs.m4: Likewise.
41325         * m4/alloca.m4: Likewise.
41326         * m4/argp.m4: Likewise.
41327         * m4/argz.m4: Likewise.
41328         * m4/atexit.m4: Likewise.
41329         * m4/bison-i18n.m4: Likewise.
41330         * m4/bison.m4: Likewise.
41331         * m4/byteswap.m4: Likewise.
41332         * m4/c-stack.m4: Likewise.
41333         * m4/c-strtod.m4: Likewise.
41334         * m4/calloc.m4: Likewise.
41335         * m4/canonicalize-lgpl.m4: Likewise.
41336         * m4/chown.m4: Likewise.
41337         * m4/clock_time.m4: Likewise.
41338         * m4/codeset.m4: Likewise.
41339         * m4/copy-file.m4: Likewise.
41340         * m4/csharp.m4: Likewise.
41341         * m4/csharpcomp.m4: Likewise.
41342         * m4/csharpexec.m4: Likewise.
41343         * m4/d-ino.m4: Likewise.
41344         * m4/d-type.m4: Likewise.
41345         * m4/dirfd.m4: Likewise.
41346         * m4/double-slash-root.m4: Likewise.
41347         * m4/eaccess.m4: Likewise.
41348         * m4/eealloc.m4: Likewise.
41349         * m4/environ.m4: Likewise.
41350         * m4/errno_h.m4: Likewise.
41351         * m4/euidaccess.m4: Likewise.
41352         * m4/execute.m4: Likewise.
41353         * m4/fatal-signal.m4: Likewise.
41354         * m4/fchdir.m4: Likewise.
41355         * m4/fcntl_h.m4: Likewise.
41356         * m4/fileblocks.m4: Likewise.
41357         * m4/filenamecat.m4: Likewise.
41358         * m4/findprog.m4: Likewise.
41359         * m4/flexmember.m4: Likewise.
41360         * m4/fnmatch.m4: Likewise.
41361         * m4/fopen.m4: Likewise.
41362         * m4/fpending.m4: Likewise.
41363         * m4/fprintf-posix.m4: Likewise.
41364         * m4/free.m4: Likewise.
41365         * m4/frexp.m4: Likewise.
41366         * m4/frexpl.m4: Likewise.
41367         * m4/fsusage.m4: Likewise.
41368         * m4/ftruncate.m4: Likewise.
41369         * m4/gc-camellia.m4: Likewise.
41370         * m4/gc-random.m4: Likewise.
41371         * m4/gc.m4: Likewise.
41372         * m4/getaddrinfo.m4: Likewise.
41373         * m4/getcwd-abort-bug.m4: Likewise.
41374         * m4/getcwd-path-max.m4: Likewise.
41375         * m4/getdate.m4: Likewise.
41376         * m4/getdomainname.m4: Likewise.
41377         * m4/getgroups.m4: Likewise.
41378         * m4/gethostname.m4: Likewise.
41379         * m4/gethrxtime.m4: Likewise.
41380         * m4/getline.m4: Likewise.
41381         * m4/getloadavg.m4: Likewise.
41382         * m4/getndelim2.m4: Likewise.
41383         * m4/getpass.m4: Likewise.
41384         * m4/gettext.m4: Likewise.
41385         * m4/gettime.m4: Likewise.
41386         * m4/gettimeofday.m4: Likewise.
41387         * m4/gnulib-common.m4: Likewise.
41388         * m4/group-member.m4: Likewise.
41389         * m4/host-os.m4: Likewise.
41390         * m4/iconv.m4: Likewise.
41391         * m4/iconv_open.m4: Likewise.
41392         * m4/inet_ntop.m4: Likewise.
41393         * m4/inet_pton.m4: Likewise.
41394         * m4/inline.m4: Likewise.
41395         * m4/intldir.m4: Likewise.
41396         * m4/intlmacosx.m4: Likewise.
41397         * m4/intmax.m4: Likewise.
41398         * m4/intmax_t.m4: Likewise.
41399         * m4/inttypes.m4: Likewise.
41400         * m4/inttypes_h.m4: Likewise.
41401         * m4/inttypes-pri.m4: Likewise.
41402         * m4/isapipe.m4: Likewise.
41403         * m4/isnand.m4: Likewise.
41404         * m4/isnanf.m4: Likewise.
41405         * m4/isnanl.m4: Likewise.
41406         * m4/javacomp.m4: Likewise.
41407         * m4/javaexec.m4: Likewise.
41408         * m4/jm-winsz1.m4: Likewise.
41409         * m4/jm-winsz2.m4: Likewise.
41410         * m4/lchown.m4: Likewise.
41411         * m4/lcmessage.m4: Likewise.
41412         * m4/ldexpl.m4: Likewise.
41413         * m4/lib-ld.m4: Likewise.
41414         * m4/lib-link.m4: Likewise.
41415         * m4/libsigsegv.m4: Likewise.
41416         * m4/link-follow.m4: Likewise.
41417         * m4/localcharset.m4: Likewise.
41418         * m4/locale-fr.m4: Likewise.
41419         * m4/locale-ja.m4: Likewise.
41420         * m4/locale-tr.m4: Likewise.
41421         * m4/locale-zh.m4: Likewise.
41422         * m4/lock.m4: Likewise.
41423         * m4/longlong.m4: Likewise.
41424         * m4/ls-mntd-fs.m4: Likewise.
41425         * m4/lstat.m4: Likewise.
41426         * m4/malloc.m4: Likewise.
41427         * m4/mathl.m4: Likewise.
41428         * m4/mbrtowc.m4: Likewise.
41429         * m4/mbstate_t.m4: Likewise.
41430         * m4/mbswidth.m4: Likewise.
41431         * m4/memchr.m4: Likewise.
41432         * m4/memcmp.m4: Likewise.
41433         * m4/memcpy.m4: Likewise.
41434         * m4/memmem.m4: Likewise.
41435         * m4/memmove.m4: Likewise.
41436         * m4/mempcpy.m4: Likewise.
41437         * m4/memrchr.m4: Likewise.
41438         * m4/memset.m4: Likewise.
41439         * m4/minmax.m4: Likewise.
41440         * m4/mkdir-slash.m4: Likewise.
41441         * m4/mkdtemp.m4: Likewise.
41442         * m4/mktime.m4: Likewise.
41443         * m4/mmap-anon.m4: Likewise.
41444         * m4/mountlist.m4: Likewise.
41445         * m4/nanosleep.m4: Likewise.
41446         * m4/nls.m4: Likewise.
41447         * m4/nocrash.m4: Likewise.
41448         * m4/open.m4: Likewise.
41449         * m4/openat.m4: Likewise.
41450         * m4/openmp.m4: Likewise.
41451         * m4/pathmax.m4: Likewise.
41452         * m4/perl.m4: Likewise.
41453         * m4/physmem.m4: Likewise.
41454         * m4/pipe.m4: Likewise.
41455         * m4/po.m4: Likewise.
41456         * m4/poll.m4: Likewise.
41457         * m4/posixtm.m4: Likewise.
41458         * m4/posixver.m4: Likewise.
41459         * m4/printf-frexp.m4: Likewise.
41460         * m4/printf-frexpl.m4: Likewise.
41461         * m4/printf-posix.m4: Likewise.
41462         * m4/printf-posix-rpl.m4: Likewise.
41463         * m4/printf.m4: Likewise.
41464         * m4/progtest.m4: Likewise.
41465         * m4/putenv.m4: Likewise.
41466         * m4/readline.m4: Likewise.
41467         * m4/readlink.m4: Likewise.
41468         * m4/readutmp.m4: Likewise.
41469         * m4/realloc.m4: Likewise.
41470         * m4/regex.m4: Likewise.
41471         * m4/relocatable.m4: Likewise.
41472         * m4/relocatable-lib.m4: Likewise.
41473         * m4/rename-dest-slash.m4: Likewise.
41474         * m4/rename.m4: Likewise.
41475         * m4/rmdir-errno.m4: Likewise.
41476         * m4/rmdir.m4: Likewise.
41477         * m4/roundf.m4: Likewise.
41478         * m4/roundl.m4: Likewise.
41479         * m4/rpmatch.m4: Likewise.
41480         * m4/save-cwd.m4: Likewise.
41481         * m4/selinux-selinux-h.m4: Likewise.
41482         * m4/setenv.m4: Likewise.
41483         * m4/settime.m4: Likewise.
41484         * m4/sig2str.m4: Likewise.
41485         * m4/sig_atomic_t.m4: Likewise.
41486         * m4/signalblocking.m4: Likewise.
41487         * m4/signbit.m4: Likewise.
41488         * m4/sigpipe.m4: Likewise.
41489         * m4/sockets.m4: Likewise.
41490         * m4/sockpfaf.m4: Likewise.
41491         * m4/st_dm_mode.m4: Likewise.
41492         * m4/stat-time.m4: Likewise.
41493         * m4/stdbool.m4: Likewise.
41494         * m4/stdint.m4: Likewise.
41495         * m4/stdint_h.m4: Likewise.
41496         * m4/stpcpy.m4: Likewise.
41497         * m4/stpncpy.m4: Likewise.
41498         * m4/strcase.m4: Likewise.
41499         * m4/strchrnul.m4: Likewise.
41500         * m4/strcspn.m4: Likewise.
41501         * m4/strdup.m4: Likewise.
41502         * m4/strftime.m4: Likewise.
41503         * m4/strndup.m4: Likewise.
41504         * m4/strnlen.m4: Likewise.
41505         * m4/strpbrk.m4: Likewise.
41506         * m4/strptime.m4: Likewise.
41507         * m4/strsep.m4: Likewise.
41508         * m4/strtod.m4: Likewise.
41509         * m4/strtoimax.m4: Likewise.
41510         * m4/strtok_r.m4: Likewise.
41511         * m4/strtol.m4: Likewise.
41512         * m4/strtoll.m4: Likewise.
41513         * m4/strtoul.m4: Likewise.
41514         * m4/strtoull.m4: Likewise.
41515         * m4/strtoumax.m4: Likewise.
41516         * m4/strverscmp.m4: Likewise.
41517         * m4/threadlib.m4: Likewise.
41518         * m4/timegm.m4: Likewise.
41519         * m4/tm_gmtoff.m4: Likewise.
41520         * m4/tmpdir.m4: Likewise.
41521         * m4/tmpfile.m4: Likewise.
41522         * m4/tzset.m4: Likewise.
41523         * m4/uintmax_t.m4: Likewise.
41524         * m4/unlinkdir.m4: Likewise.
41525         * m4/unlocked-io.m4: Likewise.
41526         * m4/uptime.m4: Likewise.
41527         * m4/userspec.m4: Likewise.
41528         * m4/utimbuf.m4: Likewise.
41529         * m4/utime.m4: Likewise.
41530         * m4/utimes-null.m4: Likewise.
41531         * m4/utimes.m4: Likewise.
41532         * m4/vararrays.m4: Likewise.
41533         * m4/vasnprintf.m4: Likewise.
41534         * m4/vfprintf-posix.m4: Likewise.
41535         * m4/vprintf-posix.m4: Likewise.
41536         * m4/wait-process.m4: Likewise.
41537         * m4/wchar_t.m4: Likewise.
41538         * m4/wint_t.m4: Likewise.
41539         * m4/write-any-file.m4: Likewise.
41540         * m4/yield.m4: Likewise.
41541
41542 2009-01-13  Bruno Haible  <bruno@clisp.org>
41543
41544         Avoid test-copy-file.sh failures when ACL support insufficient.
41545         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41546         TESTS_ENVIRONMENT.
41547         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41548         Reported by Jim Meyering.
41549
41550 2009-01-13  Bruno Haible  <bruno@clisp.org>
41551
41552         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41553         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41554         * modules/unistdio/u8-printf-parse (Files): Likewise.
41555         * modules/unistdio/u32-printf-parse (Files): Likewise.
41556         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41557
41558 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41559
41560         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41561         and m4/inttypes_h.m4 too.
41562
41563 2009-01-12  Eric Blake  <ebb9@byu.net>
41564
41565         tests: IRIX 6.2 cc can't compile -0.0 into .data
41566         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41567         rather than at compile-time.
41568         * tests/test-floorl.c (minus_zero): Likewise.
41569         * tests/test-frexpl.c (minus_zero): Likewise.
41570         * tests/test-isnan.c (minus_zerol): Likewise.
41571         * tests/test-isnanl.h (minus_zero): Likewise.
41572         * tests/test-ldexpl.c (minus_zero): Likewise.
41573         * tests/test-roundl.c (minus_zero): Likewise.
41574         * tests/test-signbit.c (minus_zerol): Likewise.
41575         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41576         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41577         * tests/test-truncl.c (minus_zero): Likewise.
41578         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41579         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41580         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41581
41582 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41583
41584         regex: fix glibc bug 9697
41585         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41586         handling.
41587
41588 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41589
41590         regex: fix glibc bug 697
41591         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41592         being NULL also if there are no backreferences.
41593
41594 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41595
41596         regex: merge glibc changes
41597         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41598         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41599         re_string_skip_chars, re_string_reconstruct): Likewise.
41600         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41601
41602 2009-01-07  Jim Meyering  <meyering@redhat.com>
41603
41604         poll: filter through cppi
41605         * lib/poll.c: Indent cpp directives to reflect nesting.
41606
41607 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41608
41609         poll: don't return uninitialized
41610         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41611
41612 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41613
41614         avoid compile failure on AIX 6.1
41615         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41616         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41617
41618 2009-01-04  Jim Meyering  <meyering@redhat.com>
41619
41620         remove duplicate inclusion of <stdio.h>
41621         * tests/test-fprintf-posix.c: Likewise.
41622         * tests/test-printf-posix.c: Likewise.
41623         * tests/test-snprintf-posix.c: Likewise.
41624         * tests/test-sprintf-posix.c: Likewise.
41625         * tests/test-vasprintf-posix.c: Likewise.
41626         * tests/test-vfprintf-posix.c: Likewise.
41627         * tests/test-vprintf-posix.c: Likewise.
41628         * tests/test-vsnprintf-posix.c: Likewise.
41629         * tests/test-vsprintf-posix.c: Likewise.
41630
41631 2009-01-03  Jim Meyering  <meyering@redhat.com>
41632
41633         gnulib-tool: fix sed-based filtering
41634         * gnulib-tool (func_filter_filelist): Remove extra backslash
41635         in sed_fff_filter definition.
41636
41637 2009-01-02  Jim Meyering  <meyering@redhat.com>
41638
41639         strftime: avoid compilation failure on Solaris 2.6
41640         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41641         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41642         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41643         be available.  Reported by Tom G. Christensen.  Details in
41644         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41645
41646 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41647             Bruno Haible  <bruno@clisp.org>
41648
41649         Speed up gnulib-tool by doing more string processing through shell
41650         built-ins.
41651         * gnulib-tool (fast_func_append): New variable.
41652         (func_remove_prefix, func_remove_suffix): New functions.
41653         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41654         (func_filter_filelist): New function.
41655         (func_get_dependencies): Use func_remove_suffix instead of sed.
41656         (func_get_automake_snippet): Use func_filter_filelist instead of a
41657         subshell and sed invocation.
41658
41659 2009-01-01  Bruno Haible  <bruno@clisp.org>
41660
41661         Fix a security bug.
41662         * gnulib-tool (func_import, import, update): Don't allow the characters
41663         '"', '$', '`', '\' in macro arguments that become part of commands that
41664         are evaluated.
41665
41666 2009-01-01  Bruno Haible  <bruno@clisp.org>
41667
41668         * gnulib-tool (func_reset_sigpipe): Add more comments.
41669
41670 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41671
41672         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41673         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41674         already know the answer.
41675
41676 2009-01-01  Jim Meyering  <meyering@redhat.com>
41677
41678         * lib/version-etc.c (version_etc_va): Update copyright year.
41679
41680 2008-12-30  Bruno Haible  <bruno@clisp.org>
41681
41682         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41683         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41684         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41685
41686 2008-12-29  Eric Blake  <ebb9@byu.net>
41687
41688         multiarch: avoid autoconf AC_REQUIRE bug
41689         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41690         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41691         2.63 and older.
41692         Reported by Bruno Haible, and analyzed in
41693         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41694
41695 2008-12-29  Bruno Haible  <bruno@clisp.org>
41696
41697         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41698         files in subdirectories correctly.
41699         Reported by Ralf Wildenhues.
41700
41701 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41702
41703         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41704         rather than 'join FILE -', for Solaris join.
41705
41706 2008-12-29  Bruno Haible  <bruno@clisp.org>
41707
41708         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41709         quoting.
41710         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41711         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41712         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41713         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41714         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41715         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41716         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41717         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41718         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41719         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41720         * m4/nls.m4 (AM_NLS): Likewise.
41721         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41722         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41724         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41725         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41726         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41727         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41728         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41729         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41730         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41731         * m4/xsize.m4 (gl_XSIZE): Likewise.
41732         Suggested by Jim Meyering.
41733
41734 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41735
41736         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41737         * lib/parse-duration.c: use a switch instead of cascading if's.
41738
41739 2008-12-29  Eric Blake  <ebb9@byu.net>
41740
41741         wchar.h: supply WEOF on Irix 5.3
41742         * lib/wchar.in.h (wint_t): Also supply WEOF.
41743         * lib/wctype.in.h (wint_t): Likewise.
41744         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41745         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41746         Reported by Tom G. Christensen.
41747
41748 2008-12-26  Bruno Haible  <bruno@clisp.org>
41749
41750         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41751         i486, i586, i686.
41752
41753 2008-12-26  Bruno Haible  <bruno@clisp.org>
41754
41755         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41756
41757 2008-12-26  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41760         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41761         not __STDC_CONSTANT_MACROS.
41762         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41763
41764 2008-12-25  Bruno Haible  <bruno@clisp.org>
41765
41766         Add support for universal builds to vasnprintf.
41767         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41768         universal builds, guess no.
41769         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41770         * modules/vasprintf-posix (Depends-on): Likewise.
41771         * modules/fprintf-posix (Depends-on): Likewise.
41772         * modules/vfprintf-posix (Depends-on): Likewise.
41773         * modules/snprintf-posix (Depends-on): Likewise.
41774         * modules/vsnprintf-posix (Depends-on): Likewise.
41775         * modules/sprintf-posix (Depends-on): Likewise.
41776         * modules/vsprintf-posix (Depends-on): Likewise.
41777         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41778         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41779         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41780         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41781         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41782         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41783         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41784
41785         Add support for universal builds to <inttypes.h>.
41786         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41787         _SCNu64_PREFIX): In Apple
41788         universal builds, define directly, using _LP64.
41789         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41790         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41791         * modules/inttypes (Depends-on): Add multiarch.
41792         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41793
41794         Add support for universal builds to <stdint.h>.
41795         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41796         universal builds, define directly, using _LP64.
41797         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41798         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41799         and size_t.
41800         * modules/stdint (Depends-on): Add multiarch.
41801         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41802
41803         New module 'multiarch'.
41804         * modules/multiarch: New file.
41805         * m4/multiarch.m4: New file.
41806
41807 2008-12-25  Bruno Haible  <bruno@clisp.org>
41808
41809         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41810
41811 2008-12-25  Bruno Haible  <bruno@clisp.org>
41812
41813         * modules/btowc (License): Relicense under LGPLv2+.
41814         * modules/mbsinit (License): Likewise.
41815         * modules/mbrtowc (License): Likewise.
41816         * modules/wcrtomb (License): Likewise.
41817         * modules/streq (License): Likewise.
41818         Reported by David Lutterkort <lutter@redhat.com>.
41819
41820 2008-12-23  Bruno Haible  <bruno@clisp.org>
41821
41822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41823
41824 2008-12-23  Bruno Haible  <bruno@clisp.org>
41825
41826         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41827         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41828         GETADDRINFO_LIB, not in LIBS.
41829         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41830         * modules/canon-host (Link): Likewise.
41831         * NEWS: Mention the change.
41832         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41833         GETADDRINFO_LIB.
41834
41835 2008-12-22  Bruno Haible  <bruno@clisp.org>
41836
41837         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41838         * doc/posix-functions/iswalpha_l.texi: Likewise.
41839         * doc/posix-functions/iswblank_l.texi: Likewise.
41840         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41841         * doc/posix-functions/iswctype_l.texi: Likewise.
41842         * doc/posix-functions/iswdigit_l.texi: Likewise.
41843         * doc/posix-functions/iswgraph_l.texi: Likewise.
41844         * doc/posix-functions/iswlower_l.texi: Likewise.
41845         * doc/posix-functions/iswprint_l.texi: Likewise.
41846         * doc/posix-functions/iswpunct_l.texi: Likewise.
41847         * doc/posix-functions/iswspace_l.texi: Likewise.
41848         * doc/posix-functions/iswupper_l.texi: Likewise.
41849         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41850         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41851         * doc/posix-functions/open_wmemstream.texi: Likewise.
41852         * doc/posix-functions/swscanf.texi: Likewise.
41853         * doc/posix-functions/towctrans_l.texi: Likewise.
41854         * doc/posix-functions/towlower.texi: Likewise.
41855         * doc/posix-functions/towlower_l.texi: Likewise.
41856         * doc/posix-functions/towupper.texi: Likewise.
41857         * doc/posix-functions/towupper_l.texi: Likewise.
41858         * doc/posix-functions/vfwprintf.texi: Likewise.
41859         * doc/posix-functions/vfwscanf.texi: Likewise.
41860         * doc/posix-functions/vswscanf.texi: Likewise.
41861         * doc/posix-functions/vwprintf.texi: Likewise.
41862         * doc/posix-functions/vwscanf.texi: Likewise.
41863         * doc/posix-functions/wcpcpy.texi: Likewise.
41864         * doc/posix-functions/wcpncpy.texi: Likewise.
41865         * doc/posix-functions/wcscasecmp.texi: Likewise.
41866         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41867         * doc/posix-functions/wcscoll_l.texi: Likewise.
41868         * doc/posix-functions/wcsdup.texi: Likewise.
41869         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41870         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41871         * doc/posix-functions/wcsnlen.texi: Likewise.
41872         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41873         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41874         * doc/posix-functions/wctrans_l.texi: Likewise.
41875         * doc/posix-functions/wctype_l.texi: Likewise.
41876         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41877         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41878         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41879         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41880         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41881         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41882         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41883         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41884         * doc/glibc-functions/wcschrnul.texi: Likewise.
41885         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41886         * doc/glibc-functions/wcstod_l.texi: Likewise.
41887         * doc/glibc-functions/wcstof_l.texi: Likewise.
41888         * doc/glibc-functions/wcstol_l.texi: Likewise.
41889         * doc/glibc-functions/wcstold_l.texi: Likewise.
41890         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41891         * doc/glibc-functions/wcstoq.texi: Likewise.
41892         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41893         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41894         * doc/glibc-functions/wcstouq.texi: Likewise.
41895         * doc/glibc-functions/wmempcpy.texi: Likewise.
41896
41897 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41898             Eric Blake  <ebb9@byu.net>
41899             Paolo Bonzini  <bonzini@gnu.org>
41900             Bruno Haible  <bruno@clisp.org>
41901
41902         Make c-stack work on Haiku.
41903         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41904         (c_stack_action): Use SA_ONSTACK flag.
41905
41906 2008-12-22  Bruno Haible  <bruno@clisp.org>
41907
41908         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41909
41910 2008-12-22  Bruno Haible  <bruno@clisp.org>
41911
41912         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41913         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41914         being overridden.
41915         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41916         New macros.
41917         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41919         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41920         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41921
41922 2008-12-22  Bruno Haible  <bruno@clisp.org>
41923
41924         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41925         from test code.
41926
41927 2008-12-22  Eric Blake  <ebb9@byu.net>
41928
41929         Avoid gcc warnings on cygwin.
41930         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41931         Avoid unused variable.
41932         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41933         Likewise.
41934
41935 2008-12-22  Bruno Haible  <bruno@clisp.org>
41936
41937         Remove HAVE_MBRTOWC conditionals.
41938         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41939         (mbscasecmp): Assume mbrtowc function.
41940         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41941         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41942         * lib/mbschr.c: Include mbuiter.h unconditionally.
41943         (mbschr): Assume mbrtowc function.
41944         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41945         (mbscspn): Assume mbrtowc function.
41946         * lib/mbslen.c: Include mbuiter.h unconditionally.
41947         (mbslen): Assume mbrtowc function.
41948         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41949         (mbsncasecmp): Assume mbrtowc function.
41950         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41951         (mbsnlen): Assume mbrtowc function.
41952         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41953         (mbspbrk): Assume mbrtowc function.
41954         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41955         (mbspcasecmp): Assume mbrtowc function.
41956         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41957         (mbsrchr): Assume mbrtowc function.
41958         * lib/mbssep.c: Include mbuiter.h unconditionally.
41959         (mbssep): Assume mbrtowc function.
41960         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41961         (mbsspn): Assume mbrtowc function.
41962         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41963         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41964         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41965         (mbstok_r): Assume mbrtowc function.
41966         * lib/propername.c: Include mbuiter.h unconditionally.
41967         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41968         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41969         (trim2): Assume mbrtowc function.
41970         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41971         (mbsnwidth): Assume mbrtowc function.
41972         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41973         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41974         fallback definitions.
41975         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41976
41977 2008-12-22  Bruno Haible  <bruno@clisp.org>
41978
41979         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41980
41981 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41982
41983         * modules/regex: Request emulations for the mb*/wc* functions we need.
41984         * m4/regex.m4: Don't look for those functions here.
41985         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41986
41987 2008-12-22  Bruno Haible  <bruno@clisp.org>
41988
41989         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41990
41991 2008-12-21  Bruno Haible  <bruno@clisp.org>
41992
41993         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41994         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41995         (Include): Remove conditionalization.
41996         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41997         (Include): Remove conditionalization.
41998         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41999         (Include): Remove conditionalization.
42000         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42001         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42002         * NEWS: Mention the change.
42003         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42004         via Sergey Poznyakoff <gray@gnu.org.ua>.
42005
42006 2008-12-21  Bruno Haible  <bruno@clisp.org>
42007
42008         * MODULES.html.sh (Extended multibyte and wide character utilities
42009         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42010         wcrtomb, wcsrtombs.
42011         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42012         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42013         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42014         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42015
42016 2008-12-21  Bruno Haible  <bruno@clisp.org>
42017
42018         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42019
42020 2008-12-21  Bruno Haible  <bruno@clisp.org>
42021
42022         * modules/wcsnrtombs-tests: New file.
42023         * tests/test-wcsnrtombs1.sh: New file.
42024         * tests/test-wcsnrtombs2.sh: New file.
42025         * tests/test-wcsnrtombs3.sh: New file.
42026         * tests/test-wcsnrtombs4.sh: New file.
42027         * tests/test-wcsnrtombs.c: New file.
42028
42029         New module 'wcsnrtombs'.
42030         * lib/wchar.in.h (wcsnrtombs): New declaration.
42031         * lib/wcsnrtombs.c: New file.
42032         * lib/wcsrtombs-state.c: New file.
42033         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42034         (internal_state): Remove variable.
42035         * m4/wcsnrtombs.m4: New file.
42036         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42037         compilation units.
42038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42039         HAVE_WCSNRTOMBS.
42040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42041         HAVE_WCSNRTOMBS.
42042         * modules/wcsnrtombs: New file.
42043         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42044         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42045
42046 2008-12-21  Bruno Haible  <bruno@clisp.org>
42047
42048         * modules/wcsrtombs-tests: New file.
42049         * tests/test-wcsrtombs1.sh: New file.
42050         * tests/test-wcsrtombs2.sh: New file.
42051         * tests/test-wcsrtombs3.sh: New file.
42052         * tests/test-wcsrtombs4.sh: New file.
42053         * tests/test-wcsrtombs.c: New file.
42054
42055         New module 'wcsrtombs'.
42056         * lib/wchar.in.h (wcsrtombs): New declaration.
42057         * lib/wcsrtombs.c: New file.
42058         * m4/wcsrtombs.m4: New file.
42059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42060         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42062         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42063         * modules/wcsrtombs: New file.
42064         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42065         bugs.
42066
42067 2008-12-21  Bruno Haible  <bruno@clisp.org>
42068
42069         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42070         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42071         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42072         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42073         if not correct.
42074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42075         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42076         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42077         m4/locale-zh.m4, m4/codeset.m4.
42078         * doc/posix-functions/wcrtomb.texi: Document the bug.
42079
42080 2008-12-21  Bruno Haible  <bruno@clisp.org>
42081
42082         Work around a btowc() bug on IRIX 6.5.
42083         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42084         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42085         REPLACE_WTOBC if not.
42086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42087         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42088         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42089
42090 2008-12-21  Bruno Haible  <bruno@clisp.org>
42091
42092         * modules/wcrtomb-tests: New file.
42093         * tests/test-wcrtomb.sh: New file.
42094         * tests/test-wcrtomb.c: New file.
42095
42096         New module 'wcrtomb'.
42097         * lib/wchar.in.h (wcrtomb): New declaration.
42098         * lib/wcrtomb.c: New file.
42099         * m4/wcrtomb.m4: New file.
42100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42101         HAVE_WCRTOMB.
42102         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42103         HAVE_WCRTOMB.
42104         * modules/wcrtomb: New file.
42105         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42106
42107 2008-12-21  Bruno Haible  <bruno@clisp.org>
42108
42109         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42110         * modules/mbsrtowcs (Files): Likewise.
42111         * modules/wctob (Files): Likewise.
42112         * modules/c-strcase-tests (Files): Likewise.
42113         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42114         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42115         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42116         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42117         * modules/vasnprintf-posix-tests (Files): Likewise.
42118
42119 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42120
42121         gitlog-to-changelog: pass all command-line arguments to git-log
42122         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42123         it is sometimes convenient to filter the commits in various ways.
42124         gitlog-to-changelog only allows --since to specify a start date,
42125         but git-log itself supports many other filtering mechanisms.
42126         At the moment, I want to filter by branch name.  Rather than
42127         adding a --branch option to gitlog-to-changelog, it seems more
42128         flexible to simply pass all options directly to git-log and let
42129         git do the work.  Notice that this effectively makes --since a
42130         redundant option for gitlog-to-changelog, but removing it would
42131         require current usage to change since calls would then require
42132         an additional '--'.
42133
42134 2008-12-21  Bruno Haible  <bruno@clisp.org>
42135
42136         * modules/mbsnrtowcs-tests: New file.
42137         * tests/test-mbsnrtowcs1.sh: New file.
42138         * tests/test-mbsnrtowcs2.sh: New file.
42139         * tests/test-mbsnrtowcs3.sh: New file.
42140         * tests/test-mbsnrtowcs4.sh: New file.
42141         * tests/test-mbsnrtowcs.c: New file.
42142
42143         New module 'mbsnrtowcs'.
42144         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42145         * lib/mbsnrtowcs.c: New file.
42146         * lib/mbsrtowcs-state.c: New file.
42147         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42148         (internal_state): Remove variable.
42149         * m4/mbsnrtowcs.m4: New file.
42150         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42151         compilation units.
42152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42153         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42154         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42155         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42156         * modules/mbsnrtowcs: New file.
42157         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42158         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42159         portability problem.
42160
42161 2008-12-21  Bruno Haible  <bruno@clisp.org>
42162
42163         Work around mbsrtowcs bug.
42164         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42165         (gl_FUNC_MBSRTOWCS): Invoke it.
42166         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42167         m4/locale-zh.m4.
42168         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42169
42170 2008-12-21  Bruno Haible  <bruno@clisp.org>
42171
42172         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42173
42174 2008-12-21  Bruno Haible  <bruno@clisp.org>
42175
42176         Update doc for AIX.
42177         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42178         16-bit wchar_t type.
42179         * doc/posix-functions/btowc.texi: Likewise.
42180         * doc/posix-functions/fgetwc.texi: Likewise.
42181         * doc/posix-functions/fgetws.texi: Likewise.
42182         * doc/posix-functions/fputwc.texi: Likewise.
42183         * doc/posix-functions/fputws.texi: Likewise.
42184         * doc/posix-functions/fwide.texi: Likewise.
42185         * doc/posix-functions/fwprintf.texi: Likewise.
42186         * doc/posix-functions/fwscanf.texi: Likewise.
42187         * doc/posix-functions/getwchar.texi: Likewise.
42188         * doc/posix-functions/getwc.texi: Likewise.
42189         * doc/posix-functions/iswalnum.texi: Likewise.
42190         * doc/posix-functions/iswalpha.texi: Likewise.
42191         * doc/posix-functions/iswblank.texi: Likewise.
42192         * doc/posix-functions/iswcntrl.texi: Likewise.
42193         * doc/posix-functions/iswctype.texi: Likewise.
42194         * doc/posix-functions/iswdigit.texi: Likewise.
42195         * doc/posix-functions/iswgraph.texi: Likewise.
42196         * doc/posix-functions/iswlower.texi: Likewise.
42197         * doc/posix-functions/iswprint.texi: Likewise.
42198         * doc/posix-functions/iswpunct.texi: Likewise.
42199         * doc/posix-functions/iswspace.texi: Likewise.
42200         * doc/posix-functions/iswupper.texi: Likewise.
42201         * doc/posix-functions/iswxdigit.texi: Likewise.
42202         * doc/posix-functions/mbrtowc.texi: Likewise.
42203         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42204         * doc/posix-functions/mbstowcs.texi: Likewise.
42205         * doc/posix-functions/mbtowc.texi: Likewise.
42206         * doc/posix-functions/putwchar.texi: Likewise.
42207         * doc/posix-functions/putwc.texi: Likewise.
42208         * doc/posix-functions/swprintf.texi: Likewise.
42209         * doc/posix-functions/tolower.texi: Likewise.
42210         * doc/posix-functions/toupper.texi: Likewise.
42211         * doc/posix-functions/towctrans.texi: Likewise.
42212         * doc/posix-functions/ungetwc.texi: Likewise.
42213         * doc/posix-functions/vswprintf.texi: Likewise.
42214         * doc/posix-functions/wcrtomb.texi: Likewise.
42215         * doc/posix-functions/wcscat.texi: Likewise.
42216         * doc/posix-functions/wcschr.texi: Likewise.
42217         * doc/posix-functions/wcscmp.texi: Likewise.
42218         * doc/posix-functions/wcscoll.texi: Likewise.
42219         * doc/posix-functions/wcscpy.texi: Likewise.
42220         * doc/posix-functions/wcscspn.texi: Likewise.
42221         * doc/posix-functions/wcsftime.texi: Likewise.
42222         * doc/posix-functions/wcslen.texi: Likewise.
42223         * doc/posix-functions/wcsncat.texi: Likewise.
42224         * doc/posix-functions/wcsncmp.texi: Likewise.
42225         * doc/posix-functions/wcsncpy.texi: Likewise.
42226         * doc/posix-functions/wcspbrk.texi: Likewise.
42227         * doc/posix-functions/wcsrchr.texi: Likewise.
42228         * doc/posix-functions/wcsrtombs.texi: Likewise.
42229         * doc/posix-functions/wcsspn.texi: Likewise.
42230         * doc/posix-functions/wcsstr.texi: Likewise.
42231         * doc/posix-functions/wcstod.texi: Likewise.
42232         * doc/posix-functions/wcstof.texi: Likewise.
42233         * doc/posix-functions/wcstoimax.texi: Likewise.
42234         * doc/posix-functions/wcstok.texi: Likewise.
42235         * doc/posix-functions/wcstold.texi: Likewise.
42236         * doc/posix-functions/wcstoll.texi: Likewise.
42237         * doc/posix-functions/wcstol.texi: Likewise.
42238         * doc/posix-functions/wcstombs.texi: Likewise.
42239         * doc/posix-functions/wcstoull.texi: Likewise.
42240         * doc/posix-functions/wcstoul.texi: Likewise.
42241         * doc/posix-functions/wcstoumax.texi: Likewise.
42242         * doc/posix-functions/wcswidth.texi: Likewise.
42243         * doc/posix-functions/wcsxfrm.texi: Likewise.
42244         * doc/posix-functions/wctob.texi: Likewise.
42245         * doc/posix-functions/wctomb.texi: Likewise.
42246         * doc/posix-functions/wctrans.texi: Likewise.
42247         * doc/posix-functions/wctype.texi: Likewise.
42248         * doc/posix-functions/wcwidth.texi: Likewise.
42249         * doc/posix-functions/wmemchr.texi: Likewise.
42250         * doc/posix-functions/wmemcmp.texi: Likewise.
42251         * doc/posix-functions/wmemcpy.texi: Likewise.
42252         * doc/posix-functions/wmemmove.texi: Likewise.
42253         * doc/posix-functions/wmemset.texi: Likewise.
42254         * doc/posix-functions/wprintf.texi: Likewise.
42255         * doc/posix-functions/wscanf.texi: Likewise.
42256
42257 2008-12-21  Bruno Haible  <bruno@clisp.org>
42258
42259         Update doc for HP-UX 11.11.
42260         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42261         in HP-UX version 11.00, not in all versions of HP-UX 11.
42262         * doc/posix-functions/fwide.texi: Likewise.
42263         * doc/posix-functions/fwprintf.texi: Likewise.
42264         * doc/posix-functions/fwscanf.texi: Likewise.
42265         * doc/posix-functions/inet_ntop.texi: Likewise.
42266         * doc/posix-functions/inet_pton.texi: Likewise.
42267         * doc/posix-functions/mbrlen.texi: Likewise.
42268         * doc/posix-functions/mbrtowc.texi: Likewise.
42269         * doc/posix-functions/mbsinit.texi: Likewise.
42270         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42271         * doc/posix-functions/swprintf.texi: Likewise.
42272         * doc/posix-functions/swscanf.texi: Likewise.
42273         * doc/posix-functions/towctrans.texi: Likewise.
42274         * doc/posix-functions/vfwprintf.texi: Likewise.
42275         * doc/posix-functions/vswprintf.texi: Likewise.
42276         * doc/posix-functions/vwprintf.texi: Likewise.
42277         * doc/posix-functions/wcrtomb.texi: Likewise.
42278         * doc/posix-functions/wcsrtombs.texi: Likewise.
42279         * doc/posix-functions/wcsstr.texi: Likewise.
42280         * doc/posix-functions/wctob.texi: Likewise.
42281         * doc/posix-functions/wctrans.texi: Likewise.
42282         * doc/posix-functions/wmemchr.texi: Likewise.
42283         * doc/posix-functions/wmemcmp.texi: Likewise.
42284         * doc/posix-functions/wmemcpy.texi: Likewise.
42285         * doc/posix-functions/wmemmove.texi: Likewise.
42286         * doc/posix-functions/wmemset.texi: Likewise.
42287         * doc/posix-functions/wprintf.texi: Likewise.
42288         * doc/posix-functions/wscanf.texi: Likewise.
42289
42290 2008-12-21  Bruno Haible  <bruno@clisp.org>
42291
42292         Work around a portability problem.
42293         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42294         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42295
42296 2008-12-20  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42299         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42300         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42302         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42303
42304         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42305         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42306         set.
42307         (GNULIB_defined_mbstate_t): New macro.
42308         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42309         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42310         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42311         reuses the system's mbrtowc function but works around the bugs.
42312         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42313         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42314         macros.
42315         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42316         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42317         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42318         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42319         REPLACE_MBSINIT if mbsinit needs to be overridden.
42320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42321         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42322         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42323         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42324         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42325         m4/locale-zh.m4.
42326         (Depends): Add mbsinit.
42327         * modules/mbsinit (Depends): Add mbrtowc.
42328         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42329
42330 2008-12-20  Bruno Haible  <bruno@clisp.org>
42331
42332         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42333         so that there are no conversion errors on AIX.
42334         * tests/test-mbsrtowcs.c (main): LIkewise.
42335
42336 2008-12-20  Bruno Haible  <bruno@clisp.org>
42337
42338         Work around wctob bug on Solaris <= 9.
42339         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42340         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42342         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42343         * modules/wctob (Files): Add m4/locale-fr.m4.
42344         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42345
42346 2008-12-20  Bruno Haible  <bruno@clisp.org>
42347
42348         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42349         /dev/null.
42350         * tests/test-select-in.sh: Likewise.
42351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42352
42353 2008-12-20  Bruno Haible  <bruno@clisp.org>
42354
42355         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42356         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42357         Cygwin 1.5.x.
42358
42359 2008-12-20  Bruno Haible  <bruno@clisp.org>
42360
42361         Ensure mbstate_t is defined on HP-UX 11.11.
42362         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42363         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42364         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42365         AC_USE_SYSTEM_EXTENSIONS.
42366         * modules/fnmatch (Depends-on): Add extensions.
42367         * modules/mbrlen (Depends-on): Likewise.
42368         * modules/mbrtowc (Depends-on): Likewise.
42369         * modules/mbsinit (Depends-on): Likewise.
42370         * modules/mbsrtowcs (Depends-on): Likewise.
42371         * modules/mbswidth (Depends-on): Likewise.
42372         * modules/quotearg (Depends-on): Likewise.
42373         * modules/strftime (Depends-on): Likewise.
42374
42375 2008-12-20  Bruno Haible  <bruno@clisp.org>
42376
42377         Ensure wctob is declared on IRIX 6.5.
42378         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42379         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42380         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42382         of HAVE_WCTOB.
42383         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42384         HAVE_WCTOB.
42385         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42386
42387 2008-12-19  Bruno Haible  <bruno@clisp.org>
42388
42389         * modules/mbsrtowcs-tests: New file.
42390         * tests/test-mbsrtowcs1.sh: New file.
42391         * tests/test-mbsrtowcs2.sh: New file.
42392         * tests/test-mbsrtowcs3.sh: New file.
42393         * tests/test-mbsrtowcs4.sh: New file.
42394         * tests/test-mbsrtowcs.c: New file.
42395
42396         New module 'mbsrtowcs'.
42397         * lib/wchar.in.h (mbsrtowcs): New declaration.
42398         * lib/mbsrtowcs.c: New file.
42399         * m4/mbsrtowcs.m4: New file.
42400         * modules/mbsrtowcs: New file.
42401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42402         HAVE_MBSRTOWCS.
42403         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42404         HAVE_MBSRTOWCS.
42405         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42406
42407 2008-12-19  Bruno Haible  <bruno@clisp.org>
42408
42409         New module 'mbrlen'.
42410         * lib/wchar.in.h (mbrlen): New declaration.
42411         * lib/mbrlen.c: New file.
42412         * m4/mbrlen.m4: New file.
42413         * modules/mbrlen: New file.
42414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42415         HAVE_MBRLEN.
42416         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42417         HAVE_MBRLEN.
42418         * doc/posix-functions/mbrlen.texi: Document the new module.
42419
42420 2008-12-19  Bruno Haible  <bruno@clisp.org>
42421
42422         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42423         * modules/mbrtowc (Depends-on): Add verify.
42424         Suggested by Paul Eggert.
42425
42426 2008-12-18  Bruno Haible  <bruno@clisp.org>
42427
42428         * modules/mbsinit-tests: New file.
42429         * tests/test-mbsinit.sh: New file.
42430         * tests/test-mbsinit.c: New file.
42431
42432 2008-12-18  Bruno Haible  <bruno@clisp.org>
42433
42434         * modules/mbrtowc-tests: New file.
42435         * tests/test-mbrtowc1.sh: New file.
42436         * tests/test-mbrtowc2.sh: New file.
42437         * tests/test-mbrtowc3.sh: New file.
42438         * tests/test-mbrtowc4.sh: New file.
42439         * tests/test-mbrtowc.c: New file.
42440
42441         New module 'mbrtowc'.
42442         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42443         mbsinit and mbrtowc.
42444         (mbrtowc): New declaration.
42445         * lib/mbrtowc.c: New file.
42446         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42447         * modules/mbrtowc: New file.
42448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42449         HAVE_MBRTOWC.
42450         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42451         HAVE_MBRTOWC.
42452         * doc/posix-functions/mbrtowc.texi: Document the new module.
42453
42454 2008-12-18  Bruno Haible  <bruno@clisp.org>
42455
42456         New module 'wctob'.
42457         * lib/wchar.in.h (wctob): New declaration.
42458         * lib/wctob.c: New file.
42459         * m4/wctob.m4: New file.
42460         * modules/wctob: New file.
42461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42462         HAVE_WCTOB.
42463         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42464         * doc/posix-functions/wctob.texi: Document the new module.
42465
42466 2008-12-18  Bruno Haible  <bruno@clisp.org>
42467
42468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42469         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42470
42471 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42472
42473         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42474         G. Christensen" <tgc@jupiterrise.com>.
42475
42476         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42477         G. Christensen" <tgc@jupiterrise.com>.
42478
42479         * lib/flock.c: Need to include string.h.  Reported by "Tom
42480         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42481         <ebb9@byu.net>.
42482
42483 2008-12-18  Bruno Haible  <bruno@clisp.org>
42484
42485         * m4/locale-ja.m4: New file, from GNU gettext.
42486
42487 2008-12-17  Bruno Haible  <bruno@clisp.org>
42488
42489         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42490         Suggested by Eric Blake.
42491
42492 2008-12-17  Bruno Haible  <bruno@clisp.org>
42493
42494         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42495
42496 2008-12-17  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42499         * modules/mbsinit (Depends-on): Add verify.
42500         Suggested by Paul Eggert.
42501
42502 2008-12-17  Bruno Haible  <bruno@clisp.org>
42503
42504         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42505         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42506         gl_FUNC_MBRTOWC.
42507         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42508         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42509         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42510         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42511         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42512         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42513         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42514         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42515         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42516         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42517         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42518         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42519         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42520         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42521         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42522         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42523         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42524         * modules/trim (configure.ac): Likewise.
42525
42526 2008-12-17  Bruno Haible  <bruno@clisp.org>
42527
42528         * modules/btowc-tests: New file.
42529         * tests/test-btowc1.sh: New file.
42530         * tests/test-btowc2.sh: New file.
42531         * tests/test-btowc.c: New file.
42532
42533         New module 'btowc'.
42534         * lib/wchar.in.h (btowc): New declaration.
42535         * lib/btowc.c: New file.
42536         * m4/btowc.m4: New file.
42537         * modules/btowc: New file.
42538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42539         HAVE_BTOWC.
42540         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42541         * doc/posix-functions/btowc.texi: Document the new module.
42542
42543 2008-12-17  Bruno Haible  <bruno@clisp.org>
42544
42545         New module 'mbsinit'.
42546         * lib/wchar.in.h (mbsinit): New declaration.
42547         * lib/mbsinit.c: New file.
42548         * m4/mbsinit.m4: New file.
42549         * modules/mbsinit: New file.
42550         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42551         HAVE_MBSINIT.
42552         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42553         HAVE_MBSINIT.
42554         * doc/posix-functions/mbsinit.texi: Document the new module.
42555
42556 2008-12-16  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/unistd.in.h: Add comment.
42559         * tests/test-environ.c: Don't include <stdlib.h>.
42560
42561 2008-12-16  Bruno Haible  <bruno@clisp.org>
42562
42563         * lib/parse-duration.h (parse_duration): Document return value
42564         convention.
42565         * lib/parse-duration.c: Include specification header first. Add
42566         comments.
42567         (_): Remove macro.
42568         (parse_year_month_day, parse_hour_minute_second): Move side effects
42569         outside of strchr call.
42570         (parse_non_iso8601): Move side effects outside of isspace call.
42571         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42572         call.
42573
42574 2008-12-16  Bruno Haible  <bruno@clisp.org>
42575
42576         * tests/test-parse-duration.sh: Produce no output when the test
42577         succeeds.
42578
42579 2008-12-16  Bruno Haible  <bruno@clisp.org>
42580
42581         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42582         expressions.
42583
42584 2008-12-15  Bruno Haible  <bruno@clisp.org>
42585
42586         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42587         * doc/glibc-functions/flistxattr.texi: Likewise.
42588         * doc/glibc-functions/fopencookie.texi: Likewise.
42589         * doc/glibc-functions/fremovexattr.texi: Likewise.
42590         * doc/glibc-functions/fsetxattr.texi: Likewise.
42591         * doc/glibc-functions/getxattr.texi: Likewise.
42592         * doc/glibc-functions/lgetxattr.texi: Likewise.
42593         * doc/glibc-functions/listxattr.texi: Likewise.
42594         * doc/glibc-functions/llistxattr.texi: Likewise.
42595         * doc/glibc-functions/lremovexattr.texi: Likewise.
42596         * doc/glibc-functions/lsetxattr.texi: Likewise.
42597         * doc/glibc-functions/removexattr.texi: Likewise.
42598         * doc/glibc-functions/setxattr.texi: Likewise.
42599         * doc/posix-functions/open_memstream.texi: Likewise.
42600
42601 2008-12-15  Eric Blake  <ebb9@byu.net>
42602
42603         Update doc for cygwin 1.7.
42604         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42605         functions.
42606         * doc/posix-functions/fchmodat.texi: Likewise.
42607         * doc/posix-functions/fchownat.texi: Likewise.
42608         * doc/posix-functions/fdopendir.texi: Likewise.
42609         * doc/posix-functions/fmemopen.texi: Likewise.
42610         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42611         * doc/posix-functions/fstatat.texi: Likewise.
42612         * doc/posix-functions/futimens.texi: Likewise.
42613         * doc/posix-functions/gai_strerror.texi: Likewise.
42614         * doc/posix-functions/getaddrinfo.texi: Likewise.
42615         * doc/posix-functions/getnameinfo.texi: Likewise.
42616         * doc/posix-functions/if_freenameindex.texi: Likewise.
42617         * doc/posix-functions/if_indextoname.texi: Likewise.
42618         * doc/posix-functions/if_nameindex.texi: Likewise.
42619         * doc/posix-functions/if_nametoindex.texi: Likewise.
42620         * doc/posix-functions/insque.texi: Likewise.
42621         * doc/posix-functions/linkat.texi: Likewise.
42622         * doc/posix-functions/llrint.texi: Likewise.
42623         * doc/posix-functions/llrintf.texi: Likewise.
42624         * doc/posix-functions/llrintl.texi: Likewise.
42625         * doc/posix-functions/lockf.texi: Likewise.
42626         * doc/posix-functions/lrintl.texi: Likewise.
42627         * doc/posix-functions/mkdirat.texi: Likewise.
42628         * doc/posix-functions/mkfifoat.texi: Likewise.
42629         * doc/posix-functions/mknodat.texi: Likewise.
42630         * doc/posix-functions/mq_close.texi: Likewise.
42631         * doc/posix-functions/mq_getattr.texi: Likewise.
42632         * doc/posix-functions/mq_notify.texi: Likewise.
42633         * doc/posix-functions/mq_open.texi: Likewise.
42634         * doc/posix-functions/mq_receive.texi: Likewise.
42635         * doc/posix-functions/mq_send.texi: Likewise.
42636         * doc/posix-functions/mq_setattr.texi: Likewise.
42637         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42638         * doc/posix-functions/mq_timedsend.texi: Likewise.
42639         * doc/posix-functions/mq_unlink.texi: Likewise.
42640         * doc/posix-functions/open_memstream.texi: Likewise.
42641         * doc/posix-functions/openat.texi: Likewise.
42642         * doc/posix-functions/posix_fadvise.texi: Likewise.
42643         * doc/posix-functions/posix_fallocate.texi: Likewise.
42644         * doc/posix-functions/posix_madvise.texi: Likewise.
42645         * doc/posix-functions/posix_memalign.texi: Likewise.
42646         * doc/posix-functions/posix_openpt.texi: Likewise.
42647         * doc/posix-functions/readlinkat.texi: Likewise.
42648         * doc/posix-functions/remque.texi: Likewise.
42649         * doc/posix-functions/renameat.texi: Likewise.
42650         * doc/posix-functions/rintl.texi: Likewise.
42651         * doc/posix-functions/sem_unlink.texi: Likewise.
42652         * doc/posix-functions/shm_open.texi: Likewise.
42653         * doc/posix-functions/shm_unlink.texi: Likewise.
42654         * doc/posix-functions/signgam.texi: Likewise.
42655         * doc/posix-functions/sigset.texi: Likewise.
42656         * doc/posix-functions/stpcpy.texi: Likewise.
42657         * doc/posix-functions/stpncpy.texi: Likewise.
42658         * doc/posix-functions/strerror.texi: Likewise.
42659         * doc/posix-functions/strtod.texi: Likewise.
42660         * doc/posix-functions/symlinkat.texi: Likewise.
42661         * doc/posix-functions/unlinkat.texi: Likewise.
42662         * doc/posix-functions/utimensat.texi: Likewise.
42663         * doc/glibc-functions/bindresvport.texi: Likewise.
42664         * doc/glibc-functions/dn_expand.texi: Likewise.
42665         * doc/glibc-functions/exp10.texi: Likewise.
42666         * doc/glibc-functions/exp10f.texi: Likewise.
42667         * doc/glibc-functions/fgetxattr.texi: Likewise.
42668         * doc/glibc-functions/flistxattr.texi: Likewise.
42669         * doc/glibc-functions/fopencookie.texi: Likewise.
42670         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42671         * doc/glibc-functions/fremovexattr.texi: Likewise.
42672         * doc/glibc-functions/fsetxattr.texi: Likewise.
42673         * doc/glibc-functions/getifaddrs.texi: Likewise.
42674         * doc/glibc-functions/getxattr.texi: Likewise.
42675         * doc/glibc-functions/lgetxattr.texi: Likewise.
42676         * doc/glibc-functions/listxattr.texi: Likewise.
42677         * doc/glibc-functions/llistxattr.texi: Likewise.
42678         * doc/glibc-functions/lremovexattr.texi: Likewise.
42679         * doc/glibc-functions/lsetxattr.texi: Likewise.
42680         * doc/glibc-functions/pow10.texi: Likewise.
42681         * doc/glibc-functions/pow10f.texi: Likewise.
42682         * doc/glibc-functions/rcmd_af.texi: Likewise.
42683         * doc/glibc-functions/removexattr.texi: Likewise.
42684         * doc/glibc-functions/res_init.texi: Likewise.
42685         * doc/glibc-functions/res_mkquery.texi: Likewise.
42686         * doc/glibc-functions/res_query.texi: Likewise.
42687         * doc/glibc-functions/res_querydomain.texi: Likewise.
42688         * doc/glibc-functions/res_send.texi: Likewise.
42689         * doc/glibc-functions/rresvport_af.texi: Likewise.
42690         * doc/glibc-functions/setxattr.texi: Likewise.
42691         * doc/glibc-functions/strcasestr.texi: Likewise.
42692
42693 2008-12-15  Bruno Haible  <bruno@clisp.org>
42694
42695         Fix compilation error on OSF/1 4.0.
42696         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42697         <sys/time.h>, simply delegate to the system header.
42698         Reported by Daniel Richard G. <oss@teragram.com>.
42699
42700 2008-12-15  Bruno Haible  <bruno@clisp.org>
42701
42702         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42703         * doc/posix-functions/fchmodat.texi: Likewise.
42704         * doc/posix-functions/fchownat.texi: Likewise.
42705         * doc/posix-functions/fdopendir.texi: Likewise.
42706         * doc/posix-functions/fstatat.texi: Likewise.
42707         * doc/posix-functions/mkdirat.texi: Likewise.
42708         * doc/posix-functions/unlinkat.texi: Likewise.
42709
42710 2008-12-14  Bruno Haible  <bruno@clisp.org>
42711
42712         Update doc for POSIX:2008.
42713         * doc/posix-functions/faccessat.texi: New file.
42714         * doc/posix-functions/fchmodat.texi: New file.
42715         * doc/posix-functions/fchownat.texi: New file.
42716         * doc/posix-functions/fdopendir.texi: New file.
42717         * doc/posix-functions/fstatat.texi: New file.
42718         * doc/posix-functions/futimens.texi: New file.
42719         * doc/posix-functions/linkat.texi: New file.
42720         * doc/posix-functions/mkdirat.texi: New file.
42721         * doc/posix-functions/mkfifoat.texi: New file.
42722         * doc/posix-functions/mknodat.texi: New file.
42723         * doc/posix-functions/open_wmemstream.texi: New file.
42724         * doc/posix-functions/openat.texi: New file.
42725         * doc/posix-functions/psiginfo.texi: New file.
42726         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42727         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42728         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42729         * doc/posix-functions/readlinkat.texi: New file.
42730         * doc/posix-functions/renameat.texi: New file.
42731         * doc/posix-functions/strerror_l.texi: New file.
42732         * doc/posix-functions/symlinkat.texi: New file.
42733         * doc/posix-functions/unlinkat.texi: New file.
42734         * doc/posix-functions/utimensat.texi: New file.
42735         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42736
42737 2008-12-14  Bruno Haible  <bruno@clisp.org>
42738
42739         Update doc for POSIX:2008.
42740         * doc/posix-functions/alphasort.texi: Renamed from
42741         doc/glibc-functions/alphasort.texi.
42742         * doc/posix-functions/dirfd.texi: Renamed from
42743         doc/glibc-functions/dirfd.texi.
42744         * doc/posix-functions/dprintf.texi: Renamed from
42745         doc/glibc-functions/dprintf.texi.
42746         * doc/posix-functions/duplocale.texi: Renamed from
42747         doc/glibc-functions/duplocale.texi.
42748         * doc/posix-functions/fexecve.texi: Renamed from
42749         doc/glibc-functions/fexecve.texi.
42750         * doc/posix-functions/fmemopen.texi: Renamed from
42751         doc/glibc-functions/fmemopen.texi.
42752         * doc/posix-functions/freelocale.texi: Renamed from
42753         doc/glibc-functions/freelocale.texi.
42754         * doc/posix-functions/getdate_err.texi: Renamed from
42755         doc/glibc-functions/getdate_err.texi.
42756         * doc/posix-functions/isalnum_l.texi: Renamed from
42757         doc/glibc-functions/isalnum_l.texi.
42758         * doc/posix-functions/isalpha_l.texi: Renamed from
42759         doc/glibc-functions/isalpha_l.texi.
42760         * doc/posix-functions/isblank_l.texi: Renamed from
42761         doc/glibc-functions/isblank_l.texi.
42762         * doc/posix-functions/iscntrl_l.texi: Renamed from
42763         doc/glibc-functions/iscntrl_l.texi.
42764         * doc/posix-functions/isdigit_l.texi: Renamed from
42765         doc/glibc-functions/isdigit_l.texi.
42766         * doc/posix-functions/isgraph_l.texi: Renamed from
42767         doc/glibc-functions/isgraph_l.texi.
42768         * doc/posix-functions/islower_l.texi: Renamed from
42769         doc/glibc-functions/islower_l.texi.
42770         * doc/posix-functions/isprint_l.texi: Renamed from
42771         doc/glibc-functions/isprint_l.texi.
42772         * doc/posix-functions/ispunct_l.texi: Renamed from
42773         doc/glibc-functions/ispunct_l.texi.
42774         * doc/posix-functions/isspace_l.texi: Renamed from
42775         doc/glibc-functions/isspace_l.texi.
42776         * doc/posix-functions/isupper_l.texi: Renamed from
42777         doc/glibc-functions/isupper_l.texi.
42778         * doc/posix-functions/iswalnum_l.texi: Renamed from
42779         doc/glibc-functions/iswalnum_l.texi.
42780         * doc/posix-functions/iswalpha_l.texi: Renamed from
42781         doc/glibc-functions/iswalpha_l.texi.
42782         * doc/posix-functions/iswblank_l.texi: Renamed from
42783         doc/glibc-functions/iswblank_l.texi.
42784         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42785         doc/glibc-functions/iswcntrl_l.texi.
42786         * doc/posix-functions/iswctype_l.texi: Renamed from
42787         doc/glibc-functions/iswctype_l.texi.
42788         * doc/posix-functions/iswdigit_l.texi: Renamed from
42789         doc/glibc-functions/iswdigit_l.texi.
42790         * doc/posix-functions/iswgraph_l.texi: Renamed from
42791         doc/glibc-functions/iswgraph_l.texi.
42792         * doc/posix-functions/iswlower_l.texi: Renamed from
42793         doc/glibc-functions/iswlower_l.texi.
42794         * doc/posix-functions/iswprint_l.texi: Renamed from
42795         doc/glibc-functions/iswprint_l.texi.
42796         * doc/posix-functions/iswpunct_l.texi: Renamed from
42797         doc/glibc-functions/iswpunct_l.texi.
42798         * doc/posix-functions/iswspace_l.texi: Renamed from
42799         doc/glibc-functions/iswspace_l.texi.
42800         * doc/posix-functions/iswupper_l.texi: Renamed from
42801         doc/glibc-functions/iswupper_l.texi.
42802         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42803         doc/glibc-functions/iswxdigit_l.texi.
42804         * doc/posix-functions/isxdigit_l.texi: Renamed from
42805         doc/glibc-functions/isxdigit_l.texi.
42806         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42807         doc/glibc-functions/mbsnrtowcs.texi.
42808         * doc/posix-functions/mkdtemp.texi: Renamed from
42809         doc/glibc-functions/mkdtemp.texi.
42810         * doc/posix-functions/newlocale.texi: Renamed from
42811         doc/glibc-functions/newlocale.texi.
42812         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42813         doc/glibc-functions/nl_langinfo_l.texi.
42814         * doc/posix-functions/open_memstream.texi: Renamed from
42815         doc/glibc-functions/open_memstream.texi.
42816         * doc/posix-functions/opterr.texi: Renamed from
42817         doc/glibc-functions/opterr.texi.
42818         * doc/posix-functions/optind.texi: Renamed from
42819         doc/glibc-functions/optind.texi.
42820         * doc/posix-functions/optopt.texi: Renamed from
42821         doc/glibc-functions/optopt.texi.
42822         * doc/posix-functions/psignal.texi: Renamed from
42823         doc/glibc-functions/psignal.texi.
42824         * doc/posix-functions/scandir.texi: Renamed from
42825         doc/glibc-functions/scandir.texi.
42826         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42827         doc/glibc-functions/sched_get_priority_min.texi.
42828         * doc/posix-functions/signgam.texi: Renamed from
42829         doc/glibc-functions/signgam.texi.
42830         * doc/posix-functions/stpcpy.texi: Renamed from
42831         doc/glibc-functions/stpcpy.texi.
42832         * doc/posix-functions/stpncpy.texi: Renamed from
42833         doc/glibc-functions/stpncpy.texi.
42834         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42835         doc/glibc-functions/strcasecmp_l.texi.
42836         * doc/posix-functions/strcoll_l.texi: Renamed from
42837         doc/glibc-functions/strcoll_l.texi.
42838         * doc/posix-functions/strfmon_l.texi: Renamed from
42839         doc/glibc-functions/strfmon_l.texi.
42840         * doc/posix-functions/strftime_l.texi: Renamed from
42841         doc/glibc-functions/strftime_l.texi.
42842         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42843         doc/glibc-functions/strncasecmp_l.texi.
42844         * doc/posix-functions/strndup.texi: Renamed from
42845         doc/glibc-functions/strndup.texi.
42846         * doc/posix-functions/strnlen.texi: Renamed from
42847         doc/glibc-functions/strnlen.texi.
42848         * doc/posix-functions/strsignal.texi: Renamed from
42849         doc/glibc-functions/strsignal.texi.
42850         * doc/posix-functions/strxfrm_l.texi: Renamed from
42851         doc/glibc-functions/strxfrm_l.texi.
42852         * doc/posix-functions/timer_gettime.texi: Renamed from
42853         doc/glibc-functions/timer_gettime.texi.
42854         * doc/posix-functions/tolower_l.texi: Renamed from
42855         doc/glibc-functions/tolower_l.texi.
42856         * doc/posix-functions/toupper_l.texi: Renamed from
42857         doc/glibc-functions/toupper_l.texi.
42858         * doc/posix-functions/towctrans_l.texi: Renamed from
42859         doc/glibc-functions/towctrans_l.texi.
42860         * doc/posix-functions/towlower_l.texi: Renamed from
42861         doc/glibc-functions/towlower_l.texi.
42862         * doc/posix-functions/towupper_l.texi: Renamed from
42863         doc/glibc-functions/towupper_l.texi.
42864         * doc/posix-functions/uselocale.texi: Renamed from
42865         doc/glibc-functions/uselocale.texi.
42866         * doc/posix-functions/vdprintf.texi: Renamed from
42867         doc/glibc-functions/vdprintf.texi.
42868         * doc/posix-functions/wcpcpy.texi:
42869         Renamed from doc/glibc-functions/wcpcpy.texi.
42870         * doc/posix-functions/wcpncpy.texi: Renamed from
42871         doc/glibc-functions/wcpncpy.texi.
42872         * doc/posix-functions/wcscasecmp.texi: Renamed from
42873         doc/glibc-functions/wcscasecmp.texi.
42874         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42875         doc/glibc-functions/wcscasecmp_l.texi.
42876         * doc/posix-functions/wcscoll_l.texi: Renamed from
42877         doc/glibc-functions/wcscoll_l.texi.
42878         * doc/posix-functions/wcsdup.texi: Renamed from
42879         doc/glibc-functions/wcsdup.texi.
42880         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42881         doc/glibc-functions/wcsncasecmp.texi.
42882         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42883         doc/glibc-functions/wcsncasecmp_l.texi.
42884         * doc/posix-functions/wcsnlen.texi: Renamed from
42885         doc/glibc-functions/wcsnlen.texi.
42886         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42887         doc/glibc-functions/wcsnrtombs.texi.
42888         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42889         doc/glibc-functions/wcsxfrm_l.texi.
42890         * doc/posix-functions/wctrans_l.texi: Renamed from
42891         doc/glibc-functions/wctrans_l.texi.
42892         * doc/posix-functions/wctype_l.texi: Renamed from
42893         doc/glibc-functions/wctype_l.texi.
42894         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42895         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42896         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42897         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42898         these subsections.
42899         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42900         Remove sections.
42901
42902 2008-12-14  Bruno Haible  <bruno@clisp.org>
42903
42904         Update doc for POSIX:2008.
42905         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42906
42907 2008-12-14  Bruno Haible  <bruno@clisp.org>
42908
42909         Update doc for POSIX:2008.
42910         * doc/pastposix-functions/bcmp.texi: Renamed from
42911         doc/posix-functions/bcmp.texi.
42912         * doc/pastposix-functions/bcopy.texi: Renamed from
42913         doc/posix-functions/bcopy.texi.
42914         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42915         doc/posix-functions/bsd_signal.texi.
42916         * doc/pastposix-functions/bzero.texi: Renamed from
42917         doc/posix-functions/bzero.texi.
42918         * doc/pastposix-functions/ecvt.texi: Renamed from
42919         doc/posix-functions/ecvt.texi.
42920         * doc/pastposix-functions/fcvt.texi: Renamed from
42921         doc/posix-functions/fcvt.texi.
42922         * doc/pastposix-functions/ftime.texi: Renamed from
42923         doc/posix-functions/ftime.texi.
42924         * doc/pastposix-functions/gcvt.texi: Renamed from
42925         doc/posix-functions/gcvt.texi.
42926         * doc/pastposix-functions/getcontext.texi: Renamed from
42927         doc/posix-functions/getcontext.texi.
42928         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42929         doc/posix-functions/gethostbyaddr.texi.
42930         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42931         doc/posix-functions/gethostbyname.texi.
42932         * doc/pastposix-functions/getwd.texi: Renamed from
42933         doc/posix-functions/getwd.texi.
42934         * doc/pastposix-functions/h_errno.texi: Renamed from
42935         doc/posix-functions/h_errno.texi.
42936         * doc/pastposix-functions/index.texi: Renamed from
42937         doc/posix-functions/index.texi.
42938         * doc/pastposix-functions/makecontext.texi: Renamed from
42939         doc/posix-functions/makecontext.texi.
42940         * doc/pastposix-functions/mktemp.texi: Renamed from
42941         doc/posix-functions/mktemp.texi.
42942         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42943         doc/posix-functions/pthread_attr_getstackaddr.texi.
42944         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42945         doc/posix-functions/pthread_attr_setstackaddr.texi.
42946         * doc/pastposix-functions/rindex.texi: Renamed from
42947         doc/posix-functions/rindex.texi.
42948         * doc/pastposix-functions/scalb.texi: Renamed from
42949         doc/posix-functions/scalb.texi.
42950         * doc/pastposix-functions/setcontext.texi: Renamed from
42951         doc/posix-functions/setcontext.texi.
42952         * doc/pastposix-functions/swapcontext.texi: Renamed from
42953         doc/posix-functions/swapcontext.texi.
42954         * doc/pastposix-functions/ualarm.texi: Renamed from
42955         doc/posix-functions/ualarm.texi.
42956         * doc/pastposix-functions/usleep.texi: Renamed from
42957         doc/posix-functions/usleep.texi.
42958         * doc/pastposix-functions/vfork.texi: Renamed from
42959         doc/posix-functions/vfork.texi.
42960         * doc/pastposix-functions/wcswcs.texi: Renamed from
42961         doc/posix-functions/wcswcs.texi.
42962         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42963         (Function Substitutes): Update.
42964
42965 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42966
42967         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42968         m4/strerror.m4.
42969
42970 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42971             Bruno Haible  <bruno@clisp.org>
42972
42973         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42974
42975 2008-12-13  Bruno Haible  <bruno@clisp.org>
42976
42977         * modules/strtoull (Depends-on): Remove unistd.
42978
42979 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42980
42981         * modules/strtoull (Depends-on): Add stdlib.
42982
42983 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42984
42985         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42986
42987 2008-12-10  Jim Meyering  <meyering@redhat.com>
42988
42989         gl_ASSERT: don't say assertions are disabled when they're not
42990         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42991         "checking whether to enable assertions... no", when they are in
42992         fact enabled.  This is solely a bug in the output of configure.
42993         In spite of saying "no", NDEBUG was not defined in that case.
42994         Also, as noted by Eric Blake, leave assertions enabled upon
42995         --enable-assert=INVALID.
42996
42997 2008-12-10  Bruno Haible  <bruno@clisp.org>
42998
42999         Change MODULES.html to refer to POSIX:2008 where possible.
43000         * MODULES.html.sh (POSIX2008_URL): New variable.
43001         (posix_headers): Remove sys/timeb, ucontext.
43002         (posix2001_headers): New variable.
43003         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43004         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43005         index, makecontext, mktemp, pthread_attr_getstackaddr,
43006         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43007         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43008         (posix2001_functions): New variable.
43009         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43010         otherwise.
43011
43012 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43013
43014         add missing include to parse-duration.c
43015         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43016         * modules/parse-duration (Depends-on): Add xalloc.
43017
43018         fix sed script reading maint.mk
43019         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43020         (syntax-check-rules): Use it.
43021
43022 2008-12-09  Bruno Haible  <bruno@clisp.org>
43023
43024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43025         MacOS X 10.4/PowerPC.
43026         Reported by Simon Josefsson.
43027
43028 2008-12-08  Jim Meyering  <meyering@redhat.com>
43029
43030         work around mingw's lack of some S_IF definitions
43031         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43032         Reported by Simon Josefsson.
43033
43034 2008-12-08  Bruno Haible  <bruno@clisp.org>
43035
43036         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43037         applied to variables. Needed on MacOS X 10.4/PowerPC.
43038         Reported by Simon Josefsson.
43039
43040 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43041         and Eric Blake  <ebb9@byu.net>
43042
43043         assert: honor --enable-assert
43044         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43045         order to honor --enable-assert, rather than treating it as a
43046         synonym for --disable-assert.
43047
43048 2008-12-08  Jim Meyering  <meyering@redhat.com>
43049
43050         * lib/posixtm.c: Remove now-useless declaration of mktime.
43051
43052         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43053
43054 2008-12-07  Bruno Haible  <bruno@clisp.org>
43055
43056         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43057         test_once): Mark functions as static.
43058         * tests/test-tls.c (test_tls): Likewise.
43059
43060 2008-12-07  Bruno Haible  <bruno@clisp.org>
43061
43062         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43063         iconv_register_autodetect.
43064
43065 2008-12-07  Jim Meyering  <meyering@redhat.com>
43066
43067         posixtm.c: avoid a warning
43068         * lib/posixtm.c (posixtime): Don't initialize tm0.
43069         It's no longer needed to placate gcc4's -Wuninitialized,
43070         and the attempt to placate would elicit a new warning.
43071
43072         unicodeio.c: mark unused parameters
43073         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43074         (fallback_failure_callback): Likewise.
43075
43076 2008-12-07  Bruno Haible  <bruno@clisp.org>
43077
43078         * gnulib-tool (func_create_testdir): When building the tests
43079         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43080         Reported by Simon Josefsson.
43081
43082 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43083
43084         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43085
43086 2008-12-06  Bruno Haible  <bruno@clisp.org>
43087
43088         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43089         Suggested by Eric Blake.
43090
43091 2008-12-06  Bruno Haible  <bruno@clisp.org>
43092
43093         Fix a c-stack test failure on MacOS X.
43094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43095         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43096         handler for SIGBUS as well.
43097         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43098         install a signal handler for SIGBUS as well.
43099         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43100
43101 2008-12-06  Bruno Haible  <bruno@clisp.org>
43102
43103         Advocacy documentation.
43104         * doc/gnulib-intro.texi (Benefits): New section.
43105         * doc/gnulib.texi: Update.
43106
43107 2008-12-06  Bruno Haible  <bruno@clisp.org>
43108
43109         Document the 'manywarnings' module.
43110         * doc/manywarnings.texi: New file.
43111         * doc/gnulib.texi: Include it.
43112
43113 2008-12-05  Eric Blake  <ebb9@byu.net>
43114
43115         tests: silence some gcc warnings
43116         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43117         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43118         type mismatches.
43119
43120 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43121             Bruno Haible  <bruno@clisp.org>
43122
43123         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43124
43125 2008-11-29  Jim Meyering  <meyering@redhat.com>
43126
43127         unicodeio.c: mark unused parameters
43128         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43129         (fallback_failure_callback): Likewise.
43130
43131         fts: fix a thinko
43132         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43133         (set_stat_type): Return S_IF*-valued "type" directly.
43134         Prompted by James Youngman's spotting a related bug.
43135         Confirmed by further testing through find.
43136
43137         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43138         * lib/fts.c (D_TYPE): Define.
43139         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43140         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43141         (s_ifmt_shift_bits): New function.
43142         (set_stat_type): New function.
43143         (fts_build): When not calling fts_stat, call set_stat_type
43144         to propagate dirent.d_type info to fts_read caller.
43145         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43146         fts_statp->st_mode type information may be valid.
43147
43148 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43149
43150         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43151         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43152         <sds@gnu.org>.
43153
43154 2008-11-20  Bruno Haible  <bruno@clisp.org>
43155
43156         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43157         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43158         INCLUDE_NEXT.
43159         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43160         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43161         * modules/math (Makefile.am): Substitute
43162         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43163         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43164
43165 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43166             Bruno Haible  <bruno@clisp.org>
43167
43168         * lib/stdint.in.h: Define all type macros so that their expansion is
43169         a single typedef'ed token. Fixes a compilation failure in Boost which
43170         does "using ::int8_t;".
43171
43172 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43173
43174         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43175         gl_MANYWARN_ALL_GCC.
43176         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43177         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43178         * modules/manywarnings: New file.
43179         * MODULES.html.sh: Mention manywarnings module.
43180
43181 2008-11-18  Bruno Haible  <bruno@clisp.org>
43182
43183         * doc/gnulib-tool.texi (Unit tests): New section.
43184
43185 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43186
43187         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43188         paths like 'lib/po/foo.po'.
43189
43190 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43191
43192         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43193         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43194
43195 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43196
43197         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43198         parameter works.
43199
43200 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43201
43202         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43203
43204 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43205
43206         * modules/parse-duration-tests: New file.
43207         * tests/test-parse-duration.sh: New file.
43208         * tests/test-parse-duration.c: New file.
43209
43210         New module 'parse-duration'.
43211         * lib/parse-duration.h: New file.
43212         * lib/parse-duration.c: New file.
43213         * modules/parse-duration: New file.
43214
43215 2008-11-17  Bruno Haible  <bruno@clisp.org>
43216
43217         * tests/test-select-out.sh: Comment out the first pipe test.
43218         Reported by Simon Josefsson.
43219
43220 2008-11-17  Bruno Haible  <bruno@clisp.org>
43221
43222         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43224         gl_HOSTENT.
43225
43226 2008-11-17  Bruno Haible  <bruno@clisp.org>
43227
43228         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43229         -lnetwork and -lnet. Needed for Haiku and BeOS.
43230
43231 2008-11-16  Bruno Haible  <bruno@clisp.org>
43232
43233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43234
43235 2008-11-16  Bruno Haible  <bruno@clisp.org>
43236
43237         Avoid test failure on Haiku.
43238         * tests/test-fsync.c: Include <errno.h>.
43239         (main): Don't require that fsync (0) fails.
43240
43241 2008-11-15  Bruno Haible  <bruno@clisp.org>
43242
43243         New module 'hostent'.
43244         * modules/hostent: New file.
43245         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43246
43247 2008-11-15  Bruno Haible  <bruno@clisp.org>
43248
43249         New module 'servent'.
43250         * modules/servent: New file.
43251         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43252
43253 2008-11-15  Bruno Haible  <bruno@clisp.org>
43254
43255         Avoid generating same test program with two different rules.
43256         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43257         test-frexp to test-frexp-nolibm.
43258         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43259         test-frexpl to test-frexpl-nolibm.
43260
43261 2008-11-15  Bruno Haible  <bruno@clisp.org>
43262
43263         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43264         $(FREXPL_LIBM).
43265
43266 2008-11-15  Bruno Haible  <bruno@clisp.org>
43267
43268         * lib/netdb.in.h: Activate the definitions also when the system's
43269         <netdb.h> has 'struct addrinfo'.
43270         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43271         EAI_OVERFLOW or AI_NUMERICSERV.
43272         * doc/posix-headers/netdb.texi: Document the problem.
43273
43274 2008-11-15  Bruno Haible  <bruno@clisp.org>
43275
43276         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43277
43278         Make the 'sched' module work on platforms where <sched.h> exists but
43279         is incomplete (such as Haiku).
43280         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43281         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43282         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43283         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43284         HAVE_STRUCT_SCHED_PARAM.
43285         * modules/sched (Depends-on): Add include_next.
43286         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43287         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43288         * doc/posix-headers/sched.texi: Document the issue.
43289
43290 2008-11-13  Jim Meyering  <meyering@redhat.com>
43291
43292         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43293         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43294         test would fail due to the difference in the Report bugs to ...
43295         line.  The expected address is empty, "<>", while the actual
43296         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43297
43298 2008-11-12  Bruno Haible  <bruno@clisp.org>
43299
43300         lstat: don't compile lstat.c on systems lacking lstat
43301         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43302         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43303         Reported by Daniel P. Berrange via Jim Meyering.
43304
43305 2008-11-12  Jim Meyering  <meyering@redhat.com>
43306
43307         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43308
43309 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43310
43311         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43312         instead.
43313
43314 2008-11-12  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/unicodeio.c: Include unistr.h.
43317         (utf8_wctomb): Remove function.
43318         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43319
43320 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43321
43322         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43323         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43324         <bruno@clisp.org>.
43325         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43326
43327 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43328
43329         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43330         * doc/gnulib.texi: Add section for warnings.
43331
43332 2008-11-11  Bruno Haible  <bruno@clisp.org>
43333
43334         * lib/sockets.h: Add a comment.
43335
43336 2008-11-11  Karl Berry  <karl@gnu.org>
43337
43338         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43339
43340 2008-11-11  Eric Blake  <ebb9@byu.net>
43341
43342         fdl.texi: avoid git symlinks
43343         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43344
43345 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43346
43347         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43348
43349 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43350
43351         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43352         (gl_WARN_ADD): Substitute $2 if literal.
43353
43354 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43355
43356         * m4/warning.m4: Remove.
43357
43358 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43359
43360         * m4/warnings.m4: Almost complete rewrite. :-)
43361
43362 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43363
43364         * modules/warnings: New module.
43365         * m4/warnings.m4: New file.
43366         * MODULES.html.sh: Mention warnings module.
43367         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43368         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43369
43370 2008-11-10  Eric Blake  <ebb9@byu.net>
43371
43372         fdl.texi: make a symlink to the latest version
43373         * doc/standards.texi: Revert today's earlier change.
43374         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43375         * doc/fdl.texi: ...and replace this with a symlink to the newer
43376         fdl-1.3.texi.
43377
43378 2008-11-10  Bruno Haible  <bruno@clisp.org>
43379
43380         * tests/test-select-fd.c (main): Accept the result file name as fourth
43381         argument.
43382         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43383         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43384
43385 2008-11-10  Bruno Haible  <bruno@clisp.org>
43386
43387         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43388         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43389         as autoconf-substituted macros.
43390         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43391         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43392         gl_NETDB_H_DEFAULTS. Set these variables.
43393         * modules/netdb (Makefile.am): Substitute these variables.
43394
43395 2008-11-10  Eric Blake  <ebb9@byu.net>
43396
43397         standards.texi: include correct file for FDL 1.3
43398         * doc/standards.texi (GNU Free Documentation License): Change
43399         include file to pull in FDL 1.3, not 1.2.
43400
43401         fdl.texi: revert accidental change to license
43402         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43403
43404 2008-11-10  Bruno Haible  <bruno@clisp.org>
43405
43406         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43407         cross-compiling guesses also when the native compile gives no result.
43408
43409 2008-11-10  Bruno Haible  <bruno@clisp.org>
43410
43411         * lib/spawni.c (__spawni): Force variable into the stack.
43412
43413 2008-11-10  Bruno Haible  <bruno@clisp.org>
43414
43415         Add support for Haiku.
43416         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43417         glibc and BeOS, but also on Haiku.
43418         * lib/fpurge.c (fpurge): Likewise.
43419         * lib/freadable.c (freadable): Likewise.
43420         * lib/freadahead.c (freadahead): Likewise.
43421         * lib/freading.c (freading): Likewise.
43422         * lib/freadptr.c (freadptr): Likewise.
43423         * lib/freadseek.c (freadptrinc): Likewise.
43424         * lib/fseeko.c (rpl_fseeko): Likewise.
43425         * lib/fseterr.c (fseterr): Likewise.
43426         * lib/fwritable.c (fwritable): Likewise.
43427         * lib/fwriting.c (fwriting): Likewise.
43428         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43429
43430 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43431
43432         * lib/config.charset: Treat Haiku like BeOS.
43433
43434 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43435
43436         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43437         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43438
43439 2008-11-08  Bruno Haible  <bruno@clisp.org>
43440
43441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43442         AC_CACHE_CHECK.
43443
43444 2008-11-08  Bruno Haible  <bruno@clisp.org>
43445
43446         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43447
43448 2008-11-08  Bruno Haible  <bruno@clisp.org>
43449
43450         * tests/test-select-fd.c: New file.
43451         * tests/test-select-in.sh: New file.
43452         * tests/test-select-out.sh: New file.
43453         * tests/test-select-stdin.c: New file.
43454         * modules/select-tests (Files): Add the new files.
43455         (Depends-on): Add gettimeofday.
43456         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43457         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43458         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43459
43460 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43461             Bruno Haible  <bruno@clisp.org>
43462
43463         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43464
43465 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43466
43467         * build-aux/pmccabe2html: Added support for C++ source files.
43468
43469 2008-11-05  Ben Pfaff  <blp@gnu.org>
43470
43471         Fix lib/close.c build on Windows.
43472         * modules/close (Files): Add lib/w32sock.h.
43473
43474 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43475
43476         Accept Bison's NEWS format.
43477         * build-aux/announce-gen (print_news_deltas): Tweak
43478         $re_prefix.
43479
43480 2008-11-04  Bruno Haible  <bruno@clisp.org>
43481
43482         * modules/random_r (Maintainer): Add glibc.
43483
43484 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43485
43486         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43487         by karl@freefriends.org (Karl Berry).
43488         * doc/alloca.texi: Likewise.
43489         * doc/c-ctype.texi: Likewise.
43490         * doc/c-strcase.texi: Likewise.
43491         * doc/c-strcaseeq.texi: Likewise.
43492         * doc/c-strcasestr.texi: Likewise.
43493         * doc/c-strstr.texi: Likewise.
43494         * doc/c-strtod.texi: Likewise.
43495         * doc/c-strtold.texi: Likewise.
43496         * doc/ctime.texi: Likewise.
43497         * doc/error.texi: Likewise.
43498         * doc/fdl.texi: Likewise.
43499         * doc/gcd.texi: Likewise.
43500         * doc/getdate.texi: Likewise.
43501         * doc/gnulib-intro.texi: Likewise.
43502         * doc/gnulib-tool.texi: Likewise.
43503         * doc/gnulib.texi: Likewise.
43504         * doc/inet_ntoa.texi: Likewise.
43505         * doc/maintain.texi: Likewise.
43506         * doc/make-stds.texi: Likewise.
43507         * doc/quote.texi: Likewise.
43508         * doc/regexprops-generic.texi: Likewise.
43509         * doc/standards.texi: Likewise.
43510         * doc/verify.texi: Likewise.
43511         * doc/visibility.texi: Likewise.
43512         * doc/gnulib.texi (GNU Free Documentation License): Include
43513         fdl-1.3.texi instead of fdl.texi.
43514
43515 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43516
43517         * doc/fdl-1.3.texi: New file, from
43518         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43519         * modules/fdl-1.3: Add.
43520         * MODULES.html.sh: Add fdl-1.3.
43521
43522 2008-11-03  Bruno Haible  <bruno@clisp.org>
43523
43524         Make determination of absolute name of header file work with AIX xlc.
43525         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43526         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43527         preprocessing.
43528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43529         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43530
43531 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43532
43533         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43534         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43535         <ludo@gnu.org>.
43536
43537 2008-11-02  Bruno Haible  <bruno@clisp.org>
43538
43539         Mark 'strpbrk' obsolete.
43540         * modules/strpbrk (Status, Notice): New sections.
43541         * modules/strtok_r (Depends-on): Add strpbrk.
43542
43543 2008-11-02  Bruno Haible  <bruno@clisp.org>
43544
43545         Mark 'strdup' obsolete.
43546         * modules/strdup (Status, Notice): New sections.
43547         * modules/findprog (Depends-on): Add strdup.
43548         * modules/getaddrinfo (Depends-on): Likewise.
43549         * modules/localename (Depends-on): Likewise.
43550         * modules/relocatable-lib (Depends-on): Likewise.
43551         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43552         * modules/relocatable-prog (Depends-on): Likewise.
43553         * modules/trim (Depends-on): Likewise.
43554         * modules/unictype/gen-ctype (Depends-on): Likewise.
43555         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43556
43557 2008-11-02  Bruno Haible  <bruno@clisp.org>
43558
43559         Mark 'strcspn' obsolete.
43560         * modules/strcspn (Status, Notice): New sections.
43561
43562 2008-11-02  Bruno Haible  <bruno@clisp.org>
43563
43564         Mark 'rmdir' obsolete.
43565         * modules/rmdir (Status, Notice): New sections.
43566         * modules/clean-temp (Depends-on): Add rmdir.
43567         * modules/openat (Depends-on): Likewise.
43568
43569 2008-11-02  Bruno Haible  <bruno@clisp.org>
43570
43571         Mark 'raise' obsolete.
43572         * modules/raise (Status, Notice): New sections.
43573         (Include): Specify <signal.h>.
43574         * modules/stdio (Depends-on): Add raise.
43575         * modules/write (Depends-on): Likewise.
43576
43577 2008-11-02  Bruno Haible  <bruno@clisp.org>
43578
43579         Mark 'memset' obsolete.
43580         * modules/memset (Status, Notice): New sections.
43581
43582 2008-11-02  Bruno Haible  <bruno@clisp.org>
43583
43584         Mark 'memmove' obsolete.
43585         * modules/memmove (Status, Notice): New sections.
43586         * modules/argp (Depends-on): Add memmove.
43587         * modules/argz (Depends-on): Likewise.
43588         * modules/canonicalize (Depends-on): Likewise.
43589         * modules/canonicalize-lgpl (Depends-on): Likewise.
43590         * modules/fts (Depends-on): Likewise.
43591         * modules/getcwd (Depends-on): Likewise.
43592         * modules/human (Depends-on): Likewise.
43593         * modules/regex (Depends-on): Likewise.
43594         * modules/striconveh (Depends-on): Likewise.
43595         * modules/trim (Depends-on): Likewise.
43596         * modules/unistr/u8-move (Depends-on): Likewise.
43597         * modules/unistr/u16-move (Depends-on): Likewise.
43598         * modules/unistr/u32-move (Depends-on): Likewise.
43599
43600 2008-11-02  Bruno Haible  <bruno@clisp.org>
43601
43602         Mark 'memcpy' obsolete.
43603         * modules/memcpy (Status, Notice): New sections.
43604
43605 2008-11-02  Bruno Haible  <bruno@clisp.org>
43606
43607         Mark 'memcmp' obsolete.
43608         * modules/memcmp (Status, Notice): New sections.
43609         * modules/argmatch (Depends-on): Add memchr.
43610         * modules/backupfile (Depends-on): Likewise.
43611         * modules/c-strcasestr (Depends-on): Likewise.
43612         * modules/crypto/des (Depends-on): Likewise.
43613         * modules/csharpcomp (Depends-on): Likewise.
43614         * modules/fnmatch (Depends-on): Likewise.
43615         * modules/git-merge-changelog (Depends-on): Likewise.
43616         * modules/isnand (Depends-on): Likewise.
43617         * modules/isnand-nolibm (Depends-on): Likewise.
43618         * modules/isnanf (Depends-on): Likewise.
43619         * modules/isnanf-nolibm (Depends-on): Likewise.
43620         * modules/isnanl (Depends-on): Likewise.
43621         * modules/isnanl-nolibm (Depends-on): Likewise.
43622         * modules/mbchar (Depends-on): Likewise.
43623         * modules/memcoll (Depends-on): Likewise.
43624         * modules/quotearg (Depends-on): Likewise.
43625         * modules/regex (Depends-on): Likewise.
43626         * modules/relocatable-prog (Depends-on): Likewise.
43627         * modules/same (Depends-on): Likewise.
43628         * modules/signbit (Depends-on): Likewise.
43629         * modules/strcasestr-simple (Depends-on): Likewise.
43630         * modules/unictype/gen-ctype (Depends-on): Likewise.
43631         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43632         * modules/uniname/uniname (Depends-on): Likewise.
43633         * modules/unistr/u8-cmp (Depends-on): Likewise.
43634
43635 2008-11-02  Bruno Haible  <bruno@clisp.org>
43636
43637         Mark 'memchr' obsolete.
43638         * modules/memchr (Status, Notice): New sections.
43639         * modules/argp (Depends-on): Add memchr.
43640         * modules/base64 (Depends-on): Likewise.
43641         * modules/c-strcasestr (Depends-on): Likewise.
43642         * modules/chdir-long (Depends-on): Likewise.
43643         * modules/fnmatch (Depends-on): Likewise.
43644         * modules/getsubopt (Depends-on): Likewise.
43645         * modules/git-merge-changelog (Depends-on): Likewise.
43646         * modules/glob (Depends-on): Likewise.
43647         * modules/strcasestr-simple (Depends-on): Likewise.
43648         * modules/strnlen (Depends-on): Likewise.
43649
43650 2008-11-02  Bruno Haible  <bruno@clisp.org>
43651
43652         Mark 'atexit' obsolete.
43653         * modules/atexit (Status, Notice): New sections.
43654         * modules/chdir-long (Depends-on): Add atexit.
43655         * modules/wait-process (Depends-on): Likewise.
43656
43657 2008-11-02  Bruno Haible  <bruno@clisp.org>
43658
43659         * gnulib-tool: New option --with-obsolete.
43660         (func_usage): Document it.
43661         (func_modules_transitive_closure): Drop obsolete dependencies if
43662         incobsolete is not true.
43663         (func_import): Read and save the incobsolete variable to the cache.
43664
43665 2008-11-02  Bruno Haible  <bruno@clisp.org>
43666
43667         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43668         * gnulib-tool: New option --extract-status.
43669         (func_usage): Document it.
43670         (sed_extract_prog): Recognize it.
43671         (func_get_status): New function.
43672
43673 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43674
43675         * modules/sockets (License): Change from LGPL to LGPLv2+.
43676
43677 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43678
43679         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43680
43681 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43682
43683         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43684         Mention times and sys_times.
43685         * modules/sys_times, modules/sys_times-tests: New modules.
43686         * modules/times, modules/times-tests: Likewise
43687         * m4/sys_times_h.m4: New file.
43688         * lib/sys_times.in.h: Likewise
43689         * lib/times.c: Likewise.
43690         * tests/test-sys_times.c: Likewise.
43691         * tests/test-times.c: Likewise.
43692         * doc/posix-headers/sys_times.texi: Update.
43693         * doc/posix-functions/times.texi: Update.
43694
43695 2008-10-28  Jim Meyering  <meyering@redhat.com>
43696
43697         * modules/tempname (Depends-on): Add lstat.
43698
43699         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43700
43701 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43702
43703         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43704         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43705         using idiom used elsewhere in gnulib.
43706
43707 2008-10-27  Jim Meyering  <meyering@redhat.com>
43708
43709         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43710
43711 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43712
43713         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43714         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43715         programs.
43716         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43717
43718 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43719
43720         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43721
43722 2008-10-27  Bruno Haible  <bruno@clisp.org>
43723
43724         * tests/test-lstat.c: Include <stdio.h>.
43725
43726 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43727
43728         * modules/lstat-tests: New module.
43729         * tests/test-lstat.c: New file.
43730
43731 2008-10-26  Jim Meyering  <meyering@redhat.com>
43732
43733         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43734
43735 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43736             Bruno Haible  <bruno@clisp.org>
43737
43738         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43739         * modules/configmake (Include): Add a note that the include must come
43740         after all system headers.
43741         * lib/javaversion.c: Include configmake.h after all other includes.
43742
43743 2008-10-26  Bruno Haible  <bruno@clisp.org>
43744
43745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43746         HAVE_STRUCT_RANDOM_DATA to 1.
43747         (gl_STDLIB_H): Simplify.
43748
43749 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43750
43751         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43752         substitute HAVE_STRUCT_RANDOM_DATA.
43753         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43754         random_data.
43755         * modules/stdlib (Makefile.am): Substitute
43756         HAVE_STRUCT_RANDOM_DATA.
43757
43758 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43759
43760         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43761         * doc/gnulib-intro.texi (Copyright): Likewise.
43762
43763 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43764
43765         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43766         findings.
43767
43768 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43769             Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/unistd.in.h: Include <winsock2.h>.
43772         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43773         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43774         Provide dummy declarations.
43775         (gethostname): Override.
43776         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43777         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43778         gl_PREREQ_SYS_H_WINSOCK2.
43779         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43780         * doc/posix-functions/gethostname.texi: More details.
43781
43782 2008-10-25  Bruno Haible  <bruno@clisp.org>
43783
43784         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43785         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43786         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43787
43788         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43789         here ...
43790         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43791         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43792         gl_UNISTD_H_DEFAULTS.
43793
43794 2008-10-25  Eric Blake  <ebb9@byu.net>
43795
43796         signbit: avoid spurious compiler failure
43797         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43798         declarations inside function.
43799
43800 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43801             Bruno Haible  <bruno@clisp.org>
43802
43803         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43804         * modules/random_r (Depends-on): Add stdint.
43805
43806 2008-10-24  Bruno Haible  <bruno@clisp.org>
43807
43808         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43809         Eggert.
43810         * modules/strerror (License): Likewise.
43811
43812 2008-10-24  Jim Meyering  <meyering@redhat.com>
43813
43814         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43815         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43816
43817 2008-10-24  Eric Blake  <ebb9@byu.net>
43818
43819         getgroups: fix compilation when getgroups is available
43820         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43821         but with <config.h> override of getgroups disabled.
43822
43823 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43824
43825         * doc/gnulib.texi (Header files): Add note about C++ problems.
43826         Explained by Bruno Haible <bruno@clisp.org>.
43827
43828 2008-10-23  Bruno Haible  <bruno@clisp.org>
43829
43830         Define a dummy SA_NODEFER macro on Interix.
43831         * lib/signal.in.h (SA_NODEFER): Define fallback.
43832         Reported by Aleksey Cheusov <cheusov@tut.by> via
43833         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43834
43835 2008-10-23  Bruno Haible  <bruno@clisp.org>
43836
43837         * modules/freadahead (License): Change to LGPLv2+.
43838         Suggested by Simon Josefsson.
43839
43840 2008-10-23  Jim Meyering  <meyering@redhat.com>
43841
43842         random_r: new module
43843         * modules/random_r: New file.
43844         * m4/random_r.m4: New file.
43845         * lib/random_r.c: New file, from glibc.
43846         * modules/random_r-tests: New file.
43847         * tests/test-random_r.c: New file.
43848         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43849          Declare.
43850         (RAND_MAX): Define.
43851         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43852         * modules/stdlib: Substitute them, too.
43853         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43854         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43855         * doc/glibc-functions/random_r.texi: Likewise.
43856         * doc/glibc-functions/setstate_r.texi: Likewise.
43857         * doc/glibc-functions/srandom_r.texi: Likewise.
43858         * config/srclist.txt: Mention it.
43859
43860 2008-10-23  David Lutterkort  <lutter@redhat.com>
43861
43862         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43863         link requirement
43864
43865 2008-10-23  Jim Meyering  <meyering@redhat.com>
43866
43867         selinux-h: mark parameters of stub functions as intentionally unused
43868         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43869         * lib/se-context.in.h: Likewise.
43870
43871 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43872
43873         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43874
43875 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43876
43877         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43878
43879 2008-10-22  Eric Blake  <ebb9@byu.net>
43880
43881         glthread/thread: avoid compiler warning
43882         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43883         Add unreachable abort to silence compiler.
43884
43885 2008-10-22  Eric Blake  <ebb9@byu.net>
43886
43887         netdb: also supply struct addrinfo for cygwin 1.5.x
43888         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43889         older cygwin.
43890         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43891         cygwin.
43892         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43893
43894 2008-10-22  Bruno Haible  <bruno@clisp.org>
43895
43896         * users.txt: Update entry about pspp.
43897
43898 2008-10-21  Bruno Haible  <bruno@clisp.org>
43899
43900         Simplification.
43901         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43902         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43903
43904         Simplification.
43905         * lib/ioctl.c (ioctl): Don't undefine.
43906         * lib/socket.c (socket): Don't undefine.
43907
43908         Remove unused module indicator macros.
43909         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43910         GNULIB_$1 as a C macro.
43911
43912         * doc/posix-functions/close.texi: Undo last change.
43913         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43914         Windows platforms.
43915
43916 2008-10-21  Bruno Haible  <bruno@clisp.org>
43917
43918         Add gethostname() declaration to <unistd.h>.
43919         * lib/unistd.in.h (gethostname): New declaration.
43920         * lib/gethostname.c: Include <unistd.h>.
43921         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43922         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43924         and HAVE_GETHOSTNAME.
43925         * modules/gethostname (Depends-on): Add unistd.
43926         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43927         (Include): Specify <unistd.h>.
43928         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43929         HAVE_GETHOSTNAME.
43930         * tests/test-gethostname.c: Include <unistd.h> first.
43931
43932 2008-10-21  Bruno Haible  <bruno@clisp.org>
43933
43934         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43935         * modules/select-tests (Depends-on): Likewise.
43936         Reported by Simon Josefsson.
43937
43938 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43939
43940         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43941         * lib/accept.c: New file, based on winsock.c.
43942         * lib/bind.c: New file, based on winsock.c.
43943         * lib/connect.c: New file, based on winsock.c.
43944         * lib/getpeername.c: New file, based on winsock.c.
43945         * lib/getsockname.c: New file, based on winsock.c.
43946         * lib/getsockopt.c: New file, based on winsock.c.
43947         * lib/ioctl.c: New file, based on winsock.c.
43948         * lib/listen.c: New file, based on winsock.c.
43949         * lib/recv.c: New file, based on winsock.c.
43950         * lib/recvfrom.c: New file, based on winsock.c.
43951         * lib/send.c: New file, based on winsock.c.
43952         * lib/sendto.c: New file, based on winsock.c.
43953         * lib/setsockopt.c: New file, based on winsock.c.
43954         * lib/shutdown.c: New file, based on winsock.c.
43955         * lib/socket.c: New file, based on winsock.c.
43956         * lib/w32sock.h: New file, based on winsock.c.
43957         * lib/winsock.c: Remove file.
43958         * modules/accept: Likewise.
43959         * modules/bind: Likewise.
43960         * modules/connect: Likewise.
43961         * modules/getpeername: Likewise.
43962         * modules/getsockname: Likewise.
43963         * modules/getsockopt: Likewise.
43964         * modules/ioctl: Likewise.
43965         * modules/listen: Likewise.
43966         * modules/recv: Likewise.
43967         * modules/recvfrom: Likewise.
43968         * modules/send: Likewise.
43969         * modules/sendto: Likewise.
43970         * modules/setsockopt: Likewise.
43971         * modules/shutdown: Likewise.
43972         * modules/socket: Use socket.c instead of winsock.c.
43973         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43974         * doc/posix-functions/accept.texi: Doc fix.
43975         * doc/posix-functions/bind.texi: Doc fix.
43976         * doc/posix-functions/close.texi: Doc fix.
43977         * doc/posix-functions/connect.texi: Doc fix.
43978         * doc/posix-functions/getpeername.texi: Doc fix.
43979         * doc/posix-functions/getsockname.texi: Doc fix.
43980         * doc/posix-functions/getsockopt.texi: Doc fix.
43981         * doc/posix-functions/ioctl.texi: Doc fix.
43982         * doc/posix-functions/listen.texi: Doc fix.
43983         * doc/posix-functions/recv.texi: Doc fix.
43984         * doc/posix-functions/recvfrom.texi: Doc fix.
43985         * doc/posix-functions/send.texi: Doc fix.
43986         * doc/posix-functions/sendto.texi: Doc fix.
43987         * doc/posix-functions/setsockopt.texi: Doc fix.
43988         * doc/posix-functions/shutdown.texi: Doc fix.
43989         * doc/posix-functions/socket.texi: Doc fix.
43990
43991 2008-10-20  Bruno Haible  <bruno@clisp.org>
43992
43993         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43994         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43995         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43996         as an alias for SIGABRT.
43997         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43998         (sigaction): Map it to SIGABRT.
43999         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44000
44001 2008-10-20  Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/fts.c: Don't include lstat.h.
44004         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44005
44006         Move the lstat() declaration to <sys/stat.h>.
44007         * lib/lstat.h: Remove file.
44008         * lib/sys_stat.in.h: Add special invocation convention.
44009         (lstat): New declaration.
44010         * lib/lstat.c (orig_lstat): New function.
44011         (rpl_lstat): Use orig_lstat instead of lstat.
44012         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44013         AC_C_INLINE. Set REPLACE_LSTAT.
44014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44015         and REPLACE_LSTAT.
44016         * modules/lstat (Files): Remove lib/lstat.h.
44017         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44018         (Include): Specify <sys/stat.h> instead of lstat.h.
44019         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44020         REPLACE_LSTAT.
44021         * NEWS: Mention the change.
44022
44023 2008-10-20  Bruno Haible  <bruno@clisp.org>
44024
44025         * modules/posix_spawn-tests: New file.
44026         * tests/test-posix_spawn3.c: New file.
44027
44028 2008-10-20  Bruno Haible  <bruno@clisp.org>
44029
44030         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44031         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44032         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44033         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44034         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44035
44036 2008-10-20  Bruno Haible  <bruno@clisp.org>
44037
44038         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44039         of posix_spawn on AIX 5.3.
44040
44041 2008-10-20  Bruno Haible  <bruno@clisp.org>
44042
44043         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44044
44045 2008-10-20  Bruno Haible  <bruno@clisp.org>
44046
44047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44048         of AC_LANG_PROGRAM.
44049
44050 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44051
44052         * lib/netdb.in.h: Don't define GNU specific constants until they
44053         are supported or needed.  Reported by Bruno Haible
44054         <bruno@clisp.org>.
44055
44056 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44057
44058         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44059
44060 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44061
44062         * lib/getaddrinfo.h: Remove file.
44063         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44064         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44065         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44066         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44067         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44068         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44069         * tests/test-getaddrinfo.c: Likewise.
44070         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44071         * NEWS: Mention change.
44072
44073 2008-10-19  Bruno Haible  <bruno@clisp.org>
44074
44075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44076
44077 2008-10-19  Bruno Haible  <bruno@clisp.org>
44078
44079         * lib/wait-process.c: Include simply <sys/wait.h>.
44080         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44081         WIFSTOPPED): Remove fallback definitions.
44082         * modules/wait-process (Depends-on): Add sys_wait.
44083
44084         New module 'sys_wait'.
44085         * modules/sys_wait: New file.
44086         * lib/sys_wait.in.h: New file, partially copied from
44087         lib/wait-process.c.
44088         * m4/sys_wait_h.m4: New file.
44089         * doc/posix-headers/sys_wait.texi: Mention the new module.
44090
44091 2008-10-19  Bruno Haible  <bruno@clisp.org>
44092
44093         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44094
44095 2008-10-19  Bruno Haible  <bruno@clisp.org>
44096
44097         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44098         * lib/wait-process.c (WAIT_T): Remove type.
44099         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44100         (wait_subprocess): Update.
44101
44102 2008-10-19  Bruno Haible  <bruno@clisp.org>
44103
44104         New module 'atoll'.
44105         * modules/atoll: New file.
44106         * lib/stdlib.in.h (atoll): New declaration.
44107         * lib/atoll.c: New file, from glibc with modifications.
44108         * m4/atoll.m4: New file.
44109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44110         HAVE_ATOLL.
44111         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44112         * doc/posix-functions/atoll.texi: Mention the new module.
44113
44114 2008-10-19  Bruno Haible  <bruno@clisp.org>
44115
44116         Add strtoull() declaration to <stdlib.h>.
44117         * lib/stdlib.in.h (strtoull): New declaration.
44118         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44119         Set HAVE_STRTOULL.
44120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44121         HAVE_STRTOULL.
44122         * modules/strtoull (Depends-on): Add stdlib.
44123         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44124         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44125         HAVE_STRTOULL.
44126
44127 2008-10-19  Bruno Haible  <bruno@clisp.org>
44128
44129         Add strtoll() declaration to <stdlib.h>.
44130         * lib/stdlib.in.h (strtoll): New declaration.
44131         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44132         Set HAVE_STRTOLL.
44133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44134         HAVE_STRTOLL.
44135         * modules/strtoll (Depends-on): Add stdlib.
44136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44137         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44138
44139 2008-10-19  Bruno Haible  <bruno@clisp.org>
44140
44141         * modules/bcopy (Depends-on): Add strings.
44142         (Include): Specify <strings.h>.
44143
44144 2008-10-19  Bruno Haible  <bruno@clisp.org>
44145
44146         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44147
44148 2008-10-19  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44151         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44152         mingw.
44153
44154 2008-10-19  Bruno Haible  <bruno@clisp.org>
44155
44156         * lib/atanl.c: Don't include isnanl.h.
44157         * lib/cosl.c: Likewise.
44158         * lib/ldexpl.c: Likewise.
44159         * lib/logl.c: Likewise.
44160         * lib/sinl.c: Likewise.
44161         * lib/sqrtl.c: Likewise.
44162         * lib/tanl.c: Likewise.
44163
44164         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44165         * lib/isnanf.h: Remove file.
44166         * lib/isnand.h: Remove file.
44167         * lib/isnanl.h: Remove file.
44168         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44169         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44170         macros.
44171         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44172         HAVE_ISNANF, don't define it as a C macro.
44173         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44174         HAVE_ISNAND, don't define it as a C macro.
44175         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44176         HAVE_ISNANL, don't define it as a C macro.
44177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44178         HAVE_ISNAN[FDL].
44179         * modules/isnanf (Files): Remove lib/isnanf.h.
44180         (Depends-on): Add math.
44181         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44182         (Include): Specify <math.h> instead of isnanf.h.
44183         * modules/isnand (Files): Remove lib/isnand.h.
44184         (Depends-on): Add math.
44185         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44186         (Include): Specify <math.h> instead of isnand.h.
44187         * modules/isnanl (Files): Remove lib/isnanl.h.
44188         (Depends-on): Add math.
44189         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44190         (Include): Specify <math.h> instead of isnanl.h.
44191         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44192         HAVE_ISNAN[FDL].
44193         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44194         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44195         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44196         * NEWS: Mention the change.
44197
44198 2008-10-18  Bruno Haible  <bruno@clisp.org>
44199
44200         Add getusershell(), setusershell(), endusershell() declarations to
44201         <unistd.h>.
44202         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44203         declarations.
44204         * lib/getusershell.c: Include unistd.h.
44205         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44206         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44207         HAVE_GETUSERSHELL.
44208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44209         and HAVE_GETUSERSHELL.
44210         * modules/getusershell (Depends-on): Add unistd, extensions.
44211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44212         (Include): Specify <unistd.h>.
44213         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44214         HAVE_GETUSERSHELL.
44215
44216 2008-10-18  Bruno Haible  <bruno@clisp.org>
44217
44218         Add a getloadavg() declaration to <stdlib.h>.
44219         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44220         getloadavg declaration.
44221         (getloadavg): New declaration.
44222         * lib/getloadavg.c: Include <stdlib.h> first.
44223         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44224         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44225         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44227         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44228         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44229         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44230         (Include): Specify <stdlib.h>.
44231         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44232         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44233
44234 2008-10-18  Bruno Haible  <bruno@clisp.org>
44235
44236         * lib/dirchownmod.c: Don't include lchmod.h.
44237
44238         Move the lchmod() declaration to <sys/stat.h>.
44239         * lib/lchmod.h: Remove file.
44240         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44241         (lchmod): New declaration, moved here from lib/lchown.h.
44242         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44243         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44245         and HAVE_LCHMOD.
44246         * modules/lchmod (Files): Remove lib/lchmod.h.
44247         (Depends-on): Add sys_stat, extensions.
44248         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44249         (Include): Specify <sys/stat.h> instead of lchmod.h.
44250         * modules/sys_stat (Depends-on): Add link-warning.
44251         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44252         definition of GL_LINK_WARNING.
44253         * NEWS: Mention the change.
44254
44255 2008-10-18  Bruno Haible  <bruno@clisp.org>
44256
44257         * lib/fchdir.c: Don't include dirfd.h.
44258         * lib/fts.c: Likewise.
44259         * lib/getcwd.c: Likewise.
44260         * lib/glob.c: Likewise.
44261
44262         Move the dirfd() declaration to <dirent.h>.
44263         * lib/dirfd.h: Remove file.
44264         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44265         (dirfd): New declaration.
44266         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44267         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44268         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44269         HAVE_DECL_DIRFD.
44270         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44271         HAVE_DECL_DIRFD.
44272         * modules/dirfd (Files): Remove lib/dirfd.h.
44273         (Depends-on): Add dirent, extensions.
44274         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44275         (Include): Specify <dirent.h> instead of dirfd.h.
44276         * modules/dirent (Depends-on): Add link-warning.
44277         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44278         definition of GL_LINK_WARNING.
44279         * NEWS: Mention the change.
44280
44281 2008-10-18  Bruno Haible  <bruno@clisp.org>
44282
44283         Move the euidaccess() declaration to <unistd.h>.
44284         * lib/euidaccess.h: Remove file.
44285         * lib/unistd.in.h (euidaccess): New declaration.
44286         * lib/euidaccess.c: Don't include euidaccess.h.
44287         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44288         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44290         and HAVE_EUIDACCESS.
44291         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44292         (Depends-on): Add unistd.
44293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44294         (Include): Specify <unistd.h> instead of euidaccess.h.
44295         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44296         HAVE_EUIDACCESS.
44297         * NEWS: Mention the change.
44298
44299 2008-10-18  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44302
44303         Move the getdomainname() declaration to <unistd.h>.
44304         * lib/getdomainname.h: Remove file.
44305         * lib/unistd.in.h (getdomainname): New declaration.
44306         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44307         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44308         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44309         HAVE_GETDOMAINNAME.
44310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44311         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44312         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44313         (Depends-on): Add unistd, extensions.
44314         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44315         (Includes): Specify <unistd.h> instead of getdomainname.h.
44316         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44317         HAVE_GETDOMAINNAME.
44318         * NEWS: Mention the change.
44319
44320 2008-10-18  Bruno Haible  <bruno@clisp.org>
44321
44322         * modules/dirent: New file.
44323         * m4/dirent_h.m4: New file.
44324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44325         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44326         * modules/fchdir (Files): Remove lib/dirent.in.h.
44327         (Depends-on): Add dirent.
44328         (Makefile.am): Move rules to modules/dirent.
44329         * doc/posix-headers/dirent.texi: Mention the new module.
44330
44331 2008-10-18  Bruno Haible  <bruno@clisp.org>
44332
44333         Avoid -Wunused-parameter warnings in public gnulib header files.
44334         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44335         macro.
44336         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44337
44338 2008-10-18  Bruno Haible  <bruno@clisp.org>
44339
44340         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44341         * doc/glibc-functions/error.texi: Mention the module 'error'.
44342         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44343         * doc/glibc-functions/getdomainname.texi: Mention the module
44344         'getdomainname'.
44345         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44346         * doc/glibc-functions/getpagesize.texi: Mention the module
44347         'getpagesize'.
44348         * doc/glibc-functions/getusershell.texi: Mention the module
44349         'getusershell'.
44350         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44351         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44352         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44353         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44354         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44355         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44356         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44357         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44358         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44359         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44360         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44361         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44362         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44363         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44364
44365 2008-10-17  Bruno Haible  <bruno@clisp.org>
44366
44367         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44368         HP-UX and IRIX, use -0.0L.
44369         * tests/test-ceill.c (minus_zero): Likewise.
44370         * tests/test-floorl.c (minus_zero): Likewise.
44371         * tests/test-frexpl.c (minus_zero): Likewise.
44372         * tests/test-isnan.c (minus_zerol): Likewise.
44373         * tests/test-isnanl.h (minus_zero): Likewise.
44374         * tests/test-ldexpl.c (minus_zero): Likewise.
44375         * tests/test-roundl.c (minus_zero): Likewise.
44376         * tests/test-signbit.c (minus_zerol): Likewise.
44377         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44378         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44379         * tests/test-truncl.c (minus_zero): Likewise.
44380         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44381         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44382         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44383         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44384
44385 2008-10-17  Bruno Haible  <bruno@clisp.org>
44386
44387         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44388         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44389         that it gets activated only for gcc >= 3.0.
44390         * lib/dirent.in.h: Likewise.
44391         * lib/errno.in.h: Likewise.
44392         * lib/fcntl.in.h: Likewise.
44393         * lib/float.in.h: Likewise.
44394         * lib/iconv.in.h: Likewise.
44395         * lib/inttypes.in.h: Likewise.
44396         * lib/locale.in.h: Likewise.
44397         * lib/math.in.h: Likewise.
44398         * lib/netdb.in.h: Likewise.
44399         * lib/netinet_in.in.h: Likewise.
44400         * lib/search.in.h: Likewise.
44401         * lib/signal.in.h: Likewise.
44402         * lib/spawn.in.h: Likewise.
44403         * lib/stdarg.in.h: Likewise.
44404         * lib/stdint.in.h: Likewise.
44405         * lib/stdio.in.h: Likewise.
44406         * lib/stdlib.in.h: Likewise.
44407         * lib/string.in.h: Likewise.
44408         * lib/strings.in.h: Likewise.
44409         * lib/sys_file.in.h: Likewise.
44410         * lib/sys_ioctl.in.h: Likewise.
44411         * lib/sys_select.in.h: Likewise.
44412         * lib/sys_socket.in.h: Likewise.
44413         * lib/sys_stat.in.h: Likewise.
44414         * lib/sys_time.in.h: Likewise.
44415         * lib/sysexits.in.h: Likewise.
44416         * lib/time.in.h: Likewise.
44417         * lib/unistd.in.h: Likewise.
44418         * lib/wchar.in.h: Likewise.
44419         * lib/wctype.in.h: Likewise.
44420         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44421
44422 2008-10-17  Jim Meyering  <meyering@redhat.com>
44423
44424         ignore-value: don't depend on inline module
44425         * modules/ignore-value (Depends-on): Remove 'inline'.
44426         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44427         Suggestion from Bruno Haible.
44428
44429 2008-10-17  Bruno Haible  <bruno@clisp.org>
44430
44431         New implementation of condition variables for Win32.
44432         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44433         (gl_linked_waitqueue_t): New type.
44434         (gl_cond_t): Use it.
44435         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44436         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44437         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44438         (glthread_cond_init_func, glthread_cond_wait_func,
44439         glthread_cond_timedwait_func, glthread_cond_signal_func,
44440         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44441         Reimplemented on the basis of gl_linked_waitqueue_t.
44442         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44443         gl_waitqueue_t.
44444         (gl_rwlock_t): Update.
44445         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44446
44447 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44448
44449         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44450         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44451
44452 2008-10-17  Jim Meyering  <meyering@redhat.com>
44453
44454         ignore-value: new module
44455         * modules/ignore-value: New file.
44456         * lib/ignore-value.h: New file.
44457         * MODULES.html.sh (Compiler warning management): New section,
44458         just for this module.  More to come.
44459
44460 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44461
44462         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44463         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44464         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44465
44466 2008-10-16  Jim Meyering  <meyering@redhat.com>
44467
44468         openat-die.c: avoid 'no previous prototype' warning
44469         * lib/openat-die.c: Include "openat.h".
44470         Reported by Reuben Thomas <rrt@sc3d.org>.
44471
44472 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44473
44474         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44475         * lib/netdb.in.h: Fix typo.
44476         Reported by Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/netdb.in.h: Include sys/socket.h for platforms without
44479         netdb.h, to get structures like hostent on MinGW.
44480         * modules/netdb (Depends-on): Add sys_socket.
44481
44482 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44483
44484         * modules/netdb, modules/netdb-tests: New file.
44485         * m4/netdb_h.m4: New file.
44486         * lib/netdb.in.h: Add, currently just an empty file pending
44487         definitions.
44488         * tests/test-netdb.c: New file.
44489         * doc/posix-headers/netdb.texi: Mention that we replace it if
44490         needed.
44491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44492         netdb.
44493
44494 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44495
44496         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44497         with code.
44498
44499 2008-10-13  Bruno Haible  <bruno@clisp.org>
44500
44501         * lib/glthread/cond.c (glthread_cond_wait_func,
44502         glthread_cond_timedwait_func): Add a comment.
44503
44504 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44505
44506         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44507         * tests/test-select.c: Likewise,
44508
44509 2008-10-13  Bruno Haible  <bruno@clisp.org>
44510
44511         * lib/glthread/cond.c (glthread_cond_wait_func,
44512         glthread_cond_timedwait_func): Fix variable name.
44513         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44514
44515 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44516
44517         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44519         struct sockaddr.sa_len.
44520         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44521
44522 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44523
44524         * build-aux/pmccabe2html: Add css and css_url parameters.
44525
44526 2008-10-12  Bruno Haible  <bruno@clisp.org>
44527
44528         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44529         calling aclx_get.
44530         Reported by Rainer Tammer <tammer@tammer.net>.
44531
44532 2008-10-12  Bruno Haible  <bruno@clisp.org>
44533
44534         Use msvcrt aware primitives for creation/termination of Win32 threads.
44535         * lib/glthread/thread.c: Include <process.h>.
44536         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44537         (wrapper_func): Update signature.
44538         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44539
44540 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44541             Bruno Haible  <bruno@clisp.org>
44542
44543         Provide a Win32 implementation of the 'cond' module.
44544         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44545         * lib/glthread/cond.c (glthread_cond_init_func,
44546         glthread_cond_wait_func, glthread_cond_timedwait_func,
44547         glthread_cond_signal_func, glthread_cond_broadcast_func,
44548         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44549         * modules/cond (Dependencies): Add gettimeofday.
44550
44551 2008-10-11  Bruno Haible  <bruno@clisp.org>
44552
44553         Make sleep work on older versions of mingw.
44554         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44555         only whether it exists.
44556         * doc/posix-functions/sleep.texi: Mention the problem with older
44557         versions of mingw.
44558
44559 2008-10-11  Bruno Haible  <bruno@clisp.org>
44560
44561         New module 'shutdown'.
44562         * modules/shutdown: New file.
44563         * lib/sys_socket.in.h (shutdown): New declaration.
44564         * lib/winsock.c (shutdown): New function.
44565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44566         GNULIB_SHUTDOWN.
44567         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44568         * doc/posix-functions/shutdown.texi: Document the new module.
44569
44570 2008-10-11  Jim Meyering  <meyering@redhat.com>
44571
44572         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44573
44574 2008-10-11  Bruno Haible  <bruno@clisp.org>
44575
44576         New module 'fclose'.
44577         * modules/fclose: New file.
44578         * lib/stdio.in.h (fclose): New declaration.
44579         * lib/fclose.c: New file.
44580         * m4/fclose.m4: New file.
44581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44582         REPLACE_FCLOSE.
44583         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44584         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44585         REPLACE_FCLOSE.
44586         * modules/close (Depends-on): fclose.
44587         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44588
44589 2008-10-11  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44592         set errno and don't call _close.
44593
44594 2008-10-10  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44597         ACL, not afterwards. Fixes test failure on Cygwin.
44598
44599 2008-10-09  Ben Pfaff  <blp@gnu.org>
44600
44601         * build-aux/announce-gen: Fix gnulib version related part of usage
44602         message.  Die with a useful error message if no tarballs are
44603         found.
44604
44605 2008-10-10  Jim Meyering  <meyering@redhat.com>
44606
44607         bootstrap: use git's --depth=N option only if it's supported
44608         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44609         recognize the --depth option.  Reported by Pádraig Brady.
44610
44611 2008-10-09  Bruno Haible  <bruno@clisp.org>
44612
44613         New module 'ioctl'.
44614         * modules/ioctl: New file.
44615         * lib/sys_socket.in.h (ioctl): Remove declaration.
44616         * lib/winsock.c: Include <sys/ioctl.h>.
44617         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44618         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44619         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44620         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44621         * doc/posix-functions/ioctl.texi: Mention the new module.
44622
44623 2008-10-09  Bruno Haible  <bruno@clisp.org>
44624
44625         New module 'sys_ioctl'.
44626         * lib/sys_ioctl.in.h: New file.
44627         * m4/sys_ioctl_h.m4: New file.
44628         * modules/sys_ioctl: New file.
44629         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44630
44631 2008-10-09  Bruno Haible  <bruno@clisp.org>
44632
44633         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44634         * lib/winsock.c: Include <stdarg.h>.
44635         (rpl_ioctl): Change to second argument 'int' and then varargs.
44636
44637 2008-10-09  Bruno Haible  <bruno@clisp.org>
44638
44639         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44640         when the sys_socket module is present and the system has <winsock2.h>.
44641
44642 2008-10-09  Bruno Haible  <bruno@clisp.org>
44643
44644         * doc/posix-functions/close.texi: Mention module 'close' instead of
44645         module 'sys_socket'.
44646
44647 2008-10-09  Bruno Haible  <bruno@clisp.org>
44648
44649         * doc/glibc-headers/sys_ioctl.texi: New file.
44650         * doc/gnulib.texi: Include it.
44651
44652 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44653             Bruno Haible  <bruno@clisp.org>
44654
44655         Combine the two replacements of 'close'.
44656         * lib/sys_socket.in.h (close): Define to a reminder to include
44657         <unistd.h>.
44658         (_gl_close_fd_maybe_socket): New declaration.
44659         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44660         * lib/winsock.c (close): Remove undefinition.
44661         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44662         needed for the gnulib module 'close'.
44663         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44664         define to an error symbol or to a warning, if suitable.
44665         * lib/close.c: Include <sys/socket.h>.
44666         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44667         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44668         UNISTD_H_HAVE_WINSOCK2_H.
44669         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44671         UNISTD_H_HAVE_WINSOCK2_H.
44672         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44673         (configure.ac): Set a module indicator.
44674         (Makefile.am): Substitute GNULIB_CLOSE.
44675         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44676         * modules/poll-tests (Depends-on): Add close.
44677         * modules/select-tests (Depends-on): Likewise.
44678
44679 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44680             Bruno Haible  <bruno@clisp.org>
44681
44682         New module 'close'.
44683         * modules/close: New file.
44684         * lib/unistd.in.h (close): Move declaration out of the
44685         FCHDIR_REPLACEMENT scope.
44686         (_gl_unregister_fd): New declaration.
44687         * lib/close.c: New file.
44688         * lib/fchdir.c (rpl_close): Remove function.
44689         * m4/close.m4: New file.
44690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44691         close.
44692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44693         REPLACE_CLOSE.
44694         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44695         REPLACE_CLOSE.
44696         * modules/fchdir (Depends-on): Add close.
44697
44698 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44699             Bruno Haible  <bruno@clisp.org>
44700
44701         * lib/fcntl.in.h (open): Simplify conditionals.
44702         (_gl_register_fd): New declaration.
44703         * lib/fchdir.c (rpl_open): Remove function.
44704         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44705         also.
44706         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44708         open.
44709
44710 2008-10-09  Jim Meyering  <meyering@redhat.com>
44711
44712         GNUmakefile: use the more name-space-friendly "_version"
44713         * top/GNUmakefile (_dummy): Update.
44714         (_version): Rename from "version".
44715
44716 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44717             Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44720         rpl_close.
44721         (_gl_register_fd): New function, extracted from rpl_open.
44722         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44723         (rpl_open, rpl_opendir): Use _gl_register_fd.
44724
44725 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44726
44727         Fix organization of 'open' replacement.
44728         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44729         (gl_FUNC_OPEN): Use it.
44730         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44731
44732 2008-10-08  Bruno Haible  <bruno@clisp.org>
44733
44734         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44735
44736 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44737
44738         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44739         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44740         listen).
44741
44742 2008-10-08  Eric Blake  <ebb9@byu.net>
44743
44744         GNUmakefile: add 'make version' target
44745         * top/GNUmakefile (_curr-ver): Split version update rules...
44746         (version): ...into a target.
44747
44748 2008-10-07  Bruno Haible  <bruno@clisp.org>
44749
44750         Use a more portable replacement expression for -0.0L.
44751         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44752         instead of -0.0L. Fix m4 quotation.
44753
44754         * tests/test-signbit.c: Include <float.h>.
44755         (minus_zero): New variable.
44756         (test_signbitl): Use minus_zero instead of -zero.
44757         * modules/signbit-tests (Depends-on): Add float.
44758
44759         * tests/test-ceill.c: Include <float.h>.
44760         (zero): Remove variable.
44761         (minus_zero): New variable.
44762         (main): Use minus_zero instead of -zero.
44763         * modules/ceill-tests (Depends-on): Add float.
44764
44765         * tests/test-floorl.c: Include <float.h>.
44766         (zero): Remove variable.
44767         (minus_zero): New variable.
44768         (main): Use minus_zero instead of -zero.
44769         * modules/floorl-tests (Depends-on): Add float.
44770
44771         * tests/test-roundl.c: Include <float.h>.
44772         (zero): Remove variable.
44773         (minus_zero): New variable.
44774         (main): Use minus_zero instead of -zero.
44775         * modules/roundl-tests (Depends-on): Add float.
44776
44777         * tests/test-truncl.c: Include <float.h>.
44778         (zero): Remove variable.
44779         (minus_zero): New variable.
44780         (main): Use minus_zero instead of -zero.
44781         * modules/truncl-tests (Depends-on): Add float.
44782
44783         * tests/test-frexpl.c (zero): Remove variable.
44784         (minus_zero): New variable.
44785         (main): Use minus_zero instead of -zero.
44786         * modules/frexpl-tests (Depends-on): Add float.
44787
44788         * tests/test-isnan.c (zerol): Remove variable.
44789         (minus_zerol): New variable.
44790         (test_long_double): Use minus_zerol instead of -zerol.
44791         * modules/isnan-tests (Depends-on): Add float.
44792
44793         * tests/test-isnanl.h (zero): Remove variable.
44794         (minus_zero): New variable.
44795         (main): Use minus_zero instead of -zero.
44796         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44797         * modules/isnanl-tests (Depends-on): Add float.
44798
44799         * tests/test-ldexpl.c (zero): Remove variable.
44800         (minus_zero): New variable.
44801         (main): Use minus_zero instead of -zero.
44802         * modules/ldexpl-tests (Depends-on): Add float.
44803
44804         * tests/test-snprintf-posix.h (zerol): Remove variable.
44805         (minus_zerol): New variable.
44806         (test_function): Use minus_zerol instead of -zerol.
44807         * modules/snprintf-posix-tests (Depends-on): Add float.
44808         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44809
44810         * tests/test-sprintf-posix.h (zerol): Remove variable.
44811         (minus_zerol): New variable.
44812         (test_function): Use minus_zerol instead of -zerol.
44813         * modules/sprintf-posix-tests (Depends-on): Add float.
44814         * modules/vsprintf-posix-tests (Depends-on): Add float.
44815
44816         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44817         (minus_zerol): New variable.
44818         (test_function): Use minus_zerol instead of -zerol.
44819         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44820
44821         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44822         (minus_zerol): New variable.
44823         (test_function): Use minus_zerol instead of -zerol.
44824         * modules/vasprintf-posix-tests (Depends-on): Add float.
44825
44826 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44827
44828         * MODULES.html.sh (Support for building documentation): Mention
44829         pmccabe2html.  Sort entries.
44830
44831         Add pmccabe2html module, from gnupdf.
44832         * build-aux/pmccabe.css: New file.
44833         * build-aux/pmccabe2html: New file.
44834         * m4/pmccabe2html.m4: New file.
44835         * modules/pmccabe2html: New file.
44836
44837 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44838
44839         flock: new module
44840         * MODULES.html.sh: Add to list of modules.
44841         * lib/flock.c: flock implementation for Windows and Unix systems
44842         which have fcntl.
44843         * doc/glibc-functions/flock.texi: Update documentation.
44844         * lib/sys_file.in.h: <sys/file.h> header file.
44845         * m4/flock.m4: M4 macros.
44846         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44847         * modules/flock: flock module.
44848         * modules/flock-tests: flock tests module.
44849         * modules/sys_file: sys/file.h module.
44850         * tests/test-flock.c: test suite for flock.
44851
44852 2008-10-06  Jim Meyering  <meyering@redhat.com>
44853
44854         bootstrap: check for LT_INIT more portably still ;-)
44855         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44856         Spotted by Bruno Haible.
44857
44858 2008-10-06  Eric Blake  <ebb9@byu.net>
44859
44860         test-signbit: avoid tripping Irix cc bug on -0.0L
44861         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44862         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44863         entire testsuite consistent and avoids an Irix 6.2 bug.
44864
44865 2008-10-05  Bruno Haible  <bruno@clisp.org>
44866             Jim Meyering  <jim@meyering.net>
44867
44868         Add an option for ignoring EPIPE during close_stdout.
44869         * lib/closeout.h: Include <stdbool.h>.
44870         (close_stdout_set_ignore_EPIPE): New declaration.
44871         * lib/closeout.c: Include <stdbool.h>.
44872         (ignore_EPIPE): New variable.
44873         (close_stdout_set_ignore_EPIPE): New function.
44874         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44875         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44876         failure.
44877         * modules/closeout (Depends-on): Add stdbool.
44878
44879 2008-10-05  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/accept: New file.
44882         * modules/bind: New file.
44883         * modules/connect: New file.
44884         * modules/getpeername: New file.
44885         * modules/getsockname: New file.
44886         * modules/getsockopt: New file.
44887         * modules/listen: New file.
44888         * modules/recv: New file.
44889         * modules/recvfrom: New file.
44890         * modules/send: New file.
44891         * modules/sendto: New file.
44892         * modules/setsockopt: New file.
44893         * modules/socket: New file.
44894         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44895         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44896         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44897         the particular module is requested. Add a link warning when the
44898         particular module is not requested.
44899         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44900         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44901         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44902         the particular module is requested.
44903         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44904         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44905         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44906         * modules/sys_socket (Depends-on): Add link-warning.
44907         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44908         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44909         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44910         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44911         GL_LINK_WARNING.
44912         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44913         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44914         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44915         * doc/posix-functions/getpeername.texi: Mention the new module
44916         'getpeername'.
44917         * doc/posix-functions/getsockname.texi: Mention the new module
44918         'getsockname'.
44919         * doc/posix-functions/getsockopt.texi: Mention the new module
44920         'getsockopt'.
44921         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44922         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44923         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44924         * doc/posix-functions/send.texi: Mention the new module 'send'.
44925         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44926         * doc/posix-functions/setsockopt.texi: Mention the new module
44927         'setsockopt'.
44928         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44929         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44930         listen, connect, accept.
44931         * modules/select-tests (Depends-on): Likewise.
44932
44933 2008-10-05  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/winsock.c (strerror): Remove unused #undef.
44936         (rpl_close): Remove unused local variable.
44937
44938         * modules/sys_socket (Depends-on); Add errno.
44939
44940 2008-10-05  Bruno Haible  <bruno@clisp.org>
44941
44942         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44943         (select): Add a link warning when the 'select' module is not used.
44944         * modules/sys_select (Depends-on): Add link-warning.
44945         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44946         Suggested by Paolo Bonzini.
44947
44948 2008-10-05  Jim Meyering  <meyering@redhat.com>
44949
44950         bootstrap: check for LT_INIT more portably
44951         * build-aux/bootstrap: Avoid using grep -E, since it's not
44952         portable enough.  Suggestion from Bruno Haible.
44953
44954 2008-10-05  Bruno Haible  <bruno@clisp.org>
44955
44956         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44957         as being fixed by gnulib.
44958
44959 2008-10-05  Bruno Haible  <bruno@clisp.org>
44960
44961         * modules/select-tests: New file, mostly copied from
44962         modules/sys_select-tests.
44963         * tests/test-select.c: New file, mostly copied from
44964         tests/test-sys_select.c.
44965         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44966         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44967         (Makefile.am): Remove test_sys_select_LDADD.
44968
44969         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44970         to an undefined symbol, for an error message.
44971         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44972         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44973         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44974         winsock-select.c here.
44975         * modules/sys_select (Files): Remove lib/winsock-select.c.
44976         (Depends-on): Remove alloca.
44977         (Makefile.am): Substitute GNULIB_SELECT.
44978         * modules/select: New file.
44979         * doc/posix-functions/select.texi: Update.
44980
44981 2008-10-05  Bruno Haible  <bruno@clisp.org>
44982
44983         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44984         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44985         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44986         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44987         getdtablesize.
44988         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44989         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44990
44991 2008-10-05  Bruno Haible  <bruno@clisp.org>
44992
44993         * modules/getdtablesize-tests: New file.
44994         * tests/test-getdtablesize.c: New file.
44995
44996         New module 'getdtablesize'.
44997         * lib/unistd.in.h (getdtablesize): New declaration.
44998         * lib/getdtablesize.c: New file.
44999         * m4/getdtablesize.m4: New file.
45000         * modules/getdtablesize: New file.
45001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45002         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45003         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45004         HAVE_GETDTABLESIZE.
45005         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45006
45007 2008-10-05  Bruno Haible  <bruno@clisp.org>
45008
45009         * modules/sched (Makefile.am): Fix typo.
45010         Reported by Simon Josefsson.
45011
45012 2008-10-05  Jim Meyering  <meyering@redhat.com>
45013
45014         bootstrap: check for LT_INIT, too
45015         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45016         are deprecated.  Suggestion from Ralf Wildenhues.
45017
45018 2008-10-05  Bruno Haible  <bruno@clisp.org>
45019
45020         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45021         overriding them by ours.
45022         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45023
45024 2008-10-05  Jim Meyering  <meyering@redhat.com>
45025
45026         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45027         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45028         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45029
45030 2008-10-04  Bruno Haible  <bruno@clisp.org>
45031
45032         * modules/dup2 (License): Change to LGPLv2+.
45033         * modules/sleep (License): Likewise.
45034         * modules/perror (License): Likewise.
45035         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45036         Blake.
45037         * modules/signal (License): Likewise.
45038         * modules/sigprocmask (License): Likewise.
45039         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45040         Meyering.
45041
45042 2008-10-04  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45045         Reported by Rainer Tammer <tammer@tammer.net>.
45046
45047 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45048             Bruno Haible  <bruno@clisp.org>
45049
45050         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45051         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45052         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45053
45054 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45055
45056         filevercmp: new module
45057         * lib/filevercmp.h: New function filevercmp comparing version strings.
45058         * lib/filevercmp.c: Implementation of filevercmp function.
45059         * modules/filevercmp: Module metadata.
45060         * tests/test-filevercmp.c: Unit test for new module.
45061         * modules/filevercmp-tests: Unit test metadata.
45062         * MODULES.html.sh: Add filevercmp module.
45063
45064 2008-10-03  Bruno Haible  <bruno@clisp.org>
45065
45066         * lib/c-ctype.h: Add comment.
45067         Reported by Jim Meyering.
45068
45069 2008-10-02  Bruno Haible  <bruno@clisp.org>
45070
45071         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45072
45073 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45074
45075         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45076         name of bootstrap.conf accordingly.
45077
45078 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45079
45080         * build-aux/bootstrap: Install git-merge-changelog configuration
45081         items into .gitconfig if needed.
45082
45083 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45084
45085         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45086         git repository, and initialize/update it accordingly.
45087
45088 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45089
45090         * modules/fsync-tests: New file.
45091         * tests/test-fsync.c: New file.
45092
45093         New module 'fsync'.
45094         * lib/fsync.c: New file.
45095         * m4/fsync.m4: New file.
45096         * modules/fsync: New file.
45097         * lib/unistd.in.h (fsync): New declaration.
45098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45099         GNULIB_FSYNC and HAVE_FSYNC.
45100         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45101         * MODULES.html.sh (posix_functions): Add fsync.
45102         * doc/posix-functions/fsync.texi: Mention the new module.
45103
45104 2008-10-02  Jim Meyering  <meyering@redhat.com>
45105
45106         fts.c: sync with similar code from coreutils' remove.c
45107         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45108         Guard also with "#if defined __linux__", since for now at least,
45109         this code is Linux-kernel-specific.
45110
45111 2008-10-02  Jim Meyering  <meyering@redhat.com>
45112
45113         fts: bug fixes
45114         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45115         Include <sys/vfs.h>, not <sys/statfs.h>.
45116
45117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45118         Include <sys/vfs.h>, not <sys/statfs.h>.
45119
45120 2008-10-01  Bruno Haible  <bruno@clisp.org>
45121
45122         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45124         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45125         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45126         * doc/posix-functions/posix_spawnp.texi: Likewise.
45127         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45128         whether posix_spawn actually works.
45129         * m4/pipe.m4 (gl_PIPE): Likewise.
45130         * modules/execute (Files): Add m4/posix_spawn.m4.
45131         * modules/pipe (Files): Add m4/posix_spawn.m4.
45132         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45133
45134 2008-10-01  Jim Meyering  <meyering@redhat.com>
45135
45136         remove trailing spaces
45137         * NEWS: Likewise.
45138         * lib/poll.c (poll): Likewise.
45139         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45140         * lib/winsock.c (rpl_close): Likewise.
45141         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45142         * modules/yield: Likewise.
45143         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45144         * tests/test-sys_select.c (connect_to_socket): Likewise.
45145
45146         fts.c: adjust a new interface to be more generally useful
45147         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45148         (fts_build): Adjust caller.
45149
45150 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45151
45152         * modules/cond-tests: New file.
45153         * tests/test-cond.c: New file.
45154
45155 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45156             Bruno Haible  <bruno@clisp.org>
45157
45158         * modules/cond (Dependencies): Add errno, time.
45159         * lib/glthread/cond.h: Include <time.h>.
45160         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45161         across platforms.
45162
45163 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45164             Bruno Haible  <bruno@clisp.org>
45165
45166         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45167
45168 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45169             Bruno Haible  <bruno@clisp.org>
45170
45171         * modules/tls-tests (Depends-on): Add thread, yield.
45172         (configure.ac): Remove all checks.
45173         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45174         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45175         gl_thread_self): Remove definitions. Include glthread/thread.h and
45176         glthread/yield.h instead.
45177         (test_tls): Pass an additional NULL argument to gl_thread_join.
45178
45179 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45180             Bruno Haible  <bruno@clisp.org>
45181
45182         * modules/lock-tests (Depends-on): Add thread, yield.
45183         (configure.ac): Remove all checks.
45184         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45185         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45186         gl_thread_self): Remove definitions. Include glthread/thread.h and
45187         glthread/yield.h instead.
45188         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45189         additional NULL argument to gl_thread_join.
45190
45191 2008-09-30  Bruno Haible  <bruno@clisp.org>
45192
45193         Fix the Win32 implementation of the 'thread' module.
45194         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45195         pointer type.
45196         (gl_thread_self): Invoke gl_thread_self_func.
45197         (gl_thread_self_func): New declaration.
45198         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45199         (do_init_self_key, init_self_key): New functions.
45200         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45201         Remove some fields.
45202         (running_threads, running_lock): Remove variables.
45203         (get_current_thread_handle): New function.
45204         (gl_thread_self_func, wrapper_func, glthread_create_func,
45205         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45206         simplified.
45207
45208 2008-09-30  Bruno Haible  <bruno@clisp.org>
45209
45210         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45211         files.
45212
45213 2008-09-30  Jim Meyering  <meyering@redhat.com>
45214
45215         fts.m4: correct the test for statfs.f_type
45216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45217         when checking for statfs.f_type.
45218
45219 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45220
45221         tests: avoid some compiler warnings
45222         * tests/test-memchr.c (main): Pass NULL indirectly.
45223         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45224
45225 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45226
45227         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45228         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45229         exactly specified dayshifts.
45230         (dayshift): New rule.
45231         (rel): Add dayshift.
45232         (relative_time_table) [tomorrow, yesterday, today, now]:
45233         Use tDAY_SHIFT in place of tDAY_UNIT.
45234         * tests/test-getdate.c: Add tests for now-disallowed countable
45235         dayshifts, e.g., "4 yesterday ago".
45236
45237 2008-09-29  Bruno Haible  <bruno@clisp.org>
45238
45239         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45240         * tests/test-posix_spawn1.in.sh: Renamed from
45241         tests/test-posix_spawn.in.sh.
45242         * tests/test-posix_spawn2.c: New file.
45243         * tests/test-posix_spawn2.in.sh: New file.
45244         * modules/posix_spawnp-tests (Files): Update.
45245         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45246
45247 2008-09-29  Bruno Haible  <bruno@clisp.org>
45248
45249         Propagate effects of putenv/setenv/unsetenv to child processes.
45250         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45251         * lib/pipe.c (create_pipe): Likewise.
45252
45253 2008-09-29  Bruno Haible  <bruno@clisp.org>
45254
45255         Enable use of shell scripts as executables in mingw.
45256         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45257         run the program as a shell script.
45258         * lib/pipe.c (create_pipe): Likewise.
45259         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45260         resulting array.
45261
45262 2008-09-29  Eric Blake  <ebb9@byu.net>
45263
45264         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45265
45266 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45267
45268         * doc/posix-functions/accept.texi: Update mingw problems.
45269         * doc/posix-functions/bind.texi: Update mingw problems.
45270         * doc/posix-functions/close.texi: Update mingw problems.
45271         * doc/posix-functions/connect.texi: Update mingw problems.
45272         * doc/posix-functions/getpeername.texi: Update mingw problems.
45273         * doc/posix-functions/getsockname.texi: Update mingw problems.
45274         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45275         * doc/posix-functions/ioctl.texi: Update mingw problems.
45276         * doc/posix-functions/listen.texi: Update mingw problems.
45277         * doc/posix-functions/recv.texi: Update mingw problems.
45278         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45279         * doc/posix-functions/select.texi: Update mingw problems.
45280         * doc/posix-functions/send.texi: Update mingw problems.
45281         * doc/posix-functions/sendto.texi: Update mingw problems.
45282         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45283         * doc/posix-functions/socket.texi: Update mingw problems.
45284
45285 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45286             Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/sys_select.in.h: Include sys/time.h.
45289         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45290         * modules/sys_select: Depend on sys_time.
45291         * tests/test-sys_select.c: Test that sys/select.h defines struct
45292         timeval fully.
45293
45294 2008-09-29  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45297         * lib/sys_select.in.h: Likewise.
45298
45299 2008-09-29  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45302
45303 2008-09-29  Bruno Haible  <bruno@clisp.org>
45304
45305         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45306         Set LIBSOCKET instead of augmenting LIBS.
45307         * modules/sockets (Link): New section.
45308         * modules/sockets-tests (test_sockets_LDADD): New variable.
45309         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45310         * modules/poll-tests (test_poll_LDADD): New variable.
45311         * NEWS: Document the change.
45312
45313 2008-09-29  Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45316         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45317         ARPA_INET_H directly.
45318         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45319
45320 2008-09-28  Bruno Haible  <bruno@clisp.org>
45321
45322         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45323         from gl_HEADER_SYS_SOCKET.
45324         (gl_HEADER_SYS_SOCKET): Invoke it.
45325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45326
45327 2008-09-28  Bruno Haible  <bruno@clisp.org>
45328
45329         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45330         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45331         Needed on OSF/1 4.0.
45332
45333 2008-09-28  Bruno Haible  <bruno@clisp.org>
45334
45335         Override open more carefully.
45336         * lib/open.c (orig_open): New function.
45337         (rpl_open): Use orig_open instead of open.
45338         * lib/fcntl.in.h: Add special invocation convention.
45339         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45340         (gl_FUNC_OPEN): Invoke it.
45341
45342         Override freopen more carefully.
45343         * lib/freopen.c (orig_freopen): New function.
45344         (rpl_freopen): Use orig_freopen instead of freopen.
45345         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45346         (gl_FUNC_FREOPEN): Invoke it.
45347
45348         Override fopen more carefully.
45349         * lib/fopen.c (orig_fopen): New function.
45350         (rpl_fopen): Use orig_fopen instead of fopen.
45351         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45352         (gl_FUNC_FOPEN): Invoke it.
45353         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45354
45355 2008-09-28  Bruno Haible  <bruno@clisp.org>
45356
45357         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45358         SIGPIPE.
45359
45360 2008-09-28  Bruno Haible  <bruno@clisp.org>
45361
45362         * tests/test-sigaction.c (handler, main): Disable the check whether
45363         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45364         glibc systems with LinuxThreads.
45365
45366 2008-09-28  Bruno Haible  <bruno@clisp.org>
45367
45368         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45369
45370         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45371         with AIX xlc.
45372         * lib/fcntl.in.h (open): Likewise.
45373         Reported by Rainer Tammer <tammer@tammer.net>.
45374
45375 2008-09-28  Bruno Haible  <bruno@clisp.org>
45376
45377         * modules/posix_spawnp-tests: New file.
45378         * tests/test-posix_spawn.c: New file.
45379         * tests/test-posix_spawn.in.sh: New file.
45380
45381         New module 'posix_spawnp'.
45382         * modules/posix_spawnp: New file.
45383         * lib/spawnp.c: New file, from GNU libc with modifications.
45384         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45385
45386         New module 'posix_spawn'.
45387         * modules/posix_spawn: New file.
45388         * lib/spawn.c: New file, from GNU libc with modifications.
45389         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45390
45391         New module 'posix_spawnattr_destroy'.
45392         * modules/posix_spawnattr_destroy: New file.
45393         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45394         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45395         module.
45396
45397         New module 'posix_spawnattr_setsigmask'.
45398         * modules/posix_spawnattr_setsigmask: New file.
45399         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45400         modifications.
45401         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45402         new module.
45403
45404         New module 'posix_spawnattr_getsigmask'.
45405         * modules/posix_spawnattr_getsigmask: New file.
45406         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45407         modifications.
45408         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45409         new module.
45410
45411         New module 'posix_spawnattr_setsigdefault'.
45412         * modules/posix_spawnattr_setsigdefault: New file.
45413         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45414         modifications.
45415         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45416         new module.
45417
45418         New module 'posix_spawnattr_getsigdefault'.
45419         * modules/posix_spawnattr_getsigdefault: New file.
45420         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45421         modifications.
45422         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45423         new module.
45424
45425         New module 'posix_spawnattr_setschedpolicy'.
45426         * modules/posix_spawnattr_setschedpolicy: New file.
45427         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45428         modifications.
45429         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45430         new module.
45431
45432         New module 'posix_spawnattr_getschedpolicy'.
45433         * modules/posix_spawnattr_getschedpolicy: New file.
45434         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45435         modifications.
45436         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45437         new module.
45438
45439         New module 'posix_spawnattr_setschedparam'.
45440         * modules/posix_spawnattr_setschedparam: New file.
45441         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45442         modifications.
45443         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45444         new module.
45445
45446         New module 'posix_spawnattr_getschedparam'.
45447         * modules/posix_spawnattr_getschedparam: New file.
45448         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45449         modifications.
45450         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45451         new module.
45452
45453         New module 'posix_spawnattr_setpgroup'.
45454         * modules/posix_spawnattr_setpgroup: New file.
45455         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45456         modifications.
45457         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45458         module.
45459
45460         New module 'posix_spawnattr_getpgroup'.
45461         * modules/posix_spawnattr_getpgroup: New file.
45462         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45463         modifications.
45464         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45465         module.
45466
45467         New module 'posix_spawnattr_setflags'.
45468         * modules/posix_spawnattr_setflags: New file.
45469         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45470         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45471         module.
45472
45473         New module 'posix_spawnattr_getflags'.
45474         * modules/posix_spawnattr_getflags: New file.
45475         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45476         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45477         module.
45478
45479         New module 'posix_spawnattr_init'.
45480         * modules/posix_spawnattr_init: New file.
45481         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45482         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45483         module.
45484
45485         New module 'posix_spawn_file_actions_destroy'.
45486         * modules/posix_spawn_file_actions_destroy: New file.
45487         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45488         modifications.
45489         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45490         the new module.
45491
45492         New module 'posix_spawn_file_actions_addopen'.
45493         * modules/posix_spawn_file_actions_addopen: New file.
45494         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45495         modifications.
45496         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45497         the new module.
45498
45499         New module 'posix_spawn_file_actions_adddup2'.
45500         * modules/posix_spawn_file_actions_adddup2: New file.
45501         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45502         modifications.
45503         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45504         the new module.
45505
45506         New module 'posix_spawn_file_actions_addclose'.
45507         * modules/posix_spawn_file_actions_addclose: New file.
45508         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45509         modifications.
45510         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45511         the new module.
45512
45513         New module 'posix_spawn_file_actions_init'.
45514         * modules/posix_spawn_file_actions_init: New file.
45515         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45516         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45517         new module.
45518
45519         New module 'posix_spawn-internal'.
45520         * modules/posix_spawn-internal: New file.
45521         * lib/spawn_int.h: New file, from GNU libc with modifications.
45522         * lib/spawni.c: New file, from GNU libc with modifications.
45523         * m4/posix_spawn.m4: New file.
45524
45525         New module 'spawn'.
45526         * modules/spawn: New file.
45527         * lib/spawn.in.h: New file, from GNU libc with modifications.
45528         * m4/spawn_h.m4: New file.
45529         * doc/posix-headers/spawn.texi: Mention the new module.
45530
45531 2008-09-28  Bruno Haible  <bruno@clisp.org>
45532
45533         * modules/sched-tests: New file.
45534         * tests/test-sched.c: New file.
45535
45536         New module 'sched'.
45537         * modules/sched: New file.
45538         * lib/sched.in.h: New file.
45539         * m4/sched_h.m4: New file.
45540         * doc/posix-headers/sched.texi: Mention the new module.
45541
45542 2008-09-27  Eric Blake  <ebb9@byu.net>
45543
45544         Fix previous patch, and tweak references to $0.
45545         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45546         (func_version, func_gnulib_dir): Don't call this program
45547         gnulib-tool.
45548         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45549         with using $0 in function.
45550         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45551         (func_fatal_error): Reuse the name the user invoked us with.
45552
45553 2008-09-27  Bruno Haible  <bruno@clisp.org>
45554
45555         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45556         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45557         (gl_ICONV_H): Not here.
45558         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45559         instead of assigning ICONV_H directly.
45560
45561         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45563         WCHAR_H directly.
45564
45565 2008-09-27  Bruno Haible  <bruno@clisp.org>
45566
45567         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45568         * modules/arpa_inet (Depends-on): Add link-warning.
45569         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45570         * modules/unistd (Makefile.am): Likewise.
45571
45572 2008-09-26  Bruno Haible  <bruno@clisp.org>
45573
45574         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45575         variables.
45576         (func_version): Essentially copied from gnulib-tool.
45577         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45578         func_readlink): Copied from gnulib-tool.
45579
45580 2008-09-26  Bruno Haible  <bruno@clisp.org>
45581
45582         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45583         invoking git-version-gen.
45584
45585 2008-09-26  Bruno Haible  <bruno@clisp.org>
45586
45587         * posix-modules: Update to directory names changed on 2008-01-19.
45588         Remove commas in output before splitting into words. No more need to
45589         avoid 'ftruncate' since 2007-02-19.
45590
45591 2008-09-26  Bruno Haible  <bruno@clisp.org>
45592
45593         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45594
45595 2008-09-26  Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45598         * modules/fwriteerror (Depends-on): Add errno.
45599
45600 2008-09-26  Bruno Haible  <bruno@clisp.org>
45601
45602         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45603         * tests/test-vc-list-files-cvs.sh: Likewise.
45604
45605 2008-09-26  Bruno Haible  <bruno@clisp.org>
45606
45607         * doc/posix-headers/sys_resource.texi: Reorder items.
45608
45609 2008-09-26  Jim Meyering  <meyering@redhat.com>
45610
45611         fts: tweak inode comparison function
45612         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45613         inode numbers, as documented.
45614
45615         fts: sort dirent entries on inode number before traversing
45616         This avoids a quadratic, seek-related performance penalty when
45617         operating on a directory containing many entries (measurable at 10k;
45618         3.5 hours at 2 million entries with a cold cache) on certain types
45619         of file systems, including ext3 and ext4, but not tmpfs.
45620         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45621         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45622         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45623         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45624         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45625         (fts_build): Set the stat.st_ino member from D_INO.
45626         If it is likely to be useful, sort dirent entries on inode number.
45627
45628         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45629         and the struct statfs.f_type member.
45630         * modules/fts (Depends-on): Add d-ino.
45631
45632 2008-09-26  Bruno Haible  <bruno@clisp.org>
45633
45634         * modules/sigpipe-die (Depends-on): Add sigpipe.
45635
45636         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45637         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45638         and GNULIB_STDIO_H_SIGPIPE are set.
45639         * lib/stdio-write.c: New file.
45640         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45641         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45642         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45643         REPLACE_STDIO_WRITE_FUNCS.
45644         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45645         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45646         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45647         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45648         * modules/stdio (Files): Add lib/stdio-write.c.
45649         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45650         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45651         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45652         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45653         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45654         REPLACE_FPRINTF_POSIX.
45655         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45656         REPLACE_PRINTF_POSIX.
45657         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45658         REPLACE_VFPRINTF_POSIX.
45659         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45660         REPLACE_VPRINTF_POSIX.
45661         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45662         SIGPIPE issue.
45663         * doc/posix-functions/fputc.texi: Likewise.
45664         * doc/posix-functions/fputs.texi: Likewise.
45665         * doc/posix-functions/fwrite.texi: Likewise.
45666         * doc/posix-functions/printf.texi: Likewise.
45667         * doc/posix-functions/putc.texi: Likewise.
45668         * doc/posix-functions/putchar.texi: Likewise.
45669         * doc/posix-functions/puts.texi: Likewise.
45670         * doc/posix-functions/vfprintf.texi: Likewise.
45671         * doc/posix-functions/vprintf.texi: Likewise.
45672
45673         * modules/safe-write (Depends-on): Add write.
45674
45675         * modules/sigpipe-tests: New file.
45676         * tests/test-sigpipe.c: New file.
45677         * tests/test-sigpipe.sh: New file.
45678
45679         * modules/write: New file.
45680         * lib/unistd.in.h: Include <sys/types.h>.
45681         (write): New declaration.
45682         * lib/write.c: New file.
45683         * m4/write.m4: New file.
45684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45685         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45686         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45687         GNULIB_WRITE, REPLACE_WRITE.
45688         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45689         and the SIGPIPE issue.
45690
45691         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45692         (raise): New declaration.
45693         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45694         (ext_signal): New function.
45695         (rpl_raise): New function.
45696         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45697         GNULIB_SIGNAL_H_SIGPIPE.
45698         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45699         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45700
45701         * modules/sigpipe: New file.
45702         * m4/sigpipe.m4: New file.
45703
45704 2008-09-25  Derek Price  <derek@ximbiot.com>
45705             Bruno Haible  <bruno@clisp.org>
45706
45707         * gnulib-tool (func_import): Report all license incompatibilities, not
45708         just the first one.
45709
45710 2008-09-25  Bruno Haible  <bruno@clisp.org>
45711
45712         * gnulib-tool (func_import): When computing the edits, consider not
45713         only the Makefile.ams that exist but also those that will be generated.
45714
45715 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45716
45717         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45718         fixes gnulib-tool --test warning about duplicate dependency.
45719
45720 2008-09-25  Bruno Haible  <bruno@clisp.org>
45721
45722         * gnulib-tool: Don't ask the user to perform edits in the generated
45723         Makefile.ams.
45724         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45725         apply to the Makefile.am being generated.
45726         (func_emit_tests_Makefile_am): Execute edits that apply to the
45727         Makefile.am being generated.
45728         (func_import): Setup list of Makefile.am edits before emitting the
45729         Makefile.ams, not at the end.
45730         (func_create_testdir): Update.
45731         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45732
45733 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45734
45735         * gnulib-tool (func_import): Store the --tests-base option in the
45736         comment in gnulib-cache.m4.
45737
45738 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45739
45740         * NEWS: Document increased portability that sys_select now provides.
45741
45742         * lib/sys_select.in.h: Install select wrapper.
45743         * lib/sys_socket.in.h: Use more descriptive name when there is no
45744         select wrapper.
45745         * lib/winsock-select.c: New.
45746         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45747         Require gl_HEADER_SYS_SOCKET.
45748         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45749         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45750         * tests/test-sys_select.c: Add functional tests.
45751
45752 2008-09-24  Eric Blake  <ebb9@byu.net>
45753
45754         open, fopen: close fd leak in last patch
45755         * lib/open.c (rpl_open): Close fd before returning error.
45756         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45757         * doc/posix-functions/open.texi (open): Document that Irix also
45758         has the bug.
45759         * doc/posix-functions/fopen.texi (fopen): Likewise.
45760         Reported by Paolo Bonzini.
45761
45762 2008-09-24  Bruno Haible  <bruno@clisp.org>
45763
45764         Ensure that a filename ending in a slash cannot be used to access a
45765         non-directory.
45766         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45767         to check whether it's really a directory.
45768         * lib/fopen.c: Include fcntl.h, unistd.h.
45769         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45770         and fdopen().
45771         * modules/fopen (Depends-on): Add unistd.
45772         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45773         * tests/test-fopen.c (main): Likewise.
45774         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45775         * doc/posix-functions/fopen.texi: Likewise.
45776         Reported by Eric Blake.
45777
45778 2008-09-23  Eric Blake  <ebb9@byu.net>
45779
45780         c-stack: avoid compiler optimizations when provoking overflow
45781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45782         recursion harder to optimize, to ensure a stack overflow occurs.
45783         * tests/test-c-stack.c (recurse): Likewise.
45784         Borrowed from libsigsegv.
45785
45786         c-stack: work around Irix sigaltstack bug
45787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45788         whether sigaltstack uses wrong end of stack_t (copied in part from
45789         libsigsegv).
45790         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45791         Irix bug, without requiring an over-allocation.
45792         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45793         bug.
45794
45795         fopen: document mingw bug on directories
45796         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45797         not allowing a stream visiting a directory, even though reading
45798         from such a stream is not portable.
45799
45800 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45801
45802         * lib/poll.c: Rewrite.
45803         * modules/poll: Depend on alloca.
45804
45805 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45806
45807         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45808         instead define prototypes for a full set of wrappers.  Ensure
45809         that Cygwin does not use the compatibility code, which is only
45810         for MinGW.
45811         * lib/winsock.c: New.
45812         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45813         * modules/sys_socket: Add lib/winsock.c.
45814
45815         * modules/poll-tests: Add errno and perror.
45816         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45817
45818 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45819
45820         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45821
45822 2008-09-23  Bruno Haible  <bruno@clisp.org>
45823
45824         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45825         * doc/glibc-functions/*: Likewise.
45826
45827 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45828
45829         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45830         success.
45831
45832 2008-09-22  Eric Blake  <ebb9@byu.net>
45833             Bruno Haible  <bruno@clisp.org>
45834
45835         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45836         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45837         supply %A but mishandle pseudo-NaN.
45838         Reported by Simon Josefsson.
45839
45840 2008-09-21  Bruno Haible  <bruno@clisp.org>
45841
45842         * tests/test-lock.c (main): Tweak skip message.
45843         * tests/test-tls.c (main): Likewise.
45844
45845 2008-09-21  Bruno Haible  <bruno@clisp.org>
45846
45847         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45848         whether 'struct sigaction' has sa_sigaction here...
45849         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45850         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45851
45852 2008-09-21  Bruno Haible  <bruno@clisp.org>
45853
45854         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45855         section.
45856         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45857         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45858         the new section.
45859         (Support for obsolete systems lacking POSIX:2001): New section.
45860         (String handling <string.h>): Move strdup to the new section.
45861         Suggested by Simon Josefsson and Paolo Bonzini.
45862
45863 2008-09-21  Bruno Haible  <bruno@clisp.org>
45864
45865         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45866         exponents in %e and %g results on 'long double'. Needed for mingw's
45867         improved *printf functions.
45868         * tests/test-vasprintf-posix.c (test_function): Likewise.
45869         * tests/test-snprintf-posix.h (test_function): Likewise.
45870         * tests/test-sprintf-posix.h (test_function): Likewise.
45871         Reported by Eric Blake.
45872
45873 2008-09-21  Bruno Haible  <bruno@clisp.org>
45874
45875         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45876         * tests/test-sprintf-posix.h (test_function): Likewise.
45877
45878 2008-09-21  Bruno Haible  <bruno@clisp.org>
45879
45880         * modules/getpass (Depends-on): Add strdup-posix.
45881
45882         New module 'strdup-posix'.
45883         * modules/strdup-posix: New file.
45884         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45885         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45887         REPLACE_STRDUP.
45888         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45889         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45891         strdup-posix.
45892
45893         * modules/strdup (Depends-on): Remove malloc-posix.
45894
45895 2008-09-20  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45898         Wildenhues.
45899
45900 2008-09-20  Bruno Haible  <bruno@clisp.org>
45901
45902         Ensure that wint_t gets defined on IRIX 5.3.
45903         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45904         * lib/wctype.in.h (wint_t): Likewise.
45905         (__wctype_wint_t): Remove type.
45906         (isw*): Use wint_t instead of __wctype_wint_t.
45907         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45908         * modules/wchar (Files): Add m4/wint_t.m4.
45909         (Makefile.am): Substitute HAVE_WINT_T.
45910         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45911         * tests/test-wctype.c: Check that wint_t is defined.
45912         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45913         * doc/posix-headers/wctype.texi: Likewise.
45914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45915
45916 2008-09-18  Bruno Haible  <bruno@clisp.org>
45917
45918         * gnulib-tool (func_exit): Update comment.
45919
45920 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45921
45922         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45923         assumes strdup exists and does not depend on strdup to return
45924         ENOMEM on out of memory conditions.
45925
45926 2008-09-18  Bruno Haible  <bruno@clisp.org>
45927
45928         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45929         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45930         digits for the exponent.
45931
45932 2008-09-18  Jim Meyering  <meyering@redhat.com>
45933             Bruno Haible  <bruno@clisp.org>
45934
45935         * lib/vasnprintf.c (decimal_point_char): Define also if
45936         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45937
45938 2008-09-16  Bruno Haible  <bruno@clisp.org>
45939         and Eric Blake  <ebb9@byu.net>
45940
45941         vasnprintf: support Irix 5.3
45942         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45943         that mishandle long double infinity.
45944         Reported by Tom G. Christensen.
45945
45946 2008-09-16  Bruno Haible  <bruno@clisp.org>
45947
45948         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45949         Solaris 9.
45950         * doc/glibc-functions/alphasort.texi: Likewise.
45951         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45952
45953 2008-09-16  Jim Meyering  <meyering@redhat.com>
45954
45955         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45956         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45957         a umask modification leak out of a subshell.  Otherwise, the
45958         opensolaris /bin/sh would be accepted and thus cause unwarranted
45959         failures in the coreutils test suite.
45960
45961 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45962
45963         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45964         to succeed.
45965
45966 2008-09-16  Jim Meyering  <meyering@redhat.com>
45967
45968         avoid spurious test failure when library is built without ACL support
45969         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45970         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45971         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45972         * tests/test-copy-acl.sh: Likewise.
45973
45974 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45975
45976         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45977         based on character occurrence counts.
45978
45979 2008-09-15  Eric Blake  <ebb9@byu.net>
45980
45981         tests: avoid some compiler warnings
45982         * tests/test-memchr.c (main): Pass NULL indirectly.
45983         * tests/test-closein.c (main): Avoid unused variable.
45984
45985 2008-09-15  Bruno Haible  <bruno@clisp.org>
45986
45987         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45988         are missing on OpenBSD 4.0 individually.
45989         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45990
45991 2008-09-15  Bruno Haible  <bruno@clisp.org>
45992
45993         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45994         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45995         * doc/posix-functions/perror.texi: Likewise.
45996         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45997         is missing.
45998         Reported by Eric Blake.
45999
46000         * lib/errno.in.h: Use replacement values >= 2000.
46001         Reported by Eric Blake.
46002
46003 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46004
46005         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46006         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46007         limit.
46008         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46009         compareseq was aborted.
46010
46011 2008-09-14  Bruno Haible  <bruno@clisp.org>
46012
46013         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46014         yvec_edit_count.
46015         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46016         (fstrcmp_bounded): Simplify result computation accordingly.
46017
46018 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46019
46020         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46021         (fstrcmp): Define in terms of fstrcmp_bounded.
46022         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46023         lower_bound argument.
46024         Return quickly if the result is certainly < lower_bound.
46025         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46026
46027 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46028
46029         * lib/diffseq.h (EARLY_ABORT): New macro.
46030         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46031         evaluates to true.
46032
46033 2008-09-14  Bruno Haible  <bruno@clisp.org>
46034
46035         * modules/perror-tests: New file.
46036         * tests/test-perror.sh: New file.
46037         * tests/test-perror.c: New file.
46038
46039         New module 'perror'.
46040         * lib/stdio.in.h (perror): New declaration.
46041         * lib/perror.c: New file.
46042         * m4/perror.m4: New file.
46043         * modules/perror: New file.
46044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46045         * doc/posix-functions/perror.texi: Mention the perror module.
46046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46047         REPLACE_PERROR.
46048         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46049         REPLACE_PERROR.
46050
46051 2008-09-14  Bruno Haible  <bruno@clisp.org>
46052
46053         * modules/stdio (Makefile.am): Reorder to match the order in
46054         lib/stdio.in.h.
46055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46056
46057 2008-09-13  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46060
46061 2008-09-13  Bruno Haible  <bruno@clisp.org>
46062
46063         Extend strerror to cover the added errno values.
46064         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46065         (rpl_strerror): Provide error messages for the added errno values and
46066         for the WSA* values.
46067         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46068         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46069         strerror.
46070         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46071         * modules/strerror (Depends-on): Add errno.
46072         * doc/posix-functions/strerror.texi: Document the change.
46073         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46074         and EOVERFLOW.
46075
46076 2008-09-13  Bruno Haible  <bruno@clisp.org>
46077
46078         * modules/EOVERFLOW: Remove file.
46079         * m4/eoverflow.m4: Remove file.
46080         * modules/EOVERFLOW-tests: Remove file.
46081         * tests/test-EOVERFLOW.c: Remove file.
46082         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46083         * modules/ftell (Depends-on): Likewise.
46084         * modules/getdelim (Depends-on): Likewise.
46085         * modules/getugroups (Depends-on): Likewise.
46086         * modules/poll (Depends-on): Likewise.
46087         * modules/snprintf (Depends-on): Likewise.
46088         * modules/sprintf-posix (Depends-on): Likewise.
46089         * modules/vasnprintf (Depends-on): Likewise.
46090         * modules/vasprintf (Depends-on): Likewise.
46091         * modules/vfprintf-posix (Depends-on): Likewise.
46092         * modules/vsnprintf (Depends-on): Likewise.
46093         * modules/vsprintf-posix (Depends-on): Likewise.
46094         * modules/xvasprintf (Depends-on): Likewise.
46095         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46096         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46097         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46098         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46099         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46100         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46101         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46102         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46103         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46104         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46105         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46106         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46107         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46108         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46109         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46110         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46111         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46112         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46113         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46114         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46115         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46116         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46117         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46118         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46119         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46120         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46121         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46122         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46123         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46124         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46125         * MODULES.html.sh: Remove EOVERFLOW.
46126         * NEWS: Mention the change.
46127
46128 2008-09-13  Bruno Haible  <bruno@clisp.org>
46129
46130         * modules/errno-tests: New file.
46131         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46132
46133         * lib/errno.in.h: New file.
46134         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46135         * modules/errno: New file.
46136         * doc/posix-headers/errno.texi: Update documentation.
46137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46138
46139 2008-09-13  Bruno Haible  <bruno@clisp.org>
46140
46141         * tests/test-poll.c: Use #if for native Windows, rather than testing
46142         __MSVCRT__.
46143
46144 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46145             Bruno Haible  <bruno@clisp.org>
46146
46147         * lib/glob.c: Don't include <pwd.h> on native Windows.
46148         (WINDOWS32): New macro.
46149         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46150
46151 2008-09-13  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46154         (ETIMEDOUT): Remove macro.
46155         (glthread_cond_timedwait_multithreaded): New declaration.
46156         (glthread_cond_timedwait): Use it.
46157         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46158         (glthread_cond_timedwait_multithreaded): New function.
46159
46160 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46161
46162         * modules/poll-tests: Do not check for io.h.
46163         * tests/test-poll.c: Check for __MSVCRT__ instead.
46164
46165 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46166
46167         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46168         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46169         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46170
46171 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46172
46173         * modules/poll-tests: New.
46174         * tests/test-poll.c: New.
46175
46176 2008-09-12  Eric Blake  <ebb9@byu.net>
46177
46178         frexp: test for NetBSD failure on -0.0
46179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46180         not all, bugs from NetBSD 3.0 have been fixed.
46181         * doc/posix-functions/frexp.texi (frexp): Document bug.
46182         Reported by Thomas Klausner.
46183
46184         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46185         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46186         literal -0.0.
46187         Reported by Jonathan C. Patschke <jp@centtech.com>.
46188
46189 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46190
46191         * lib/glthread/cond.h: Use dummy implementation also if
46192         USE_WIN32_THREADS.
46193
46194 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46195
46196         * modules/fnmatch-posix (License): Change to LGPLv2+.
46197         * modules/fnmatch-gnu (License): Likewise.
46198
46199 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46200
46201         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46202
46203 2008-09-11  Jim Meyering  <meyering@redhat.com>
46204
46205         * users.txt: Add gtk-vnc.
46206
46207 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46208
46209         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46210         rotate amounts.
46211
46212         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46213         required for 16-bit and 8-bit rotates.
46214         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46215         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46216         UINT8_MAX instead of hard-coded constants.
46217         Suggested by Paul Eggert.
46218
46219 2008-09-07  Bruno Haible  <bruno@clisp.org>
46220
46221         * tests/test-striconveh.c (main): Check behaviour when converting from
46222         UTF-7.
46223
46224         Make striconveh work better with stateful encodings.
46225         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46226         that iconv does not increment the inptr when returning -1/EINVAL.
46227
46228 2008-09-07  Bruno Haible  <bruno@clisp.org>
46229
46230         * build-aux/config.rpath: Update according to libtool-2.2.6.
46231         * build-aux/config.libpath: Likewise.
46232
46233 2008-09-06  Bruno Haible  <bruno@clisp.org>
46234
46235         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46236         * lib/freadptr.c (freadptr): Likewise.
46237         * lib/freadseek.c (freadptrinc): Likewise.
46238         Reported by Simon Josefsson.
46239
46240 2008-09-06  Bruno Haible  <bruno@clisp.org>
46241
46242         * modules/freadptr (License): Change to LGPLv2+.
46243         * modules/freadseek (License): Likewise.
46244         Suggested by Eric Blake.
46245
46246         * modules/memchr2 (License): Change to LGPLv2+.
46247         Approved by Eric Blake.
46248
46249 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46250             Bruno Haible  <bruno@clisp.org>
46251
46252         Make gnulib-tool work with native 'sed' on AIX.
46253         * gnulib-tool (sed_noop): New variable.
46254         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46255         func_add_or_update, func_create_testdir): Use it to initialize sed
46256         script variables.
46257         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46258
46259 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46260             Bruno Haible  <bruno@clisp.org>
46261
46262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46263         also works after #include directives.
46264
46265 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46266
46267         getdate.y: reject an out-of-range timezone value
46268         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46269         the range [-24...+24].  When specified with only one or two digits,
46270         * tests/test-getdate.c: Tests for the fix.
46271         * doc/getdate.texi: Document this change.
46272
46273 2008-09-03  Bruno Haible  <bruno@clisp.org>
46274
46275         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46276
46277 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46278
46279         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46280         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46281         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46282         Blake <ebb9@byu.net>.
46283
46284         * tests/test-bitrotate.c: Add more test vectors.
46285
46286 2008-09-02  Eric Blake  <ebb9@byu.net>
46287
46288         vasnprintf-posix: handle large precision via %.*d
46289         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46290         when handling it ourselves.
46291         * tests/test-vasnprintf-posix.c (test_function): Add test.
46292         * tests/test-snprintf-posix.h (test_function): Likewise.
46293         * tests/test-sprintf-posix.h (test_function): Likewise.
46294         * tests/test-vasprintf-posix.c (test_function): Likewise.
46295         Reported by Alain Guibert.
46296
46297 2008-09-01  Eric Blake  <ebb9@byu.net>
46298
46299         c-stack: make configure-time check more robust
46300         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46301         successful sigaction call.
46302         Reported by Tom G. Christensen.
46303
46304 2008-09-01  Bruno Haible  <bruno@clisp.org>
46305
46306         New module 'findprog-lgpl'.
46307         * modules/findprog-lgpl: New file.
46308         * lib/findprog-lgpl.c: New file.
46309         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46310         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46311         to decide whether to use strdup or xstrdup, concatenated_filename or
46312         xconcatenated_filename.
46313
46314 2008-09-01  Bruno Haible  <bruno@clisp.org>
46315
46316         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46317         'xconcat-filename' (GPL).
46318         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46319         (License): Change to LGPLv2+.
46320         * modules/xconcat-filename: New file.
46321         * lib/concat-filename.h (concatenated_filename): Change specification.
46322         (xconcatenated_filename): New declaration.
46323         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46324         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46325         memory situations.
46326         * lib/xconcat-filename.c: New file.
46327         * NEWS: Mention the change.
46328         * lib/findprog.c: Include concat-filename.h, not filename.h.
46329         (find_in_path): Use xconcatenated_filename instead of
46330         concatenated_filename.
46331         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46332         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46333         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46334         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46335         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46336         instead of concatenated_filename.
46337         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46338         (execute_java_class): Use xconcatenated_filename instead of
46339         concatenated_filename.
46340         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46341         * modules/javacomp (Depends-on): Likewise.
46342         * modules/javaexec (Depends-on): Likewise.
46343
46344 2008-09-01  Bruno Haible  <bruno@clisp.org>
46345
46346         Split module 'filename' into 'filename' and 'concat-filename'.
46347         * modules/filename: Keep only lib/filename.h.
46348         (License): Change to LGPLv2+.
46349         * modules/concat-filename: New file, extracted from modules/filename.
46350         * lib/filename.h (concatenated_filename): Remove declaration.
46351         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46352         * lib/concat-filename.c: Include concat-filename.h.
46353         * NEWS: Mention the change.
46354
46355 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46356
46357         * lib/bitrotate.h (rotl8, rotr8): Add.
46358
46359         * modules/bitrotate (configure.ac): Need
46360         AC_REQUIRE([AC_C_INLINE]).
46361         (Description): Mention stdint.h.  Reported by Bruno Haible
46362         <bruno@clisp.org>.
46363
46364         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46365         Paolo Bonzini <bonzini@gnu.org>.
46366
46367 2008-08-31  Bruno Haible  <bruno@clisp.org>
46368
46369         Assume Solaris specific bi-arch conventions on Solaris systems.
46370         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46371         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46372         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46373         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46374         like acl_libdirstem.
46375         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46376         acl_libdirstem.
46377         * NEWS: Mention the change.
46378         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46379
46380 2008-08-31  Jim Meyering  <meyering@redhat.com>
46381
46382         * lib/strftime.h: Add comments describing the two added arguments.
46383
46384         remove duplicate #include directives
46385         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46386         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46387
46388 2008-08-31  Bruno Haible  <bruno@clisp.org>
46389
46390         New module 'sigpipe-die'.
46391         * modules/sigpipe-die: New file.
46392         * lib/sigpipe-die.h: New file.
46393         * lib/sigpipe-die.c: New file.
46394         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46395
46396 2008-08-31  Bruno Haible  <bruno@clisp.org>
46397
46398         Don't override previously installed signal handlers.
46399         * lib/fatal-signal.c (saved_sigactions): New variable.
46400         (uninstall_handlers): Reset the signal to the saved handler, not
46401         to SIG_DFL (except when ignored).
46402         (install_handlers): Save the previous handlers.
46403
46404 2008-08-30  Bruno Haible  <bruno@clisp.org>
46405
46406         * gnulib-tool (func_reset_sigpipe): New function.
46407         (func_get_automake_snippet, func_modules_transitive_closure,
46408         func_import): Invoke it before a join command that reads from stdin,
46409         to avoid "echo: write error: Broken pipe" error messages on stderr.
46410         Reported by Sam Steingold <sds@gnu.org>.
46411
46412 2008-08-30  Bruno Haible  <bruno@clisp.org>
46413
46414         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46415         Code copied from m4/open.m4.
46416         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46417         access and the filename ends in a slash. Code copied from lib/open.c.
46418         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46419         * tests/test-fopen.c (main): Check against bug with trailing slash.
46420
46421 2008-08-29  Bruno Haible  <bruno@clisp.org>
46422
46423         Avoid some "gcc -pedantic" warnings.
46424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46425         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46426         * lib/dirent.in.h: Likewise.
46427         * lib/fcntl.in.h: Likewise.
46428         * lib/float.in.h: Likewise.
46429         * lib/iconv.in.h: Likewise.
46430         * lib/inttypes.in.h: Likewise.
46431         * lib/locale.in.h: Likewise.
46432         * lib/math.in.h: Likewise.
46433         * lib/netinet_in.in.h: Likewise.
46434         * lib/search.in.h: Likewise.
46435         * lib/signal.in.h: Likewise.
46436         * lib/stdarg.in.h: Likewise.
46437         * lib/stdint.in.h: Likewise.
46438         * lib/stdio.in.h: Likewise.
46439         * lib/stdlib.in.h: Likewise.
46440         * lib/string.in.h: Likewise.
46441         * lib/strings.in.h: Likewise.
46442         * lib/sys_select.in.h: Likewise.
46443         * lib/sys_socket.in.h: Likewise.
46444         * lib/sys_stat.in.h: Likewise.
46445         * lib/sys_time.in.h: Likewise.
46446         * lib/sysexits.in.h: Likewise.
46447         * lib/time.in.h: Likewise.
46448         * lib/unistd.in.h: Likewise.
46449         * lib/wchar.in.h: Likewise.
46450         * lib/wctype.in.h: Likewise.
46451         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46452         * modules/fchdir (Makefile.am): Likewise.
46453         * modules/fcntl (Makefile.am): Likewise.
46454         * modules/float (Makefile.am): Likewise.
46455         * modules/iconv_open (Makefile.am): Likewise.
46456         * modules/inttypes (Makefile.am): Likewise.
46457         * modules/locale (Makefile.am): Likewise.
46458         * modules/math (Makefile.am): Likewise.
46459         * modules/netinet_in (Makefile.am): Likewise.
46460         * modules/search (Makefile.am): Likewise.
46461         * modules/signal (Makefile.am): Likewise.
46462         * modules/stdarg (Makefile.am): Likewise.
46463         * modules/stdint (Makefile.am): Likewise.
46464         * modules/stdio (Makefile.am): Likewise.
46465         * modules/stdlib (Makefile.am): Likewise.
46466         * modules/string (Makefile.am): Likewise.
46467         * modules/strings (Makefile.am): Likewise.
46468         * modules/sys_select (Makefile.am): Likewise.
46469         * modules/sys_socket (Makefile.am): Likewise.
46470         * modules/sys_stat (Makefile.am): Likewise.
46471         * modules/sys_time (Makefile.am): Likewise.
46472         * modules/sysexits (Makefile.am): Likewise.
46473         * modules/time (Makefile.am): Likewise.
46474         * modules/unistd (Makefile.am): Likewise.
46475         * modules/wchar (Makefile.am): Likewise.
46476         * modules/wctype (Makefile.am): Likewise.
46477         Reported by Reuben Thomas <rrt@sc3d.org>.
46478
46479 2008-08-29  Bruno Haible  <bruno@clisp.org>
46480
46481         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46482         any more.
46483
46484 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46485
46486         * MODULES.html.sh (Misc): Add bitrotate.
46487
46488         * modules/bitrotate: New file.
46489
46490         * lib/bitrotate.h: New file.
46491
46492         * modules/bitrotate-tests: New file.
46493
46494         * tests/test-bitrotate.c: New file.
46495
46496         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46497         on the bitrotate module.
46498
46499         * lib/arctwo.c: Use new bitrotate module.
46500
46501 2008-08-29  Jim Meyering  <meyering@redhat.com>
46502
46503         bootstrap: merge changes from coreutils
46504         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46505         of copied files.  Remove a kludge, now that this is fixed.
46506         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46507         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46508         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46509
46510 2008-08-29  Bruno Haible  <bruno@clisp.org>
46511
46512         * MODULES.html.sh: Remove --cvs-urls option.
46513
46514 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46515
46516         maint.mk: adjust to file name change
46517         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46518
46519 2008-08-28  Jim Meyering  <meyering@redhat.com>
46520
46521         * modules/getndelim2 (License): Relicense to LGPLv2+.
46522         Approved by Richard Stallman for the version of 1995, and by
46523         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46524
46525 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46526
46527         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46528         dummy if one is not available.  Do not touch them if
46529         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46530         (getc_maybe_unlocked): New.
46531         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46532
46533 2008-08-26  Eric Blake  <ebb9@byu.net>
46534
46535         doc/INSTALL: resync from autoconf
46536         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46537         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46538         moving...
46539         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46540         * INSTALL: Regenerate.
46541         * INSTALL.ISO: New file.
46542         * INSTALL.UTF-8: Likewise.
46543
46544 2008-08-26  Jim Meyering  <meyering@redhat.com>
46545
46546         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46547         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46548         these definitions conditional, so that they may be overridden, too.
46549
46550 2008-08-26  Bruno Haible  <bruno@clisp.org>
46551
46552         Generate INSTALL file variants with prettier quotes.
46553         * doc/Makefile (INSTALL_PRELUDE): New macro.
46554         (INSTALL): Use it.
46555         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46556
46557 2008-08-26  Bruno Haible  <bruno@clisp.org>
46558
46559         Run makeinfo in an English locale.
46560         * doc/Makefile (MAKEINFO): New variable.
46561
46562 2008-08-26  Bruno Haible  <bruno@clisp.org>
46563
46564         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46565         Suggested by Eric Blake.
46566
46567 2008-08-25  Bruno Haible  <bruno@clisp.org>
46568
46569         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46570
46571 2008-08-25  Eric Blake  <ebb9@byu.net>
46572
46573         c-stack: test that stack overflow can be caught
46574         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46575         that platform allows handling stack overflow; at least OS/2 EMX
46576         has sigaltstack, but crashes before transferring control to
46577         handler on stack overflow.
46578         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46579         check for HAVE_STACK_OVERFLOW_HANDLING.
46580         Reported by Elbert Pol.
46581
46582 2008-08-25  Bruno Haible  <bruno@clisp.org>
46583
46584         * doc/posix-functions/strftime.texi: Fix description of strftime
46585         module.
46586
46587 2008-08-24  Bruno Haible  <bruno@clisp.org>
46588
46589         * tests/uniwidth/test-uc_width2.c: New file.
46590         * tests/uniwidth/test-uc_width2.sh: New file.
46591         * modules/uniwidth/width-tests (Files): Add the new files.
46592         (TESTS): Add uniwidth/test-uc_width2.sh.
46593         (TESTS_ENVIRONMENT): New variable.
46594         (check_PROGRAMS): Add test-uc_width2.
46595         (test_uc_width2_SOURCES): New variable.
46596
46597         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46598         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46599         not 0x00AB.
46600         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46601
46602 2008-08-22  Eric Blake  <ebb9@byu.net>
46603
46604         test-lock, test-tls: mention why a test is skipped
46605         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46606         skipped.
46607         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46608
46609         count-one-bits: relax license
46610         * modules/count-one-bits (License): Relicense to LGPLv2+.
46611         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46612
46613 2008-08-22  Andreas Schwab  <schwab@suse.de>
46614
46615         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46616         Remove spurious space in assignment.
46617
46618 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46619
46620         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46621         Paul Eggert <eggert@CS.UCLA.EDU>.
46622
46623 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46624
46625         * modules/gettext: Add m4/threadlib.m4.
46626
46627 2008-08-19  Eric Blake  <ebb9@byu.net>
46628
46629         test-c-stack: fix compilation failure on FreeBSD 5.0
46630         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46631         headers before <sys/resource.h>.
46632         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46633         the bug.
46634         Reported by Nelson H. F. Beebe.
46635
46636         strverscmp: migrate from "strverscmp.h" to <string.h>
46637         * modules/string (Makefile.am): Add new hooks.
46638         * modules/strverscmp (Files): Remove strverscmp.h.
46639         (Depends-on): Add string.
46640         (configure.ac): Add indicator.
46641         (Include): Mention new header.
46642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46643         defaults.
46644         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46645         results.
46646         * lib/strverscmp.h: Delete.
46647         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46648         * tests/test-strverscmp.c (includes): Adjust client.
46649         * lib/check-version.c (includes): Likewise.
46650         * NEWS: Document the change.
46651
46652         strverscmp: add unit test
46653         * modules/strverscmp-tests: New file.
46654         * tests/test-strverscmp.c: Likewise.
46655
46656 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46657
46658         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46659         regarding Windows crypto stuff, from Mono.
46660
46661 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46662
46663         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46664         if present, for intel RND.  Return error on failures.
46665
46666 2008-08-18  Ben Pfaff  <blp@gnu.org>
46667
46668         gitlog-to-changelog: give better diagnostic for failed pipe-open
46669         * build-aux/gitlog-to-changelog: Improve error message: suggest
46670         that the version of Git may be too old.
46671
46672 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46673
46674         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46675         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46676
46677 2008-08-18  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46680         pthread_in_use().
46681
46682 2008-08-18  Bruno Haible  <bruno@clisp.org>
46683
46684         * lib/glthread/threadlib.c: Include <pthread.h>.
46685
46686 2008-08-18  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46689         glthread_recursive_lock_* macros.
46690         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46691         Fix syntax error.
46692
46693 2008-08-18  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/glthread/thread.c: Avoid forcing a context switch right after
46696         thread creation.
46697
46698 2008-08-17  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46701         * lib/glthread/thread.h: Provide Win32 specific implementation.
46702         * modules/thread (Files): Add lib/glthread/thread.c.
46703         (Depends-on): Add lock.
46704         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46705
46706 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46707
46708         New module 'yield'.
46709         * modules/yield: New file.
46710         * lib/glthread/yield.h: New file.
46711         * m4/yield.m4: New file.
46712         * MODULES.html.sh (Multithreading): Add yield.
46713
46714 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46715
46716         New module 'thread'.
46717         * modules/thread: New file.
46718         * lib/glthread/thread.h: New file.
46719         * m4/thread.m4: New file.
46720         * MODULES.html.sh (Multithreading): Add thread.
46721
46722 2008-08-17  Bruno Haible  <bruno@clisp.org>
46723
46724         * lib/glthread/lock.h: Include <stdlib.h> always.
46725         * lib/glthread/tls.h: Likewise.
46726         * lib/glthread/cond.h: Likewise.
46727
46728 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46729
46730         New module 'cond'.
46731         * modules/cond: New file.
46732         * lib/glthread/cond.h: New file.
46733         * lib/glthread/cond.c: New file.
46734         * m4/cond.m4: New file.
46735         * MODULES.html.sh (Multithreading): Add cond.
46736
46737 2008-08-16  Eric Blake  <ebb9@byu.net>
46738
46739         c-stack: fix regression on Irix 5.3 from 2008-06-21
46740         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46741         sa_sigaction...
46742         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46743         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46744         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46745         * modules/signal (Makefile.am): Use the value.
46746         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46747         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46748         * doc/posix-headers/signal.texi (signal.h): Document this
46749         portability issue.
46750         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46751         Reported by Tom G. Christensen.
46752
46753 2008-08-17  Bruno Haible  <bruno@clisp.org>
46754
46755         New module 'threadlib'.
46756         * modules/threadlib: New file.
46757         * lib/glthread/threadlib.c: New file, extracted from
46758         lib/glthread/lock.c.
46759         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46760         functions.
46761         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46762         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46763         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46764         macros.
46765         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46766         (gl_DISABLE_THREADS): Remove macro.
46767         * modules/lock (Files): Remove build-aux/config.rpath.
46768         (Depends-on): Remove havelib. Add threadlib.
46769         (configure.ac-early): Remove section.
46770         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46771         * modules/tls (Depends-on): Remove lock. Add threadlib.
46772         (Link): New section, copied from threadlib.
46773         * MODULES.html.sh (Multithreading): Add threadlib.
46774
46775 2008-08-14  Bruno Haible  <bruno@clisp.org>
46776
46777         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46778         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46779         glthread_rwlock_unlock, glthread_rwlock_destroy,
46780         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46781         glthread_recursive_lock_destroy): Define as macros always.
46782         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46783         glthread_lock_lock.
46784         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46785         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46786         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46787         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46788         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46789         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46790         (glthread_recursive_lock_lock_func): Renamed from
46791         glthread_recursive_lock_lock.
46792         (glthread_recursive_lock_unlock_func): Renamed from
46793         glthread_recursive_lock_unlock.
46794         (glthread_recursive_lock_destroy_func): Renamed from
46795         glthread_recursive_lock_destroy.
46796
46797 2008-08-14  Bruno Haible  <bruno@clisp.org>
46798
46799         * lib/glthread/lock.h: Renamed from lib/lock.h.
46800         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46801         * lib/glthread/tls.h: Renamed from lib/tls.h.
46802         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46803         * lib/fstrcmp.c: Update includes.
46804         * lib/strsignal.c: Update includes.
46805         * modules/lock (Files, Makefile.am): Update.
46806         (Include): Change to "glthread/lock.h".
46807         * modules/tls (Files, Makefile.am): Update.
46808         (Include): Change to "glthread/tls.h".
46809         * tests/test-lock.c: Update includes.
46810         * tests/test-tls.c: Update includes.
46811         * NEWS: Mention the renamed header files.
46812
46813 2008-08-11  Jim Meyering  <meyering@redhat.com>
46814
46815         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46816
46817 2008-08-11  Eric Blake  <ebb9@byu.net>
46818
46819         test-c-stack: avoid C99-ism
46820         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46821         before statement.
46822         Reported by Alain Guibert.
46823
46824 2008-08-10  Jim Meyering  <meyering@redhat.com>
46825
46826         ensure that return value of uinttostr et al are not ignored
46827         * lib/inttostr.h (__GNUC_PREREQ): Define.
46828         (__attribute_warn_unused_result__): Define.
46829         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46830
46831 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46832
46833         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46834         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46835
46836 2008-08-07  Jim Meyering  <meyering@redhat.com>
46837
46838         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46839
46840         * modules/mkstemp (License): Relicense under LGPLv2+.
46841         * modules/tempname (License): Likewise.
46842
46843 2008-08-06  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/poll.c (poll): Further micro-optimization.
46846
46847 2008-08-06  Jim Meyering  <meyering@redhat.com>
46848
46849         inet_pton.c: use locale-independent tolower
46850         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46851         (inet_pton6): Use c_tolower rather than tolower.
46852         * modules/inet_pton (Depends-on): Add c-ctype.
46853
46854 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46855
46856         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46857         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46858
46859 2008-08-06  Jim Meyering  <meyering@redhat.com>
46860
46861         * modules/inet_pton (License): Relicense under LGPLv2+.
46862
46863 2008-08-03  Bruno Haible  <bruno@clisp.org>
46864
46865         Additional non-aborting API for lock and tls.
46866         * lib/lock.h: Include <errno.h>.
46867         (glthread_lock_init): New macro/function.
46868         (gl_lock_init): Define as wrapper around glthread_lock_init.
46869         (glthread_lock_lock): New macro/function.
46870         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46871         (glthread_lock_unlock): New macro/function.
46872         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46873         (glthread_lock_destroy): New macro/function.
46874         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46875         (glthread_rwlock_init): New macro/function.
46876         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46877         (glthread_rwlock_rdlock): New macro/function.
46878         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46879         (glthread_rwlock_wrlock): New macro/function.
46880         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46881         (glthread_rwlock_unlock): New macro/function.
46882         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46883         (glthread_rwlock_destroy): New macro/function.
46884         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46885         (glthread_recursive_lock_init): New macro/function.
46886         (gl_recursive_lock_init): Define as wrapper around
46887         glthread_recursive_lock_init.
46888         (glthread_recursive_lock_lock): New macro/function.
46889         (gl_recursive_lock_lock): Define as wrapper around
46890         glthread_recursive_lock_lock.
46891         (glthread_recursive_lock_unlock): New macro/function.
46892         (gl_recursive_lock_unlock): Define as wrapper around
46893         glthread_recursive_lock_unlock.
46894         (glthread_recursive_lock_destroy): New macro/function.
46895         (gl_recursive_lock_destroy): Define as wrapper around
46896         glthread_recursive_lock_destroy.
46897         (glthread_once): New macro/function.
46898         (gl_once): Define as wrapper around glthread_once.
46899         Update function declarations.
46900         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46901         glthread_rwlock_init. Return error code.
46902         (glthread_rwlock_rdlock_multithreaded): Renamed from
46903         glthread_rwlock_rdlock. Return error code.
46904         (glthread_rwlock_wrlock_multithreaded): Renamed from
46905         glthread_rwlock_wrlock. Return error code.
46906         (glthread_rwlock_unlock_multithreaded): Renamed from
46907         glthread_rwlock_unlock. Return error code.
46908         (glthread_rwlock_destroy_multithreaded): Renamed from
46909         glthread_rwlock_destroy. Return error code.
46910         (glthread_recursive_lock_init_multithreaded): Renamed from
46911         glthread_recursive_lock_init. Return error code.
46912         (glthread_recursive_lock_lock_multithreaded): Renamed from
46913         glthread_recursive_lock_lock. Return error code.
46914         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46915         glthread_recursive_lock_unlock. Return error code.
46916         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46917         glthread_recursive_lock_destroy. Return error code.
46918         (glthread_once_call): Make static.
46919         (glthread_once_multithreaded): Renamed from glthread_once.
46920         * lib/tls.h: Include <errno.h>.
46921         (glthread_tls_key_init): New macro/function.
46922         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46923         (glthread_tls_set): New macro/function.
46924         (gl_tls_set): Define as wrapper around glthread_tls_set.
46925         (glthread_tls_key_destroy): New macro/function.
46926         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46927         Update function declarations.
46928         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46929         glthread_tls_get.
46930         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46931
46932 2008-08-04  Eric Blake  <ebb9@byu.net>
46933
46934         gnumakefile: use space, not TAB, outside of targets
46935         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46936
46937 2008-08-02  Jim Meyering  <meyering@redhat.com>
46938
46939         getdate.y: avoid locale-dependent date parsing failure
46940         In Turkish locales, getdate would fail to recognize keywords
46941         containing a lowercase "i".  The solution is not to rely on
46942         locale-sensitive case-conversion.
46943         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46944         (lookup_word): Use c_toupper in place of toupper.
46945         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46946         Reported by Vefa Bicakci <bicave@superonline.com> in
46947         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46948         * modules/getdate (Depends-on): Add c-ctype.
46949
46950 2008-08-02  Bruno Haible  <bruno@clisp.org>
46951
46952         * gnulib-tool (func_import): When updating or creating a .gitignore
46953         file, prepend each added line with a slash, and ignore leading slashes
46954         from the existing lines.
46955         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46956
46957 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46958
46959         Portability fix for GNU make 3.79.1.
46960         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46961         versions do not understand.
46962
46963 2008-08-01  Bruno Haible  <bruno@clisp.org>
46964
46965         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46966         * tests/test-isnanf.h (zero): New variable.
46967         (main): Avoid literal -0.0f.
46968         * tests/test-isnand.h (zero): New variable.
46969         (main): Avoid literal -0.0.
46970         * tests/test-isnanl.h (zero): New variable.
46971         (main): Avoid literal -0.0L.
46972         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46973         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46974         -0.0, -0.0L.
46975         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46976         (test_signbitd): Avoid literal -0.0.
46977         (test_signbitl): Avoid literal -0.0L.
46978         * tests/test-ceilf1.c (zero): New variable.
46979         (main): Avoid literal -0.0f.
46980         * tests/test-ceill.c (zero): New variable.
46981         (main): Avoid literal -0.0L.
46982         * tests/test-floorf1.c (zero): New variable.
46983         (main): Avoid literal -0.0f.
46984         * tests/test-floorl.c (zero): New variable.
46985         (main): Avoid literal -0.0L.
46986         * tests/test-roundf1.c (zero): New variable.
46987         (main): Avoid literal -0.0f.
46988         * tests/test-round1.c (zero): New variable.
46989         (main): Avoid literal -0.0.
46990         * tests/test-roundl.c (zero): New variable.
46991         (main): Avoid literal -0.0L.
46992         * tests/test-truncf1.c (zero): New variable.
46993         (main): Avoid literal -0.0f.
46994         * tests/test-trunc1.c (zero): New variable.
46995         (main): Avoid literal -0.0.
46996         * tests/test-truncl.c (zero): New variable.
46997         (main): Avoid literal -0.0L.
46998         * tests/test-frexp.c (zero): New variable.
46999         (main): Avoid literal -0.0.
47000         * tests/test-frexpl.c (zero): New variable.
47001         (main): Avoid literal -0.0L.
47002         * tests/test-ldexpl.c (zero): New variable.
47003         (main): Avoid literal -0.0L.
47004         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47005         (zerod, zerol): New variables.
47006         (test_function): Avoid literals -0.0, -0.0L.
47007         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47008         (zerod, zerol): New variables.
47009         (test_function): Avoid literals -0.0, -0.0L.
47010         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47011         (zerod, zerol): New variables.
47012         (test_function): Avoid literals -0.0, -0.0L.
47013         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47014         (zerod, zerol): New variables.
47015         (test_function): Avoid literals -0.0, -0.0L.
47016         * tests/test-strtod.c (zero): New variable.
47017         (main): Avoid literal -0.0.
47018         Reported by Jonathan C. Patschke <jp@centtech.com>.
47019
47020 2008-07-31  Jim Meyering  <meyering@redhat.com>
47021
47022         sha256.h: correct definition of SHA224_DIGEST_SIZE
47023         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47024         Reported by Paulie Pena IV <paulie4@gmail.com>.
47025         Define as 224 / 8, rather than as a literal.
47026         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47027         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47028         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47029
47030 2008-07-31  Bruno Haible  <bruno@clisp.org>
47031
47032         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47033         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47034         Reported by Jonathan Patschke <jp@centtech.com>.
47035
47036 2008-07-31  Bruno Haible  <bruno@clisp.org>
47037
47038         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47039         Reported by Paolo Bonzini <bonzini@gnu.org>.
47040
47041 2008-07-30  Eric Blake  <ebb9@byu.net>
47042
47043         test-strtod: allow compilation without -lm
47044         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47045         Reported by Dennis Clarke <blastwave@gmail.com>.
47046
47047 2008-07-28  Jim Meyering  <meyering@redhat.com>
47048
47049         bootstrap: work also when there are no .po files in po/
47050         * build-aux/bootstrap (update_po_files): Complete the change
47051         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47052
47053 2008-07-27  Jim Meyering  <meyering@redhat.com>
47054
47055         * users.txt: Add zile.
47056
47057 2008-07-26  Ben Pfaff  <blp@gnu.org>
47058
47059         Add missing dependencies on new m4/exponent[fdl].m4 files.
47060         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47061         * modules/isnand-nolibm: Add m4/exponentd.m4.
47062         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47063         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47064         m4/isnan[fdl].m4, because the macros actually used moved.
47065         Reported by Jim Meyering.
47066
47067 2008-07-14  Ben Pfaff  <blp@gnu.org>
47068
47069         Add isinf module.
47070         * lib/isinf.c: New file.
47071         * lib/math.in.h: Define isinf macro if we have decided to replace
47072         it.
47073         * m4/isinf.m4: New file.
47074         * m4/math_h.m4: Initialize and substitute variables for isinf
47075         module.
47076         * modules/isinf: New file.
47077         * modules/isinf-tests: New file.
47078         * modules/math: Add substitutions for new module.
47079         * tests/test-isinf.c: New file.
47080         * doc/posix-functions/isinf.texi: Mention new module.
47081         * MODULES.html.sh: Mention new module.
47082
47083 2008-07-14  Ben Pfaff  <blp@gnu.org>
47084
47085         Factor out some macros for use by additional modules.
47086         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47087         exponentf.m4.
47088         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47089         exponentd.m4.
47090         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47091         file exponentl.m4.
47092         * m4/exponentf.m4: New file.
47093         * m4/exponentd.m4: New file.
47094         * m4/exponentl.m4: New file.
47095         * modules/isnanf: Use new file m4/exponentf.m4.
47096         * modules/isnand: Use new file m4/exponentd.m4.
47097         * modules/isnanl: Use new file m4/exponentl.m4.
47098
47099 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47100
47101         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47102         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47103         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47104         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47105
47106         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47107         readlink on platforms without PATH_MAX.
47108
47109 2008-07-21  Eric Blake  <ebb9@byu.net>
47110
47111         Warn, not fail, on stale version.
47112         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47113
47114         Don't allow installation with stale devel version number.
47115         * top/GNUmakefile (_is-install-target): New macro.
47116         (_curr-ver): Forbid installation with stale version number.
47117
47118 2008-07-20  Bruno Haible  <bruno@clisp.org>
47119
47120         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47121         TESTS_ENVIRONMENT.
47122         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47123
47124 2008-07-20  Bruno Haible  <bruno@clisp.org>
47125
47126         * lib/c-stack.h (c_stack_action): Add documentation.
47127         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47128
47129 2008-07-20  Bruno Haible  <bruno@clisp.org>
47130
47131         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47132         * modules/readlink (License): Likewise.
47133
47134 2008-07-17  Eric Blake  <ebb9@byu.net>
47135
47136         * modules/c-stack (Link): Fix typo.
47137
47138         Make c-stack use libsigsegv, when available.
47139         * modules/c-stack (Depends-on): Add libsigsegv.
47140         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47141         needed.
47142         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47143         (segv_handler, overflow_handler, c_stack_action)
47144         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47145         implementation when libsigsegv is available, but only when using
47146         the library is necessary.
47147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47148         comment, explaining why XSI check fails on Linux.
47149         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47150         * tests/test-c-stack2.sh: Tweak skip message.
47151         * NEWS: Document new link-time requirements.
47152
47153 2008-07-16  Eric Blake  <ebb9@byu.net>
47154
47155         c-stack: Expose false positives when not using libsigsegv.
47156         * modules/c-stack-tests (Files): Expand test.
47157         * tests/test-c-stack.c (main): Add means to conditionally trigger
47158         non-overflow SIGSEGV.
47159         * tests/test-c-stack2.sh: New file.
47160
47161 2008-07-14  Bruno Haible  <bruno@clisp.org>
47162
47163         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47164         Reported by Eric Blake.
47165
47166 2008-07-14  Sam Steingold  <sds@gnu.org>
47167             Bruno Haible  <bruno@clisp.org>
47168
47169         New module libsigsegv.
47170         * modules/libsigsegv: New file.
47171         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47172         modifications.
47173         * MODULES.html.sh (Signal handling): New section.
47174
47175 2008-07-14  Bruno Haible  <bruno@clisp.org>
47176
47177         * modules/unictype/ctype-* (Description): Add the word "function".
47178         Improves the resulting doc in MODULES.html.
47179
47180 2008-07-12  Ben Pfaff  <blp@gnu.org>
47181
47182         Add longlong module.
47183         * modules/longlong: New file.
47184
47185 2008-07-12  Bruno Haible  <bruno@clisp.org>
47186
47187         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47188         to empty.
47189
47190 2008-07-10  Ben Pfaff  <blp@gnu.org>
47191
47192         Add isnan module.
47193         * doc/posix-functions/isnan.texi: Mention new module.
47194         * lib/math.in.h: Define isnan macro if we have decided to replace
47195         it.
47196         * m4/isnan.m4: New file.
47197         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47198         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47199         also.
47200         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47201         redundancy.
47202         * m4/math_h.m4: Initialize and substitute variables for isnan
47203         module.
47204         * modules/isnan: New file.
47205         * modules/isnan-tests: New file.
47206         * modules/math: Add substitutions for new module.
47207         * tests/test-isnan.c: New file.
47208         * MODULES.html.sh: Mention new module.
47209
47210 2008-07-10  Ben Pfaff  <blp@gnu.org>
47211
47212         Add isnanf module.
47213         * lib/isnanf.m4: New file.
47214         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47215         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47216         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47217         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47218         * modules/isnanf: New file.
47219         * modules/isnanf-tests: New file.
47220         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47221         files.
47222         * tests/test-isnanf-nolibm.c: factored most of its contents into
47223         new file tests/test-isnanf.h.
47224         * tests/test-isnanf.h: New file.
47225         * tests/test-isnanf.c: New file.
47226         * MODULES.html.sh: Mention new module.
47227         * doc/glibc-functions/isnanf.texi: Mention new module.
47228
47229 2008-07-10  Ben Pfaff  <blp@gnu.org>
47230
47231         Add isnand module.
47232         * lib/isnand.h: New file.
47233         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47234         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47235         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47236         functionality also.
47237         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47238         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47239         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47240         * modules/isnand: New file.
47241         * modules/isnand-tests: New file.
47242         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47243         files.
47244         * tests/test-isnand-nolibm.c: factored most of its contents into
47245         new file tests/test-isnand.h.
47246         * tests/test-isnand.h: New file.
47247         * tests/test-isnand.c: New file.
47248         * MODULES.html.sh: Mention new module.
47249
47250 2008-07-10  Ben Pfaff  <blp@gnu.org>
47251
47252         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47253         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47254         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47255         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47256         * modules/isnanf-nolibm: Update references to renamed files.
47257         * modules/isnand-nolibm: Likewise.
47258         * modules/isnanf-nolibm-tests: Likewise.
47259         * modules/isnand-nolibm-tests: Likewise.
47260         * lib/frexp.c: Likewise.
47261         * lib/isfinite.c: Likewise.
47262         * lib/signbitd.c: Likewise.
47263         * lib/signbitf.c: Likewise.
47264         * lib/vasnprintf.c: Likewise.
47265         * tests/test-ceilf1.c: Likewise.
47266         * tests/test-ceilf2.c: Likewise.
47267         * tests/test-floorf1.c: Likewise.
47268         * tests/test-floorf2.c: Likewise.
47269         * tests/test-frexp.c: Likewise.
47270         * tests/test-round1.c: Likewise.
47271         * tests/test-round2.c: Likewise.
47272         * tests/test-roundf1.c: Likewise.
47273         * tests/test-strtod.c: Likewise.
47274         * tests/test-trunc1.c: Likewise.
47275         * tests/test-trunc2.c: Likewise.
47276         * tests/test-truncf1.c: Likewise.
47277         * tests/test-truncf2.c: Likewise.
47278         * NEWS: Mention the renamed header files.
47279
47280 2008-07-11  Jim Meyering  <meyering@redhat.com>
47281
47282         vc-list-files: make the last-resort awk code more portable
47283         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47284         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47285         does not support it.
47286
47287 2008-07-10  Eric Blake  <ebb9@byu.net>
47288
47289         Work with tar's bootstrap.
47290         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47291         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47292         an m4 comment.
47293
47294 2008-07-09  Jim Meyering  <meyering@redhat.com>
47295
47296         posix-shell.m4: fix typo that made this test malfunction
47297         * m4/posix-shell.m4: Remove capitalization in variable name.
47298
47299 2008-07-08  Bruno Haible  <bruno@clisp.org>
47300
47301         * m4/onceonly.m4: Update comments.
47302         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47303
47304 2008-07-04  Jim Meyering  <meyering@redhat.com>
47305
47306         * users.txt: Add vc-dwim.
47307         (bison, coreutils): Use the gitweb URL.
47308
47309 2008-07-03  Jim Meyering  <meyering@redhat.com>
47310
47311         * users.txt: Add libffcall.  From Sam Steingold.
47312
47313 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47314
47315         getdate.y: do not ignore TZ with relative day, month or year offset
47316         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47317         relative-date-handling, since otherwise, the latter would clobber the
47318         sole output (an updated Start value) of the tz-handling block.
47319         * tests/test-getdate.c: Tests for the fix
47320
47321 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47322
47323         Recognize 'foo_LIBRARIES += libgnu.a'.
47324         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47325         makefile snippet has already specified an installation location,
47326         also using '+='.
47327
47328 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47329
47330         getdate.y: factor out common actions
47331         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47332         Use them in place of open-coded actions.
47333
47334 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47335
47336         Add self-test for getdate module.
47337         * modules/getdate-tests: New file.
47338         * tests/test-getdate.c: New file.
47339
47340 2008-06-29  Bruno Haible  <bruno@clisp.org>
47341
47342         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47343         .gitignore.
47344         Reported by Sylvain Beucler <beuc@beuc.net>.
47345
47346 2008-06-29  Bruno Haible  <bruno@clisp.org>
47347
47348         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47349         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47350
47351 2008-06-29  Bruno Haible  <bruno@clisp.org>
47352
47353         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47354         EXTRA_DIST.
47355         Reported by Sylvain Beucler <beuc@beuc.net>.
47356
47357 2008-06-26  Jim Meyering  <meyering@redhat.com>
47358
47359         make several modules depend on the "open" module
47360         This provides slightly increased consistency when opening-for-write
47361         the name of a non-directory spelled with a trailing slash.
47362         * modules/chdir-safer: Likewise.
47363         * modules/chown: Likewise.
47364         * modules/clean-temp: Likewise.
47365         * modules/copy-file: Likewise.
47366         * modules/fchdir: Likewise.
47367         * modules/fcntl-safer: Likewise.
47368         * modules/pipe: Likewise.
47369         * modules/utime: Likewise.
47370         Prompted by Eric Blake and Bruno Haible.
47371
47372 2008-06-24  Andreas Schwab  <schwab@suse.de>
47373
47374         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47375         literals can be used as initializers for global variables.
47376
47377 2008-06-23  Eric Blake  <ebb9@byu.net>
47378
47379         Make gnulib-cache.m4 easier to diff.
47380         * gnulib-tool (func_import): Allow newlines when reading cached
47381         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47382
47383 2008-06-23  Bruno Haible  <bruno@clisp.org>
47384
47385         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47386         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47387         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47388         m4/signalblocking.m4.
47389         (gl_PREREQ_SIGACTION): Don't invoke it.
47390         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47391         gl_PREREQ_SIG_HANDLER_H.
47392         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47393         Don't check for sigaction here.
47394
47395 2008-06-23  Bruno Haible  <bruno@clisp.org>
47396
47397         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47398         (install_handlers): Don't set the SA_RESETHAND flag.
47399
47400 2008-06-23  Bruno Haible  <bruno@clisp.org>
47401
47402         * m4/sigaction.m4: Comment fixes.
47403         * lib/signal.in.h: Likewise.
47404
47405 2008-06-23  Eric Blake  <ebb9@byu.net>
47406
47407         Fix typo.
47408         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47409
47410         Avoid SA_ namespace.
47411         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47412         Reported by Ralf Wildenhues.
47413
47414         Avoid test failure due to SA_RESTORER.
47415         * tests/test-sigaction.c (SA_MASK): New macro.
47416         (main): Avoid failing due to extension flags being set.
47417         Reported by Jim Meyering.
47418
47419         Revert use of sig-handler.h in sigprocmask.c.
47420         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47421         it requires the existence of struct sigaction.
47422         * lib/sigprocmask.c (handler_t): Restore typedef.
47423         (rpl_signal, old_handlers): Use local type.
47424
47425 2008-06-22  Bruno Haible  <bruno@clisp.org>
47426
47427         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47428         conditionally.
47429         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47430
47431 2008-06-22  Bruno Haible  <bruno@clisp.org>
47432
47433         * doc/posix-functions/siginterrupt.texi: Move note.
47434
47435         * lib/signal.in.h (SA_RESTART): New macro.
47436         * lib/sigaction.c: Update comment.
47437
47438         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47439
47440         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47441         (gl_PREREQ_SIGPROCMASK): Invoke it.
47442         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47443
47444         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47445
47446         * lib/sigprocmask.c: Update a comment.
47447
47448 2008-06-21  Eric Blake  <ebb9@byu.net>
47449
47450         Use sigaction module rather than signal().
47451         * modules/c-stack (Depends-on): Add sigaction.
47452         * modules/fatal-signal (Depends-on): Likewise.
47453         * modules/nanosleep (Depends-on): Likewise.
47454         * modules/sigprocmask (Files): Add sig-handler.h.
47455         * modules/sigaction (Files): Likewise.
47456         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47457         Eggert.
47458         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47459         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47460         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47461         (init_fatal_signals): Likewise.
47462         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47463         (siginterrupt): Delete fallback.
47464         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47465         instead.
47466         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47467         siginterrupt.
47468
47469         New module sigaction, for mingw.
47470         * modules/sigaction: New module...
47471         * modules/sigaction-tests: ...and its test.
47472         * m4/sigaction.m4: New file.
47473         * lib/sigaction.c: Likewise.
47474         * tests/test-sigaction.c: Likewise.
47475         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47476         * modules/signal (Makefile.am): Likewise.
47477         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47478         needed.
47479         * doc/posix-headers/signal.texi (signal.h): Mention provided
47480         types.
47481         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47482         that sigaction is preferable.
47483         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47484         module.
47485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47486         sigaction.
47487
47488         Improve robustness of sigprocmask by overriding signal.
47489         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47490         is in use.
47491         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47492         (SIGKILL, SIGSTOP): Provide fallbacks.
47493         (rpl_signal): Implement.
47494         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47495         signal can be called inside handlers.
47496
47497         Fix nanosleep module on mingw.
47498         * modules/nanosleep (Depends-on): Add sys_select.
47499         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47500
47501         Fix licensing of sigprocmask.
47502         * modules/raise (License): Relicense as LGPL.
47503
47504 2008-06-21  Bruno Haible  <bruno@clisp.org>
47505
47506         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47507         result if it contains question marks.
47508         Reported by Michael Geng <linux@michaelgeng.de>.
47509
47510 2008-06-19  Bruno Haible  <bruno@clisp.org>
47511
47512         Fix CVS-ism.
47513         * doc/gnulib.texi: Include updated-stamp.texi.
47514         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47515         (updated-stamp.texi): New rule.
47516         (gnulib.info): Depend on it.
47517         * doc/.gitignore: Add updated-stamp.texi.
47518         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47519
47520 2008-06-19  Bruno Haible  <bruno@clisp.org>
47521
47522         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47523         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47524
47525 2008-06-19  Eric Blake  <ebb9@byu.net>
47526
47527         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47528         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47529         Reported by Stepan Kasal.
47530
47531 2008-06-18  Bruno Haible  <bruno@clisp.org>
47532
47533         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47534         Reported by Eric Blake.
47535
47536 2008-06-18  Eric Blake  <ebb9@byu.net>
47537
47538         Work around cygwin 1.5.25 strsignal bug.
47539         * tests/test-strsignal.c: Allow for const char *.
47540         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47541
47542 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47543
47544         * users.txt: Update URL to article and add author/date
47545         information.
47546
47547 2008-06-17  Bruno Haible  <bruno@clisp.org>
47548
47549         New macro gl_DISABLE_THREADS.
47550         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47551         if the user did not pass --enable-threads or --disable-threads option.
47552         (gl_DISABLE_THREADS): New macro.
47553         Reported by Eric Blake <ebb9@byu.net>.
47554
47555 2008-06-17  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47558         when the macro ignores it.
47559         Based on a patch by Eric Blake <ebb9@byu.net>.
47560
47561 2008-06-17  Bruno Haible  <bruno@clisp.org>
47562
47563         * modules/tls (License): Change to LGPLv2+.
47564         Reported by Eric Blake.
47565
47566 2008-06-17  Eric Blake  <ebb9@byu.net>
47567
47568         Simplify c-stack prerequisites.
47569         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47571         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47572         check.
47573         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47574         <sys/resource.h>.
47575
47576         Move c-stack test into testsuite.
47577         * modules/c-stack-tests: New file.
47578         * lib/c-stack.c [DEBUG]: Move test program...
47579         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47580         fail test if sigaltstack is lacking.
47581         * tests/test-c-stack.sh: New driver file.
47582
47583 2008-06-16  Eric Blake  <ebb9@byu.net>
47584
47585         Use raise module consistently.
47586         * modules/fatal-signal (Depends-on): Add raise.
47587         * modules/sigprocmask (Depends-on): Likewise.
47588         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47589         * lib/sigprocmask.c (sigprocmask): Likewise.
47590         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47591         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47592
47593         Fix compliance bug in sigpending.
47594         * lib/sigprocmask.c (sigpending): Return pending array via
47595         parameter, not return value.
47596
47597 2008-06-14  Eric Blake  <ebb9@byu.net>
47598
47599         Improve obstack-printf test code.
47600         * tests/test-obstack-printf.c (test_function): Fix comment, and
47601         simplify usage of obstack_* in macros.  Add a test for coverage.
47602         Reported by Bruno Haible.
47603
47604 2008-06-14  Bruno Haible  <bruno@clisp.org>
47605
47606         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47607         array size as a constant, not as a const variable.
47608         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47609         AC_USE_SYSTEM_EXTENSIONS.
47610         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47611         Test whether the obstack_printf function actually exists.
47612         * modules/obstack-printf (Depends-on): Add extensions.
47613         (Include): Remove obstack.h.
47614         * modules/obstack-printf-posix (Depends-on): Add extensions.
47615         (Include): Remove obstack.h.
47616
47617 2008-06-13  Eric Blake  <ebb9@byu.net>
47618
47619         Add obstack-printf and obstack-printf-posix modules.
47620         * modules/obstack-printf: New file.
47621         * modules/obstack-printf-posix: Likewise.
47622         * MODULES.html.sh (Misc): Mention them.
47623         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47624         Likewise.
47625         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47626         Likewise.
47627         * modules/stdio (Makefile.am): Accomodate new modules.
47628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47629         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47630         Declare.
47631         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47632         functions.
47633         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47634         (gl_REPLACE_OBSTACK_PRINTF): New macros
47635         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47636         * tests/test-obstack-printf.c: New file.
47637         * modules/obstack-printf-tests: Likewise.
47638         * modules/obstack-printf-posix-tests: Likewise.
47639
47640 2008-06-11  Bruno Haible  <bruno@clisp.org>
47641
47642         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47643         * lib/open.c: Include errno.h.
47644         (open): Fail when attempting to write to a file that has a trailing
47645         slash.
47646         * tests/test-open.c (main): Test against trailing slash bug.
47647         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47648
47649 2008-06-10  Bruno Haible  <bruno@clisp.org>
47650
47651         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47652         for $? to work inside the trap command, with various /bin/sh-s.
47653         * tests/test-vc-list-files-cvs.sh: Likewise.
47654
47655 2008-06-10  Bruno Haible  <bruno@clisp.org>
47656
47657         * lib/acl-internal.h: Don't include gettext.h here.
47658         * lib/set-mode-acl.c: Include gettext.h here.
47659         * lib/copy-acl.c: Likewise.
47660
47661 2008-06-10  Bruno Haible  <bruno@clisp.org>
47662
47663         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47664         * lib/wait-process.c (wait_subprocess): Likewise.
47665         * lib/execute.h (execute): Add termsigp argument.
47666         * lib/execute.c (execute): Likewise.
47667         * lib/csharpcomp.c (compile_csharp_using_pnet,
47668         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47669         * lib/csharpexec.c (execute_csharp_using_pnet,
47670         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47671         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47672         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47673         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47674         is_jikes_present): Update.
47675         * lib/javaexec.c (execute_java_class): Update.
47676         * lib/javaversion.c (execute_and_read_line): Update.
47677         * NEWS: Document the changes.
47678         Reported by Eric Blake.
47679
47680 2008-06-10  Eric Blake  <ebb9@byu.net>
47681
47682         Add missing include.
47683         * tests/test-strstr.c (includes): Add <signal.h>.
47684         * tests/test-strcasestr.c (includes): Likewise.
47685         * tests/test-memmem.c (includes): Likewise.
47686
47687 2008-06-10  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/wait-process.c (wait_subprocess): Add an assertion.
47690
47691 2008-06-10  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47694
47695 2008-06-10  Bruno Haible  <bruno@clisp.org>
47696
47697         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47698         using alarm().
47699         * tests/test-strcasestr.c (main): Likewise.
47700         * tests/test-strstr.c (main): Likewise.
47701
47702 2008-06-09  Bruno Haible  <bruno@clisp.org>
47703
47704         Work around the Solaris 10 ACE ACLs ABI change.
47705         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47706         declare if ACL_NO_TRIVIAL is present.
47707         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47708         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47709         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47710         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47711         define if ACL_NO_TRIVIAL is present.
47712         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47713         and use the current ABI.
47714         (file_has_acl): Use same #if condition as elsewhere.
47715         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47716         in use, and use the current ABI.
47717         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47718         Reported by Jim Meyering.
47719
47720 2008-06-09  Eric Blake  <ebb9@byu.net>
47721
47722         Work around environments that (stupidly) ignore SIGALRM.
47723         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47724         before using alarm().
47725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47727         Reported by Ian Beckwith <ianb@erislabs.net>.
47728
47729         Produce autobuild blurb earlier in log.
47730         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47731
47732 2008-06-09  Jim Meyering  <meyering@redhat.com>
47733         and OndÅ™ej Vašík  <ovasik@redhat.com>
47734
47735         utimens.c: correct kernel bug work-around
47736         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47737         failure, not success, and the kernel bug we're trying to work
47738         around affects not just the utimensat call, but also the fallback
47739         futimens call.
47740         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47741         not success.
47742         [HAVE_FUTIMENS]: Use the same work-around, here.
47743
47744 2008-06-09  Jim Meyering  <meyering@redhat.com>
47745
47746         add more guards around definition of ACE_-related code
47747         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47748         ALLOW and ACE_OWNER are also defined.
47749
47750 2008-06-08  Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/acl-internal.h: Add me as co-author.
47753         * lib/file-has-acl.c: Likewise.
47754         * lib/set-mode-acl.c: Likewise.
47755         * lib/copy-acl.c: Likewise.
47756
47757 2008-06-08  Bruno Haible  <bruno@clisp.org>
47758
47759         Add support for AIX ACLs.
47760         * lib/acl-internal.h (acl_nontrivial): New declaration.
47761         * lib/file-has-acl.c (acl_nontrivial): New function.
47762         (file_has_acl): Add implementation using AIX 4 ACL API.
47763         * lib/set-mode-acl.c (qset_acl): Likewise.
47764         * lib/copy-acl.c (qcopy_acl): Likewise.
47765
47766 2008-06-08  Bruno Haible  <bruno@clisp.org>
47767
47768         Add support for HP-UX ACLs.
47769         * lib/acl-internal.h (acl_nontrivial): New declaration.
47770         * lib/file-has-acl.c (acl_nontrivial): New function.
47771         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47772         * lib/set-mode-acl.c (qset_acl): Likewise.
47773         * lib/copy-acl.c (qcopy_acl): Likewise.
47774
47775 2008-06-08  Bruno Haible  <bruno@clisp.org>
47776
47777         Add support for Cygwin ACLs.
47778         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47779         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47780         the chmod_or_fchmod call.
47781         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47782
47783 2008-06-08  Bruno Haible  <bruno@clisp.org>
47784
47785         Fix bug with setuid modes in Solaris 10+ code.
47786         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47787         succeeded, when the mode contains some special bits.
47788
47789 2008-06-08  Bruno Haible  <bruno@clisp.org>
47790
47791         Add support for Solaris 7..10 ACLs.
47792         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47793         declarations.
47794         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47795         functions.
47796         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47797         * lib/set-mode-acl.c (qset_acl): Likewise.
47798         * lib/copy-acl.c (qcopy_acl): Likewise.
47799
47800 2008-06-08  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47803         declaration.
47804         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47805         (acl_access_nontrivial): Remove MacOS X case.
47806         (file_has_acl): Use acl_extended_nontrivial.
47807         * lib/copy-acl.c (qcopy_acl): Likewise.
47808
47809 2008-06-08  Bruno Haible  <bruno@clisp.org>
47810
47811         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47812
47813 2008-06-08  Jim Meyering  <meyering@redhat.com>
47814
47815         * modules/acl (Maintainer): Add Bruno Haible.
47816
47817 2008-06-07  Bruno Haible  <bruno@clisp.org>
47818
47819         Improve support for Tru64 ACLs.
47820         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47821         ACL on OSF/1.
47822
47823 2008-06-07  Bruno Haible  <bruno@clisp.org>
47824
47825         Add support for MacOS X ACLs.
47826         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47827         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47828         * lib/set-mode-acl.c (qset_acl): Likewise.
47829         * lib/copy-acl.c (qcopy_acl): Likewise.
47830
47831 2008-06-07  Bruno Haible  <bruno@clisp.org>
47832
47833         Fix memory leak introduced on 2008-05-22.
47834         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47835         use.
47836
47837 2008-06-07  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47840         to construct an empty ACL.
47841
47842 2008-06-07  Bruno Haible  <bruno@clisp.org>
47843
47844         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47845         precisely.
47846         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47847
47848 2008-06-07  Bruno Haible  <bruno@clisp.org>
47849
47850         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47851         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47852
47853 2008-06-07  Bruno Haible  <bruno@clisp.org>
47854
47855         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47856         regardless of POSIX.
47857         * doc/posix-functions/_longjmp.texi: Likewise.
47858         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47859         SystemV platform in this case.
47860
47861 2008-06-06  Eric Blake  <ebb9@byu.net>
47862
47863         Document abort() bugs.
47864         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47865
47866         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47867         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47868         sigsetjmp.
47869         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47870         siglongjmp, but only as a macro.
47871         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47872         is obsolete.
47873         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47874
47875         Tweak documentation to cover cygwin argz bugs.
47876         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47877         argz bug fix; no code change needed since no cygwin releases
47878         occurred between the last fix and the bug being tested.
47879         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47880         module and recently fixed cygwin bugs.
47881         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47882         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47883         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47884         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47885         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47886         Likewise.
47887         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47888         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47889         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47890         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47891         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47892         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47893         Likewise.
47894
47895         Avoid gcc warning on cygwin.
47896         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47897         !ACL_NO_TRIVIAL]: Avoid unused variable.
47898
47899 2008-06-05  Eric Blake  <ebb9@byu.net>
47900
47901         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47902         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47903         git-version-gen fails to come up with a version.
47904         Reported by Simon Josefsson.
47905
47906 2008-06-05  Jim Meyering  <meyering@redhat.com>
47907             Paul Eggert  <eggert@cs.ucla.edu>
47908
47909         utimens.c: work around a probable Linux kernel bug
47910         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47911         appears to be a kernel bug that causes utimensat to return 280
47912         instead of 0, indicating success.
47913
47914 2008-06-04  Bruno Haible  <bruno@clisp.org>
47915
47916         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47917         2008-06-01 commit.
47918
47919 2008-06-04  Bruno Haible  <bruno@clisp.org>
47920
47921         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47922         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47923         (file_has_acl): Use it. Save errno afterwards.
47924         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47925
47926 2008-06-03  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47929         draft code. Simplify #ifs.
47930         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47931         Put Solaris code after POSIX-draft code. Fix comments regarding
47932         Solaris 10, HP-UX. Mention Cygwin.
47933         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47934
47935 2008-06-03  Eric Blake  <ebb9@byu.net>
47936
47937         Provide fallback for older kernels.
47938         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47939         Provide runtime fallback if kernel lacks support.
47940         Reported by Mike Frysinger.
47941
47942 2008-06-02  Bruno Haible  <bruno@clisp.org>
47943
47944         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47945         it exists.
47946
47947 2008-06-02  Bruno Haible  <bruno@clisp.org>
47948
47949         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47950         * lib/copy-acl.c (qcopy_acl): Update comment.
47951
47952 2008-06-02  Bruno Haible  <bruno@clisp.org>
47953
47954         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47955         like ACL APIs.
47956
47957 2008-06-02  Bruno Haible  <bruno@clisp.org>
47958
47959         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47960         * tests/test-set-mode-acl.sh: Likewise.
47961         * tests/test-copy-acl.sh: Likewise.
47962         * tests/test-copy-file.sh: Likewise.
47963
47964 2008-06-02  Bruno Haible  <bruno@clisp.org>
47965
47966         * tests/test-file-has-acl.sh: Remove unused code.
47967
47968 2008-06-01  Bruno Haible  <bruno@clisp.org>
47969
47970         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47971         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47972         messages.
47973         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47974
47975 2008-06-01  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47978         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47979         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47980         APIs.
47981         * modules/acl-tests (configure.ac): Remove tests now contained in
47982         m4/acl.m4.
47983
47984 2008-06-02  Jim Meyering  <meyering@redhat.com>
47985
47986         announce-gen: use a better key-server host name
47987         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47988         it may be more consistently reliable.  Suggested by Werner Koch
47989         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47990
47991 2008-06-01  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47994         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47995
47996 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47997
47998         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47999
48000 2008-06-01  Bruno Haible  <bruno@clisp.org>
48001
48002         New ACL tests.
48003         * tests/test-file-has-acl.sh: New file.
48004         * tests/test-file-has-acl.c: New file.
48005         * tests/test-set-mode-acl.sh: New file.
48006         * tests/test-set-mode-acl.c: New file.
48007         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48008         * tests/test-copy-acl.c: New file.
48009         * modules/acl-tests: New file, based on modules/copy-file-tests.
48010         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48011         (Depends-on): Add acl-tests.
48012         (configure.ac): Remove checks.
48013         (Makefile.am): Don't create test-sameacls program here any more.
48014
48015 2008-06-01  Bruno Haible  <bruno@clisp.org>
48016
48017         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48018         * tests/test-sameacls.c: Include progname.h.
48019         (main): Invoke set_program_name. Portability fixes for MacOS X,
48020         Solaris, HP-UX.
48021
48022 2008-06-01  Bruno Haible  <bruno@clisp.org>
48023
48024         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48025         function.
48026         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48027
48028 2008-06-01  Bruno Haible  <bruno@clisp.org>
48029
48030         * modules/rpmatch (Depends-on): Add strdup.
48031
48032 2008-06-01  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/pipe.c: Include unistd-safer.h.
48035         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48036         * modules/pipe (Depends-on): Add unistd-safer.
48037
48038 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48039
48040         * modules/autobuild (configure.ac): Call AB_INIT.
48041
48042 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48043
48044         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48045         Suggested by Bruno Haible <bruno@clisp.org>.
48046
48047 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48048
48049         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48050         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48051         <bruno@clisp.org>.
48052
48053 2008-05-29  Eric Blake  <ebb9@byu.net>
48054
48055         Prefer new POSIX 200x interfaces over futimesat.
48056         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48057         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48058         when available.
48059         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48060
48061 2008-05-28  Bruno Haible  <bruno@clisp.org>
48062
48063         * modules/stpcpy (License): Change to LGPLv2+.
48064         Requested by David Lutterkort <dlutter@redhat.com>.
48065
48066 2008-05-27  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48069         current mingw.
48070         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48071
48072 2008-05-27  Bruno Haible  <bruno@clisp.org>
48073
48074         * modules/iconv_open (Link): New section, from module 'iconv'.
48075         * modules/striconv (Link): Likewise.
48076         * modules/striconveh (Link): Likewise.
48077         * modules/xstriconv (Link): Likewise.
48078         * modules/unicodeio (Link): Likewise.
48079         * modules/propername (Link): Likewise.
48080         Reported by Jim Meyering.
48081
48082 2008-05-26  Jim Meyering  <meyering@redhat.com>
48083
48084         sha256: do not artificially restrict buffer length to be < 2^32
48085         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48086         uint32_t to size_t.
48087         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48088         to match.
48089
48090         avoid unaligned access errors, e.g., on sparc
48091         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48092         direct access through a possibly-unaligned uint64* pointer.
48093         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48094         direct access through a possibly-unaligned uint32* pointer.
48095         Prompted by this patch from Tom "spot" Callaway:
48096         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48097
48098         sha512.c: fix typo in comment
48099         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48100
48101 2008-05-25  Bruno Haible  <bruno@clisp.org>
48102
48103         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48104         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48105         (Makefile.am): Update lib_SOURCES.
48106
48107 2008-05-25  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48110
48111 2008-05-25  Jim Meyering  <meyering@redhat.com>
48112
48113         useless-if-before-free: freed expr may have white-space differences
48114         * build-aux/useless-if-before-free: Recognize cases in which the
48115         freed expression differs from the tested one in embedded white
48116         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48117         $1 was used, so we can't make any regexp shy.  Improved tests now
48118         detect this.
48119
48120         useless-if-before-free: accept white space in the expression.
48121         * build-aux/useless-if-before-free: For now, any white space
48122         in the expression must be identical in the free argument.
48123
48124         useless-if-before-free: efficiency tweak
48125         * build-aux/useless-if-before-free: Make the expression-matching
48126         regexp "shy".
48127         Make the *outer* regexp shy, not the expr-matching one.
48128
48129         update code-in-comment to accept cast of free arg
48130         * build-aux/useless-if-before-free: Update regexp.
48131
48132 2008-05-25  Bruno Haible  <bruno@clisp.org>
48133
48134         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48135         * modules/copy-file-tests (Files, Makefile.am): Update.
48136         * tests/test-copy-file.c (func_test_copy): Update.
48137
48138 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48139
48140         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48141
48142 2008-05-23  Bruno Haible  <bruno@clisp.org>
48143
48144         Improve support for ACLs on OSF/1.
48145         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48146         Remove fallback for unknown flavors of ACLs.
48147
48148 2008-05-22  Bruno Haible  <bruno@clisp.org>
48149
48150         Add support for ACLs on OSF/1.
48151         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48152         replacements.
48153         (acl_free_text): New macro fallback.
48154         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48155         acl_free.
48156         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48157         acl_free_text function. Require AC_C_INLINE.
48158
48159 2008-05-22  Bruno Haible  <bruno@clisp.org>
48160
48161         Make copy_acl work on MacOS X 10.5.
48162         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48163         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48164         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48165         If MODE_INSIDE_ACL, don't assume that every system has the same text
48166         representation for ACLs as FreeBSD.
48167         * lib/copy-acl.c (copy_acl): Add support for platforms with
48168         !MODE_INSIDE_ACL.
48169         * lib/file-has-acl.c (file_has_acl): Likewise.
48170         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48171         FreeBSD, MacOS X, or IRIX, respectively.
48172
48173 2008-05-22  Bruno Haible  <bruno@clisp.org>
48174
48175         * lib/acl.h: Don't include <sys/acl.h>.
48176         (GETACLCNT): Move fallback to lib/acl-internal.h.
48177         * lib/acl-internal.h: Include <sys/acl.h> here.
48178         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48179
48180 2008-05-22  Bruno Haible  <bruno@clisp.org>
48181
48182         Split off copy_acl function to separate file.
48183         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48184         * lib/acl.c (copy_acl): Moved function to separate file.
48185         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48186         * modules/acl (Files): Add lib/copy-acl.c.
48187         (Makefiles.am): Augment lib_SOURCES.
48188
48189 2008-05-22  Bruno Haible  <bruno@clisp.org>
48190
48191         * modules/copy-file-tests: New file.
48192         * tests/test-copy-file.sh: New file.
48193         * tests/test-copy-file.c: New file.
48194         * tests/test-copy-file-sameacls.c: New file.
48195
48196 2008-05-22  Eric Blake  <ebb9@byu.net>
48197
48198         Avoid gcc warning.
48199         * tests/test-memcmp.c (main): Pass NULL indirectly.
48200
48201 2008-05-21  Bruno Haible  <bruno@clisp.org>
48202
48203         Add reference doc about ACLs.
48204         * doc/acl-resources.txt: New file.
48205         * doc/acl-cygwin.txt: New file.
48206
48207 2008-05-21  Bruno Haible  <bruno@clisp.org>
48208
48209         Avoid one more warning from gcc.
48210         * lib/vasnprintf.c (IF_LINT): Update comments.
48211         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48212
48213 2008-05-21  Jim Meyering  <meyering@redhat.com>
48214
48215         avoid a warning from gcc
48216         * lib/vasnprintf.c (IF_LINT): Define.
48217         (scale10_round_decimal_long_double):
48218         Use it to avoid a "may be used uninitialized" warning.
48219         (scale10_round_decimal_double): Likewise.
48220
48221 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48222
48223         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48224         declared.
48225
48226 2008-05-20  Bruno Haible  <bruno@clisp.org>
48227
48228         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48229         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48230
48231 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48232
48233         * modules/memcmp-tests: New file.
48234         * tests/test-memcmp.c: New file.
48235
48236 2008-05-19  Bruno Haible  <bruno@clisp.org>
48237
48238         * modules/propername (Notice, configure.ac): Put quoted "..." into
48239         --keyword option.
48240         * lib/propername.h: Update comments accordingly.
48241         Reported by Eric Blake.
48242
48243 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48244
48245         * modules/getpass-gnu (Depends-on): Add fseeko.
48246
48247 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48248
48249         * modules/base64-tests: New file.
48250
48251 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48252
48253         * lib/base64.c (base64_decode_ctx): If a decode context structure
48254         was passed in use it to ignore newlines.  If a context structure
48255         was _not_ passed in, continue to treat newlines as garbage (this
48256         is the historical behavior).  Formerly base64_decode.
48257         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48258         takes a decode context structure.
48259         * lib/base64.h (base64_decode): Macro for four-argument calls.
48260         (base64_decode_alloc): Likewise.
48261         * lib/base64.c (base64_decode_ctx): If a decode context structure
48262         was passed in use it to ignore newlines.  If a context structure
48263         was _not_ passed in, continue to treat newlines as garbage (this
48264         is the historical behavior).  Formerly base64_decode.
48265         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48266         takes a decode context structure.
48267         * lib/base64.h (base64_decode): Macro for four-argument calls.
48268         (base64_decode_alloc): Likewise.
48269
48270 2008-05-19  Jim Meyering  <meyering@redhat.com>
48271
48272         avoid a warning from gcc
48273         * lib/trim.c (IF_LINT): Define.
48274         (trim2): Use it to avoid a "may be used uninitialized" warning.
48275
48276         Fix doc typo.
48277         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48278
48279 2008-05-19  Bruno Haible  <bruno@clisp.org>
48280
48281         * doc/glibc-functions/getpass.texi: Document limits of other
48282         implementations.
48283
48284 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48285             Bruno Haible <bruno@clisp.org>
48286
48287         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48288
48289 2008-05-18  Bruno Haible  <bruno@clisp.org>
48290
48291         * modules/propername: New file, from GNU gettext.
48292         * lib/propername.h: New file, from GNU gettext.
48293         * lib/propername.c: New file, from GNU gettext.
48294         * MODULES.html.sh (Internationalization functions): Add propername.
48295
48296 2008-05-16  Jim Meyering  <meyering@redhat.com>
48297             Bruno Haible  <bruno@clisp.org>
48298
48299         Avoid some warnings from "gcc -Wshadow".
48300         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48301
48302 2008-05-15  Eric Blake  <ebb9@byu.net>
48303
48304         Extend previous patch to cygwin 1.7.0.
48305         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48306         fast implementation in cygwin >= 1.7.0.
48307         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48309
48310 2008-05-15  Bruno Haible  <bruno@clisp.org>
48311
48312         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48313         implementation in glibc >= 2.9.
48314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48316
48317 2008-05-15  Bruno Haible  <bruno@clisp.org>
48318
48319         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48320         (Unicode string functions): Add unilbrk/*.
48321         Reported by Karl Berry.
48322
48323 2008-05-15  Eric Blake  <ebb9@byu.net>
48324
48325         Fix violation of <stdbool.h> replacement in regex.
48326         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48327         * lib/regexec.c (re_search_internal): Likewise.
48328         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48329
48330 2008-05-15  Jim Meyering  <meyering@redhat.com>
48331
48332         avoid distracting test output when git or cvs is not found
48333         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48334         * tests/test-vc-list-files-git.sh: Likewise.
48335
48336 2008-05-15  Eric Blake  <ebb9@byu.net>
48337
48338         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48339         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48340         glibc version.
48341         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48342         * doc/posix-functions/strstr.texi (strstr): Likewise.
48343         * lib/str-two-way.h (MAX): Sychronize with glibc.
48344
48345 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48346
48347         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48348         opr.ctx_type.
48349         (calc_first): Initialize constraint field.
48350         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48351         Fix grammar.
48352         (duplicate_node): Merge constraint field for all node types.
48353         (calc_eclosure_iter): Look at constraint field for all node types.
48354         * lib/regex_internal.c (create_cd_newstate): Don't look at
48355         opr.ctx_type.
48356
48357 2008-05-14  Bruno Haible  <bruno@clisp.org>
48358
48359         Help GCC to do better code generation.
48360         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48361         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48362         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48363         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48364         Declare with attribute 'malloc' if supported.
48365
48366 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48367
48368         use "echo STR|wc -c" rather than unportable "expr length STR"
48369         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48370         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48371
48372 2008-05-14  Jim Meyering  <meyering@redhat.com>
48373
48374         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48375         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48376         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48377         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48378         via Collin Lasse.
48379
48380 2008-05-14  Eric Blake  <ebb9@byu.net>
48381
48382         Avoid quadratic growth in gl_LIBSOURCES.
48383         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48384         Suggested by Bruno Haible.
48385
48386         Test xmemdup0.
48387         * modules/xmemdup0-tests: New file.
48388         * tests/test-xmemdup0.c: Likewise.
48389
48390 2008-05-13  Eric Blake  <ebb9@byu.net>
48391
48392         Split xmemdup0 into its own module.
48393         * modules/xmemdup0: New file.
48394         * lib/xmemdup0.h: Likewise.
48395         * lib/xmemdup0.c: Likewise.
48396         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48397         * lib/xalloc.h (xmemdup0): Remove.
48398         * lib/xmalloc.c (xmemdup0): Likewise.
48399
48400 2008-05-13  Eric Blake  <ebb9@byu.net>
48401             Bruno Haible  <bruno@clisp.org>
48402
48403         Reduce number of forks required during autoconf.
48404         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48405         and gl_LIBSOURCES_DIR.
48406         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48407         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48408         m4_syscmd per file.
48409         <m4_foreach_w>: Move...
48410         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48411
48412 2008-05-13  Eric Blake  <ebb9@byu.net>
48413
48414         * gnulib-tool: Fix various comment typos.
48415
48416 2008-05-12  Bruno Haible  <bruno@clisp.org>
48417
48418         Tailor the linebreaking algorithm.
48419         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48420
48421 2008-05-12  Bruno Haible  <bruno@clisp.org>
48422
48423         Update to Unicode 5.0.0.
48424         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48425         LBP_JV, LBP_JT. Redistribute values.
48426         (unilbrk_table): Change size.
48427         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48428         Unicode TR#14 rev. 22.
48429         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48430         LBP_JV, LBP_JT. Redistribute values.
48431         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48432         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48433         Update.
48434         * lib/unilbrk/lbrkprop1.h: Regenerated.
48435         * lib/unilbrk/lbrkprop2.h: Regenerated.
48436         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48437         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48438         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48439         Likewise.
48440         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48441         Likewise.
48442         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48443         result.
48444         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48445         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48446         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48447         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48448         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48449         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48450
48451 2008-05-11  Bruno Haible  <bruno@clisp.org>
48452
48453         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48454
48455 2008-05-11  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48458         * modules/unilbrk/gen-lbrk: New file.
48459
48460 2008-05-11  Bruno Haible  <bruno@clisp.org>
48461
48462         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48463         * m4/sha512.m4 (gl_SHA512): Likewise.
48464
48465 2008-05-11  Jim Meyering  <meyering@redhat.com>
48466
48467         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48468         * modules/crypto/sha256: New file.
48469         * modules/crypto/sha512: Likewise.
48470         * lib/sha256.c: Likewise.
48471         * lib/sha256.h: Likewise.
48472         * lib/sha512.c: Likewise.
48473         * lib/sha512.h: Likewise.
48474         * lib/u64.h: Likewise.
48475         * m4/sha256.m4: Likewise.
48476         * m4/sha512.m4: Likewise.
48477         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48478
48479 2008-05-10  Bruno Haible  <bruno@clisp.org>
48480
48481         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48482         (Input/Output <stdio.h>): Add xprintf.
48483         (Signal handling <signal.h>): Add strsignal.
48484         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48485         (Core language properties): Add func.
48486         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48487         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48488         strings.
48489         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48490         (Input/output): New section.
48491         (File system functions): Add openat-die, stat-macros.
48492         (Networking functions): Add sockets.
48493         (Unicode string functions): Add unictype/*.
48494         (Support for building libraries and executables): Add gperf.
48495         (Support for building documentation): Add agpl-3.0.
48496         (Misc): Add nocrash.
48497
48498 2008-05-10  Bruno Haible  <bruno@clisp.org>
48499
48500         * modules/unictype/gen-ctype: New file.
48501
48502 2008-05-10  Jim Meyering  <meyering@redhat.com>
48503
48504         Make chdir-safer.c more efficient on a system with no symlinks.
48505         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48506         also if ELOOP is zero.  Suggested by Bruno Haible.
48507
48508         Make chdir-safer.c slightly safer.
48509         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48510         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48511
48512         Avoid compile failure on systems without ELOOP (like mingw).
48513         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48514         Reported by Bruno Haible.
48515
48516 2008-05-10  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48519         (is_utf8_encoding): Use a case-insensitive comparison.
48520         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48521         streq.
48522
48523 2008-05-10  Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48526         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48527         * lib/unilbrk/ulc-common.h (iconv_string_length,
48528         iconv_string_keeping_offsets): Remove declarations.
48529         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48530         Don't include <iconv.h>, streq.h, xsize.h.
48531         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48532         conversion.
48533         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48534         <iconv.h>, streq.h, xsize.h.
48535         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48536         conversion.
48537         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48538         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48539         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48540         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48541
48542 2008-05-10  Bruno Haible  <bruno@clisp.org>
48543
48544         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48545         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48546
48547         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48548         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48549
48550         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48551         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48552
48553         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48554         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48555
48556         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48557         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48558
48559         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48560         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48561
48562         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48563         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48564
48565         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48566         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48567
48568 2008-05-10  Bruno Haible  <bruno@clisp.org>
48569
48570         Split up 'linebreak' module.
48571         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48572         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48573         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48574         modifications.
48575         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48576         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48577         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48578         lib/linebreak.c.
48579         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48580         lib/linebreak.c.
48581         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48582         lib/linebreak.c.
48583         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48584         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48585         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48586         lib/linebreak.c.
48587         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48588         lib/linebreak.c.
48589         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48590         lib/linebreak.c.
48591         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48592         lib/linebreak.c.
48593         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48594         lib/linebreak.c.
48595         * modules/unilbrk/base: New file.
48596         * modules/unilbrk/tables: New file.
48597         * modules/unilbrk/u8-possible-linebreaks: New file.
48598         * modules/unilbrk/u16-possible-linebreaks: New file.
48599         * modules/unilbrk/u32-possible-linebreaks: New file.
48600         * modules/unilbrk/ulc-common: New file.
48601         * modules/unilbrk/ulc-possible-linebreaks: New file.
48602         * modules/unilbrk/u8-width-linebreaks: New file.
48603         * modules/unilbrk/u16-width-linebreaks: New file.
48604         * modules/unilbrk/u32-width-linebreaks: New file.
48605         * modules/unilbrk/ulc-width-linebreaks: New file.
48606         * lib/linebreak.h: Remove file.
48607         * lib/linebreak.c: Remove file.
48608         * m4/linebreak.m4: Remove file.
48609         * modules/linebreak: Remove file.
48610         * NEWS: Mention the changes.
48611
48612 2008-05-09  Eric Blake  <ebb9@byu.net>
48613
48614         Add xmemdup0.
48615         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48616         implementation.
48617         * lib/xmalloc.c (xmemdup0): New C implementation.
48618
48619 2008-05-08  Bruno Haible  <bruno@clisp.org>
48620
48621         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48622
48623 2008-05-07  Eric Blake  <ebb9@byu.net>
48624
48625         Support cross-compilation of <wctype.h>.
48626         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48627         AC_CACHE_CHECK.
48628
48629 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48630
48631         * build-aux/vc-list-files: Add support for bzr.
48632
48633 2008-05-03  Jim Meyering  <meyering@redhat.com>
48634
48635         avoid failed assertion with tight malloc
48636         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48637
48638 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48639
48640         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48641         are needed from arpa/inet.h.
48642         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48643         Reported by Bruno Haible.
48644
48645 2008-05-02  Jim Meyering  <meyering@redhat.com>
48646
48647         avoid compilation error on FreeBSD 6
48648         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48649
48650 2008-05-01  Jim Meyering  <meyering@redhat.com>
48651
48652         useless-if-before-free: correct --help's exit status description
48653         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48654         for one or more matches, etc.  Reported by Bruno Haible.
48655
48656         vc-list-files: make the stand-alone gnulib test work
48657         * modules/vc-list-files-tests (configure.ac):
48658         Define and AC_SUBST abs_aux_dir.
48659         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48660         $(abs_top_srcdir) to each script and having each of them
48661         duplicate the work of setting PATH, set PATH here, using
48662         the new variable, abs_aux_dir instead.
48663         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48664         * tests/test-vc-list-files-git.sh: Likewise.
48665         Reported by Bruno Haible.
48666
48667 2008-05-01  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48670         reallocation. Rename 'done' to 'found_delimiter'.
48671
48672 2008-05-01  Jim Meyering  <meyering@redhat.com>
48673
48674         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48675         * build-aux/vc-list-files: Use `...`, not $(...).
48676
48677 2008-04-30  Jim Meyering  <meyering@redhat.com>
48678
48679         add tests for vc-list-files
48680         * modules/vc-list-files-tests: New module.
48681         * tests/test-vc-list-files-cvs.sh: New file.
48682         * tests/test-vc-list-files-git.sh: New file.
48683
48684         avoid a warning from gcc
48685         * lib/getndelim2.c (IF_LINT): Define.
48686         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48687
48688         vc-list-files: work properly with build-aux/cvsu, too
48689         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48690         to all cvs-based clauses.
48691
48692         vc-list-files: work properly in the CVS+awk case, too
48693         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48694
48695         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48696         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48697         take more than one file argument, so .  Add quotes, just in case $dir
48698         ever contains a shell meta-character.  Prompted by Soren Hansen in
48699         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48700
48701 2008-04-29  Eric Blake  <ebb9@byu.net>
48702
48703         Optimize getndelim2 to use block operations when possible.
48704         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48705         freadseek, and memchr2.
48706         * lib/getndelim2.c (getndelim2): Use them for block reads.
48707
48708 2008-04-29  Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48711         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48712         * modules/inet_ntop (Depends-on): Add extensions.
48713         * modules/inet_pton (Depends-on): Likewise.
48714         Reported by Simon Josefsson.
48715
48716 2008-04-29  Jim Meyering  <meyering@redhat.com>
48717
48718         When the is more than one match in a block, match all of them.
48719         * build-aux/useless-if-before-free: Iterate through each block
48720         until there are no more matches.
48721
48722         Fix broken useless-if-before-free script.
48723         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48724         the expression to match cast of argument to free-like function.
48725
48726 2008-04-29  Eric Blake  <ebb9@byu.net>
48727
48728         Use new header.
48729         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48730
48731 2008-04-29  Jim Meyering  <meyering@redhat.com>
48732
48733         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48734         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48735         by gnulib to exist and to declare e.g., inet_ntop.
48736         Don't include "inet_ntop.h", now removed.
48737
48738         * m4/arpa_inet_h.m4: Remove trailing blanks.
48739
48740 2008-04-29  Eric Blake  <ebb9@byu.net>
48741
48742         Silence valgrind on safe reads beyond potential array bounds.
48743         * lib/rawmemchr.valgrind: New file.
48744         * lib/strchrnul.valgrind: Likewise.
48745         * modules/rawmemchr (Files): Distribute new file.
48746         * modules/strchrnul (Files): Likewise.
48747         Suggested by Bruno Haible.
48748
48749 2008-04-29  Bruno Haible  <bruno@clisp.org>
48750
48751         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48752         (inet_ntop, inet_pton): Change portability warning's wording.
48753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48754         Invoke gl_CHECK_NEXT_HEADERS.
48755         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48756         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48757         set ARPA_INET_H.
48758         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48759         * modules/arpa_inet (Description): No longer only for systems that
48760         lack it.
48761         (Depends-on): Add include_next.
48762         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48763         HAVE_ARPA_INET_H.
48764
48765 2008-04-29  Jim Meyering  <meyering@redhat.com>
48766
48767         * modules/mkdir (License): Re-license as LGPLv2+.
48768
48769 2008-04-29  Bruno Haible  <bruno@clisp.org>
48770
48771         * modules/rawmemchr (Maintainer): Set to Eric.
48772         * modules/strchrnul (Maintainer): Likewise.
48773
48774 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48775
48776         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48777         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48778
48779         * modules/arpa_inet (arpa/inet.h): Use them.
48780
48781 2008-04-28  Eric Blake  <ebb9@byu.net>
48782
48783         Test getndelim2.
48784         * modules/getndelim2-tests: New file.
48785         * tests/test-getndelim2.c: Likewise.
48786         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48787         stream.
48788         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48789
48790         * MODULES.html.sh: Document new module.
48791
48792 2008-04-20  Bruno Haible  <bruno@clisp.org>
48793
48794         * lib/c-stack.c (die): Use raise.
48795         * modules/c-stack (Depends-on): Add raise.
48796
48797 2008-04-28  Bruno Haible  <bruno@clisp.org>
48798
48799         Expect rpmatch to be declared.
48800         * lib/yesno.c (rpmatch): Remove declaration.
48801
48802         Declare rpmatch.
48803         * lib/stdlib.in.h (rpmatch): New declaration.
48804         * lib/rpmatch.c: Include <stdlib.h> first.
48805         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48806         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48808         HAVE_RPMATCH.
48809         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48810         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48811         (Include): Set to <stdlib.h>.
48812         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48813         HAVE_RPMATCH.
48814         * NEWS: Document the change.
48815
48816 2008-04-28  Bruno Haible  <bruno@clisp.org>
48817
48818         Change rpmatch to use nl_langinfo when appropriate.
48819         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48820         (N_): New macro.
48821         (localized_pattern): New function/macro.
48822         (try): Remove match, nomatch arguments. Copy the pattern into safe
48823         memory before caching it.
48824         (rpmatch): Use localized_pattern. Add translator comments.
48825         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48826         Suggested by Eric Blake.
48827         * modules/rpmatch (Depends-on): Add stdbool.
48828
48829 2008-04-28  Eric Blake  <ebb9@byu.net>
48830
48831         Add rawmemchr module, matching glibc.
48832         * modules/string (Makefile.am): New indicator.
48833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48834         * lib/string.in.h (rawmemchr): Declare when appropriate.
48835         * modules/rawmemchr: New file.
48836         * m4/rawmemchr.m4: Likewise.
48837         * lib/rawmemchr.c: Likewise.
48838         * modules/rawmemchr-tests: Likewise.
48839         * tests/test-rawmemchr.c: Likewise.
48840         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48841         module.
48842         * modules/strchrnul (Depends-on): Add rawmemchr.
48843         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48844
48845         Whitespace cleanup.
48846         * tests/test-strchrnul.c: Reindent.
48847         * lib/strchrnul.c: Likewise.
48848
48849         Optimize and test strchrnul.
48850         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48851         * modules/strchrnul-tests: New file.
48852         * tests/test-strchrnul.c: Likewise.
48853
48854         Remove intprops dependency.
48855         * modules/memchr (Depends-on): Remove intprops.
48856         * modules/memrchr (Depends-on): Likewise.
48857         * modules/memchr2 (Depends-on): Likewise.
48858         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48859         * lib/memrchr.c (__memrchr): Likewise.
48860         * lib/memrchr2.c (memchr2): Likewise.
48861         Reported by Simon Josefsson.
48862
48863 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48864
48865         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48866         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48867
48868 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48869
48870         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48871
48872         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48873
48874         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48875
48876         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48877         declarations.
48878         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48879
48880         * m4/inet_pton.m4: Don't check for header files.
48881
48882         * m4/inet_ntop.m4: Don't check for header files.
48883
48884 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48885
48886         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48887         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48888         trigger for cygwin).
48889         Reported by Bruno Haible  <bruno@clisp.org>.
48890
48891 2008-04-28  Bruno Haible  <bruno@clisp.org>
48892
48893         * doc/posix-functions/strdup.texi: Mention mingw problem.
48894
48895 2008-04-27  Bruno Haible  <bruno@clisp.org>
48896
48897         * modules/stat-time-tests (Depends-on): Add sleep.
48898         * tests/test-stat-time.c (force_unlink): New function.
48899         (cleanup): Use it.
48900         (test_mtime): Remove the ctime related tests.
48901         (test_ctime): New function, containing the ctime related tests.
48902         (main): Call test_ctime, except on native Windows platforms.
48903
48904 2008-04-27  Bruno Haible  <bruno@clisp.org>
48905
48906         * lib/rpmatch.c (rpmatch): Add some comments.
48907         Reported by James Youngman <jay@gnu.org>.
48908
48909 2008-04-27  Bruno Haible  <bruno@clisp.org>
48910
48911         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48912         quiet NaNs.
48913
48914 2008-04-27  Bruno Haible  <bruno@clisp.org>
48915
48916         Make test-yesno.sh work on mingw.
48917         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48918         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48919         (main): Set stdin to binary mode.
48920         * modules/yesno-tests (Depends-on): Add binary-io.
48921
48922 2008-04-27  Bruno Haible  <bruno@clisp.org>
48923
48924         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48925         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48926         argument that lie outside the IEEE 854 domain.
48927         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48928         (gl_ISFINITE): Use it.
48929         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48930
48931 2008-04-27  Bruno Haible  <bruno@clisp.org>
48932
48933         Allow local renaming in config.h.
48934         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48935
48936 2008-04-27  Bruno Haible  <bruno@clisp.org>
48937
48938         * lib/memchr.c (__memchr): Change type of 'i'.
48939         * lib/memchr2.c (memchr2): Likewise.
48940
48941 2008-04-26  Eric Blake  <ebb9@byu.net>
48942         and Bruno Haible  <bruno@clisp.org>
48943
48944         Optimize and test memrchr.
48945         * modules/memrchr (Depends-on): Add intprops.
48946         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48947         * modules/memrchr-tests: New file.
48948         * tests/test-memrchr.c: New file.
48949
48950 2008-04-26  Bruno Haible  <bruno@clisp.org>
48951
48952         Add tentative support for DragonFly BSD.
48953         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48954         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48955         fp.
48956         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48957         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48958         * lib/fpurge.c (fpurge): Likewise.
48959         * lib/freadable.c (freaadable): Likewise.
48960         * lib/freadahead.c (freadahead): Likewise.
48961         * lib/freading.c (freading): Likewise.
48962         * lib/freadptr.c (freadptr): Likewise.
48963         * lib/freadseek.c (freadptrinc): Likewise.
48964         * lib/fseeko.c (fseeko): Likewise.
48965         * lib/fseterr.c (fseterr): Likewise.
48966         * lib/fwritable.c (fwritable): Likewise.
48967         * lib/fwriting.c (fwriting): Likewise.
48968
48969 2008-04-26  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/stdio-impl.h: New file.
48972         * lib/fbufmode.c: Include stdio-impl.h.
48973         (fbufmode): Use fp_, remove redundant #defines.
48974         * lib/fflush.c: Include stdio-impl.h.
48975         (clear_ungetc_buffer): Remove redundant #defines.
48976         * lib/fpurge.c: Include stdio-impl.h.
48977         (fpurge): Remove redundant #defines.
48978         * lib/freadable.c: Include stdio-impl.h.
48979         (freadable): Remove redundant #defines.
48980         * lib/freadahead.c: Include stdio-impl.h.
48981         (freadahead): Remove redundant #defines.
48982         * lib/freading.c: Include stdio-impl.h.
48983         (freading): Remove redundant #defines.
48984         * lib/freadptr.c: Include stdio-impl.h.
48985         (freadptr): Remove redundant #defines.
48986         * lib/freadseek.c: Include stdio-impl.h.
48987         (freadptrinc): Remove redundant #defines.
48988         * lib/fseeko.c: Include stdio-impl.h.
48989         (rpl_fseeko): Remove redundant #defines.
48990         * lib/fseterr.c: Include stdio-impl.h.
48991         (fseterr): Remove redundant #defines.
48992         * lib/fwritable.c: Include stdio-impl.h.
48993         (fwritable: Remove redundant #defines.
48994         * lib/fwriting.c: Include stdio-impl.h.
48995         (fwriting): Remove redundant #defines.
48996         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48997         * modules/fflush (Files): Likewise.
48998         * modules/fpurge (Files): Likewise.
48999         * modules/freadable (Files): Likewise.
49000         * modules/freadahead (Files): Likewise.
49001         * modules/freading (Files): Likewise.
49002         * modules/freadptr (Files): Likewise.
49003         * modules/freadseek (Files): Likewise.
49004         * modules/fseeko (Files): Likewise.
49005         * modules/fseterr (Files): Likewise.
49006         * modules/fwritable (Files): Likewise.
49007         * modules/fwriting (Files): Likewise.
49008
49009 2008-04-26  Bruno Haible  <bruno@clisp.org>
49010
49011         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49012         restore_seek_optimization, update_fpos_cache): New functions, extracted
49013         from rpl_fflush.
49014         (rpl_fflush): Use them.
49015         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49016         (gl_REPLACE_FFLUSH): Use it.
49017
49018 2008-04-26  Bruno Haible  <bruno@clisp.org>
49019
49020         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49021         on Solaris.
49022         * tests/test-xstrtoimax.sh: Likewise.
49023         * tests/test-xstrtoumax.sh: Likewise.
49024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49025
49026 2008-04-26  Bruno Haible  <bruno@clisp.org>
49027
49028         * modules/memchr-tests: New file.
49029         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49030
49031 2008-04-26  Eric Blake  <ebb9@byu.net>
49032             Bruno Haible  <bruno@clisp.org>
49033
49034         * lib/memchr.c: Include intprops.h.
49035         (__memchr): Optimize parallel detection of matching bytes. Rename local
49036         variables. Add explanatory comments.
49037
49038 2008-04-26  Bruno Haible  <bruno@clisp.org>
49039
49040         Fix module 'memchr', broken since 2000-10-28.
49041         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49042
49043 2008-04-26  Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49046         comments.
49047
49048 2008-04-25  Eric Blake  <ebb9@byu.net>
49049
49050         Use native fstatat on cygwin 1.7.0.
49051         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49052         first.
49053
49054 2008-04-23  Eric Blake  <ebb9@byu.net>
49055
49056         Improve memchr2 performance.
49057         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49058         NUL bytes.
49059         * modules/memchr2 (Depends-on): Use intprops.h.
49060
49061 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49062
49063         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49064         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49065         <blp@cs.stanford.edu>.
49066
49067 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49068
49069         * lib/arpa_inet.in.h: New file.
49070
49071         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49072         (Makefile.am): Sed in substitute header file.
49073
49074         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49075         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49076
49077         * modules/inet_ntop (configure.ac): Use
49078         gl_ARPA_INET_MODULE_INDICATOR.
49079
49080         * modules/inet_pton (configure.ac): Use
49081         gl_ARPA_INET_MODULE_INDICATOR.
49082
49083 2008-04-22  Jim Meyering  <meyering@redhat.com>
49084
49085         * modules/verify (License): Re-license as LGPLv2+.
49086
49087 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49088
49089         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49090         parameter to void* as per POSIX standard (MinGW uses char*).
49091
49092 2008-04-21  Bruno Haible  <bruno@clisp.org>
49093
49094         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49095         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49096         Define to replacements if REPLACE_ISWCNTRL is 1.
49097         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49098         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49099         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49100         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49101         what it fixes.
49102         * doc/posix-functions/iswalpha.texi: Likewise.
49103         * doc/posix-functions/iswblank.texi: Likewise.
49104         * doc/posix-functions/iswcntrl.texi: Likewise.
49105         * doc/posix-functions/iswdigit.texi: Likewise.
49106         * doc/posix-functions/iswgraph.texi: Likewise.
49107         * doc/posix-functions/iswlower.texi: Likewise.
49108         * doc/posix-functions/iswprint.texi: Likewise.
49109         * doc/posix-functions/iswpunct.texi: Likewise.
49110         * doc/posix-functions/iswspace.texi: Likewise.
49111         * doc/posix-functions/iswupper.texi: Likewise.
49112         * doc/posix-functions/iswxdigit.texi: Likewise.
49113         Reported by Alain Guibert.
49114
49115 2008-04-21  Bruno Haible  <bruno@clisp.org>
49116
49117         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49118         Patch by Alain Guibert.
49119
49120 2008-04-21  Bruno Haible  <bruno@clisp.org>
49121
49122         Fix test failures on mingw.
49123         * tests/test-xstrtol.c (print_no_progname): New function.
49124         (main): Install it in error_print_progname hook.
49125         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49126         * tests/test-xstrtoimax.sh: Likewise.
49127         * tests/test-xstrtoumax.sh: Likewise.
49128
49129 2008-04-21  Bruno Haible  <bruno@clisp.org>
49130
49131         Fix test failure on mingw.
49132         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49133
49134 2008-04-21  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49137         Actually assign a value.
49138
49139 2008-04-20  Bruno Haible  <bruno@clisp.org>
49140
49141         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49142         take 2.
49143         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49144         'canonicalize-lgpl' module is also used.
49145         * lib/canonicalize-lgpl.c: Undo last change.
49146         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49147
49148 2008-04-20  Bruno Haible  <bruno@clisp.org>
49149
49150         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49151         config.h. Provide _mkdir based fallback for mingw.
49152         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49153         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49154         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49155         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49156         rather than defining mkdir in config.h.
49157         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49158         (gl_SYS_STAT_H_DEFAULTS): New macro.
49159         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49160         HAVE_IO_H any more.
49161         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49162         HAVE_DECL_MKDIR and HAVE_IO_H.
49163
49164 2008-04-20  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/isapipe.c: Port to native Windows platforms.
49167
49168 2008-04-20  Bruno Haible  <bruno@clisp.org>
49169
49170         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49171
49172 2008-04-21  Eric Blake  <ebb9@byu.net>
49173
49174         Work around preprocessors that don't handle UINTMAX_MAX.
49175         * lib/memchr2.c (memchr2): Avoid embedded #if.
49176         Reported by Alain Guibert, fix suggested by Bruno Haible.
49177
49178 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49179
49180         * doc/posix-functions/strftime.texi (strftime): Explain better
49181         Windows incompatibility.  Suggested by Micah Cowan
49182         <micah@cowan.name>.
49183
49184 2008-04-20  Bruno Haible  <bruno@clisp.org>
49185
49186         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49187         unistr/u8-mblen.
49188
49189 2008-04-20  Bruno Haible  <bruno@clisp.org>
49190
49191         Fix test failure on platforms with non-GNU iconv.
49192         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49193         (U_TO_U8): Use it, rather than u16_to_u8.
49194         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49195         units at the end of the input string.
49196         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49197
49198 2008-04-20  Bruno Haible  <bruno@clisp.org>
49199
49200         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49201         when the resulting length is 0.
49202         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49203
49204 2008-04-20  Bruno Haible  <bruno@clisp.org>
49205
49206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49207         works.
49208         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49209
49210 2008-04-20  Bruno Haible  <bruno@clisp.org>
49211
49212         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49213         * modules/tsearch-tests (configure.ac): Test for initstate function.
49214
49215 2008-04-20  Bruno Haible  <bruno@clisp.org>
49216
49217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49218         for nlink_t if missing.
49219         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49220
49221 2008-04-19  Bruno Haible  <bruno@clisp.org>
49222
49223         Work around snprintf bug on Linux libc5.
49224         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49226         gl_SNPRINTF_SIZE1.
49227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49228         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49229         that test failed.
49230         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49231         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49232         * modules/snprintf (Files): Add m4/printf.m4.
49233         * modules/vsnprintf (Files): Likewise.
49234         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49235         * doc/posix-functions/vsnprintf.texi: Likewise.
49236
49237 2008-04-19  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49240         from 0.0058 to less than 10^-7.
49241
49242 2008-04-19  Bruno Haible  <bruno@clisp.org>
49243
49244         Fix rounding when a precision is given.
49245         * lib/vasnprintf.c (is_borderline): New function.
49246         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49247         9...9x.
49248         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49249         %e, %g.
49250         * tests/test-vasprintf-posix.c (test_function): Likewise.
49251         * tests/test-snprintf-posix.h (test_function): Likewise.
49252         * tests/test-sprintf-posix.h (test_function): Likewise.
49253         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49254         * tests/test-printf-posix.h (test_function): Likewise.
49255         * tests/test-printf-posix.output: Update.
49256         Reported by John Darrington <john@darrington.wattle.id.au> via
49257         Ben Pfaff <blp@cs.stanford.edu>.
49258
49259 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49260
49261         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49262         Suggested by Bruno Haible <bruno@clisp.org>.
49263
49264 2008-04-17  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49267         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49268         implementation.
49269         Patch by Bruce Merry <bmerry@gmail.com>.
49270
49271 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49272
49273         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49274         doesn't work under Windows.
49275
49276 2008-04-16  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49279         New macros.
49280         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49281         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49282         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49283         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49284         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49285         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49286         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49287         macros.
49288         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49289         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49290         Northern Sotho, Uighur.
49291
49292 2008-04-16  Bruno Haible  <bruno@clisp.org>
49293
49294         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49295         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49296         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49297         Reported by Daniel Bergström <daniel@octocode.com>.
49298
49299 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49300             Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49303         function.
49304         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49305         New functions, mostly extracted from gl_locale_name_default.
49306         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49307
49308 2008-04-16  Eric Blake  <ebb9@byu.net>
49309
49310         Adjust strtod detection to catch glibc 2.7 bug.
49311         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49312         Reported by John Gatewood Ham.
49313
49314 2008-04-16  Bruno Haible  <bruno@clisp.org>
49315
49316         Add tentative support for Linux libc5.
49317         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49318         * lib/fpurge.c (fpurge): Likewise.
49319         * lib/freadable.c (freadable): Likewise.
49320         * lib/freadahead.c (freadahead): Likewise.
49321         * lib/freading.c (freading): Likewise.
49322         * lib/freadptr.c (freadptr): Likewise.
49323         * lib/freadseek.c (freadptrinc): Likewise.
49324         * lib/fseeko.c (rpl_fseeko): Likewise.
49325         * lib/fseterr.c (fseterr): Likewise.
49326         * lib/fwritable.c (fwritable): Likewise.
49327         * lib/fwriting.c (fwriting): Likewise.
49328         Reported by Alain Guibert <alguibert+bts@free.fr>.
49329
49330 2008-04-15  Bruno Haible  <bruno@clisp.org>
49331
49332         * modules/mathl (configure.ac): Define module indicator.
49333
49334 2008-04-15  Bruno Haible  <bruno@clisp.org>
49335
49336         * lib/logl.c (logl): Remove unused variables.
49337
49338 2008-04-15  Bruno Haible  <bruno@clisp.org>
49339
49340         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49341         fails.
49342
49343 2008-04-15  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/trim.c (trim2): Fix argument of isspace() macro.
49346
49347 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49348
49349         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49350         to 0.
49351         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49352
49353 2008-04-14  Bruno Haible  <bruno@clisp.org>
49354
49355         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49356         AC_LANG_PROGRAM argument.
49357         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49358         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49360         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49361         * m4/math_h.m4 (gl_MATH_H): Likewise.
49362         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49363         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49364         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49365         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49366         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49367         * m4/regex.m4 (gl_REGEX): Likewise.
49368         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49369         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49371         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49372         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49373         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49376
49377 2008-04-14  Jim Meyering  <meyering@redhat.com>
49378
49379         test-strtod: fix typos: s/abs/fabs/
49380         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49381
49382 2008-04-13  Bruno Haible  <bruno@clisp.org>
49383
49384         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49385         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49386         module is also used and while not building the reloc-wrapper.
49387
49388 2008-04-13  Bruno Haible  <bruno@clisp.org>
49389
49390         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49391
49392 2008-04-13  Bruno Haible  <bruno@clisp.org>
49393
49394         Fix AIX compilation failure introduced on 2008-04-02.
49395         * tests/test-frexp.c (exp): Undefine before redefining.
49396         * tests/test-frexpl.c (exp): Likewise.
49397
49398 2008-04-13  Bruno Haible  <bruno@clisp.org>
49399
49400         Work around a HP-UX stdio bug.
49401         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49402         * tests/test-ftello.c (main): Likewise.
49403         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49404         * doc/posix-functions/ftello.texi: Likewise.
49405
49406 2008-04-13  Bruno Haible  <bruno@clisp.org>
49407
49408         Make test-signbit pass on HP-UX/hppa.
49409         * tests/test-signbit.c (minus_zerol): New variable.
49410         (test_signbitl): Use it.
49411
49412 2008-04-13  Bruno Haible  <bruno@clisp.org>
49413
49414         Make truncl work on OSF/1 4.0.
49415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49416         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49417         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49419         HAVE_DECL_TRUNCL.
49420         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49421         HAVE_DECL_TRUNCL.
49422         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49423
49424 2008-04-13  Bruno Haible  <bruno@clisp.org>
49425
49426         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49427
49428 2008-04-13  Bruno Haible  <bruno@clisp.org>
49429
49430         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49431         expression, so as to avoid HP-UX 11 cc compiler bug.
49432
49433 2008-04-13  Bruno Haible  <bruno@clisp.org>
49434
49435         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49436
49437 2008-04-13  Bruno Haible  <bruno@clisp.org>
49438
49439         * lib/git-merge-changelog.c: Remove empty declaration outside of
49440         functions.
49441
49442 2008-04-13  Bruno Haible  <bruno@clisp.org>
49443
49444         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49445
49446 2008-04-13  Bruno Haible  <bruno@clisp.org>
49447
49448         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49449         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49451         also if it exists but lacks definitions of the SHUT_* macros.
49452         * modules/sys_socket (Description): Update.
49453         Reported by Elbert Pol <e.pol@chello.nl>.
49454
49455 2008-04-13  Bruno Haible  <bruno@clisp.org>
49456
49457         * lib/localcharset.c (OS2): Don't redefine if already defined.
49458         Reported by Elbert Pol <e.pol@chello.nl>.
49459
49460 2008-04-13  Bruno Haible  <bruno@clisp.org>
49461
49462         * lib/binary-io.h [__EMX__]: Include <io.h>.
49463         Reported by Elbert Pol <e.pol@chello.nl>.
49464
49465 2008-04-12  Bruno Haible  <bruno@clisp.org>
49466
49467         * lib/fpucw.h: Enable the definitions also for x86_64.
49468         Needed for NetBSD/x86_64.
49469         Reported by Thomas Klausner <tk@giga.or.at>.
49470
49471 2008-04-12  Bruno Haible  <bruno@clisp.org>
49472
49473         * tests/test-strtod.c: Include isnand.h.
49474         (main): Use isnand instead of isnan.
49475         Reported by Jim Meyering.
49476
49477 2008-04-12  Bruno Haible  <bruno@clisp.org>
49478
49479         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49480         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49481
49482 2008-04-12  Jim Meyering  <meyering@redhat.com>
49483
49484         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49485
49486 2008-04-12  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49489         Reported by Elbert Pol <e.pol@chello.nl>.
49490
49491 2008-04-12  Eric Blake  <ebb9@byu.net>
49492
49493         Work around Solaris 10 math.h bug.
49494         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49495         (gl_MATH_H_DEFAULTS): Set up default.
49496         * modules/math (Makefile.am): Replace new indicators.
49497         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49498         * tests/test-math.c (main): Test this.
49499         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49500         * doc/posix-headers/math.texi (math.h): Mention bug.
49501         Reported by Nelson H. F. Beebe and Jim Meyering.
49502
49503 2008-04-11  Bruno Haible  <bruno@clisp.org>
49504
49505         Adapt to future versions of Apple GCC.
49506         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49507         Reported by Peter O'Gorman <peter@pogma.com>.
49508
49509 2008-04-11  Bruno Haible  <bruno@clisp.org>
49510
49511         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49512
49513 2008-04-11  Bruno Haible  <bruno@clisp.org>
49514
49515         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49516
49517         * modules/getaddrinfo-tests (Makefile.am): Define
49518         test_getaddrinfo_LDADD.
49519
49520 2008-04-11  Bruno Haible  <bruno@clisp.org>
49521
49522         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49523         (init): Fix syntax error.
49524         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49525         is declared.
49526
49527 2008-04-11  Bruno Haible  <bruno@clisp.org>
49528
49529         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49530         * modules/glob (Depends-on): Add stdbool.
49531
49532 2008-04-11  Bruno Haible  <bruno@clisp.org>
49533
49534         * lib/trim.c: Include <string.h>.
49535
49536 2008-04-11  Eric Blake  <ebb9@byu.net>
49537
49538         Avoid compile failure on OS/2.
49539         * lib/regex_internal.h (internal_function): Disable optimization
49540         on OS/2 (__EMX__), where it caused compiler error.
49541         Reported by Elbert Pol.
49542
49543 2008-04-11  Bruno Haible  <bruno@clisp.org>
49544
49545         Flush the standard error stream before aborting. Needed on mingw.
49546         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49547         * tests/test-array_list.c (ASSERT): Likewise.
49548         * tests/test-array_oset.c (ASSERT): Likewise.
49549         * tests/test-avltree_list.c (ASSERT): Likewise.
49550         * tests/test-avltree_oset.c (ASSERT): Likewise.
49551         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49552         * tests/test-binary-io.c (ASSERT): Likewise.
49553         * tests/test-byteswap.c (ASSERT): Likewise.
49554         * tests/test-c-ctype.c (ASSERT): Likewise.
49555         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49556         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49557         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49558         * tests/test-c-strstr.c (ASSERT): Likewise.
49559         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49560         * tests/test-canonicalize.c (ASSERT): Likewise.
49561         * tests/test-carray_list.c (ASSERT): Likewise.
49562         * tests/test-ceilf1.c (ASSERT): Likewise.
49563         * tests/test-ceilf2.c (ASSERT): Likewise.
49564         * tests/test-ceill.c (ASSERT): Likewise.
49565         * tests/test-count-one-bits.c (ASSERT): Likewise.
49566         * tests/test-fbufmode.c (ASSERT): Likewise.
49567         * tests/test-fflush2.c (ASSERT): Likewise.
49568         * tests/test-floorf1.c (ASSERT): Likewise.
49569         * tests/test-floorf2.c (ASSERT): Likewise.
49570         * tests/test-floorl.c (ASSERT): Likewise.
49571         * tests/test-fopen.c (ASSERT): Likewise.
49572         * tests/test-fpending.c (ASSERT): Likewise.
49573         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49574         * tests/test-fpurge.c (ASSERT): Likewise.
49575         * tests/test-freadable.c (ASSERT): Likewise.
49576         * tests/test-freadahead.c (ASSERT): Likewise.
49577         * tests/test-freading.c (ASSERT): Likewise.
49578         * tests/test-freadptr.c (ASSERT): Likewise.
49579         * tests/test-freadptr2.c (ASSERT): Likewise.
49580         * tests/test-freadseek.c (ASSERT): Likewise.
49581         * tests/test-freopen.c (ASSERT): Likewise.
49582         * tests/test-frexp.c (ASSERT): Likewise.
49583         * tests/test-frexpl.c (ASSERT): Likewise.
49584         * tests/test-fseek.c (ASSERT): Likewise.
49585         * tests/test-fseeko.c (ASSERT): Likewise.
49586         * tests/test-fstrcmp.c (ASSERT): Likewise.
49587         * tests/test-ftell.c (ASSERT): Likewise.
49588         * tests/test-ftello.c (ASSERT): Likewise.
49589         * tests/test-func.c (ASSERT): Likewise.
49590         * tests/test-fwritable.c (ASSERT): Likewise.
49591         * tests/test-fwriting.c (ASSERT): Likewise.
49592         * tests/test-getdelim.c (ASSERT): Likewise.
49593         * tests/test-getline.c (ASSERT): Likewise.
49594         * tests/test-i-ring.c (ASSERT): Likewise.
49595         * tests/test-iconv-utf.c (ASSERT): Likewise.
49596         * tests/test-iconv.c (ASSERT): Likewise.
49597         * tests/test-isfinite.c (ASSERT): Likewise.
49598         * tests/test-isnand.c (ASSERT): Likewise.
49599         * tests/test-isnanf.c (ASSERT): Likewise.
49600         * tests/test-isnanl.h (ASSERT): Likewise.
49601         * tests/test-ldexpl.c (ASSERT): Likewise.
49602         * tests/test-linked_list.c (ASSERT): Likewise.
49603         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49604         * tests/test-localename.c (ASSERT): Likewise.
49605         * tests/test-lseek.c (ASSERT): Likewise.
49606         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49607         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49608         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49609         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49610         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49611         * tests/test-mbschr.c (ASSERT): Likewise.
49612         * tests/test-mbscspn.c (ASSERT): Likewise.
49613         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49614         * tests/test-mbspbrk.c (ASSERT): Likewise.
49615         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49616         * tests/test-mbsrchr.c (ASSERT): Likewise.
49617         * tests/test-mbsspn.c (ASSERT): Likewise.
49618         * tests/test-mbsstr1.c (ASSERT): Likewise.
49619         * tests/test-mbsstr2.c (ASSERT): Likewise.
49620         * tests/test-mbsstr3.c (ASSERT): Likewise.
49621         * tests/test-memchr2.c (ASSERT): Likewise.
49622         * tests/test-memmem.c (ASSERT): Likewise.
49623         * tests/test-open.c (ASSERT): Likewise.
49624         * tests/test-printf-frexp.c (ASSERT): Likewise.
49625         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49626         * tests/test-printf-posix.c (ASSERT): Likewise.
49627         * tests/test-quotearg.c (ASSERT): Likewise.
49628         * tests/test-rbtree_list.c (ASSERT): Likewise.
49629         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49630         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49631         * tests/test-round1.c (ASSERT): Likewise.
49632         * tests/test-roundf1.c (ASSERT): Likewise.
49633         * tests/test-roundl.c (ASSERT): Likewise.
49634         * tests/test-signbit.c (ASSERT): Likewise.
49635         * tests/test-sleep.c (ASSERT): Likewise.
49636         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49637         * tests/test-snprintf.c (ASSERT): Likewise.
49638         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49639         * tests/test-stat-time.c (ASSERT): Likewise.
49640         * tests/test-strcasestr.c (ASSERT): Likewise.
49641         * tests/test-strerror.c (ASSERT): Likewise.
49642         * tests/test-striconv.c (ASSERT): Likewise.
49643         * tests/test-striconveh.c (ASSERT): Likewise.
49644         * tests/test-striconveha.c (ASSERT): Likewise.
49645         * tests/test-strsignal.c (ASSERT): Likewise.
49646         * tests/test-strstr.c (ASSERT): Likewise.
49647         * tests/test-strtod.c (ASSERT): Likewise.
49648         * tests/test-trunc1.c (ASSERT): Likewise.
49649         * tests/test-trunc2.c (ASSERT): Likewise.
49650         * tests/test-truncf1.c (ASSERT): Likewise.
49651         * tests/test-truncf2.c (ASSERT): Likewise.
49652         * tests/test-truncl.c (ASSERT): Likewise.
49653         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49654         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49655         * tests/test-vasnprintf.c (ASSERT): Likewise.
49656         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49657         * tests/test-vasprintf.c (ASSERT): Likewise.
49658         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49659         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49660         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49661         * tests/test-vsnprintf.c (ASSERT): Likewise.
49662         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49663         * tests/test-wcwidth.c (ASSERT): Likewise.
49664         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49665         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49666         * tests/test-xvasprintf.c (ASSERT): Likewise.
49667         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49668         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49669         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49670         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49671         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49672         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49673         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49674         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49675         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49676         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49677         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49678         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49679         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49680         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49681         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49682         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49683         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49684         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49685         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49686         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49687         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49688         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49689         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49690         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49691         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49692         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49693         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49694         * tests/unictype/test-combining.c (ASSERT): Likewise.
49695         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49696         * tests/unictype/test-digit.c (ASSERT): Likewise.
49697         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49698         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49699         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49700         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49701         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49702         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49703         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49704         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49705         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49706         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49707         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49708         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49709         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49710         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49711         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49712         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49713         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49714         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49715         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49716         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49717         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49718         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49719         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49720         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49721         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49722         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49723         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49724         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49725         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49726         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49727         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49728         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49729         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49730         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49731         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49732         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49733         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49734         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49735         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49736         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49737         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49738         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49739         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49740         Reported by Eric Blake.
49741
49742 2008-04-11  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/wchar.in.h: Tweak comment.
49745
49746 2008-04-11  Bruno Haible  <bruno@clisp.org>
49747
49748         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49749         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49750         gl_COMMON.
49751         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49752
49753 2008-04-11  Bruno Haible  <bruno@clisp.org>
49754
49755         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49756
49757 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49758
49759         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49760         of attempting to use non-existing /dev/*random.  Based on patch
49761         from Adam Strzelecki <ono@java.pl> in
49762         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49763
49764 2008-04-08  Bruno Haible  <bruno@clisp.org>
49765
49766         Add tentative support for emx+gcc.
49767         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49768         * lib/fpurge.c (fpurge): Likewise.
49769         * lib/freadable.c (freadable): Likewise.
49770         * lib/freadahead.c (freadahead): Likewise.
49771         * lib/freading.c (freading): Likewise.
49772         * lib/freadptr.c (freadptr): Likewise.
49773         * lib/freadseek.c (freadptrinc): Likewise.
49774         * lib/fseeko.c (rpl_fseeko): Likewise.
49775         * lib/fseterr.c (fseterr): Likewise.
49776         * lib/fwritable.c (fwritable): Likewise.
49777         * lib/fwriting.c (fwriting): Likewise.
49778         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49779
49780 2008-04-09  Eric Blake  <ebb9@byu.net>
49781
49782         Avoid some autoconf warnings.
49783         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49784         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49785         * m4/afs.m4 (gl_AFS): Likewise.
49786         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49787         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49789         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49790         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49791         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49792         (AC_CHECK_DECLS_ONCE): Likewise.
49793         Rename file...
49794         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49795         gnulib-tool requires autoconf 2.59 or better.
49796         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49797
49798 2008-04-08  Eric Blake  <ebb9@byu.net>
49799
49800         Use 'git describe --match' if present (added in git 1.5.5).
49801         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49802         if possible.
49803
49804 2008-04-08  Bruno Haible  <bruno@clisp.org>
49805
49806         Add tentative support for OpenServer.
49807         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49808         _ptr, _cnt.
49809         * lib/fpurge.c (fpurge): Likewise.
49810         * lib/freadable.c (freadable): Likewise.
49811         * lib/freadahead.c (freadahead): Likewise.
49812         * lib/freading.c (freading): Likewise.
49813         * lib/freadptr.c (freadptr): Likewise.
49814         * lib/freadseek.c (freadptrinc): Likewise.
49815         * lib/fseeko.c (rpl_fseeko): Likewise.
49816         * lib/fseterr.c (fseterr): Likewise.
49817         * lib/fwritable.c (fwritable): Likewise.
49818         * lib/fwriting.c (fwriting): Likewise.
49819         Reported by Roger Cornelius <rac@tenzing.org> and
49820         Brian K. White <brian@aljex.com>.
49821
49822 2008-04-06  Jim Meyering  <meyering@redhat.com>
49823
49824         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49825
49826 2008-04-06  Bruno Haible  <bruno@clisp.org>
49827
49828         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49829         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49830         * tests/test-printf-posix.sh: Likewise.
49831         * tests/test-vfprintf-posix.sh: Likewise.
49832         * tests/test-vprintf-posix.sh: Likewise.
49833         * tests/test-xprintf-posix.sh: Likewise.
49834
49835 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49836
49837         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49838         hide error from 'ls', needed on OS/2.
49839         Report by Elbert Pol <elbert.pol@gmail.com>.
49840
49841 2008-04-04  Eric Blake  <ebb9@byu.net>
49842
49843         Make test-fseeko.c failures meaningful.
49844         * tests/test-fseeko.c: Print line number on failure.
49845         * tests/test-fseek.c: Likewise.
49846         Reported by Nelson H. F. Beebe.
49847
49848         Improve strtod bug detection check.
49849         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49850         required for Solaris 10.
49851         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49852
49853 2008-04-04  Bruno Haible  <bruno@clisp.org>
49854
49855         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49856         by m4/setenv.m4.
49857
49858 2008-04-03  Eric Blake  <ebb9@byu.net>
49859
49860         Ensure sane .version contents.
49861         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49862         version string.
49863         * build-aux/git-version-gen: Improve documentation.
49864
49865         Make GNU make output nicer.
49866         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49867         MAKECMDGOALS to enforce message for all command line targets.  Set
49868         srcdir for use in maint.mk.
49869
49870         Another maintainer tweak.
49871         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49872         a target that regenerates version.
49873
49874 2008-04-03  Jim Meyering  <meyering@redhat.com>
49875
49876         vc-list-files: don't cause coreutils "make po-check" failure
49877         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49878
49879 2008-04-03  Eric Blake  <ebb9@byu.net>
49880
49881         Allow VPATH usage of vc-list-files.
49882         * build-aux/vc-list-files (scriptversion): Add timestamp.
49883         (options): Add --help, --version, -C.
49884         (CVS): Support installed cvsu.
49885
49886 2008-04-02  Bruno Haible  <bruno@clisp.org>
49887
49888         Avoid some "statement with no effect" warnings from gcc.
49889         * tests/test-wctype.c (main): Explicitly ignore unused values.
49890         Reported by Jim Meyering.
49891
49892 2008-04-02  Jim Meyering  <meyering@redhat.com>
49893
49894         Avoid some warnings from "gcc -Wshadow".
49895         * tests/test-frexp.c (exp): Define to a different identifier.
49896         * tests/test-frexpl.c (exp): Likewise.
49897
49898 2008-04-03  Jim Meyering  <meyering@redhat.com>
49899
49900         bootstrap: remove dangling *.[ch] symlinks from lib
49901         * build-aux/bootstrap [dangling symlink removal]: Move find's
49902         -depth option to precede all others, to avoid a warning.
49903         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49904
49905 2008-04-02  Bruno Haible  <bruno@clisp.org>
49906
49907         Avoid some warnings from "gcc -Wshadow".
49908         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49909         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49910         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49911         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49912         Reported by Jim Meyering.
49913
49914 2008-04-01  Bruno Haible  <bruno@clisp.org>
49915
49916         Fix test to work on IRIX 6.5 with cc.
49917         * tests/test-math.c (numeric_equal): New function.
49918         (main): Use it.
49919
49920 2008-04-01  Bruno Haible  <bruno@clisp.org>
49921
49922         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49923
49924 2008-04-01  Bruno Haible  <bruno@clisp.org>
49925
49926         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49927         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49928         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49929         (Depends-on): Remove math.
49930
49931         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49932         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49933         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49934         (Depends-on): Remove math.
49935
49936         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49937         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49938         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49939         (Depends-on): Remove math.
49940         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49941         (Depends-on): Remove math.
49942
49943         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49944         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49945         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49946         (Depends-on): Remove math.
49947         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49948         (Depends-on): Remove math.
49949
49950         * tests/test-round1.c: Include nan.h.
49951         (main): Use NaNd instead of NAN.
49952         * modules/round-tests (Files): Add tests/nan.h.
49953
49954         * tests/test-trunc1.c: Include nan.h.
49955         (main): Use NaNd instead of NAN.
49956         * modules/trunc-tests (Files): Add tests/nan.h.
49957
49958         * tests/test-roundf1.c: Include nan.h.
49959         (main): Use NaNf instead of NAN.
49960         * modules/roundf-tests (Files): Add tests/nan.h.
49961
49962         * tests/test-truncf1.c: Include nan.h.
49963         (main): Use NaNf instead of NAN.
49964         * modules/truncf-tests (Files): Add tests/nan.h.
49965
49966         * tests/test-ceilf1.c: Include nan.h.
49967         (main): Use NaNf instead of NAN.
49968         * modules/ceilf-tests (Files): Add tests/nan.h.
49969
49970         * tests/test-floorf1.c: Include nan.h.
49971         (main): Use NaNf instead of NAN.
49972         * modules/floorf-tests (Files): Add tests/nan.h.
49973
49974         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49975         (main): Use NaNf instead of NAN.
49976         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49977
49978         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49979         (main): Use NaNd instead of NAN.
49980         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49981
49982         * tests/test-frexp.c: Include nan.h.
49983         (main): Use NaNd instead of NAN.
49984         * modules/frexp-tests (Files): Add tests/nan.h.
49985
49986         * lib/isnan.c: Don't include <math.h>.
49987         (FUNC): Don't use NAN macro.
49988         * modules/isnand-nolibm (Depends-on): Remove math.
49989         * modules/isnanf-nolibm (Depends-on): Remove math.
49990         * modules/isnanl (Depends-on): Remove math.
49991         * modules/isnanl-nolibm (Depends-on): Remove math.
49992
49993         * tests/nan.h: New file.
49994
49995 2008-04-01  Eric Blake  <ebb9@byu.net>
49996
49997         Fix typos.
49998         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49999         values to be the right type.
50000
50001         For now, cater to gnulib strtod inaccuracies.
50002         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50003         fractional results.  While not as nice from a QoI perspective, it
50004         is a quicker patch than correctly implementing decimal to binary
50005         rounding.
50006
50007 2008-03-31  Eric Blake  <ebb9@byu.net>
50008
50009         Guarantee a definition of NAN.
50010         * lib/math.in.h (NAN): Define if missing.
50011         * tests/test-math.c (main): Test it.
50012         * doc/posix-headers/math.texi (math.h): Document this.
50013         * lib/isnan.c (rpl_isnand): Use it.
50014         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50015         * tests/test-floorf1.c (NaN): Likewise.
50016         * tests/test-frexp.c (NaN): Likewise.
50017         * tests/test-isnand.c (NaN): Likewise.
50018         * tests/test-isnanf.c (NaN): Likewise.
50019         * tests/test-round1.c (NaN): Likewise.
50020         * tests/test-roundf1.c (NaN): Likewise.
50021         * tests/test-snprintf-posix.h (NaN): Likewise.
50022         * tests/test-sprintf-posix.h (NaN): Likewise.
50023         * tests/test-trunc1.c (NaN): Likewise.
50024         * tests/test-truncf1.c (NaN): Likewise.
50025         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50026         * tests/test-vasprintf-posix.c (NaN): Likewise.
50027         * modules/isnand-nolibm (Depends-on): Add math.
50028         * modules/isnanf-nolibm (Depends-on): Likewise.
50029         * modules/isnanl (Depends-on): Likewise.
50030         * modules/isnanl-nolibm (Depends-on): Likewise.
50031         * modules/snprintf-posix-tests (Depends-on): Likewise.
50032         * modules/sprintf-posix-tests (Depends-on): Likewise.
50033         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50034         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50035         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50036         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50037
50038 2008-03-31  Bruno Haible  <bruno@clisp.org>
50039
50040         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50041         * doc/posix-functions/strtod.texi: Likewise.
50042
50043 2008-03-31  Bruno Haible  <bruno@clisp.org>
50044
50045         * tests/test-strtod.c (main): Don't use C99 syntax.
50046
50047 2008-03-31  Bruno Haible  <bruno@clisp.org>
50048
50049         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50050         Reported by Eric Blake.
50051
50052 2008-03-31  Jim Meyering  <meyering@redhat.com>
50053
50054         Don't compare actual signbit return values.
50055         * tests/test-strtod.c (main): Rather, compare only their
50056         zero/non-zero nature.
50057
50058 2008-03-31  Eric Blake  <ebb9@byu.net>
50059
50060         More strtod documentation.
50061         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50062         failures as distinct bugs.
50063
50064 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50065
50066         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50067         Problem reported by Erik Benada in
50068         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50069
50070 2008-03-30  Bruno Haible  <bruno@clisp.org>
50071
50072         * tests/test-strtod.c: Add comments about which assertion fails on which
50073         platform.
50074         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50075
50076 2008-03-30  Eric Blake  <ebb9@byu.net>
50077
50078         Test signbit behavior on zeros.
50079         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50080         (test_signbitd, test_signbitl): Likewise.
50081
50082         More strtod touchups.
50083         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50084         sign of negative underflow, for now.  Use .5, not .1.
50085         * doc/posix-functions/strtod.texi (strtod): Mention these
50086         limitations.
50087         Reported by Jim Meyering.
50088
50089 2008-03-30  Bruno Haible  <bruno@clisp.org>
50090
50091         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50092         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50093
50094 2008-03-30  Bruno Haible  <bruno@clisp.org>
50095
50096         Avoid failure when attempting to return empty iconv results on some
50097         platforms.
50098         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50099         allocation, don't report ENOMEM when the resulting string is empty.
50100
50101 2008-03-30  Bruno Haible  <bruno@clisp.org>
50102
50103         Fix buffer overrun.
50104         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50105         Don't consider the width for tmp_length. Check count against tmp_length
50106         before doing the padding. Ensure enough allocation during padding.
50107
50108 2008-03-30  Eric Blake  <ebb9@byu.net>
50109
50110         strtod touchups.
50111         * lib/strtod.c (strtod): Avoid compiler warnings.
50112         Reported by Jim Meyering.
50113
50114 2008-03-30  Bruno Haible  <bruno@clisp.org>
50115
50116         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50117         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50118         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50119         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50120         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50121         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50122         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50123         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50124
50125         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50126         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50127         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50128         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50129         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50130         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50131         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50132         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50133
50134         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50135         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50136         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50137         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50138         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50139         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50140         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50141         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50142
50143         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50144         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50145
50146         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50147         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50148
50149         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50150         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50151
50152         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50154         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50155
50156         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50158         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50159
50160         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50161         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50162         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50163
50164         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50165         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50166         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50167
50168         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50169         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50171         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50172         (Depends-on): Add EOVERFLOW.
50173         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50174         (Depends-on): Add EOVERFLOW.
50175         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50176         (Depends-on): Add EOVERFLOW.
50177         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50178         (Depends-on): Add EOVERFLOW.
50179         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50180         (Depends-on): Add EOVERFLOW.
50181         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50182         (Depends-on): Add EOVERFLOW.
50183         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50184         (Depends-on): Add EOVERFLOW.
50185         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50186         (Depends-on): Add EOVERFLOW.
50187
50188         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50190         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50191
50192         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50194         * modules/snprintf (Depends-on): Add EOVERFLOW.
50195
50196         * lib/poll.c (EOVERFLOW): Remove fallback.
50197         * modules/poll (Depends-on): Add EOVERFLOW.
50198
50199         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50200         * modules/getugroups (Depends-on): Add EOVERFLOW.
50201
50202         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50203         * modules/getdelim (Depends-on): Add EOVERFLOW.
50204
50205         * lib/ftell.c (EOVERFLOW): Remove fallback.
50206         * modules/ftell (Depends-on): Add EOVERFLOW.
50207
50208         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50210         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50211
50212         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50213
50214         * modules/EOVERFLOW-tests: New file.
50215         * tests/test-EOVERFLOW.c: New file.
50216
50217         * modules/EOVERFLOW: New file.
50218         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50219
50220 2008-03-30  Bruno Haible  <bruno@clisp.org>
50221
50222         Fix bug introduced on 2007-06-10.
50223         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50224         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50225
50226 2008-03-30  Bruno Haible  <bruno@clisp.org>
50227
50228         Improve freadseek's efficiency after ungetc.
50229         * lib/freadseek.c: Include freadahead.h.
50230         (freadptrinc): New function, extracted from freadseek.
50231         (freadseek): Use it in a loop. Use freadahead to determine the number
50232         of loop iterations.
50233         * modules/freadseek (Depends-on): Add freadahead.
50234         (configure.ac): Require AC_C_INLINE.
50235
50236 2008-03-30  Bruno Haible  <bruno@clisp.org>
50237
50238         * lib/freadseek.c (freadseek): Don't ignore the return value of
50239         freadptr.
50240
50241 2008-03-29  Eric Blake  <ebb9@byu.net>
50242
50243         Add hex float support.
50244         * modules/strtod (Depends-on): Add c-ctype.
50245         (Link): Mention POW_LIB.
50246         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50247         whitespace between 'e' and exponent.
50248         * tests/test-strtod.c (main): Enable hex float tests.
50249         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50250         now provides.
50251
50252         Document various strtod bugs, with some fixes.
50253         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50254         "-0x", "inf", "nan", and hex constants.
50255         * doc/posix-functions/atof.texi (atof): Likewise.
50256         * modules/stdlib (Makefile.am): Support strtod.
50257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50258         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50259         detect additional strtod bugs.
50260         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50261         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50262         bool where appropriate.  Parse 'inf' and 'nan'.
50263         * tests/test-strtod.c: New file.
50264         * modules/strtod (Depends-on): Add stdbool, stdlib.
50265         (configure.ac): Turn on module indicator.
50266         * modules/strtod-tests: New module.
50267
50268 2008-03-29  Eric Blake  <ebb9@byu.net>
50269
50270         Fix ftell on mingw.
50271         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50272         * modules/ftell-tests (Depends-on): Add binary-io.
50273         * modules/ftello-tests (Depends-on): Likewise.
50274         * tests/test-ftell.c (main): Enhance test to cover behavior after
50275         ungetc.  Enforce binary mode.
50276         * tests/test-ftello.c (main): Likewise.
50277
50278         Pass test-freadseek on cygwin.
50279         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50280         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50281         ungetc buffer.
50282
50283         * tests/test-fflush2.c (main): Fix typo.
50284
50285 2008-03-29  Bruno Haible  <bruno@clisp.org>
50286
50287         * tests/test-fflush2.c (main): Temporarily disable the contents of
50288         this test.
50289         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50290         Reported by Eric Blake.
50291
50292 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50293
50294         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50295         (GC_SHA224_DIGEST_SIZE): Add.
50296
50297         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50298         (gc_hash_digest_length): Likewise.
50299         (gc_hash_buffer): Likewise.
50300
50301 2008-03-25  Bruno Haible  <bruno@clisp.org>
50302
50303         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50304         detail which gettext release to use.
50305         Reported by Simon Josefsson.
50306
50307 2008-03-26  Jim Meyering  <meyering@redhat.com>
50308
50309         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50310         * modules/gnumakefile (clean-GNUmakefile): Also, use
50311         test ... && ... || : syntax rather than if-then ... fi.
50312
50313         gnumakefile: Don't double-quote-expand $(VPATH) value.
50314         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50315
50316 2008-03-24  Eric Blake  <ebb9@byu.net>
50317
50318         Alter GNUmakefile to install into top directory.
50319         * modules/maintainer-makefile: Split, and add dependency...
50320         * modules/gnumakefile: to this new module.
50321         * build-aux/GNUmakefile: Move...
50322         * top/GNUmakefile: ...here.
50323         * build-aux/maint.mk: Move...
50324         * top/maint.mk: ...here.
50325         * MODULES.html.sh (Support for maintaining...): Document new
50326         module.
50327
50328 2008-03-23  Bruno Haible  <bruno@clisp.org>
50329
50330         * gnulib-tool: New options --vc-files, --no-vc-files.
50331         (func_usage): Document them.
50332         (vc_files): New variable.
50333         (func_import): Consider vc_files.
50334         (func_create_testdir): Set vc_files to empty.
50335         Suggested by Jim Meyering and Karl Berry.
50336
50337 2008-03-23  Bruno Haible  <bruno@clisp.org>
50338
50339         Fix regex compilation error on HP-UX 11.
50340         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50341         * modules/regex (Files): Add m4/mbstate_t.m4.
50342         Reported by Ton Voon <ton.voon@altinity.com>.
50343
50344 2008-03-23  Bruno Haible  <bruno@clisp.org>
50345
50346         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50347
50348 2008-03-23  Eric Blake  <ebb9@byu.net>
50349             Bruno Haible  <bruno@clisp.org>
50350
50351         Install files from top/ in the destination directory.
50352         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50353         augmentation also for the files from top/.
50354         (func_import, func_create_testdir): Rewrite file names:
50355         top/filename -> filename.
50356
50357 2008-03-23  Bruno Haible  <bruno@clisp.org>
50358
50359         Tweak "gnulib --version" output.
50360         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50361
50362 2008-03-23  Bruno Haible  <bruno@clisp.org>
50363
50364         Tweak "gnulib --version" output.
50365         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50366         rather than contents of ChangeLog, when possible.
50367
50368 2008-03-21  Eric Blake  <ebb9@byu.net>
50369
50370         More --version tweaks.
50371         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50372         date of last ChangeLog entry.
50373
50374 2008-03-21  Jim Meyering  <meyering@redhat.com>
50375
50376         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50377
50378 2008-03-20  Eric Blake  <ebb9@byu.net>
50379
50380         VPATH fix.
50381         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50382
50383 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50384
50385         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50386         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50387
50388 2008-03-20  Eric Blake  <ebb9@byu.net>
50389
50390         Sync GNUmakefile with coreutils.
50391         * build-aux/GNUmakefile (have-Makefile): Rename...
50392         (_have-Makefile): ...to this, for namespace consideration.
50393         (GNUmakefile.cfg): Include, if present.
50394         (_autoreconf): Define a default.
50395         (_is-dist-target): New rule for rebuilds to pick up intra-release
50396         version.
50397         (maint-cfg.mk): Rename...
50398         (cfg.mk): ...to this.
50399
50400 2008-03-18  Jim Meyering  <meyering@redhat.com>
50401
50402         New script and module: mktempd
50403         * MODULES.html.sh (maint+release support): Add mktempd.
50404         * build-aux/mktempd: New file.
50405         * modules/mktempd: New file.
50406
50407 2008-03-15  Jim Meyering  <meyering@redhat.com>
50408
50409         Undo last change.
50410         * lib/sha1.c, lib/md5.c: 63 != ~63.
50411         Reported by Andreas Schwab.
50412
50413         sha1.c, md5.c: Hoist a redundant expression.
50414         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50415         "ctx->buflen" only once, before calling *_process_block.
50416         * lib/md5.c (md5_process_bytes): Likewise.
50417
50418 2008-03-14  Eric Blake  <ebb9@byu.net>
50419
50420         Bump copyright year in files generated by gnulib-tool.
50421         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50422         gnulib-tool, rather than hard-coding it.
50423
50424         Fix 'gnulib-tool --version' output to work with git.
50425         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50426         (startup): ...here.
50427         (func_version): Use it to invoke git-version-gen, rather than
50428         relying on CVS keyword expansion.  Modernize wording.
50429         (cvsdatestamp, last_checkin_date, version): Kill unused
50430         variables.
50431
50432 2008-03-12  Jim Meyering  <meyering@redhat.com>
50433
50434         Recognize optional cast of the argument to free.
50435         * build-aux/useless-if-before-free: Update regexps.
50436
50437         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50438
50439 2008-03-11  Bruno Haible  <bruno@clisp.org>
50440
50441         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50442         by a single package.
50443         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50444         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50445         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50446         Reported by Sam Steingold <sds@gnu.org>.
50447
50448 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50449
50450         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50451         repositories.
50452
50453 2008-03-11  Bruno Haible  <bruno@clisp.org>
50454
50455         Avoid conflicts between local macro definitions.
50456         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50457         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50458
50459 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50460             Bruno Haible  <bruno@clisp.org>
50461
50462         Make va_copy work with some version of xlc on AIX 5.1.
50463         * lib/stdarg.in.h: New file.
50464         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50465         On AIX, use a <stdarg.h> file substitute.
50466         * modules/stdarg (Files): Add lib/stdarg.in.h.
50467         (Depends-on): Add include_next.
50468         (Makefile.am): Build a stdarg.h substitute if requested.
50469         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50470
50471 2008-03-10  Bruno Haible  <bruno@clisp.org>
50472
50473         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50474         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50475         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50476
50477 2008-03-10  Bruno Haible  <bruno@clisp.org>
50478
50479         * modules/stdlib (Depends-on): Add include_next, remove
50480         absolute-header.
50481
50482 2008-03-09  Bruno Haible  <bruno@clisp.org>
50483
50484         * lib/freadahead.h (freadahead): Document more precisely.
50485         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50486         the sum of both buffer sizes.
50487         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50488         * NEWS: Document the change.
50489
50490 2008-03-09  Bruno Haible  <bruno@clisp.org>
50491
50492         Extend freadptr to return also the buffer size.
50493         * lib/freadptr.h (freadptr): Add sizep argument.
50494         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50495         (freadptr): Add sizep argument. Determine buffer size like freadahead
50496         does.
50497         * tests/test-freadptr.c: Don't include freadahead.h.
50498         (main): Adapt for new calling convention of freadptr.
50499         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50500         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50501         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50502         tests/test-freadptr2.sh.
50503         (Depends): Remove freadahead.
50504         (TESTS): Add test-freadptr2.sh.
50505         (check_PROGRAMS): Add test-freadptr2.
50506
50507 2008-03-09  Bruno Haible  <bruno@clisp.org>
50508
50509         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50510         Report and solution by Simon Josefsson.
50511
50512 2008-03-06  Bruno Haible  <bruno@clisp.org>
50513
50514         Make fflush after ungetc work on BSD platforms.
50515         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50516         * tests/test-fflush2.c: New file.
50517         * tests/test-fflush2.sh: New file.
50518         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50519         tests/test-fflush2.c.
50520         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50521         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50522
50523 2008-03-06  Eric Blake  <ebb9@byu.net>
50524
50525         Likewise for ftello.
50526         * modules/ftello (Dependencies): Add extensions.
50527         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50528
50529 2008-03-06  Bruno Haible  <bruno@clisp.org>
50530
50531         * modules/fseeko (Dependencies): Add extensions.
50532         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50533         Needed on glibc systems.
50534
50535 2008-03-06  Bruno Haible  <bruno@clisp.org>
50536
50537         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50538         email address.
50539         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50540
50541 2008-03-06  Bruno Haible  <bruno@clisp.org>
50542
50543         * users.txt: Add libgnupdf.
50544
50545 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50546
50547         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50548         (Header File Substitutes, Function Substitutes,
50549         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50550         (Build robot for gnulib): Fix typo.
50551
50552 2008-03-06  Bruno Haible  <bruno@clisp.org>
50553
50554         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50555         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50556
50557 2008-03-06  Bruno Haible  <bruno@clisp.org>
50558
50559         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50560         * doc/gnulib.texi: Include it.
50561
50562 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50563
50564         * modules/func (License): Change license to unlimited; there was
50565         no LGPL parts in the module anyway.
50566
50567 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50568
50569         * modules/__func__: Renamed to modules/func.
50570         * modules/__func__-tests: Renamed to modules/func-tests.
50571         * tests/test-__func__.c: Renamed to tests/test-func.c.
50572         * m4/__func__.m4: Renamed to m4/func.m4.
50573         * doc/gnulib.texi (__func__): Section renamed to func.
50574         Suggested by Eric Blake <ebb9@byu.net>.
50575
50576 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50577
50578         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50579         about __func__.  Make example self-contained.  Suggested by Eric
50580         Blake <ebb9@byu.net>.
50581
50582         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50583         Suggested by Eric Blake <ebb9@byu.net>.
50584
50585 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50586
50587         * modules/__func__: New file.
50588         * modules/__func__-tests: New file.
50589         * tests/test-__func__.c: New file.
50590         * m4/__func__.m4: New file.
50591         * doc/gnulib.texi (__func__): Document __func__ module.
50592
50593 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50594
50595         * modules/byteswap (License): Re-license as LGPLv2+.
50596
50597 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50598
50599         * doc/Makefile: Add pdf target.
50600
50601 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50602
50603         * modules/inline (License): Use 'unlimited', since there are only
50604         *.m4 files in this module.
50605
50606 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50607             Bruno Haible  <bruno@clisp.org>
50608
50609         Add support for HP C 7.1 on OpenVMS 8.3.
50610         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50611
50612 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50613
50614         Update VMS specifics.
50615         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50616
50617 2008-03-02  Jim Meyering  <meyering@redhat.com>
50618
50619         Remove the last dependency on the "free" module.
50620         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50621         Reported by Bob Proulx.
50622
50623         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50624
50625         Remove useless "if" tests before free.  Deprecate "free" module.
50626         * doc/posix-functions/free.texi: Mention that this
50627         module is no longer useful.
50628         * modules/free (Notice): Say this module is obsolete.
50629         * modules/readutmp (Depends-on): Remove free.
50630         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50631         * lib/putenv.c (putenv): Likewise.
50632         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50633         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50634         * tests/test-c-strcasestr.c (main): Likewise.
50635         * tests/test-c-strstr.c (main): Likewise.
50636         * tests/test-mbscasestr1.c (main): Likewise.
50637         * tests/test-mbscasestr2.c (main): Likewise.
50638         * tests/test-mbsstr1.c (main): Likewise.
50639         * tests/test-mbsstr2.c (main): Likewise.
50640         * tests/test-memmem.c (main): Likewise.
50641         * tests/test-strcasestr.c (main): Likewise.
50642         * tests/test-striconv.c (main): Likewise.
50643         * tests/test-striconveh.c (main): Likewise.
50644         * tests/test-striconveha.c (main): Likewise.
50645         * tests/test-strstr.c (main): Likewise.
50646
50647         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50648
50649         bootstrap: sync from coreutils again
50650         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50651
50652 2008-03-01  Jim Meyering  <meyering@redhat.com>
50653
50654         bootstrap: sync from coreutils
50655         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50656         also when the target doesn't exist.
50657
50658 2008-03-01  Eric Blake  <ebb9@byu.net>
50659
50660         Fix bugs in last patch.
50661         * lib/memchr2.c (memchr2): Fix typo.
50662         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50663         extension.
50664         Reported by Bruce Korb.
50665
50666         New module 'memchr2'.
50667         * modules/memchr2: New file.
50668         * modules/memchr2-tests: Likewise.
50669         * lib/memchr2.h: Likewise.
50670         * lib/memchr2.c: Likewise, based on memchr.c.
50671         * tests/test-memchr2.c: New test.
50672         * MODULES.html.sh (String handling): Add memchr2.
50673
50674 2008-02-29  Bruno Haible  <bruno@clisp.org>
50675
50676         * modules/freadseek-tests: New file.
50677         * tests/test-freadseek.sh: New file.
50678         * tests/test-freadseek.c: New file.
50679
50680         New module 'freadseek'.
50681         * modules/freadseek: New file.
50682         * lib/freadseek.h: New file.
50683         * lib/freadseek.c: New file.
50684         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50685
50686 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50687
50688         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50689         wydawca.
50690
50691         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50692         program_invocation_name and program_invocation_short_name are
50693         present.
50694
50695 2008-02-28  Bruno Haible  <bruno@clisp.org>
50696
50697         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50698         * tests/test-freadptr.sh: Also test non-seekable stdin.
50699
50700 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50701
50702         * build-aux/bootstrap (source_base, m4_base)
50703         (doc_base, tests_base): New variables.
50704         (gnulib_tool_options): Do not hardcode base directories, use
50705         the above variables instead.
50706
50707 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50708
50709         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50710
50711 2008-02-28  Bruno Haible  <bruno@clisp.org>
50712
50713         * modules/freadptr-tests: New file.
50714         * tests/test-freadptr.sh: New file.
50715         * tests/test-freadptr.c: New file.
50716
50717         New module 'freadptr'.
50718         * modules/freadptr: New file.
50719         * lib/freadptr.h: New file.
50720         * lib/freadptr.c: New file.
50721         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50722
50723 2008-02-26  Karl Berry  <karl@freefriends.org>
50724
50725         Sync from Libtool:
50726         * libltdl/argz.c (argz_add, argz_count): New functions.
50727         * libltdl/argz.in.h: Declare them.
50728         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50729
50730 2008-02-22  Bruno Haible  <bruno@clisp.org>
50731
50732         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50733         is a pointer type.  Needed for HP-UX 10.
50734         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50735         * doc/posix-functions/gmtime_r.texi: Likewise.
50736         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50737
50738 2008-02-24  Bruno Haible  <bruno@clisp.org>
50739
50740         * modules/environ-tests: New file.
50741         * tests/test-environ.c: New file.
50742
50743         New module 'environ'.
50744         * modules/environ: New file.
50745         * lib/unistd.in.h (environ): New declaration.
50746         * m4/environ.m4: New file.
50747         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50748         after use.
50749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50750         HAVE_DECL_ENVIRON.
50751         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50752         HAVE_DECL_ENVIRON.
50753         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50754         wrong claim that 'environ' is missing on some systems.
50755         * modules/execute (Depends-on): Add environ.
50756         * lib/execute.c (environ): Remove fallback declaration.
50757         * modules/pipe (Depends-on): Add environ.
50758         * lib/pipe.c (environ): Remove fallback declaration.
50759         * modules/setenv (Depends-on): Add environ.
50760         * lib/setenv.c (environ): Remove fallback declaration.
50761         * modules/unsetenv (Depends-on): Add environ.
50762         * lib/unsetenv.c (environ): Remove fallback declaration.
50763         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50764         m4/environ.m4.
50765         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50766         (gl_PREREQ_UNSETENV): Likewise.
50767
50768 2008-02-24  Bruno Haible  <bruno@clisp.org>
50769
50770         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50771
50772 2008-02-20  Bob Proulx  <bob@proulx.com>
50773
50774         Enable use of older two part flavor 'git describe'.
50775         * build-aux/git-version-gen: If using the older two part flavor of
50776         git version then recreate the third part now present in the
50777         newer three part flavor of git describe.
50778
50779 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50780
50781         * lib/fts.c (fts_build): Typo correction to comment.
50782
50783 2008-02-17  Bruno Haible  <bruno@clisp.org>
50784
50785         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50786         generating no-op conflicts.
50787
50788 2008-02-17  Bruno Haible  <bruno@clisp.org>
50789
50790         Speed up by 10%.
50791         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50792         result_entries, rather than an index-based loop.
50793
50794 2008-02-17  Bruno Haible  <bruno@clisp.org>
50795
50796         Speed up by 25%.
50797         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50798         'hashcode_cached'.
50799         (entry_create): New function.
50800         (entry_hashcode): Use the cached hashcode if possible.
50801         (read_changelog_file, try_split_merged_entry): Use entry_create.
50802
50803 2008-02-17  Bruno Haible  <bruno@clisp.org>
50804
50805         Speed up from O(n^2) to O(n) for long ChangeLog files.
50806         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50807         (read_changelog_file): Change implementation of entries_reversed list
50808         to rbtreehash.
50809         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50810
50811 2008-02-17  Bruno Haible  <bruno@clisp.org>
50812
50813         New option --split-merged-entry.
50814         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50815         (find_paragraph_end, try_split_merged_entry): New functions.
50816         (long_options): Add option --split-merged-entry.
50817         (usage): Document option --split-merged-entry.
50818         (main): Implement option --split-merged-entry.
50819         Reported by Eric Blake.
50820
50821 2008-02-17  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/git-merge-changelog.c: Include c-strstr.h.
50824         (main): Support the "git pull --rebase" situation.
50825         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50826         Reported by Eric Blake.
50827
50828 2008-02-16  Eric Blake  <ebb9@byu.net>
50829
50830         Avoid doubling \ in common case of "c-maybe" quoting style.
50831         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50832         eliding outer quotes.
50833         * lib/quotearg.h: Document this.
50834         * tests/test-quotearg.c (result_strings, inputs, results_g)
50835         (flag_results, locale_results): Test it by adding a new string to
50836         each test group.
50837         (compare_strings): Test new string.
50838
50839 2008-02-13  Eric Blake  <ebb9@byu.net>
50840
50841         Avoid trigraph quoting in default output.
50842         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50843         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50844         unless explicitly requested.
50845         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50846
50847 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50848
50849         Don't rely on signed integer overflowing to negative value.
50850         * lib/getugroups.c (getugroups): Include <limits.h>.
50851         Instead, compare against INT_MAX, and increment only if the test passes.
50852
50853 2008-02-13  Jim Meyering  <meyering@redhat.com>
50854         and Eric Blake  <ebb9@byu.net>
50855
50856         Avoid shadowing warning and compile errors on Linux.
50857         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50858         forwarding macros on Linux.
50859         (dcgettext): Define a stub, for Linux.
50860         (results_g, main): Avoid warnings.
50861
50862 2008-02-12  Eric Blake  <ebb9@byu.net>
50863
50864         Silence warning in last patch.
50865         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50866
50867         Quotearg part 4: add tests, fix c-maybe colon quoting.
50868         * lib/quotearg.h: Improve documentation.
50869         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50870         escapes when adding outer quotes.  When quoting trigraphs, use
50871         valid C notation.  When quoting NUL, omit extra characters if next
50872         character is not digit.  Alter prototype.
50873         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50874         callers.
50875         * modules/quotearg-tests: New module.
50876         * tests/test-quotearg.c: New test.
50877
50878 2008-02-07  Eric Blake  <ebb9@byu.net>
50879
50880         Quotearg part 3: add flag to control outer quote elision.
50881         * lib/quotearg.h (c_maybe_quoting_style): New style.
50882         (enum quoting_flags): Better documentation of flags.
50883         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50884         c-maybe style.
50885         (quotearg_buffer_restyled): Handle new flag to elide outer
50886         quotes.
50887
50888         Quotearg part 2: add flag that can control NUL elision.
50889         * lib/quotearg.h (set_quoting_flags): New prototype.
50890         * lib/quotearg.c (struct quoting_options): Add flag field.
50891         (set_quoting_flags): New function.
50892         (quotearg_buffer_restyled): Add flags parameter.
50893         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50894         (quotearg_n_options): Set the flag, since length cannot be
50895         returned.
50896         (quoting_options_from_style): Default flags correctly.
50897
50898         Quotearg part 1: more wrappers, restore quotearg_char state.
50899         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50900         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50901         (quotearg_colon_mem): New wrappers.
50902         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50903         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50904         functions.
50905         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50906         (quotearg_colon_mem): New functions.
50907
50908 2008-02-11  Bruno Haible  <bruno@clisp.org>
50909
50910         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50911         library in the current directory: it does not work with parallel make.
50912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50913
50914 2008-02-11  Bruno Haible  <bruno@clisp.org>
50915
50916         * .gitattributes: New file.
50917
50918 2008-02-11  Jim Meyering  <meyering@redhat.com>
50919
50920         useless-if-before-free: Fix reversed exit values.
50921         * build-aux/useless-if-before-free: Use correct values
50922         for EXIT_MATCH and EXIT_NO_MATCH.
50923
50924         * build-aux/useless-if-before-free: Close stdout carefully.
50925
50926 2008-02-10  Bruno Haible  <bruno@clisp.org>
50927
50928         New module 'git-merge-changelog'.
50929         * modules/git-merge-changelog: New file.
50930         * lib/git-merge-changelog.c: New file.
50931
50932 2008-02-10  Jim Meyering  <meyering@redhat.com>
50933
50934         useless-if-before-free: New option: --list (-l).
50935
50936         useless-if-before-free: Don't exit immediately upon open failure.
50937         * build-aux/useless-if-before-free: Exit 2 for errors.
50938         Upon failure to open a file, don't exit immediately.
50939         Rather, just warn and continue with any remaining files.
50940
50941 2008-02-10  Bruno Haible  <bruno@clisp.org>
50942
50943         New abstract list operation 'node_set_value'.
50944         * lib/gl_list.h (gl_list_node_set_value): New function.
50945         (struct gl_list_implementation): New field node_set_value.
50946         * lib/gl_list.c (gl_list_node_set_value): New function.
50947         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50948         (gl_array_list_implementation): Update.
50949         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50950         (gl_carray_list_implementation): Update.
50951         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50952         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50953         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50954         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50955         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50956         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50957         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50958         Update.
50959         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50960         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50961         (gl_sublist_list_implementation): Update.
50962
50963 2008-02-10  Bruno Haible  <bruno@clisp.org>
50964
50965         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50966         Needed when ELEMENT is #defined to 'some_type *'.
50967
50968 2008-02-10  Jim Meyering  <meyering@redhat.com>
50969
50970         New script and module: useless-if-before-free
50971         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50972         * build-aux/useless-if-before-free: New file.
50973         * modules/useless-if-before-free: New file.
50974
50975         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50976
50977         xstrtol_error: Fix typo.
50978         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50979         s/exit_failure/exit_status/.
50980
50981 2008-02-09  Jim Meyering  <meyering@redhat.com>
50982
50983         New script and module: gitlog-to-changelog
50984         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50985         * modules/gitlog-to-changelog: New file.
50986         * build-aux/gitlog-to-changelog: New file.
50987
50988 2008-02-08  Jim Meyering  <meyering@redhat.com>
50989
50990         Avoid two "parameter unused" warnings.
50991         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50992         Mark "st" as used.
50993
50994         Use "git COMMAND", not "git-COMMAND".
50995         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50996         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50997         * build-aux/git-version-gen: Use "git status", not "git-status".
50998
50999 2008-02-07  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51002         Avoids a crash on Windows Vista.
51003         Reported by Adam Strzelecki <ono@java.pl> via
51004         Simon Josefsson <simon@josefsson.org>.
51005
51006 2008-02-06  Bruno Haible  <bruno@clisp.org>
51007
51008         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51009         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51010         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51012         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51014         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51015         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51023         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51024         left-adjust flag.
51025         * tests/test-snprintf-posix.h (test_function): Likewise.
51026         * tests/test-sprintf-posix.h (test_function): Likewise.
51027         * tests/test-vasprintf-posix.c (test_function): Likewise.
51028         * doc/posix-functions/fprintf.texi: Update.
51029         * doc/posix-functions/printf.texi: Update.
51030         * doc/posix-functions/snprintf.texi: Update.
51031         * doc/posix-functions/sprintf.texi: Update.
51032         * doc/posix-functions/vfprintf.texi: Update.
51033         * doc/posix-functions/vprintf.texi: Update.
51034         * doc/posix-functions/vsnprintf.texi: Update.
51035         * doc/posix-functions/vsprintf.texi: Update.
51036         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51037
51038 2008-02-06  Bruno Haible  <bruno@clisp.org>
51039
51040         Fix bug introduced on 2008-01-26.
51041         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51042
51043 2008-02-06  Bruno Haible  <bruno@clisp.org>
51044
51045         Fix bug introduced on 2007-06-10.
51046         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51047         !NEED_PRINTF_FLAG_ZERO.
51048
51049 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51050
51051         getloadavg: use libperfstat on AIX5
51052         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51053
51054 2008-02-03  Bruno Haible  <bruno@clisp.org>
51055
51056         * lib/diffseq.h: Add comments about required #includes.
51057         Reported by Michael Biggs <gnulib@doubleplum.net>.
51058
51059 2008-02-01  Bruno Haible  <bruno@clisp.org>
51060
51061         * users.txt: Add gnuit.
51062
51063 2008-01-31  Bruno Haible  <bruno@clisp.org>
51064
51065         * lib/md4.c (set_uint32): Mark as inline.
51066         * lib/md5.c (set_uint32): Likewise.
51067         * lib/sha1.c (set_uint32): Likewise.
51068         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51069         * m4/md5.m4 (gl_MD5): Likewise.
51070         * m4/sha1.m4 (gl_SHA1): Likewise.
51071
51072 2008-01-31  Jim Meyering  <meyering@redhat.com>
51073
51074         Use "sizeof VAR", rather than a literal "4".
51075         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51076         * lib/md4.c (md4_read_ctx): Likewise.
51077         * lib/sha1.c (sha1_read_ctx): Likewise.
51078
51079 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51080
51081         * tests/test-sha1.c: New file, based on test-md5.c.
51082
51083         * modules/crypto/sha1-tests: New file.
51084
51085 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51086
51087         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51088
51089 2008-01-31  Jim Meyering  <meyering@redhat.com>
51090
51091         Prefer "sizeof v" over the equivalent "4".
51092         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51093         * lib/md5.c (set_uint32): Likewise.
51094         * lib/sha1.c (set_uint32): Likewise.
51095
51096 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51097
51098         * lib/sha1.c (set_uint32): Mark function as static.
51099
51100 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51101
51102         md2: clarify comments to say that alignment is not required.
51103         * lib/md2.h: Remove warning about alignment in comment.
51104         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51105         never been required.
51106
51107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51108
51109         md4: adapt alignment constraint fix from sha1.
51110         * lib/md4.c (set_uint32): New function, from sha1.c
51111         (md4_read_ctx): Use it.
51112         (md4_finish_ctx): Doc fix.
51113         * lib/md4.h: Doc fix.
51114
51115 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51116
51117         md5: adapt alignment constraint fix from sha1.
51118         * lib/md5.c (set_uint32): New function, from sha1.c
51119         (md5_read_ctx): Use it.
51120         (md5_finish_ctx): Doc fix.
51121         * lib/md5.h: Doc fix.
51122
51123 2008-01-30  Peter Palfrader  <weasel@debian.org>
51124
51125         sha1: remove the result buffer alignment constraint
51126         * lib/sha1.c (set_uint32): New function.
51127         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51128         constraint.
51129         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51130         * lib/sha1.h: Likewise.
51131
51132 2008-01-30  Andreas Schwab  <schwab@suse.de>
51133             Bruno Haible  <bruno@clisp.org>
51134
51135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51136         correct definition of LDBL_MIN_EXP.
51137
51138 2008-01-30  Karl Berry  <karl@gnu.org>
51139
51140         * config/srclist-update: try to preserve x bit on updates.
51141         * config/srclistvars.sh: update for karl.
51142
51143 2008-01-29  Jim Meyering  <meyering@redhat.com>
51144
51145         vasnprintf.c: Avoid warning about unused label
51146         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51147         "overflow" label definition and associated code with the
51148         same cpp condition that guards the sole use of that label.
51149
51150 2008-01-26  Bruno Haible  <bruno@clisp.org>
51151
51152         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51153         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51154         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51155         * lib/isnanl-nolibm.h (isnanl): Likewise.
51156         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51157
51158 2008-01-26  Bruno Haible  <bruno@clisp.org>
51159
51160         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51161         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51162
51163 2008-01-26  Bruno Haible  <bruno@clisp.org>
51164
51165         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51166         GCC >= 4.0 built-in.
51167         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51168
51169 2008-01-26  Bruno Haible  <bruno@clisp.org>
51170
51171         Rename isnan, applicable to 'double' only, to isnand.
51172         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51173         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51174         (configure.ac): Update.
51175         (Include): Replace "isnan.h" with "isnand.h".
51176         * m4/isnand.m4: Renamed from m4/isnan.m4.
51177         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51178         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51179         instead of isnan.c.
51180         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51181         instead of HAVE_ISNAN_IN_LIBC.
51182         (isnand): Renamed from isnan.
51183         * lib/isnand.c: New file.
51184         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51185         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51186         (Makefile.am): Update.
51187         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51188         Include isnand.h instead of isnan.h.
51189         (main): Test isnand instead of isnan.
51190         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51191         isnan-nolibm.
51192         * modules/frexp (Depends-on): Likewise.
51193         * modules/frexp-tests (Depends-on): Likewise.
51194         * modules/frexp-nolibm (Depends-on): Likewise.
51195         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51196         * modules/isfinite (Depends-on): Likewise.
51197         * modules/round-tests (Depends-on): Likewise.
51198         * modules/signbit (Depends-on): Likewise.
51199         * modules/signbit-tests (Depends-on): Likewise.
51200         * modules/snprintf-posix (Depends-on): Likewise.
51201         * modules/sprintf-posix (Depends-on): Likewise.
51202         * modules/trunc-tests (Depends-on): Likewise.
51203         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51204         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51205         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51206         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51207         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51208         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51209         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51210         * modules/vasnprintf-posix (Depends-on): Likewise.
51211         * modules/vasprintf-posix (Depends-on): Likewise.
51212         * modules/vfprintf-posix (Depends-on): Likewise.
51213         * modules/vsnprintf-posix (Depends-on): Likewise.
51214         * modules/vsprintf-posix (Depends-on): Likewise.
51215         * lib/frexp.c: Include isnand.h instead of isnan.h.
51216         (ISNAN): Set to isnand instead of isnan.
51217         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51218         (gl_isfinited): Use isnand instead of isnan.
51219         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51220         (gl_signbitd): Use isnand instead of isnan.
51221         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51222         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51223         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51224         (main): Use isnand instead of isnan.
51225         * tests/test-round1.c: Include isnand.h.
51226         (main): Use isnand instead of isnan.
51227         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51228         (ISNAN): Set to isnand instead of isnan.
51229         * tests/test-trunc1.c: Include isnand.h.
51230         (main): Use isnand instead of isnan.
51231         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51232         (equal): Use isnand instead of isnan.
51233         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51234         isnand-nolibm.
51235         * NEWS: Mention the change.
51236
51237 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51238             Bruno Haible  <bruno@clisp.org>
51239
51240         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51241         the GCC builtins for signbits are present and set
51242         REPLACE_SIGNBIT_USING_GCC if so.
51243         * lib/math.in.h (signbit): Define using GCC builtins if
51244         REPLACE_SIGNBIT_USING_GCC is set.
51245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51246         REPLACE_SIGNBIT_USING_GCC.
51247         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51248
51249 2008-01-25  Jim Meyering  <meyering@redhat.com>
51250
51251         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51252         * lib/poll.c: Include <config.h>, not "config.h".
51253         * tests/test-getaddrinfo.c: Likewise.
51254
51255 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51256
51257         * modules/sockets-tests: New file.
51258
51259 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51260
51261         * modules/sockets: New module, can be used to call WSA_Startup and
51262         WSA_Cleanup when needed.
51263
51264         * lib/sockets.h, lib/sockets.c: New files.
51265
51266         * m4/sockets.m4: New file.
51267
51268         * tests/test-sockets.c: New file.
51269
51270 2008-01-19  Bruno Haible  <bruno@clisp.org>
51271
51272         * doc/posix-headers: Renamed from doc/headers.
51273         * doc/posix-functions: Renamed from doc/functions.
51274         * doc/gnulib.texi: Update.
51275
51276 2008-01-19  Bruno Haible  <bruno@clisp.org>
51277
51278         * doc/glibc-functions/strcasestr.texi: Include contents of
51279         doc/functions/strcasestr.texi, fixing the list of platforms.
51280         * doc/functions/strcasestr.texi: Remove file.
51281
51282 2008-01-19  Bruno Haible  <bruno@clisp.org>
51283
51284         * doc/glibc-functions/memmem.texi: Include contents of
51285         doc/functions/memmem.texi.
51286         * doc/functions/memmem.texi: Remove file.
51287
51288 2008-01-18  Bruno Haible  <bruno@clisp.org>
51289
51290         * doc/glibc-functions/*.texi: New files.
51291         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51292         to use the new files.
51293
51294 2008-01-17  Bruno Haible  <bruno@clisp.org>
51295
51296         * tests/test-gethostname.c (main): Fix printf statement.
51297
51298 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51299
51300         * modules/gethostname-tests: New file.
51301
51302         * tests/test-gethostname.c: New file.
51303
51304 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51305
51306         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51307         used by the UNAME case.  Reported by Bruno Haible
51308         <bruno@clisp.org>.
51309
51310 2008-01-17  Eric Blake  <ebb9@byu.net>
51311
51312         Convert c-strcasestr to be more efficient.
51313         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51314         (Depends-on): Add c-strcase, remove malloca, strnlen.
51315         * tests/test-c-strcasestr.c (main): Enhance test.
51316         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51317
51318 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51319
51320         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51321         Use it in creating po/Makevars.
51322
51323 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51324
51325         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51326         Applications that requires it should initialize libgcrypt
51327         manually.
51328
51329 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51330
51331         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51332
51333 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51334
51335         Fix problem with getdate on mingw32 reported by Simon Josefsson
51336         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51337         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51338         tzname", when deciding whether to declare tzname.
51339         * lib/strftime.c (tzname): Likewise.
51340
51341 2008-01-15  Bruno Haible  <bruno@clisp.org>
51342
51343         Work around a MacOS X 10.5 bug in frexpl().
51344         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51345         * doc/functions/frexpl.texi: Document the bug.
51346         Reported by Elias Pipping <pipping@gentoo.org>.
51347
51348 2008-01-14  Eric Blake  <ebb9@byu.net>
51349
51350         Touch up previous patch.
51351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51352         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51353
51354         Convert strcasestr module to use Two-Way algorithm.
51355         * modules/strcasestr-simple: New module, based on the old
51356         strcasestr, but with Two-Way rather than KMP.
51357         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51358         * lib/string.in.h (rpl_strcasestr): Declare.
51359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51360         performance.
51361         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51362         * modules/string (Makefile.am): Support strcasestr.
51363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51364         * modules/strcasestr-tests (Depends-on): Check for alarm.
51365         * tests/test-strcasestr.c: Augment test.
51366         * lib/str-two-way.h: Clean up stray macro.
51367         * NEWS: Document new module.
51368         * MODULES.html.sh (string handling): Likewise.
51369         * doc/functions/strcasestr.texi: New file.
51370         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51371         here, since it is not a POSIX function.
51372
51373 2008-01-14  Colin Watson  <cjwatson@debian.org>
51374             Bruno Haible  <bruno@clisp.org>
51375
51376         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51377         works fine; if not, set REPLACE_STRSIGNAL.
51378         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51380         REPLACE_STRSIGNAL.
51381         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51382         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51383         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51384
51385 2008-01-14  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/strsignal (Include): Change to <string.h>.
51388
51389 2008-01-14  Colin Watson  <cjwatson@debian.org>
51390
51391         * modules/argp (Notice): Add a notice recommending to change
51392         XGETTEXT_OPTIONS.
51393         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51394
51395 2008-01-13  Colin Watson  <cjwatson@debian.org>
51396
51397         * modules/strsignal-tests: New file.
51398         * tests/test-strsignal.c: New file.
51399
51400         * lib/strsignal.c: New file, from glibc with modifications.
51401         * lib/siglist.h: New file, from glibc with modifications.
51402         * lib/string.in.h (strsignal): New declaration.
51403         * m4/strsignal.m4: New file.
51404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51405         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51406         * modules/strsignal: New file.
51407         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51408         HAVE_DECL_STRSIGNAL.
51409
51410 2008-01-13  Bruno Haible  <bruno@clisp.org>
51411
51412         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51413         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51414         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51415         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51416
51417 2008-01-13  Bruno Haible  <bruno@clisp.org>
51418
51419         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51420         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51421         * lib/argp.h (__attribute__): Likewise.
51422         * lib/c-stack.c (__attribute__): Likewise.
51423         * lib/error.h (__attribute__): Likewise.
51424         * lib/fts.c (__attribute__): Likewise.
51425         * lib/openat.h (__attribute__): Likewise.
51426         * lib/stdio.in.h (__attribute__): Likewise.
51427         * lib/string.in.h (__attribute__): Likewise.
51428         * lib/utimens.c (__attribute__): Likewise.
51429         * lib/vasnprintf.h (__attribute__): Likewise.
51430         * lib/xalloc.h (__attribute__): Likewise.
51431         * lib/xprintf.h (__attribute__): Likewise.
51432         * lib/xstrtol.h (__attribute__): Likewise.
51433         * lib/xvasprintf.h (__attribute__): Likewise.
51434
51435 2008-01-12  Bruno Haible  <bruno@clisp.org>
51436
51437         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51438         * doc/glibc-headers/a.out.texi: New file.
51439         * doc/glibc-headers/aliases.texi: New file.
51440         * doc/glibc-headers/alloca.texi: New file.
51441         * doc/glibc-headers/ar.texi: New file.
51442         * doc/glibc-headers/argp.texi: New file.
51443         * doc/glibc-headers/argz.texi: New file.
51444         * doc/glibc-headers/byteswap.texi: New file.
51445         * doc/glibc-headers/crypt.texi: New file.
51446         * doc/glibc-headers/endian.texi: New file.
51447         * doc/glibc-headers/envz.texi: New file.
51448         * doc/glibc-headers/err.texi: New file.
51449         * doc/glibc-headers/error.texi: New file.
51450         * doc/glibc-headers/execinfo.texi: New file.
51451         * doc/glibc-headers/fpu_control.texi: New file.
51452         * doc/glibc-headers/fstab.texi: New file.
51453         * doc/glibc-headers/fts.texi: New file.
51454         * doc/glibc-headers/getopt.texi: New file.
51455         * doc/glibc-headers/ieee754.texi: New file.
51456         * doc/glibc-headers/ifaddrs.texi: New file.
51457         * doc/glibc-headers/libintl.texi: New file.
51458         * doc/glibc-headers/mcheck.texi: New file.
51459         * doc/glibc-headers/mntent.texi: New file.
51460         * doc/glibc-headers/obstack.texi: New file.
51461         * doc/glibc-headers/paths.texi: New file.
51462         * doc/glibc-headers/printf.texi: New file.
51463         * doc/glibc-headers/pty.texi: New file.
51464         * doc/glibc-headers/resolv.texi: New file.
51465         * doc/glibc-headers/shadow.texi: New file.
51466         * doc/glibc-headers/sysexits.texi: New file.
51467         * doc/glibc-headers/ttyent.texi: New file.
51468
51469 2008-01-12  Jim Meyering  <meyering@redhat.com>
51470
51471         announce-gen: emit Gnulib's git-based version string.
51472         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51473         New option --gnulib-version=V, where V is expected to be
51474         the output of running git describe in the gnulib directory.
51475         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51476         not useful, and plan to stop publishing an xdelta file with each
51477         coreutils release.
51478
51479         * build-aux/announce-gen: Also check for lzma-compressed files.
51480
51481 2008-01-11  Bruno Haible  <bruno@clisp.org>
51482
51483         * tests/test-memmem.c (main): Increase maximum allowed time.
51484         * tests/test-strstr.c (main): Likewise.
51485
51486 2008-01-11  Bruno Haible  <bruno@clisp.org>
51487
51488         * doc/functions/memmem.texi: Add more precisions about platforms.
51489         * doc/functions/strstr.texi: Likewise.
51490
51491 2008-01-10  Eric Blake  <ebb9@byu.net>
51492
51493         * m4/strstr.m4: Delete cruft from copy-n-paste.
51494         Reported by Bruno Haible.
51495
51496 2008-01-10  Bruno Haible  <bruno@clisp.org>
51497
51498         Make c-strstr rely on strstr.
51499         * lib/c-strstr.c: Don't include str-kmp.h.
51500         (c_strstr): Define in terms of strstr.
51501         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51502         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51503
51504 2008-01-10  Bruno Haible  <bruno@clisp.org>
51505
51506         * doc/gnulib.texi (String Functions in C Locale): New section.
51507         * doc/c-ctype.texi: New file.
51508         * doc/c-strcase.texi: New file.
51509         * doc/c-strcaseeq.texi: New file.
51510         * doc/c-strcasestr.texi: New file.
51511         * doc/c-strstr.texi: New file.
51512         * doc/c-strtod.texi: New file.
51513         * doc/c-strtold.texi: New file.
51514
51515 2008-01-10  Eric Blake  <ebb9@byu.net>
51516
51517         * lib/relocatable.h: Fix a comment.
51518
51519 2008-01-10  Eric Blake  <ebb9@byu.net>
51520
51521         Share two-way algorithm.
51522         * lib/str-two-way.h: New file, merged from...
51523         * lib/memmem.c: ...here...
51524         * lib/strstr.c: ...and here.
51525         * modules/memmem (Files): Use it.
51526         * modules/strstr (Files): Likewise.
51527
51528         Avoid quadratic strstr implementations.
51529         * lib/strstr.c: New file.
51530         * m4/strstr.m4: Likewise.
51531         * modules/strstr: Likewise.
51532         * modules/strstr-tests: Likewise.
51533         * tests/test-strstr.c: Likewise.
51534         * lib/string.in.h (rpl_strstr): Declare.
51535         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51537         * modules/string (Makefile.am): Likewise.
51538         * MODULES.html.sh (string handling): Mention new module.
51539         * doc/functions/strstr.texi (strstr): Document the bug.
51540
51541 2008-01-10  Bruno Haible  <bruno@clisp.org>
51542
51543         * lib/relocatable.h (relocate): State whether result is freshly
51544         allocated or not.
51545         * lib/relocatable.c (relocate): Return a freshly allocated string
51546         instead of a pointer to a privately held string.
51547         Reported by Sylvain Beucler <beuc@gnu.org>.
51548
51549 2008-01-10  Colin Watson  <cjwatson@debian.org>
51550
51551         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51552         s/S_ISNLK/S_ISLNK/.
51553
51554 2008-01-09  Bruno Haible  <bruno@clisp.org>
51555
51556         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51557         and other files.
51558         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51559         if it's only a guess.
51560         * modules/memmem: Simplify by depending on memmem-simple.
51561
51562 2008-01-09  Bruno Haible  <bruno@clisp.org>
51563
51564         Work around OpenBSD 4.0 tdelete() bug.
51565         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51566         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51567         macros and don't redefine the enum values.
51568         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51569         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51570         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51571
51572 2008-01-09  Bruno Haible  <bruno@clisp.org>
51573
51574         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51575         (main): Don't perform the tests if setlocale did not install a UTF-8
51576         locale. Needed on OpenBSD 4.0.
51577         * modules/wcwidth-tests (Depends-on): Add localcharset.
51578
51579 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51582         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51583         * NEWS: announce this.
51584         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51585
51586 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51587         and Eric Blake  <ebb9@byu.net>
51588
51589         Add memmem-simple module.
51590         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51591         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51592         * modules/memmem-simple: New file.
51593         * modules/memmem (Description): Tweak.
51594         * MODULES.html.sh (string handling): Mention new module.
51595         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51596         addressed by memmem-simple.
51597         * NEWS: Document the difference.
51598
51599 2008-01-09  Eric Blake  <ebb9@byu.net>
51600
51601         Give gcc some memmem optimization hints.
51602         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51603         (strcasestr): Declare as pure.
51604         * modules/memmem (Maintainer): Claim my implementation.
51605
51606 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51607
51608         Support AIX 6.1 and higher.
51609         * build-aux/config.libpath: Likewise.
51610         * build-aux/config.rpath: Likewise.
51611
51612 2008-01-08  Jim Meyering  <meyering@redhat.com>
51613             Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51616         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51617         Reported by Peter Fales in
51618         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51619
51620 2008-01-08  Bruno Haible  <bruno@clisp.org>
51621
51622         * modules/unictype/category-of (Depends-on): Add
51623         unictype/category-none.
51624         * modules/unictype/category-and-tests (Depends-on): Add
51625         unictype/category-{L,N,Lu,Nd}.
51626         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51627         * modules/unictype/category-or-tests (Depends-on): Add
51628         unictype/category-{L,N}.
51629         * modules/unictype/category-name-tests (Depends-on): Add
51630         unictype/category-{Z,Nl}.
51631         Reported by Simon Josefsson.
51632
51633 2008-01-08  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51636         convention better.
51637         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51638         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51639         Reported by Peter Miller <millerp@canb.auug.org.au>.
51640
51641 2008-01-08  Eric Blake  <ebb9@byu.net>
51642
51643         Rewrite memmem to guarantee linear complexity without malloc.
51644         * lib/memmem.c (memmem): Use Two-Way rather than
51645         Knuth-Morris-Pratt, to allow O(1) space usage.
51646         (critical_factorization, two_way_short_needle)
51647         (two_way_long_needle): New functions.
51648         (knuth_morris_pratt): Delete.
51649         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51650         Add stdint.
51651         * tests/test-memmem.c (main): Add tests for periodic needle and
51652         sublinear performance.
51653         * doc/functions/memmem.texi (memmem): Document other deficiencies
51654         in cygwin and older glibc.
51655
51656 2008-01-08  Bruno Haible  <bruno@clisp.org>
51657
51658         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51659         augmentation.
51660
51661 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51662
51663         Add a configure time option: --disable-acl.
51664         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51665         AC_ARG_ENABLE(acl).
51666
51667 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51668
51669         * tests/test-localename.c: Don't include obsolete "setenv.h".
51670
51671         * modules/localename-tests (Depends-on): Need unsetenv.
51672
51673 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51674
51675         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51676
51677 2008-01-06  Colin Watson  <cjwatson@debian.org>
51678
51679         * users.txt: Add man-db.
51680
51681 2008-01-07  Bruno Haible  <bruno@clisp.org>
51682
51683         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51684         previous section name.
51685
51686 2008-01-07  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/progname.c (set_program_name): Don't strip off a leading
51689         "lt-" prefix outside a .libs directory.
51690         Suggested by Paul Eggert.
51691
51692 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51693             Bruno Haible  <bruno@clisp.org>
51694
51695         Improve memory cleanup in 'relocatable' module.
51696         * lib/relocatable.h (compute_curr_prefix): Change return type to
51697         'char *'.
51698         * lib/relocatable.c (compute_curr_prefix): Change return type to
51699         'char *'. Free curr_installdir after use.
51700         (relocate): Free curr_prefix_better after use.
51701         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51702
51703 2008-01-01  Bruno Haible  <bruno@clisp.org>
51704
51705         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51706         failure on older glibc systems.
51707         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51708
51709 2008-01-05  Eric Blake  <ebb9@byu.net>
51710
51711         Avoid quadratic system memmem.
51712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51713         Reported by Ralf Wildenhues.
51714
51715         Fix memmem test for mingw.
51716         * modules/memmem-tests (configure.ac): Check for alarm.
51717         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51718         it.
51719         * doc/functions/memmem.texi: New file.
51720         * doc/gnulib.texi (Function Substitutes): Add memmem.
51721         Reported by Bruno Haible.
51722
51723 2008-01-04  Bruno Haible  <bruno@clisp.org>
51724
51725         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51726         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51727         gl_HEADER_STRING_H_DEFAULTS.
51728
51729 2008-01-04  Eric Blake  <ebb9@byu.net>
51730
51731         Shorten duration of memmem test.
51732         * tests/test-memmem.c (main): Use alarm to declare failure if test
51733         is taking too long.
51734         Reported by Ralf Wildenhues.
51735
51736 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51737
51738         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51739         string, needed by strerror.
51740
51741 2008-01-03  Colin Watson  <cjwatson@debian.org>
51742             Bruno Haible  <bruno@clisp.org>
51743
51744         * doc/gnulib-tool.texi (Localization): New section.
51745
51746 2008-01-02  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51749         variables to 'unsigned char *' type.
51750         Reported by Paul Eggert.
51751
51752 2008-01-02  Jim Meyering  <jim@meyering.net>
51753
51754         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51755
51756 2007-12-31  Jim Meyering  <jim@meyering.net>
51757
51758         Avoid use of private FTS type name.
51759         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51760
51761 2007-12-30  Karl Berry  <karl@gnu.org>
51762
51763         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51764         work around defect in Texinfo and/or the standalone Info browser.
51765
51766 2007-12-30  Bruno Haible  <bruno@clisp.org>
51767
51768         Unify 5 copies of the KMP code.
51769         * lib/str-kmp.h: New file.
51770         * lib/c-strcasestr.c: Include str-kmp.h.
51771         (knuth_morris_pratt): Remove function.
51772         (c_strcasestr): Update.
51773         * lib/c-strstr.c: Include str-kmp.h.
51774         (knuth_morris_pratt): Remove function.
51775         (c_strcasestr): Update.
51776         * lib/mbscasestr.c: Include str-kmp.h.
51777         (knuth_morris_pratt_unibyte): Remove function.
51778         * lib/mbsstr.c: Include str-kmp.h.
51779         (knuth_morris_pratt_unibyte): Remove function.
51780         * lib/strcasestr.c: Include str-kmp.h.
51781         (knuth_morris_pratt): Remove function.
51782         (strcasestr): Update.
51783         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51784         * modules/c-strstr (Files): Likewise.
51785         * modules/mbscasestr (Files): Likewise.
51786         * modules/mbsstr (Files): Likewise.
51787         * modules/strcasestr (Files): Likewise.
51788         Suggested by Paul Eggert.
51789
51790 2007-12-30  Bruno Haible  <bruno@clisp.org>
51791
51792         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51793         defined.
51794
51795 2007-12-30  Bruno Haible  <bruno@clisp.org>
51796
51797         * lib/xmalloca.h: Include xalloc.h.
51798         (xnmalloca): New macro.
51799
51800 2007-12-30  Bruno Haible  <bruno@clisp.org>
51801
51802         * lib/malloca.h (nmalloca): New macro.
51803         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51804         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51805         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51806         knuth_morris_pratt_multibyte): Likewise.
51807         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51808         knuth_morris_pratt_multibyte): Likewise.
51809         * lib/memmem.c (knuth_morris_pratt): Likewise.
51810         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51811
51812 2007-12-25  Bruno Haible  <bruno@clisp.org>
51813
51814         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51815         * lib/glob.c: Don't include openat.h.
51816         (link_exists2_p): Add back the code that deals with the
51817         !GLOB_ALTDIRFUNC case.
51818         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51819         let it do the filename concatenation.
51820         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51821         * modules/glob (Depends-on): Remove openat.
51822
51823 2007-12-31  Bruno Haible  <bruno@clisp.org>
51824
51825         * modules/dirfd (License): Change to LGPLv2+.
51826         Approved by Jim Meyering.
51827
51828 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51829
51830         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51831         when multiplying M by sizeof (size_t).
51832
51833 2007-12-10  Martin Lambers  <marlam@marlam.de>
51834
51835         Override getpagesize on mingw.
51836         * lib/getpagesize.c: New file.
51837         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51838         * modules/getpagesize (Files): Add lib/getpagesize.c.
51839         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51841         REPLACE_GETPAGESIZE.
51842         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51843
51844 2007-12-25  Bruno Haible  <bruno@clisp.org>
51845
51846         * modules/localcharset (Notice): New field.
51847         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51848         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51849
51850 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51851             Bruno Haible  <bruno@clisp.org>
51852
51853         Avoid using the syntax symbol() in formatted documentation.
51854         * MODULES.html.sh (func_module): When replacing symbol() with a
51855         hyperlink, remove the parentheses. Show an error if some remain.
51856         Recognize and render the '...' syntax.
51857         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51858         Rework. Add paragraph about GCC's inlining.
51859         * doc/alloca.texi: Likewise.
51860         * doc/error.texi: Remove parentheses from symbol reference.
51861         * doc/gnulib-intro.texi: Likewise.
51862         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51863         * modules/fnmatch (Description): Reword to say "the ... function".
51864         * modules/full-read (Description): Likewise.
51865         * modules/full-write (Description): Likewise.
51866         * modules/safe-read (Description): Likewise.
51867         * modules/safe-write (Description): Likewise.
51868         * modules/strchrnul (Description): Likewise.
51869         * modules/trim (Description): Likewise.
51870         * modules/error (Description): Remove parentheses from symbol
51871         references.
51872         * modules/verror (Description): Likewise.
51873         Reported by Karl Berry.
51874
51875 2007-12-25  Bruno Haible  <bruno@clisp.org>
51876
51877         Fixup after 2007-10-16 commit.
51878         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51879
51880 2007-12-24  Bruno Haible  <bruno@clisp.org>
51881
51882         Make --enable-relocatable work with DESTDIR.
51883         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51884         to compute installdir from destprog.
51885         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51886         also set the RELOC_DESTDIR variable.
51887         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51888
51889 2007-12-24  Bruno Haible  <bruno@clisp.org>
51890
51891         Fix link error due to xalloc_die().
51892         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51893         of xreadlink.
51894         * lib/relocwrapper.c: Update comments.
51895         * build-aux/install-reloc: Remove xreadlink.c from file list.
51896         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51897         xreadlink.c.
51898         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51899
51900 2007-12-24  Bruno Haible  <bruno@clisp.org>
51901
51902         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51903         * lib/setenv.h: Remove file.
51904         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51905         lib/setenv.h.
51906         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51907         (Depends-on): Add stdlib.
51908         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51909         gl_FUNC_UNSETENV.
51910         (Include): Replace setenv.h with <stdlib.h>.
51911         * modules/unsetenv: New file.
51912         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51913         * lib/unsetenv.c: Include <stdlib.h> first.
51914         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51915         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51916         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51917         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51918         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51919         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51921         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51922         * doc/functions/unsetenv.texi: Update.
51923         * modules/xsetenv (Depends-on): Add unsetenv.
51924         * modules/getdate (Depends-on): Likewise.
51925         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51926         * lib/xsetenv.c: Don't include setenv.h.
51927         * lib/getdate.y: Likewise.
51928         * lib/relocwrapper.c: Likewise.
51929         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51930         (Depends-on): Add stdlib.
51931         * NEWS: Mention the changes.
51932         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51933
51934 2007-12-23  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51937         indentation.
51938
51939 2007-12-23  Bruno Haible  <bruno@clisp.org>
51940
51941         * lib/c-strcasestr.c: Add more comments.
51942         * lib/c-strstr.c: Likewise.
51943         * lib/mbscasestr.c: Likewise.
51944         * lib/mbsstr.c: Likewise.
51945         * lib/strcasestr.c: Likewise.
51946         * lib/memmem.c: Likewise.
51947
51948 2007-12-23  Bruno Haible  <bruno@clisp.org>
51949
51950         * tests/test-memmem.c: Include <string.h> first.
51951
51952 2007-12-22  Bruno Haible  <bruno@clisp.org>
51953
51954         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51955         the contents of $testsbase.
51956         Reported by Ralf Wildenhues.
51957
51958 2007-12-22  Bruno Haible  <bruno@clisp.org>
51959
51960         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51961         two variables local_ldadd_before, local_ldadd_last.
51962
51963 2007-12-20  Eric Blake  <ebb9@byu.net>
51964
51965         Work around circular library issue when cross-compiling.
51966         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51967         that progname.o does not need to pull in rpl_memcmp.
51968
51969 2007-12-19  Eric Blake  <ebb9@byu.net>
51970
51971         Fix memmem to avoid O(n^2) worst-case complexity.
51972         * lib/memmem.c (knuth_morris_pratt): New function.
51973         (memmem): Use it if first few naive iterations fail.
51974         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51975         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51976         * modules/memchr (License): Likewise.
51977         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51978         malloca.
51979         * tests/test-memmem.c: Rewrite, borrowing ideas from
51980         test-mbsstr1.c; the old version wouldn't even compile!
51981         * modules/memmem-tests: New file.
51982         * lib/string.in.h (rpl_memmem): Add declaration.
51983         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51985         REPLACE_MEMMEM.
51986
51987 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51988
51989         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51990         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51991         before any system include files, and undef after them all.  This
51992         should fix a problem on VMS reported by John E. Malmberg in
51993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51994
51995 2007-12-17  Eric Blake  <ebb9@byu.net>
51996
51997         Revert addition of verify, for BSD/OS.
51998         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51999         can't handle large files, for the sake of obsolete platforms.
52000         * modules/fseeko (Depends-on): Remove verify.
52001         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52002         * doc/functions/ftello.texi (ftello): Likewise.
52003         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52004         Reported by Larry Jones.
52005
52006 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52007
52008         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52009         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52010
52011 2007-12-17  Jim Meyering  <meyering@redhat.com>
52012
52013         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52014         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52015         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52016         * modules/getcwd (Depends-on): Add openat.
52017         Reported by Petr Salinger.
52018
52019 2007-12-17  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52022         avoid a segmentation fault of the configure test on x86_64 systems.
52023
52024 2007-12-15  Jim Meyering  <meyering@redhat.com>
52025
52026         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52027
52028 2007-12-13  Eric Blake  <ebb9@byu.net>
52029
52030         Another fseek test.
52031         * tests/test-fseek.c (main): Also test ungetc handling.
52032         * tests/test-fseeko.c (main): Likewise.
52033         * modules/fseeko (Depends-on): Add verify.
52034         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52035         large.
52036         Reported by Larry Jones.
52037
52038         Fix fseeko on mingw.
52039         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52040         seek.
52041
52042         Beef up fseek tests.
52043         * tests/test-fseek.c (main): Also test eof handling.
52044         * tests/test-fseeko.c (main): Likewise.
52045         Reported by Larry Jones.
52046
52047 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52048
52049         Fix fseeko on BSD-based platforms.
52050         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52051         successful seek.
52052
52053 2007-12-12  Eric Blake  <ebb9@byu.net>
52054
52055         Allow circular dependency of separate libtests.a
52056         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52057         when use_libtests.
52058
52059 2007-12-11  Eric Blake  <ebb9@byu.net>
52060
52061         Fix bug with -0.0L in previous patch.
52062         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52063         * tests/test-isnan.c (main): Also test on zeroes.
52064         * tests/test-isnanf.c (main): Likewise.
52065         * tests/test-isnanl.h (main): Likewise.
52066
52067         Detect pseudo-denormals on x86 even when cross-compiling.
52068         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52069         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52070         invalid bit patterns that happen to satisfy ==.
52071
52072         Avoid link failures with separate libtests.a.
52073         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52074         last, to satisfy circular dependencies.
52075
52076 2007-12-11  Eric Blake  <ebb9@byu.net>
52077         and Bruno Haible  <bruno@clisp.org>
52078
52079         Fix OpenBSD 4.0 <float.h> handling of long double.
52080         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52081         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52082         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52083
52084 2007-12-11  Jim Meyering  <meyering@redhat.com>
52085
52086         * users.txt: Add libvirt.
52087
52088         Support versions of autoconf prior to 2.59c.
52089         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52090         if it is not already defined.
52091
52092 2007-12-09  Bruno Haible  <bruno@clisp.org>
52093
52094         Let 'gnulib-tool --import' collect sources needed for the tests in
52095         tests/ rather than in lib/.
52096         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52097         argument. If true, add rules to generate libtests.a, and put libtests.a
52098         into $(LDADD). Consider source files in subdirectories and set
52099         uses_subdirs.
52100         (func_emit_initmacro_start, func_emit_initmacro_end,
52101         func_emit_initmacro_done): Pass all arguments explicitly.
52102         (func_import): Determine two module lists main_modules,
52103         testsrelated_modules. Determine use_libtests. Determine two variables
52104         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52105         instead of just sed_transform_lib_file. Determine two variables
52106         main_files and testsrelated_files. Compute 'files' as the union of
52107         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52108         func_add_or_update. In the generated gnulib-comp.m4, collect the
52109         object files for tests/ in different variables than those for lib/.
52110         Substitute LIBTESTS_LIBDEPS.
52111         (func_create_testdir): Combine the uses_subdirs results from
52112         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52113
52114 2007-12-09  Bruno Haible  <bruno@clisp.org>
52115
52116         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52117         the build-aux directory.
52118
52119 2007-12-09  Bruno Haible  <bruno@clisp.org>
52120
52121         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52122         introduced on 2006-09-09.
52123
52124 2007-12-07  Jim Meyering  <meyering@redhat.com>
52125
52126         Let these macros work also with autoconf-2.59.
52127         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52128         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52129         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52130
52131 2007-12-06  Jim Meyering  <meyering@redhat.com>
52132
52133         Avoid a configure-time syntax error in gl_FUNC_ACL.
52134         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52135         function in each branch, before testing the cache variable.
52136
52137 2007-12-04  Eric Blake  <ebb9@byu.net>
52138
52139         Make scripts executable.
52140         * build-aux/config.guess: Add execute permissions.
52141         * build-aux/config.sub: Likewise.
52142         * build-aux/gendocs.sh: Likewise.
52143
52144         Fix frexp on mingw.
52145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52146         cross-compiling.
52147         * doc/functions/frexp.texi (frexp): Document the bug.
52148
52149         Make cygwin fseeko check more reliable.
52150         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52151         version numbers, rather than unrelated feature check.
52152         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52153         * doc/functions/ftello.texi (ftello): Likewise.
52154         Reported by Bruno Haible.
52155
52156         * m4/strerror.m4: Bump version number.
52157
52158 2007-12-03  Bruno Haible  <bruno@clisp.org>
52159
52160         * doc/functions/mprotect.texi: Mention the mingw problem.
52161
52162 2007-12-03  Eric Blake  <ebb9@byu.net>
52163
52164         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52165         REPLACE_STRERROR is initialized before this macro.
52166
52167 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52170         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52171         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52172         put -lsec in even for programs other than 'ls'.  This fixes a problem
52173         for gettext reported by Bruno Haible in
52174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52175         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52176         Add support for Solaris 10.  This isn't efficient, but should get the
52177         job done for now.
52178
52179 2007-12-03  James Youngman  <jay@gnu.org>
52180
52181         * doc/regexprops-generic.texi: change "an close-group" to "a
52182         close-group" and "illegal" to "not allowed".
52183
52184 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52185
52186         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52187         pr_byname.h. Needed for the rare case when the maintainer has done
52188         "make maintainer-clean" in the source directory and then attempts a
52189         build outside the source directory.
52190         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52191         scripts_byname.h.
52192
52193 2007-12-02  Martin Lambers <marlam@marlam.de>
52194             Bruno Haible  <bruno@clisp.org>
52195
52196         * lib/getpagesize.h: Remove file.
52197         * lib/unistd.in.h: Include declaration of getpagesize here.
52198         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52199         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52200         HAVE_SYS_PARAM_H.
52201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52202         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52203         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52204         (Depends-on): Add unistd.
52205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52206         (Include): Use <unistd.h> instead of getpagesize.h.
52207         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52208         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52209         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52210         gl_GETPAGESIZE invocation, already handled by module dependency.
52211         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52212
52213 2007-12-02  Bruno Haible  <bruno@clisp.org>
52214
52215         * modules/strings-tests: New file.
52216         * tests/test-strings.c: New file.
52217
52218         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52219         * lib/strings.in.h: New file.
52220         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52221         * m4/strings_h.m4: New file.
52222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52223         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52224         * modules/strings: New file.
52225         * modules/string (Makefile.am): Update.
52226         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52227         Reported by Karl Berry.
52228
52229 2007-12-01  Eric Blake  <ebb9@byu.net>
52230
52231         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52232         accomodate fix in cygwin 1.5.25.
52233
52234 2007-12-01  Jim Meyering  <meyering@redhat.com>
52235
52236         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52237         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52238         that would inhibit utf8-optimization of a regexp containing line-
52239         or buffer-anchors, e.g., `^', `$'.
52240
52241 2007-11-30  Bruno Haible  <bruno@clisp.org>
52242
52243         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52244         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52245         glthread_recursive_lock_init.
52246         * lib/lock.c (glthread_recursive_lock_init)
52247         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52249
52250 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52251
52252         New function qset_acl, like set_acl but with syscall semantics.
52253         * lib/acl.h (qset_acl): New decl.
52254         * lib/acl.c (qset_acl): New function.
52255         (set_acl): Use new function.  Use more-consistent diagnostics.
52256
52257 2007-11-28  Jim Meyering  <meyering@redhat.com>
52258
52259         * modules/physmem (License): Change from GPL to LGPLv2+.
52260
52261 2007-11-26  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52264         'long double' type has excess precision.
52265         Reported by Jim Meyering in
52266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52267
52268 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52269
52270         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52271         Sync from <http://gnu.org/licenses>.
52272         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52273         with license text from same location.
52274         * doc/maintain.texi, doc/standards.texi:  Sync from
52275         <http://savannah.gnu.org/projects/gnustandards>.
52276
52277 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52278         and Jim Meyering  <meyering@redhat.com>
52279
52280         Adjust getdate' grammar to accept a slightly more regular language.
52281         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52282         Before, the former was rejected.
52283         * lib/getdate.y (digits_to_date_time): New function, factored
52284         out of ...
52285         (number): ...here.  Just call digits_to_date_time.
52286         (hybrid): New non-terminal to handle an <unsigned number,
52287         signed relative offset> sequence consistently.
52288
52289 2007-11-18  Jim Meyering  <meyering@redhat.com>
52290
52291         Pull my changes from coreutils:
52292         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52293         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52294         use of $gnulib_tool_option_extras, so that it's separated from the
52295         preceding argument.
52296
52297         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52298         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52299         parent destination directories before copying a file into place.
52300
52301 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52302
52303         bootstrap: work also with 4-argument variant of AC_INIT
52304         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52305
52306 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         Port test-getaddrinfo to Solaris.
52309         Problem reported by Bruno Haible in
52310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52311         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52312         explanation of setting 'hints'.
52313         Don't reject an implementation merely because it returns EAI_SERVICE.
52314         (EAI_SERVICE): Define to 0 if not defined.
52315
52316 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         The license of gnu-make and posix-shell is now "GPLed build tool".
52319         * modules/gnu-make (License): Likewise.
52320         * modules/posix-shell (License): Likewise.
52321
52322         New module posix-shell, for determining a POSIX shell
52323         or perhaps something that is close enough to a POSIX shell.
52324         * m4/posix-shell.m4: New file.
52325         * modules/posix-shell: New file.
52326
52327         * MODULES.html.sh: Mention new module.
52328
52329         New module gnu-make, for determining whether we're using GNU Make.
52330         * m4/gnu-make.m4: New file.
52331         * modules/gnu-make: New file.
52332         * MODULES.html.sh: Mention new module.
52333
52334 2007-11-14  Jim Meyering  <meyering@redhat.com>
52335
52336         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52337         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52338         use this macro to create a function _definition_.
52339         Remove useless "#undef ARGMATCH_DIE".
52340
52341 2007-11-14  Bruno Haible  <bruno@clisp.org>
52342
52343         * lib/config.charset: Update for OpenBSD 4.1.
52344         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52345
52346 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52347
52348         Document 64-bit #if problems in stdint.texi.
52349         * doc/headers/stdint.texi (stdint.h): Mention problems with
52350         64-bit-#if, and how to work around them.
52351
52352         Don't insist on 'long long int' support in the preprocessor.  It
52353         breaks too many things.  For example, PRIdMAX still uses a 'long
52354         long int' format with the latest Sun compiler, even though
52355         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52356         preprocessor problem.  This causes the latest coreutils to dump
52357         core on Solaris 10 sparc with the Sun C compiler.
52358         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52359         the troublesome expressions at configure-time, not at #if-time.
52360         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52361         preprocessor.
52362         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52363         compile-time C checks, done at 'configure'-time.
52364         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52365         * modules/inttypes (Makefile): Substitute the new symbols that
52366         gl_INTTYPES_H now generates.
52367         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52368
52369 2007-11-12  Bruno Haible  <bruno@clisp.org>
52370
52371         Tests for Unicode character classification functions.
52372
52373         * modules/unictype/bidicategory-byname-tests: New file.
52374         * modules/unictype/bidicategory-name-tests: New file.
52375         * modules/unictype/bidicategory-of-tests: New file.
52376         * modules/unictype/bidicategory-test-tests: New file.
52377         * modules/unictype/block-list-tests: New file.
52378         * modules/unictype/block-of-tests: New file.
52379         * modules/unictype/block-test-tests: New file.
52380         * modules/unictype/category-C-tests: New file.
52381         * modules/unictype/category-Cc-tests: New file.
52382         * modules/unictype/category-Cf-tests: New file.
52383         * modules/unictype/category-Cn-tests: New file.
52384         * modules/unictype/category-Co-tests: New file.
52385         * modules/unictype/category-Cs-tests: New file.
52386         * modules/unictype/category-L-tests: New file.
52387         * modules/unictype/category-Ll-tests: New file.
52388         * modules/unictype/category-Lm-tests: New file.
52389         * modules/unictype/category-Lo-tests: New file.
52390         * modules/unictype/category-Lt-tests: New file.
52391         * modules/unictype/category-Lu-tests: New file.
52392         * modules/unictype/category-M-tests: New file.
52393         * modules/unictype/category-Mc-tests: New file.
52394         * modules/unictype/category-Me-tests: New file.
52395         * modules/unictype/category-Mn-tests: New file.
52396         * modules/unictype/category-N-tests: New file.
52397         * modules/unictype/category-Nd-tests: New file.
52398         * modules/unictype/category-Nl-tests: New file.
52399         * modules/unictype/category-No-tests: New file.
52400         * modules/unictype/category-P-tests: New file.
52401         * modules/unictype/category-Pc-tests: New file.
52402         * modules/unictype/category-Pd-tests: New file.
52403         * modules/unictype/category-Pe-tests: New file.
52404         * modules/unictype/category-Pf-tests: New file.
52405         * modules/unictype/category-Pi-tests: New file.
52406         * modules/unictype/category-Po-tests: New file.
52407         * modules/unictype/category-Ps-tests: New file.
52408         * modules/unictype/category-S-tests: New file.
52409         * modules/unictype/category-Sc-tests: New file.
52410         * modules/unictype/category-Sk-tests: New file.
52411         * modules/unictype/category-Sm-tests: New file.
52412         * modules/unictype/category-So-tests: New file.
52413         * modules/unictype/category-Z-tests: New file.
52414         * modules/unictype/category-Zl-tests: New file.
52415         * modules/unictype/category-Zp-tests: New file.
52416         * modules/unictype/category-Zs-tests: New file.
52417         * modules/unictype/category-and-not-tests: New file.
52418         * modules/unictype/category-and-tests: New file.
52419         * modules/unictype/category-byname-tests: New file.
52420         * modules/unictype/category-name-tests: New file.
52421         * modules/unictype/category-none-tests: New file.
52422         * modules/unictype/category-of-tests: New file.
52423         * modules/unictype/category-or-tests: New file.
52424         * modules/unictype/category-test-withtable-tests: New file.
52425         * modules/unictype/combining-class-tests: New file.
52426         * modules/unictype/ctype-alnum-tests: New file.
52427         * modules/unictype/ctype-alpha-tests: New file.
52428         * modules/unictype/ctype-blank-tests: New file.
52429         * modules/unictype/ctype-cntrl-tests: New file.
52430         * modules/unictype/ctype-digit-tests: New file.
52431         * modules/unictype/ctype-graph-tests: New file.
52432         * modules/unictype/ctype-lower-tests: New file.
52433         * modules/unictype/ctype-print-tests: New file.
52434         * modules/unictype/ctype-punct-tests: New file.
52435         * modules/unictype/ctype-space-tests: New file.
52436         * modules/unictype/ctype-upper-tests: New file.
52437         * modules/unictype/ctype-xdigit-tests: New file.
52438         * modules/unictype/decimal-digit-tests: New file.
52439         * modules/unictype/digit-tests: New file.
52440         * modules/unictype/mirror-tests: New file.
52441         * modules/unictype/numeric-tests: New file.
52442         * modules/unictype/property-alphabetic-tests: New file.
52443         * modules/unictype/property-ascii-hex-digit-tests: New file.
52444         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52445         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52446         * modules/unictype/property-bidi-block-separator-tests: New file.
52447         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52448         * modules/unictype/property-bidi-common-separator-tests: New file.
52449         * modules/unictype/property-bidi-control-tests: New file.
52450         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52451         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52452         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52453         * modules/unictype/property-bidi-european-digit-tests: New file.
52454         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52455         * modules/unictype/property-bidi-left-to-right-tests: New file.
52456         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52457         * modules/unictype/property-bidi-other-neutral-tests: New file.
52458         * modules/unictype/property-bidi-pdf-tests: New file.
52459         * modules/unictype/property-bidi-segment-separator-tests: New file.
52460         * modules/unictype/property-bidi-whitespace-tests: New file.
52461         * modules/unictype/property-byname-tests: New file.
52462         * modules/unictype/property-combining-tests: New file.
52463         * modules/unictype/property-composite-tests: New file.
52464         * modules/unictype/property-currency-symbol-tests: New file.
52465         * modules/unictype/property-dash-tests: New file.
52466         * modules/unictype/property-decimal-digit-tests: New file.
52467         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52468         * modules/unictype/property-deprecated-tests: New file.
52469         * modules/unictype/property-diacritic-tests: New file.
52470         * modules/unictype/property-extender-tests: New file.
52471         * modules/unictype/property-format-control-tests: New file.
52472         * modules/unictype/property-grapheme-base-tests: New file.
52473         * modules/unictype/property-grapheme-extend-tests: New file.
52474         * modules/unictype/property-grapheme-link-tests: New file.
52475         * modules/unictype/property-hex-digit-tests: New file.
52476         * modules/unictype/property-hyphen-tests: New file.
52477         * modules/unictype/property-id-continue-tests: New file.
52478         * modules/unictype/property-id-start-tests: New file.
52479         * modules/unictype/property-ideographic-tests: New file.
52480         * modules/unictype/property-ids-binary-operator-tests: New file.
52481         * modules/unictype/property-ids-trinary-operator-tests: New file.
52482         * modules/unictype/property-ignorable-control-tests: New file.
52483         * modules/unictype/property-iso-control-tests: New file.
52484         * modules/unictype/property-join-control-tests: New file.
52485         * modules/unictype/property-left-of-pair-tests: New file.
52486         * modules/unictype/property-line-separator-tests: New file.
52487         * modules/unictype/property-logical-order-exception-tests: New file.
52488         * modules/unictype/property-lowercase-tests: New file.
52489         * modules/unictype/property-math-tests: New file.
52490         * modules/unictype/property-non-break-tests: New file.
52491         * modules/unictype/property-not-a-character-tests: New file.
52492         * modules/unictype/property-numeric-tests: New file.
52493         * modules/unictype/property-other-alphabetic-tests: New file.
52494         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52495         * modules/unictype/property-other-grapheme-extend-tests: New file.
52496         * modules/unictype/property-other-id-continue-tests: New file.
52497         * modules/unictype/property-other-id-start-tests: New file.
52498         * modules/unictype/property-other-lowercase-tests: New file.
52499         * modules/unictype/property-other-math-tests: New file.
52500         * modules/unictype/property-other-uppercase-tests: New file.
52501         * modules/unictype/property-paired-punctuation-tests: New file.
52502         * modules/unictype/property-paragraph-separator-tests: New file.
52503         * modules/unictype/property-pattern-syntax-tests: New file.
52504         * modules/unictype/property-pattern-white-space-tests: New file.
52505         * modules/unictype/property-private-use-tests: New file.
52506         * modules/unictype/property-punctuation-tests: New file.
52507         * modules/unictype/property-quotation-mark-tests: New file.
52508         * modules/unictype/property-radical-tests: New file.
52509         * modules/unictype/property-sentence-terminal-tests: New file.
52510         * modules/unictype/property-soft-dotted-tests: New file.
52511         * modules/unictype/property-space-tests: New file.
52512         * modules/unictype/property-terminal-punctuation-tests: New file.
52513         * modules/unictype/property-test-tests: New file.
52514         * modules/unictype/property-titlecase-tests: New file.
52515         * modules/unictype/property-unassigned-code-value-tests: New file.
52516         * modules/unictype/property-unified-ideograph-tests: New file.
52517         * modules/unictype/property-uppercase-tests: New file.
52518         * modules/unictype/property-variation-selector-tests: New file.
52519         * modules/unictype/property-white-space-tests: New file.
52520         * modules/unictype/property-xid-continue-tests: New file.
52521         * modules/unictype/property-xid-start-tests: New file.
52522         * modules/unictype/property-zero-width-tests: New file.
52523         * modules/unictype/scripts-tests: New file.
52524         * modules/unictype/syntax-c-ident-tests: New file.
52525         * modules/unictype/syntax-c-whitespace-tests: New file.
52526         * modules/unictype/syntax-java-ident-tests: New file.
52527         * modules/unictype/syntax-java-whitespace-tests: New file.
52528         * tests/unictype/test-bidi_byname.c: New file.
52529         * tests/unictype/test-bidi_name.c: New file.
52530         * tests/unictype/test-bidi_of.c: New file.
52531         * tests/unictype/test-bidi_test.c: New file.
52532         * tests/unictype/test-block_list.c: New file.
52533         * tests/unictype/test-block_of.c: New file.
52534         * tests/unictype/test-block_test.c: New file.
52535         * tests/unictype/test-categ_and.c: New file.
52536         * tests/unictype/test-categ_and_not.c: New file.
52537         * tests/unictype/test-categ_byname.c: New file.
52538         * tests/unictype/test-categ_name.c: New file.
52539         * tests/unictype/test-categ_none.c: New file.
52540         * tests/unictype/test-categ_of.c: New file.
52541         * tests/unictype/test-categ_or.c: New file.
52542         * tests/unictype/test-categ_test_withtable.c: New file.
52543         * tests/unictype/test-combining.c: New file.
52544         * tests/unictype/test-decdigit.c: New file.
52545         * tests/unictype/test-digit.c: New file.
52546         * tests/unictype/test-mirror.c: New file.
52547         * tests/unictype/test-numeric.c: New file.
52548         * tests/unictype/test-pr_byname.c: New file.
52549         * tests/unictype/test-pr_test.c: New file.
52550         * tests/unictype/test-predicate-part1.h: New file.
52551         * tests/unictype/test-predicate-part2.h: New file.
52552         * tests/unictype/test-scripts.c: New file.
52553         * tests/unictype/test-sy_c_ident.c: New file.
52554         * tests/unictype/test-sy_java_ident.c: New file.
52555
52556         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52557         for Unicode 5.0.0.
52558         * tests/unictype/test-categ_Cc.c: Likewise.
52559         * tests/unictype/test-categ_Cf.c: Likewise.
52560         * tests/unictype/test-categ_Cn.c: Likewise.
52561         * tests/unictype/test-categ_Co.c: Likewise.
52562         * tests/unictype/test-categ_Cs.c: Likewise.
52563         * tests/unictype/test-categ_L.c: Likewise.
52564         * tests/unictype/test-categ_Ll.c: Likewise.
52565         * tests/unictype/test-categ_Lm.c: Likewise.
52566         * tests/unictype/test-categ_Lo.c: Likewise.
52567         * tests/unictype/test-categ_Lt.c: Likewise.
52568         * tests/unictype/test-categ_Lu.c: Likewise.
52569         * tests/unictype/test-categ_M.c: Likewise.
52570         * tests/unictype/test-categ_Mc.c: Likewise.
52571         * tests/unictype/test-categ_Me.c: Likewise.
52572         * tests/unictype/test-categ_Mn.c: Likewise.
52573         * tests/unictype/test-categ_N.c: Likewise.
52574         * tests/unictype/test-categ_Nd.c: Likewise.
52575         * tests/unictype/test-categ_Nl.c: Likewise.
52576         * tests/unictype/test-categ_No.c: Likewise.
52577         * tests/unictype/test-categ_P.c: Likewise.
52578         * tests/unictype/test-categ_Pc.c: Likewise.
52579         * tests/unictype/test-categ_Pd.c: Likewise.
52580         * tests/unictype/test-categ_Pe.c: Likewise.
52581         * tests/unictype/test-categ_Pf.c: Likewise.
52582         * tests/unictype/test-categ_Pi.c: Likewise.
52583         * tests/unictype/test-categ_Po.c: Likewise.
52584         * tests/unictype/test-categ_Ps.c: Likewise.
52585         * tests/unictype/test-categ_S.c: Likewise.
52586         * tests/unictype/test-categ_Sc.c: Likewise.
52587         * tests/unictype/test-categ_Sk.c: Likewise.
52588         * tests/unictype/test-categ_Sm.c: Likewise.
52589         * tests/unictype/test-categ_So.c: Likewise.
52590         * tests/unictype/test-categ_Z.c: Likewise.
52591         * tests/unictype/test-categ_Zl.c: Likewise.
52592         * tests/unictype/test-categ_Zp.c: Likewise.
52593         * tests/unictype/test-categ_Zs.c: Likewise.
52594         * tests/unictype/test-ctype_alnum.c: Likewise.
52595         * tests/unictype/test-ctype_alpha.c: Likewise.
52596         * tests/unictype/test-ctype_blank.c: Likewise.
52597         * tests/unictype/test-ctype_cntrl.c: Likewise.
52598         * tests/unictype/test-ctype_digit.c: Likewise.
52599         * tests/unictype/test-ctype_graph.c: Likewise.
52600         * tests/unictype/test-ctype_lower.c: Likewise.
52601         * tests/unictype/test-ctype_print.c: Likewise.
52602         * tests/unictype/test-ctype_punct.c: Likewise.
52603         * tests/unictype/test-ctype_space.c: Likewise.
52604         * tests/unictype/test-ctype_upper.c: Likewise.
52605         * tests/unictype/test-ctype_xdigit.c: Likewise.
52606         * tests/unictype/test-decdigit.h: Likewise.
52607         * tests/unictype/test-digit.h: Likewise.
52608         * tests/unictype/test-numeric.h: Likewise.
52609         * tests/unictype/test-pr_alphabetic.c: Likewise.
52610         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52611         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52612         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52613         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52614         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52615         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52616         * tests/unictype/test-pr_bidi_control.c: Likewise.
52617         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52618         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52619         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52620         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52621         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52622         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52623         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52624         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52625         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52626         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52627         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52628         * tests/unictype/test-pr_combining.c: Likewise.
52629         * tests/unictype/test-pr_composite.c: Likewise.
52630         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52631         * tests/unictype/test-pr_dash.c: Likewise.
52632         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52633         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52634         * tests/unictype/test-pr_deprecated.c: Likewise.
52635         * tests/unictype/test-pr_diacritic.c: Likewise.
52636         * tests/unictype/test-pr_extender.c: Likewise.
52637         * tests/unictype/test-pr_format_control.c: Likewise.
52638         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52639         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52640         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52641         * tests/unictype/test-pr_hex_digit.c: Likewise.
52642         * tests/unictype/test-pr_hyphen.c: Likewise.
52643         * tests/unictype/test-pr_id_continue.c: Likewise.
52644         * tests/unictype/test-pr_id_start.c: Likewise.
52645         * tests/unictype/test-pr_ideographic.c: Likewise.
52646         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52647         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52648         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52649         * tests/unictype/test-pr_iso_control.c: Likewise.
52650         * tests/unictype/test-pr_join_control.c: Likewise.
52651         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52652         * tests/unictype/test-pr_line_separator.c: Likewise.
52653         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52654         * tests/unictype/test-pr_lowercase.c: Likewise.
52655         * tests/unictype/test-pr_math.c: Likewise.
52656         * tests/unictype/test-pr_non_break.c: Likewise.
52657         * tests/unictype/test-pr_not_a_character.c: Likewise.
52658         * tests/unictype/test-pr_numeric.c: Likewise.
52659         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52660         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52661         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52662         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52663         * tests/unictype/test-pr_other_id_start.c: Likewise.
52664         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52665         * tests/unictype/test-pr_other_math.c: Likewise.
52666         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52667         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52668         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52669         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52670         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52671         * tests/unictype/test-pr_private_use.c: Likewise.
52672         * tests/unictype/test-pr_punctuation.c: Likewise.
52673         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52674         * tests/unictype/test-pr_radical.c: Likewise.
52675         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52676         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52677         * tests/unictype/test-pr_space.c: Likewise.
52678         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52679         * tests/unictype/test-pr_titlecase.c: Likewise.
52680         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52681         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52682         * tests/unictype/test-pr_uppercase.c: Likewise.
52683         * tests/unictype/test-pr_variation_selector.c: Likewise.
52684         * tests/unictype/test-pr_white_space.c: Likewise.
52685         * tests/unictype/test-pr_xid_continue.c: Likewise.
52686         * tests/unictype/test-pr_xid_start.c: Likewise.
52687         * tests/unictype/test-pr_zero_width.c: Likewise.
52688         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52689         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52690
52691 2007-11-12  Bruno Haible  <bruno@clisp.org>
52692
52693         Unicode character classification functions.
52694         * lib/unictype.h: New file.
52695         * modules/unictype/base: New file.
52696         * modules/unictype/category-L: New file.
52697         * modules/unictype/category-Lu: New file.
52698         * modules/unictype/category-Ll: New file.
52699         * modules/unictype/category-Lt: New file.
52700         * modules/unictype/category-Lm: New file.
52701         * modules/unictype/category-Lo: New file.
52702         * modules/unictype/category-M: New file.
52703         * modules/unictype/category-Mn: New file.
52704         * modules/unictype/category-Mc: New file.
52705         * modules/unictype/category-Me: New file.
52706         * modules/unictype/category-N: New file.
52707         * modules/unictype/category-Nd: New file.
52708         * modules/unictype/category-Nl: New file.
52709         * modules/unictype/category-No: New file.
52710         * modules/unictype/category-P: New file.
52711         * modules/unictype/category-Pc: New file.
52712         * modules/unictype/category-Pd: New file.
52713         * modules/unictype/category-Ps: New file.
52714         * modules/unictype/category-Pe: New file.
52715         * modules/unictype/category-Pi: New file.
52716         * modules/unictype/category-Pf: New file.
52717         * modules/unictype/category-Po: New file.
52718         * modules/unictype/category-S: New file.
52719         * modules/unictype/category-Sm: New file.
52720         * modules/unictype/category-Sc: New file.
52721         * modules/unictype/category-Sk: New file.
52722         * modules/unictype/category-So: New file.
52723         * modules/unictype/category-Z: New file.
52724         * modules/unictype/category-Zs: New file.
52725         * modules/unictype/category-Zl: New file.
52726         * modules/unictype/category-Zp: New file.
52727         * modules/unictype/category-C: New file.
52728         * modules/unictype/category-Cc: New file.
52729         * modules/unictype/category-Cf: New file.
52730         * modules/unictype/category-Cs: New file.
52731         * modules/unictype/category-Co: New file.
52732         * modules/unictype/category-Cn: New file.
52733         * modules/unictype/category-or: New file.
52734         * modules/unictype/category-of: New file.
52735         * modules/unictype/category-test: New file.
52736         * modules/unictype/category-test-withtable: New file.
52737         * modules/unictype/category-byname: New file.
52738         * modules/unictype/category-none: New file.
52739         * modules/unictype/category-and: New file.
52740         * modules/unictype/category-and-not: New file.
52741         * modules/unictype/category-name: New file.
52742         * modules/unictype/combining-class: New file.
52743         * modules/unictype/category-all: New file.
52744         * modules/unictype/bidicategory-all: New file.
52745         * modules/unictype/bidicategory-byname: New file.
52746         * modules/unictype/bidicategory-name: New file.
52747         * modules/unictype/bidicategory-of: New file.
52748         * modules/unictype/bidicategory-test: New file.
52749         * modules/unictype/decimal-digit: New file.
52750         * modules/unictype/digit: New file.
52751         * modules/unictype/numeric: New file.
52752         * modules/unictype/mirror: New file.
52753         * modules/unictype/property-white-space: New file.
52754         * modules/unictype/property-alphabetic: New file.
52755         * modules/unictype/property-other-alphabetic: New file.
52756         * modules/unictype/property-not-a-character: New file.
52757         * modules/unictype/property-default-ignorable-code-point: New file.
52758         * modules/unictype/property-other-default-ignorable-code-point: New
52759         file.
52760         * modules/unictype/property-deprecated: New file.
52761         * modules/unictype/property-logical-order-exception: New file.
52762         * modules/unictype/property-variation-selector: New file.
52763         * modules/unictype/property-private-use: New file.
52764         * modules/unictype/property-unassigned-code-value: New file.
52765         * modules/unictype/property-uppercase: New file.
52766         * modules/unictype/property-other-uppercase: New file.
52767         * modules/unictype/property-lowercase: New file.
52768         * modules/unictype/property-other-lowercase: New file.
52769         * modules/unictype/property-titlecase: New file.
52770         * modules/unictype/property-soft-dotted: New file.
52771         * modules/unictype/property-id-start: New file.
52772         * modules/unictype/property-other-id-start: New file.
52773         * modules/unictype/property-id-continue: New file.
52774         * modules/unictype/property-other-id-continue: New file.
52775         * modules/unictype/property-xid-start: New file.
52776         * modules/unictype/property-xid-continue: New file.
52777         * modules/unictype/property-pattern-white-space: New file.
52778         * modules/unictype/property-pattern-syntax: New file.
52779         * modules/unictype/property-join-control: New file.
52780         * modules/unictype/property-grapheme-base: New file.
52781         * modules/unictype/property-grapheme-extend: New file.
52782         * modules/unictype/property-other-grapheme-extend: New file.
52783         * modules/unictype/property-grapheme-link: New file.
52784         * modules/unictype/property-bidi-control: New file.
52785         * modules/unictype/property-bidi-left-to-right: New file.
52786         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52787         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52788         * modules/unictype/property-bidi-european-digit: New file.
52789         * modules/unictype/property-bidi-eur-num-separator: New file.
52790         * modules/unictype/property-bidi-eur-num-terminator: New file.
52791         * modules/unictype/property-bidi-arabic-digit: New file.
52792         * modules/unictype/property-bidi-common-separator: New file.
52793         * modules/unictype/property-bidi-block-separator: New file.
52794         * modules/unictype/property-bidi-segment-separator: New file.
52795         * modules/unictype/property-bidi-whitespace: New file.
52796         * modules/unictype/property-bidi-non-spacing-mark: New file.
52797         * modules/unictype/property-bidi-boundary-neutral: New file.
52798         * modules/unictype/property-bidi-pdf: New file.
52799         * modules/unictype/property-bidi-embedding-or-override: New file.
52800         * modules/unictype/property-bidi-other-neutral: New file.
52801         * modules/unictype/property-hex-digit: New file.
52802         * modules/unictype/property-ascii-hex-digit: New file.
52803         * modules/unictype/property-ideographic: New file.
52804         * modules/unictype/property-unified-ideograph: New file.
52805         * modules/unictype/property-radical: New file.
52806         * modules/unictype/property-ids-binary-operator: New file.
52807         * modules/unictype/property-ids-trinary-operator: New file.
52808         * modules/unictype/property-zero-width: New file.
52809         * modules/unictype/property-space: New file.
52810         * modules/unictype/property-non-break: New file.
52811         * modules/unictype/property-iso-control: New file.
52812         * modules/unictype/property-format-control: New file.
52813         * modules/unictype/property-dash: New file.
52814         * modules/unictype/property-hyphen: New file.
52815         * modules/unictype/property-punctuation: New file.
52816         * modules/unictype/property-line-separator: New file.
52817         * modules/unictype/property-paragraph-separator: New file.
52818         * modules/unictype/property-quotation-mark: New file.
52819         * modules/unictype/property-sentence-terminal: New file.
52820         * modules/unictype/property-terminal-punctuation: New file.
52821         * modules/unictype/property-currency-symbol: New file.
52822         * modules/unictype/property-math: New file.
52823         * modules/unictype/property-other-math: New file.
52824         * modules/unictype/property-paired-punctuation: New file.
52825         * modules/unictype/property-left-of-pair: New file.
52826         * modules/unictype/property-combining: New file.
52827         * modules/unictype/property-composite: New file.
52828         * modules/unictype/property-decimal-digit: New file.
52829         * modules/unictype/property-numeric: New file.
52830         * modules/unictype/property-diacritic: New file.
52831         * modules/unictype/property-extender: New file.
52832         * modules/unictype/property-ignorable-control: New file.
52833         * modules/unictype/property-test: New file.
52834         * modules/unictype/property-byname: New file.
52835         * modules/unictype/property-all: New file.
52836         * modules/unictype/scripts: New file.
52837         * modules/unictype/scripts-all: New file.
52838         * modules/unictype/block-of: New file.
52839         * modules/unictype/block-test: New file.
52840         * modules/unictype/block-list: New file.
52841         * modules/unictype/block-all: New file.
52842         * modules/unictype/syntax-c-whitespace: New file.
52843         * modules/unictype/syntax-java-whitespace: New file.
52844         * modules/unictype/syntax-c-ident: New file.
52845         * modules/unictype/syntax-java-ident: New file.
52846         * modules/unictype/ctype-alnum: New file.
52847         * modules/unictype/ctype-alpha: New file.
52848         * modules/unictype/ctype-cntrl: New file.
52849         * modules/unictype/ctype-digit: New file.
52850         * modules/unictype/ctype-graph: New file.
52851         * modules/unictype/ctype-lower: New file.
52852         * modules/unictype/ctype-print: New file.
52853         * modules/unictype/ctype-punct: New file.
52854         * modules/unictype/ctype-space: New file.
52855         * modules/unictype/ctype-upper: New file.
52856         * modules/unictype/ctype-xdigit: New file.
52857         * modules/unictype/ctype-blank: New file.
52858         * lib/unictype/bidi_byname.c: New file.
52859         * lib/unictype/bidi_name.c: New file.
52860         * lib/unictype/bidi_of.c: New file.
52861         * lib/unictype/bidi_test.c: New file.
52862         * lib/unictype/bitmap.h: New file.
52863         * lib/unictype/block_test.c: New file.
52864         * lib/unictype/blocks.c: New file.
52865         * lib/unictype/categ_C.c: New file.
52866         * lib/unictype/categ_Cc.c: New file.
52867         * lib/unictype/categ_Cf.c: New file.
52868         * lib/unictype/categ_Cn.c: New file.
52869         * lib/unictype/categ_Co.c: New file.
52870         * lib/unictype/categ_Cs.c: New file.
52871         * lib/unictype/categ_L.c: New file.
52872         * lib/unictype/categ_Ll.c: New file.
52873         * lib/unictype/categ_Lm.c: New file.
52874         * lib/unictype/categ_Lo.c: New file.
52875         * lib/unictype/categ_Lt.c: New file.
52876         * lib/unictype/categ_Lu.c: New file.
52877         * lib/unictype/categ_M.c: New file.
52878         * lib/unictype/categ_Mc.c: New file.
52879         * lib/unictype/categ_Me.c: New file.
52880         * lib/unictype/categ_Mn.c: New file.
52881         * lib/unictype/categ_N.c: New file.
52882         * lib/unictype/categ_Nd.c: New file.
52883         * lib/unictype/categ_Nl.c: New file.
52884         * lib/unictype/categ_No.c: New file.
52885         * lib/unictype/categ_P.c: New file.
52886         * lib/unictype/categ_Pc.c: New file.
52887         * lib/unictype/categ_Pd.c: New file.
52888         * lib/unictype/categ_Pe.c: New file.
52889         * lib/unictype/categ_Pf.c: New file.
52890         * lib/unictype/categ_Pi.c: New file.
52891         * lib/unictype/categ_Po.c: New file.
52892         * lib/unictype/categ_Ps.c: New file.
52893         * lib/unictype/categ_S.c: New file.
52894         * lib/unictype/categ_Sc.c: New file.
52895         * lib/unictype/categ_Sk.c: New file.
52896         * lib/unictype/categ_Sm.c: New file.
52897         * lib/unictype/categ_So.c: New file.
52898         * lib/unictype/categ_Z.c: New file.
52899         * lib/unictype/categ_Zl.c: New file.
52900         * lib/unictype/categ_Zp.c: New file.
52901         * lib/unictype/categ_Zs.c: New file.
52902         * lib/unictype/categ_and.c: New file.
52903         * lib/unictype/categ_and_not.c: New file.
52904         * lib/unictype/categ_byname.c: New file.
52905         * lib/unictype/categ_name.c: New file.
52906         * lib/unictype/categ_none.c: New file.
52907         * lib/unictype/categ_of.c: New file.
52908         * lib/unictype/categ_or.c: New file.
52909         * lib/unictype/categ_test.c: New file.
52910         * lib/unictype/combining.c: New file.
52911         * lib/unictype/ctype_alnum.c: New file.
52912         * lib/unictype/ctype_alpha.c: New file.
52913         * lib/unictype/ctype_blank.c: New file.
52914         * lib/unictype/ctype_cntrl.c: New file.
52915         * lib/unictype/ctype_digit.c: New file.
52916         * lib/unictype/ctype_graph.c: New file.
52917         * lib/unictype/ctype_lower.c: New file.
52918         * lib/unictype/ctype_print.c: New file.
52919         * lib/unictype/ctype_punct.c: New file.
52920         * lib/unictype/ctype_space.c: New file.
52921         * lib/unictype/ctype_upper.c: New file.
52922         * lib/unictype/ctype_xdigit.c: New file.
52923         * lib/unictype/decdigit.c: New file.
52924         * lib/unictype/digit.c: New file.
52925         * lib/unictype/identsyntaxmap.h: New file.
52926         * lib/unictype/mirror.c: New file.
52927         * lib/unictype/numeric.c: New file.
52928         * lib/unictype/pr_alphabetic.c: New file.
52929         * lib/unictype/pr_ascii_hex_digit.c: New file.
52930         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52931         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52932         * lib/unictype/pr_bidi_block_separator.c: New file.
52933         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52934         * lib/unictype/pr_bidi_common_separator.c: New file.
52935         * lib/unictype/pr_bidi_control.c: New file.
52936         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52937         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52938         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52939         * lib/unictype/pr_bidi_european_digit.c: New file.
52940         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52941         * lib/unictype/pr_bidi_left_to_right.c: New file.
52942         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52943         * lib/unictype/pr_bidi_other_neutral.c: New file.
52944         * lib/unictype/pr_bidi_pdf.c: New file.
52945         * lib/unictype/pr_bidi_segment_separator.c: New file.
52946         * lib/unictype/pr_bidi_whitespace.c: New file.
52947         * lib/unictype/pr_byname.c: New file.
52948         * lib/unictype/pr_byname.gperf: New file.
52949         * lib/unictype/pr_combining.c: New file.
52950         * lib/unictype/pr_composite.c: New file.
52951         * lib/unictype/pr_currency_symbol.c: New file.
52952         * lib/unictype/pr_dash.c: New file.
52953         * lib/unictype/pr_decimal_digit.c: New file.
52954         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52955         * lib/unictype/pr_deprecated.c: New file.
52956         * lib/unictype/pr_diacritic.c: New file.
52957         * lib/unictype/pr_extender.c: New file.
52958         * lib/unictype/pr_format_control.c: New file.
52959         * lib/unictype/pr_grapheme_base.c: New file.
52960         * lib/unictype/pr_grapheme_extend.c: New file.
52961         * lib/unictype/pr_grapheme_link.c: New file.
52962         * lib/unictype/pr_hex_digit.c: New file.
52963         * lib/unictype/pr_hyphen.c: New file.
52964         * lib/unictype/pr_id_continue.c: New file.
52965         * lib/unictype/pr_id_start.c: New file.
52966         * lib/unictype/pr_ideographic.c: New file.
52967         * lib/unictype/pr_ids_binary_operator.c: New file.
52968         * lib/unictype/pr_ids_trinary_operator.c: New file.
52969         * lib/unictype/pr_ignorable_control.c: New file.
52970         * lib/unictype/pr_iso_control.c: New file.
52971         * lib/unictype/pr_join_control.c: New file.
52972         * lib/unictype/pr_left_of_pair.c: New file.
52973         * lib/unictype/pr_line_separator.c: New file.
52974         * lib/unictype/pr_logical_order_exception.c: New file.
52975         * lib/unictype/pr_lowercase.c: New file.
52976         * lib/unictype/pr_math.c: New file.
52977         * lib/unictype/pr_non_break.c: New file.
52978         * lib/unictype/pr_not_a_character.c: New file.
52979         * lib/unictype/pr_numeric.c: New file.
52980         * lib/unictype/pr_other_alphabetic.c: New file.
52981         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52982         * lib/unictype/pr_other_grapheme_extend.c: New file.
52983         * lib/unictype/pr_other_id_continue.c: New file.
52984         * lib/unictype/pr_other_id_start.c: New file.
52985         * lib/unictype/pr_other_lowercase.c: New file.
52986         * lib/unictype/pr_other_math.c: New file.
52987         * lib/unictype/pr_other_uppercase.c: New file.
52988         * lib/unictype/pr_paired_punctuation.c: New file.
52989         * lib/unictype/pr_paragraph_separator.c: New file.
52990         * lib/unictype/pr_pattern_syntax.c: New file.
52991         * lib/unictype/pr_pattern_white_space.c: New file.
52992         * lib/unictype/pr_private_use.c: New file.
52993         * lib/unictype/pr_punctuation.c: New file.
52994         * lib/unictype/pr_quotation_mark.c: New file.
52995         * lib/unictype/pr_radical.c: New file.
52996         * lib/unictype/pr_sentence_terminal.c: New file.
52997         * lib/unictype/pr_soft_dotted.c: New file.
52998         * lib/unictype/pr_space.c: New file.
52999         * lib/unictype/pr_terminal_punctuation.c: New file.
53000         * lib/unictype/pr_test.c: New file.
53001         * lib/unictype/pr_titlecase.c: New file.
53002         * lib/unictype/pr_unassigned_code_value.c: New file.
53003         * lib/unictype/pr_unified_ideograph.c: New file.
53004         * lib/unictype/pr_uppercase.c: New file.
53005         * lib/unictype/pr_variation_selector.c: New file.
53006         * lib/unictype/pr_white_space.c: New file.
53007         * lib/unictype/pr_xid_continue.c: New file.
53008         * lib/unictype/pr_xid_start.c: New file.
53009         * lib/unictype/pr_zero_width.c: New file.
53010         * lib/unictype/scripts.c: New file.
53011         * lib/unictype/sy_c_ident.c: New file.
53012         * lib/unictype/sy_c_whitespace.c: New file.
53013         * lib/unictype/sy_java_ident.c: New file.
53014         * lib/unictype/sy_java_whitespace.c: New file.
53015
53016         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53017         Unicode 5.0.0.
53018         * lib/unictype/blocks.h: Likewise.
53019         * lib/unictype/categ_C.h: Likewise.
53020         * lib/unictype/categ_Cc.h: Likewise.
53021         * lib/unictype/categ_Cf.h: Likewise.
53022         * lib/unictype/categ_Cn.h: Likewise.
53023         * lib/unictype/categ_Co.h: Likewise.
53024         * lib/unictype/categ_Cs.h: Likewise.
53025         * lib/unictype/categ_L.h: Likewise.
53026         * lib/unictype/categ_Ll.h: Likewise.
53027         * lib/unictype/categ_Lm.h: Likewise.
53028         * lib/unictype/categ_Lo.h: Likewise.
53029         * lib/unictype/categ_Lt.h: Likewise.
53030         * lib/unictype/categ_Lu.h: Likewise.
53031         * lib/unictype/categ_M.h: Likewise.
53032         * lib/unictype/categ_Mc.h: Likewise.
53033         * lib/unictype/categ_Me.h: Likewise.
53034         * lib/unictype/categ_Mn.h: Likewise.
53035         * lib/unictype/categ_N.h: Likewise.
53036         * lib/unictype/categ_Nd.h: Likewise.
53037         * lib/unictype/categ_Nl.h: Likewise.
53038         * lib/unictype/categ_No.h: Likewise.
53039         * lib/unictype/categ_P.h: Likewise.
53040         * lib/unictype/categ_Pc.h: Likewise.
53041         * lib/unictype/categ_Pd.h: Likewise.
53042         * lib/unictype/categ_Pe.h: Likewise.
53043         * lib/unictype/categ_Pf.h: Likewise.
53044         * lib/unictype/categ_Pi.h: Likewise.
53045         * lib/unictype/categ_Po.h: Likewise.
53046         * lib/unictype/categ_Ps.h: Likewise.
53047         * lib/unictype/categ_S.h: Likewise.
53048         * lib/unictype/categ_Sc.h: Likewise.
53049         * lib/unictype/categ_Sk.h: Likewise.
53050         * lib/unictype/categ_Sm.h: Likewise.
53051         * lib/unictype/categ_So.h: Likewise.
53052         * lib/unictype/categ_Z.h: Likewise.
53053         * lib/unictype/categ_Zl.h: Likewise.
53054         * lib/unictype/categ_Zp.h: Likewise.
53055         * lib/unictype/categ_Zs.h: Likewise.
53056         * lib/unictype/categ_of.h: Likewise.
53057         * lib/unictype/combining.h: Likewise.
53058         * lib/unictype/ctype_alnum.h: Likewise.
53059         * lib/unictype/ctype_alpha.h: Likewise.
53060         * lib/unictype/ctype_blank.h: Likewise.
53061         * lib/unictype/ctype_cntrl.h: Likewise.
53062         * lib/unictype/ctype_digit.h: Likewise.
53063         * lib/unictype/ctype_graph.h: Likewise.
53064         * lib/unictype/ctype_lower.h: Likewise.
53065         * lib/unictype/ctype_print.h: Likewise.
53066         * lib/unictype/ctype_punct.h: Likewise.
53067         * lib/unictype/ctype_space.h: Likewise.
53068         * lib/unictype/ctype_upper.h: Likewise.
53069         * lib/unictype/ctype_xdigit.h: Likewise.
53070         * lib/unictype/decdigit.h: Likewise.
53071         * lib/unictype/digit.h: Likewise.
53072         * lib/unictype/mirror.h: Likewise.
53073         * lib/unictype/numeric.h: Likewise.
53074         * lib/unictype/pr_alphabetic.h: Likewise.
53075         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53076         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53077         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53078         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53079         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53080         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53081         * lib/unictype/pr_bidi_control.h: Likewise.
53082         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53083         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53084         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53085         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53086         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53087         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53088         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53089         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53090         * lib/unictype/pr_bidi_pdf.h: Likewise.
53091         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53092         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53093         * lib/unictype/pr_combining.h: Likewise.
53094         * lib/unictype/pr_composite.h: Likewise.
53095         * lib/unictype/pr_currency_symbol.h: Likewise.
53096         * lib/unictype/pr_dash.h: Likewise.
53097         * lib/unictype/pr_decimal_digit.h: Likewise.
53098         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53099         * lib/unictype/pr_deprecated.h: Likewise.
53100         * lib/unictype/pr_diacritic.h: Likewise.
53101         * lib/unictype/pr_extender.h: Likewise.
53102         * lib/unictype/pr_format_control.h: Likewise.
53103         * lib/unictype/pr_grapheme_base.h: Likewise.
53104         * lib/unictype/pr_grapheme_extend.h: Likewise.
53105         * lib/unictype/pr_grapheme_link.h: Likewise.
53106         * lib/unictype/pr_hex_digit.h: Likewise.
53107         * lib/unictype/pr_hyphen.h: Likewise.
53108         * lib/unictype/pr_id_continue.h: Likewise.
53109         * lib/unictype/pr_id_start.h: Likewise.
53110         * lib/unictype/pr_ideographic.h: Likewise.
53111         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53112         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53113         * lib/unictype/pr_ignorable_control.h: Likewise.
53114         * lib/unictype/pr_iso_control.h: Likewise.
53115         * lib/unictype/pr_join_control.h: Likewise.
53116         * lib/unictype/pr_left_of_pair.h: Likewise.
53117         * lib/unictype/pr_line_separator.h: Likewise.
53118         * lib/unictype/pr_logical_order_exception.h: Likewise.
53119         * lib/unictype/pr_lowercase.h: Likewise.
53120         * lib/unictype/pr_math.h: Likewise.
53121         * lib/unictype/pr_non_break.h: Likewise.
53122         * lib/unictype/pr_not_a_character.h: Likewise.
53123         * lib/unictype/pr_numeric.h: Likewise.
53124         * lib/unictype/pr_other_alphabetic.h: Likewise.
53125         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53126         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53127         * lib/unictype/pr_other_id_continue.h: Likewise.
53128         * lib/unictype/pr_other_id_start.h: Likewise.
53129         * lib/unictype/pr_other_lowercase.h: Likewise.
53130         * lib/unictype/pr_other_math.h: Likewise.
53131         * lib/unictype/pr_other_uppercase.h: Likewise.
53132         * lib/unictype/pr_paired_punctuation.h: Likewise.
53133         * lib/unictype/pr_paragraph_separator.h: Likewise.
53134         * lib/unictype/pr_pattern_syntax.h: Likewise.
53135         * lib/unictype/pr_pattern_white_space.h: Likewise.
53136         * lib/unictype/pr_private_use.h: Likewise.
53137         * lib/unictype/pr_punctuation.h: Likewise.
53138         * lib/unictype/pr_quotation_mark.h: Likewise.
53139         * lib/unictype/pr_radical.h: Likewise.
53140         * lib/unictype/pr_sentence_terminal.h: Likewise.
53141         * lib/unictype/pr_soft_dotted.h: Likewise.
53142         * lib/unictype/pr_space.h: Likewise.
53143         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53144         * lib/unictype/pr_titlecase.h: Likewise.
53145         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53146         * lib/unictype/pr_unified_ideograph.h: Likewise.
53147         * lib/unictype/pr_uppercase.h: Likewise.
53148         * lib/unictype/pr_variation_selector.h: Likewise.
53149         * lib/unictype/pr_white_space.h: Likewise.
53150         * lib/unictype/pr_xid_continue.h: Likewise.
53151         * lib/unictype/pr_xid_start.h: Likewise.
53152         * lib/unictype/pr_zero_width.h: Likewise.
53153         * lib/unictype/scripts.h: Likewise.
53154         * lib/unictype/scripts_byname.gperf: Likewise.
53155         * lib/unictype/sy_c_ident.h: Likewise.
53156         * lib/unictype/sy_c_whitespace.h: Likewise.
53157         * lib/unictype/sy_java_ident.h: Likewise.
53158         * lib/unictype/sy_java_whitespace.h: Likewise.
53159
53160         * lib/unictype/Makefile: New file.
53161         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53162         glibc.
53163         * lib/unictype/3level.h: New file, copied from glibc.
53164         * lib/unictype/3levelbit.h: New file.
53165
53166 2007-11-11  Bruno Haible  <bruno@clisp.org>
53167
53168         * modules/gperf: New file.
53169         * modules/iconv_open (Depends-on): Add it.
53170         (Makefile.am): Remove the GPERF definition.
53171
53172 2007-11-11  Bruno Haible  <bruno@clisp.org>
53173
53174         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53175         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53176
53177 2007-11-11  Bruno Haible  <bruno@clisp.org>
53178
53179         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53180         (usage): Remove function.
53181
53182 2007-11-11  Bruno Haible  <bruno@clisp.org>
53183
53184         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53185         gl_FUNC_CEILF_LIBS.
53186         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53187         gl_FUNC_CEIL_LIBS.
53188         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53189         gl_FUNC_CEILL_LIBS.
53190         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53191         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53192         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53193
53194 2007-11-11  Bruno Haible  <bruno@clisp.org>
53195
53196         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53197         roundf were declared but do not exist on functions.
53198         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53199         roundl were declared but do not exist on functions.
53200         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53201         HAVE_FLOORL_AND_CEILL, respectively.
53202         Needed for Sun C on Solaris 10.
53203
53204 2007-11-11  Bruno Haible  <bruno@clisp.org>
53205
53206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53207         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53208         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53209         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53210         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53211         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53212         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53213         HAVE_DECL_ROUNDF.
53214         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53215         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53217         of HAVE_DECL_ROUND*.
53218         * modules/math (Makefile.am): Update.
53219
53220 2007-11-10  Bruno Haible  <bruno@clisp.org>
53221
53222         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53223         ptrdiff_t as m4/intl.m4.
53224
53225 2007-11-10  Jim Meyering  <meyering@redhat.com>
53226
53227         Avoid link failure for the argmatch test.
53228         * tests/test-argmatch.c (usage): Define function to avoid a link
53229         failure: argmatch_die requires a usage function.
53230
53231 2007-11-09  Bruno Haible  <bruno@clisp.org>
53232
53233         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53234         * doc/functions/vsnprintf.texi: Likewise.
53235         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53236         with a size argument < 2.
53237
53238 2007-11-09  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53241         buffer. Fixes an inefficiency introduced on 2007-11-03.
53242
53243 2007-11-09  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53246         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53247
53248 2007-11-08  Jim Meyering  <meyering@redhat.com>
53249
53250         Change cache variable name prefix "jm_" to "gl_" everywhere.
53251         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53252         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53253         * m4/uptime.m4: s/gl_/jm_/
53254
53255 2007-11-07  Bruno Haible  <bruno@clisp.org>
53256
53257         Update to GNU gettext 0.17.
53258         * m4/intl.m4: Update to GNU gettext 0.17.
53259         * m4/po.m4: Likewise.
53260         * modules/gettext (Files): Remove m4/ulonglong.m4.
53261         (configure.ac): Require gettext infrastructure from version 0.17.
53262
53263 2007-11-06  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53266         symbolic values are not defined in a public header.
53267         * lib/freadable.c (freadable) [QNX]: Likewise.
53268         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53269         * lib/freading.c (freading) [QNX]: Likewise.
53270         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53271         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53272         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53273         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53274         Reported by Alain Magloire.
53275
53276         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53277
53278 2007-11-05  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53281         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53282         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53283         Reported by Eric Blake.
53284
53285 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53286             Bruno Haible  <bruno@clisp.org>
53287
53288         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53289         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53290         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53291         (malloc): Undefine also before including <stdlib.h>.
53292         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53293         Needed on OSF/1 4.0.
53294
53295 2007-11-05  Jim Meyering  <meyering@redhat.com>
53296
53297         git-version-gen: sync from coreutils.
53298         * build-aux/git-version-gen: Add comments.
53299         Change the first '-' to '.' in the snapshot version string,
53300         e.g., 6.9-377-08144 -> 6.9.377-08144
53301         Remove first parameter.
53302         Don't declare a version "-dirty" merely because a time
53303         stamp has changed.
53304
53305 2007-11-04  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/lock.h: Protect all macro definitions containing an 'if'
53308         statement through a "do { ... } while (0)".
53309         * lib/tls.h: Likewise.
53310
53311 2007-11-04  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53314
53315 2007-11-04  Bruno Haible  <bruno@clisp.org>
53316
53317         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53318         * modules/fprintf-posix (Depends-on): Add nocrash.
53319         * modules/snprintf-posix (Depends-on): Likewise.
53320         * modules/sprintf-posix (Depends-on): Likewise.
53321         * modules/vasnprintf-posix (Depends-on): Likewise.
53322         * modules/vasprintf-posix (Depends-on): Likewise.
53323         * modules/vfprintf-posix (Depends-on): Likewise.
53324         * modules/vsnprintf-posix (Depends-on): Likewise.
53325         * modules/vsprintf-posix (Depends-on): Likewise.
53326         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53327         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53328         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53329         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53330         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53331         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53332         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53333
53334 2007-11-04  Bruno Haible  <bruno@clisp.org>
53335
53336         * modules/nocrash: New file.
53337         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53338         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53339
53340 2007-11-04  Bruno Haible  <bruno@clisp.org>
53341
53342         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53343         precision handling.
53344         * tests/test-vasprintf-posix.c (test_function): Likewise.
53345         * tests/test-snprintf-posix.h (test_function): Likewise.
53346         * tests/test-sprintf-posix.h (test_function): Likewise.
53347
53348         Fix *printf behaviour for large precisions on mingw and BeOS.
53349         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53350         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53352         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53354         gl_PRINTF_PRECISION and test its result. Invoke
53355         gl_PREREQ_VASNPRINTF_PRECISION.
53356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53363         * doc/functions/fprintf.texi: Update.
53364         * doc/functions/printf.texi: Update.
53365         * doc/functions/snprintf.texi: Update.
53366         * doc/functions/sprintf.texi: Update.
53367         * doc/functions/vfprintf.texi: Update.
53368         * doc/functions/vprintf.texi: Update.
53369         * doc/functions/vsnprintf.texi: Update.
53370         * doc/functions/vsprintf.texi: Update.
53371
53372 2007-11-04  Bruno Haible  <bruno@clisp.org>
53373
53374         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53375
53376 2007-11-04  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53379         Reported by Sylvain Beucler <beuc@gnu.org>.
53380
53381 2007-11-03  Bruno Haible  <bruno@clisp.org>
53382
53383         * tests/test-fprintf-posix2.sh: New file.
53384         * tests/test-fprintf-posix2.c: New file.
53385         * modules/fprintf-posix-tests (Files): Add them.
53386         (TESTS): Add test-fprintf-posix2.sh.
53387         (configure.ac): Check for getrlimit and setrlimit.
53388         (check_PROGRAMS): Add test-fprintf-posix2.
53389
53390         * tests/test-printf-posix2.sh: New file.
53391         * tests/test-printf-posix2.c: New file.
53392         * modules/printf-posix-tests (Files): Add them.
53393         (TESTS): Add test-printf-posix2.sh.
53394         (configure.ac): Check for getrlimit and setrlimit.
53395         (check_PROGRAMS): Add test-printf-posix2.
53396
53397         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53398         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53399         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53400         (decode_double): New function, copied from decode_long_double.
53401         (scale10_round_decimal_decoded): New function, extracted from
53402         scale10_round_decimal_long_double.
53403         (scale10_round_decimal_long_double): Use it.
53404         (scale10_round_decimal_double): New function.
53405         (floorlog10): New function.
53406         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53408         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53409         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53410         gl_PRINTF_ENOMEM and test its result. Invoke
53411         gl_PREREQ_VASNPRINTF_ENOMEM.
53412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53419         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53420         * modules/snprintf-posix (Depends-on): Likewise.
53421         * modules/sprintf-posix (Depends-on): Likewise.
53422         * modules/vasnprintf-posix (Depends-on): Likewise.
53423         * modules/vasprintf-posix (Depends-on): Likewise.
53424         * modules/vfprintf-posix (Depends-on): Likewise.
53425         * modules/vsnprintf-posix (Depends-on): Likewise.
53426         * modules/vsprintf-posix (Depends-on): Likewise.
53427         * doc/functions/fprintf.texi: Update.
53428         * doc/functions/printf.texi: Update.
53429         * doc/functions/snprintf.texi: Update.
53430         * doc/functions/sprintf.texi: Update.
53431         * doc/functions/vfprintf.texi: Update.
53432         * doc/functions/vprintf.texi: Update.
53433         * doc/functions/vsnprintf.texi: Update.
53434         * doc/functions/vsprintf.texi: Update.
53435
53436 2007-11-03  Bruno Haible  <bruno@clisp.org>
53437
53438         * modules/frexp-nolibm-tests: New file.
53439
53440         * modules/frexp-nolibm: New file.
53441         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53442
53443 2007-11-03  Bruno Haible  <bruno@clisp.org>
53444
53445         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53446         value is C99 compliant.
53447         Needed for OSF/1 5.1.
53448
53449 2007-11-03  Bruno Haible  <bruno@clisp.org>
53450
53451         Fix out-of-memory handling of vasnprintf.
53452         * lib/printf-parse.c: Include <errno.h>.
53453         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53454         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53455         is already set.
53456
53457 2007-11-02  Eric Blake  <ebb9@byu.net>
53458
53459         Fix tests on cygwin.
53460         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53461
53462 2007-11-01  Bruno Haible  <bruno@clisp.org>
53463
53464         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53465         warning.
53466         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53467         needed for POSIX compatibility.
53468
53469 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53472         for compatibility with GNU.
53473
53474 2007-11-01  Bruno Haible  <bruno@clisp.org>
53475
53476         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53477         (putenv): Renamed from rpl_putenv. Change argument type from
53478         'const char *' to 'char *'.
53479         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53480         of defining putenv in config.h, just set REPLACE_PUTENV.
53481         * modules/putenv (Depends-on): Add stdlib.
53482         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53483         (Include): Use <stdlib.h>.
53484         * lib/stdlib.in.h (putenv): New declaration.
53485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53486         REPLACE_PUTENV.
53487         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53488         REPLACE_PUTENV.
53489         Needed for MacOS X 10.5.0.
53490         Reported by Peter O'Gorman <peter@pogma.com>.
53491
53492 2007-11-01  Jim Meyering  <meyering@redhat.com>
53493
53494         Treat an empty date string exactly like "0".
53495         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53496         if the remaining date string (to be parsed) is empty, use "0".
53497         Reported by Mischa Molhoek and discussed in this thread:
53498         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53499
53500 2007-10-31  Bruno Haible  <bruno@clisp.org>
53501
53502         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53503         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53504         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53505         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53506         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53507         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53508
53509 2007-10-31  Bruno Haible  <bruno@clisp.org>
53510
53511         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53512         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53513         (AC_TYPE_LONG_LONG_INT): Use it.
53514         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53515         it as well.
53516         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53517         to m4/longlong.m4.
53518         * modules/stdint (Files): Remove m4/ulonglong.m4.
53519         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53520         m4/ulonglong.m4.
53521         * modules/strtoumax (Files): Likewise.
53522
53523 2007-10-30  Bruno Haible  <bruno@clisp.org>
53524
53525         * modules/xvasprintf-posix: New file.
53526         Suggested by Eric Blake.
53527
53528 2007-10-30  Bruno Haible  <bruno@clisp.org>
53529
53530         * modules/xprintf-posix-tests: New file.
53531         * tests/test-xprintf-posix.sh: New file.
53532         * tests/test-xprintf-posix.c: New file.
53533         * tests/test-xfprintf-posix.c: New file.
53534
53535         * modules/xprintf-posix: New file.
53536
53537 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53538
53539         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53540         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53541         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53542
53543 2007-10-29  Bruno Haible  <bruno@clisp.org>
53544
53545         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53546         contain the special marker '_cv_'.
53547         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53548         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53549         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53550         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53551         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53552         Reported by Ralf Wildenhues.
53553
53554 2007-10-29  Bruno Haible  <bruno@clisp.org>
53555
53556         * gnulib-tool (func_import): When --lgpl is not specified, set
53557         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53558         GPLv3.
53559         Reported by Simon Josefsson.
53560
53561 2007-10-28  Bruno Haible  <bruno@clisp.org>
53562
53563         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53564         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53565         HAVE_DECL_ISFINITE.
53566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53567         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53568         HAVE_DECL_ISFINITE.
53569
53570 2007-10-28  Bruno Haible  <bruno@clisp.org>
53571
53572         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53573         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53574
53575 2007-10-28  Bruno Haible  <bruno@clisp.org>
53576
53577         Fix link errors with Sun C 5.0 on Solaris 10.
53578         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53579         function is declared but not present in the compiler's libm.
53580         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53581         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53582         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53583         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53584         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53585         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53586         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53588         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53589         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53590         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53591         HAVE_DECL_FLOORL.
53592
53593 2007-10-28  Bruno Haible  <bruno@clisp.org>
53594
53595         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53596         gl_FUNC_FLOORL. Cache the result.
53597         (gl_FUNC_FLOORL): Use it.
53598         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53599         gl_FUNC_CEILL. Cache the result.
53600         (gl_FUNC_CEILL): Use it.
53601
53602         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53603         gl_FUNC_FLOOR. Cache the result.
53604         (gl_FUNC_FLOOR): Use it.
53605         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53606         gl_FUNC_CEIL. Cache the result.
53607         (gl_FUNC_CEIL): Use it.
53608
53609         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53610         gl_FUNC_FLOORF. Cache the result.
53611         (gl_FUNC_FLOORF): Use it.
53612         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53613         gl_FUNC_CEILF. Cache the result.
53614         (gl_FUNC_CEILF): Use it.
53615
53616 2007-10-28  Bruno Haible  <bruno@clisp.org>
53617
53618         * gnulib-tool: Allow specifying the LGPL version number through
53619         --lgpl=2 or --lgpl=3.
53620         (func_usage): Document --lgpl with argument.
53621         Handle --lgpl=... arguments.
53622         (func_import): Recognize also gl_LGPL calls with an argument. When
53623         --lgpl=2 is used and the module's license is just LGPL, report an
53624         error. Set sed_transform_lib_file according to the lgpl variable. In
53625         the generated files, use --lgpl or gl_LGPL invocations with argument,
53626         if necessary.
53627         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53628         an LGPv2+ license.
53629         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53630         gl_LGPL macro.
53631
53632 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53633             Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53636         (u16_uctomb_aux): Likewise.
53637         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53638         !HAVE_INLINE.
53639         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53640
53641 2007-10-28  Bruno Haible  <bruno@clisp.org>
53642
53643         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53644         Invoke AM_GETTEXT_OPTION if it exists.
53645         * modules/vasprintf: Likewise.
53646         * modules/verror: Likewise.
53647         * modules/xprintf: Likewise.
53648         * modules/xvasprintf: Likewise.
53649
53650 2007-10-27  Ben Pfaff  <blp@gnu.org>
53651
53652         * lib/math.in.h: Define isfinite macro and prototypes for
53653         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53654         implementations.
53655         * m4/math_h.m4: New substitutions for isfinite module.
53656         * lib/isfinite.c: New file.
53657         * m4/isfinite.m4: New file.
53658         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53659         * modules/isfinite: New file.
53660         * modules/isfinite-tests: New file.
53661         * tests/tests-isfinite.c: New file.
53662         * doc/functions/isfinite.texi: Mention isfinite module.
53663         * MODULES.html.sh: Mention new module.
53664
53665 2007-10-27  Ben Pfaff  <blp@gnu.org>
53666
53667         Ralf Wildenhues reported that Tru64 4.0D declares the round
53668         functions but does not have definitions.
53669         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53670         cannot be found in any library, set the output variable to
53671         "missing" instead of "".
53672         * m4/round.m4: Also use our substitute if we cannot find round in
53673         any library, even if it is declared.
53674         * m4/roundf.m4: Likewise for roundf.
53675         * m4/roundl.m4: Likewise for roundl.
53676         * lib/math.in.h: Undefine roundf, round, roundl before defining
53677         their replacements, to allow for hypothetical systems where these
53678         may be defined as macros but not available in libraries.
53679
53680 2007-10-27  Bruno Haible  <bruno@clisp.org>
53681
53682         * doc/gnulib.texi: Invoke @firstparagraphindent.
53683         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53684         changes in gnulib.
53685         (Source changes): New section.
53686
53687 2007-10-26  Bruno Haible  <bruno@clisp.org>
53688
53689         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53690         borrowed from autoconf.
53691
53692 2007-10-26  Bruno Haible  <bruno@clisp.org>
53693
53694         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53695         strerror returned the empty string. Needed on HP-UX 11.00.
53696
53697 2007-10-24  Micah Cowan  <micah@cowan.name>
53698
53699         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53700         * build-aux/bootstrap: Remove support for now-unnecessary option,
53701         --cvs-user, and envvars CVS_USER, CVS_RSH.
53702
53703 2007-10-24  Jim Meyering  <meyering@redhat.com>
53704
53705         Avoid diagnostics from sha1sum when there is no cached checksum.
53706         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53707         if the po.s1 file hasn't been created yet.
53708
53709         * build-aux/bootstrap: Sync from coreutils:
53710         2007-10-24  Jim Meyering  <meyering@redhat.com>
53711         Get gnulib from the git repository, not from an obsolete cvs one.
53712         * build-aux/bootstrap: Suggestion from Micah Cowan.
53713         2007-10-04  Jim Meyering  <jim@meyering.net>
53714         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53715         (update_po_files): Work also when there are no .po files in po/.
53716
53717 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53718
53719         * README: Append ".git" to git and cg examples.
53720         Problem reported by Benoit Sigoure.
53721
53722 2007-10-23  Micah Cowan  <micah@cowan.name>
53723
53724         * users.txt: Add wget.
53725
53726 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53727
53728         Fix linking of some unistdio tests on FreeBSD.
53729         * modules/unistdio/u16-vsnprintf-tests
53730         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53731         * modules/unistdio/u16-vsprintf-tests
53732         (test_u16_vsnprintf1_LDADD): Likewise.
53733         * modules/unistdio/u32-vsnprintf-tests
53734         (test_u32_vsnprintf1_LDADD): Likewise.
53735         * modules/unistdio/u32-vsprintf-tests
53736         (test_u32_vsprintf1_LDADD): Likewise.
53737         * modules/unistdio/u8-vsnprintf-tests
53738         (test_u8_vsnprintf1_LDADD): Likewise.
53739         * modules/unistdio/u8-vsprintf-tests
53740         (test_u8_vsprintf1_LDADD): Likewise.
53741         * modules/unistdio/ulc-vsnprintf-tests
53742         (test_ulc_vsnprintf1_LDADD): Likewise.
53743         * modules/unistdio/ulc-vsprintf-tests
53744         (test_ulc_vsprintf1_LDADD): Likewise.
53745
53746         Fix linking of some uniconv tests on FreeBSD.
53747         * modules/uniconv/u16-conv-from-enc-tests
53748         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53749         * modules/uniconv/u16-conv-to-enc-tests
53750         (test_u16_conv_to_enc_LDADD): Likewise.
53751         * modules/uniconv/u16-strconv-from-enc-tests
53752         (test_u16_strconv_from_enc_LDADD): Likewise.
53753         * modules/uniconv/u16-strconv-to-enc-tests
53754         (test_u16_strconv_to_enc_LDADD): Likewise.
53755         * modules/uniconv/u32-conv-from-enc-tests
53756         (test_u32_conv_from_enc_LDADD): Likewise.
53757         * modules/uniconv/u32-conv-to-enc-tests
53758         (test_u32_conv_to_enc_LDADD): Likewise.
53759         * modules/uniconv/u32-strconv-from-enc-tests
53760         (test_u32_strconv_from_enc_LDADD): Likewise.
53761         * modules/uniconv/u32-strconv-to-enc-tests
53762         (test_u32_strconv_to_enc_LDADD): Likewise.
53763         * modules/uniconv/u8-conv-from-enc-tests
53764         (test_u8_conv_from_enc_LDADD): Likewise.
53765         * modules/uniconv/u8-conv-to-enc-tests
53766         (test_u8_conv_to_enc_LDADD): Likewise.
53767         * modules/uniconv/u8-strconv-from-enc-tests
53768         (test_u8_strconv_from_enc_LDADD): Likewise.
53769         * modules/uniconv/u8-strconv-to-enc-tests
53770         (test_u8_strconv_to_enc_LDADD): Likewise.
53771
53772 2007-10-22  Bruno Haible  <bruno@clisp.org>
53773
53774         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53775         size.
53776
53777 2007-10-22  Eric Blake  <ebb9@byu.net>
53778
53779         Tweak x*printf documentation.
53780         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53781         variable name and comments.
53782         Suggested by Bruno Haible.
53783
53784 2007-10-22  Bruno Haible  <bruno@clisp.org>
53785
53786         * lib/acl.c (copy_acl): Fix file name in comment.
53787
53788 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53789
53790         Fix Tru64 problem with stdbool.h.
53791         * lib/stdbool.in.h (false, true):
53792         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53793         Don't declare as an enum in this situation; it runs afoul of Tru64.
53794         Problem reported by Steven M. Schweda in
53795         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53796
53797 2007-10-22  Eric Blake  <ebb9@byu.net>
53798
53799         Also wrap vf?printf.
53800         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53801         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53802         (xvprintf, xvfprintf): New functions.
53803
53804 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53805
53806         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53807         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53808
53809         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53810         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53811
53812 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53815         by Bruno Haible.
53816
53817 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53818
53819         * lib/getloadavg.c
53820         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53821         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53822
53823         * tests/test-i-ring.c: Work for C89.
53824
53825 2007-10-22  Bruno Haible  <bruno@clisp.org>
53826
53827         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53828         -1u, in preprocessor expression, so that we don't test for the bug
53829         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53831
53832 2007-10-22  Eric Blake  <ebb9@byu.net>
53833
53834         * tests/test-yesno.sh: Silence stderr during test.
53835
53836 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53837
53838         * modules/crypto/gc-camellia: New file.
53839
53840         * m4/gc-camellia.m4: New file.
53841
53842         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53843
53844         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53845
53846 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53847
53848         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53849         --help to stdout.  Reported by sms@antinode.org (Steven
53850         M. Schweda).
53851
53852 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53853
53854         * users.txt: Fix link to libksba.
53855
53856 2007-10-21  Ben Pfaff  <blp@gnu.org>
53857
53858         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53859         round.c roundf implementation that depends on floorf and ceilf to
53860         be tested unconditionally.
53861
53862 2007-10-21  Ben Pfaff  <blp@gnu.org>
53863
53864         * m4/check-libm-func.m4: Removed.
53865         * m4/check-math-lib.m4: New file.
53866         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53867         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53868         definition and lack of AC_LIBOBJ([roundf]).
53869         * m4/roundl.m4: Ditto, and similarly for roundl.
53870         * modules/round: Reference new m4 file.
53871         * modules/roundf: Ditto.
53872         * modules/roundl: Ditto.
53873         * tests/test-round2.c (main): Use ROUND instead of round.
53874         Bug report from Bruno Haible.
53875
53876 2007-10-21  Bruno Haible  <bruno@clisp.org>
53877
53878         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53879         context.
53880
53881 2007-10-21  Bruno Haible  <bruno@clisp.org>
53882
53883         * tests/test-wcwidth.c (main): Allow negative result for some control
53884         characters.
53885
53886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53887         Needed on OSF/1 5.1.
53888
53889 2007-10-21  Bruno Haible  <bruno@clisp.org>
53890
53891         * tests/test-floorf1.c: Include isnanf.h.
53892         (main): Use isnanf() instead of isnan().
53893         * tests/test-ceilf1.c: Include isnanf.h.
53894         (main): Use isnanf() instead of isnan().
53895         * tests/test-truncf1.c: Include isnanf.h.
53896         (main): Use isnanf() instead of isnan().
53897         * tests/test-roundf1.c: Include isnanf.h.
53898         (main): Use isnanf() instead of isnan().
53899
53900 2007-10-21  Eric Blake  <ebb9@byu.net>
53901
53902         * users.txt: Update URL for m4.
53903
53904 2007-10-21  Bruno Haible  <bruno@clisp.org>
53905
53906         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53907
53908 2007-10-21  Bruno Haible  <bruno@clisp.org>
53909
53910         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53911         Git's management files if the CVS files are not present.
53912
53913 2007-10-20  Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53916         gcc-3.4.x.
53917
53918 2007-10-20  Ben Pfaff  <blp@gnu.org>
53919
53920         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53921         implementations.
53922         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53923         * lib/round.c: New file.
53924         * lib/roundf.c: New file.
53925         * lib/roundl.c: New file.
53926         * m4/round.m4: New file.
53927         * m4/roundf.m4: New file.
53928         * m4/roundl.m4: New file.
53929         * m4/check-libm-func-m4: New file.
53930         * modules/math: Replace round, roundf, roundl related @VARS@ in
53931         math.in.h.
53932         * modules/round: New file.
53933         * modules/round-tests: New file.
53934         * modules/roundf: New file.
53935         * modules/roundf-tests: New file.
53936         * modules/roundl: New file.
53937         * modules/roundl-tests: New file.
53938         * tests/test-round1.c: New file.
53939         * tests/test-round2.c: New file.
53940         * tests/test-roundf1.c: New file.
53941         * tests/test-roundf2.c: New file.
53942         * tests/test-roundl.c: New file.
53943         * doc/functions/round.texi: Mention round module.
53944         * doc/functions/roundf.texi: Mention roundf module.
53945         * doc/functions/roundl.texi: Mention roundl module.
53946         * MODULES.html.sh: Mention new modules.
53947         Thanks to Bruno Haible for suggestions.
53948
53949 2007-10-20  Jim Meyering  <meyering@redhat.com>
53950
53951         * lib/xprintf.c: Include <config.h> unconditionally.
53952
53953         Change xprintf's license to GPL.
53954         * modules/xprintf (License): s/LGPL/GPL/, since this module
53955         depends on modules (exit and exitfail) which are GPL.
53956         Suggestion from Bruno Haible.
53957
53958         xprintf fixes.
53959         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53960         Use a clearer diagnostic.
53961         Patch from Bruno Haible.
53962
53963 2007-10-20  Bruno Haible  <bruno@clisp.org>
53964
53965         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53966         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53967         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53968
53969 2007-10-20  Bruno Haible  <bruno@clisp.org>
53970
53971         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53972         precision in the comparison result > x - 1 or similar.
53973         * tests/test-ceilf2.c (correct_result_p): Likewise.
53974         * tests/test-truncf2.c (correct_result_p): Likewise.
53975         * tests/test-trunc2.c (correct_result_p): Likewise.
53976         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53977
53978 2007-10-20  Bruno Haible  <bruno@clisp.org>
53979
53980         * modules/ceil: New file.
53981         * m4/ceil.m4: New file.
53982         * doc/functions/ceil.texi: Mention the 'ceil' module.
53983
53984 2007-10-20  Bruno Haible  <bruno@clisp.org>
53985
53986         * modules/floor: New file.
53987         * m4/floor.m4: New file.
53988         * doc/functions/floor.texi: Mention the 'floor' module.
53989
53990 2007-10-20  Bruno Haible  <bruno@clisp.org>
53991
53992         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53993         of %a.
53994         * modules/floorf-tests (Depends-on): Likewise.
53995         * modules/truncf-tests (Depends-on): Likewise.
53996         * modules/trunc-tests (Depends-on): Likewise.
53997         Reported by Ben Pfaff.
53998
53999 2007-10-19  Jim Meyering  <meyering@redhat.com>
54000
54001         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54002         Don't bother testing specific errno values.  Just test ferror.
54003
54004         New module: xprintf
54005         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54006
54007 2007-10-19  Bruno Haible  <bruno@clisp.org>
54008
54009         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54010         syntax.
54011         * modules/javaexec (Makefile.am): Likewise.
54012         * modules/relocatable-prog (Makefile.am): Likewise.
54013         Suggested by Jim Meyering.
54014
54015 2007-10-18  Bruno Haible  <bruno@clisp.org>
54016
54017         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54018         Reported by Jim Meyering.
54019
54020 2007-10-18  Eric Blake  <ebb9@byu.net>
54021
54022         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54023
54024 2007-10-18  Bruno Haible  <bruno@clisp.org>
54025
54026         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54027         the format string into writable memory. Needed in Fortify conditions.
54028
54029 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54030             Bruno Haible  <bruno@clisp.org>
54031
54032         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54033         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54034         * modules/trim (Depends-on): Add mbchar.
54035         (configure.ac): Add gl_FUNC_MBRTOWC.
54036         (Makefile.am): Augment lib_SOURCES.
54037
54038 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         Modify glob.c to use fstatat and dirfd, to simplify it.
54041         Suggested by Eric Blake.
54042         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54043         Don't include <stdbool.h>; not used.
54044         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54045         (link_exists_p): Simplify implementation, since we can now assume
54046         dirfd and fstatat.
54047         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54048
54049 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54050
54051         * gnulib-tool (func_get_dependencies): Fix sed script to
54052         match only tests.
54053
54054 2007-10-17  Bruno Haible  <bruno@clisp.org>
54055
54056         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54057         allow locale names without encoding suffix.
54058         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54059         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54060
54061 2007-10-16  Bruno Haible  <bruno@clisp.org>
54062
54063         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54064         * lib/getgroups.c (getgroups): Likewise.
54065         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54066
54067 2007-10-16  Bruno Haible  <bruno@clisp.org>
54068
54069         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54070         * modules/malloc-posix (License): Likewise.
54071         * modules/realloc-posix (License): Likewise.
54072         * modules/calloc-posix (License): Likewise.
54073         * modules/intprops (License): Change from GPL to LGPL, with
54074         Paul Eggert's approval.
54075
54076 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         Merge glibc changes into lib/glob.c.
54079
54080         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54081         2007-10-15 04:59:03 UTC.  Here are the changes:
54082
54083         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54084
54085         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54086
54087         * lib/glob.c: Add some branch prediction throughout.
54088
54089         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54090
54091         [BZ #5103]
54092         * lib/glob.c (glob): Recognize patterns starting \/.
54093
54094         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54095
54096         [BZ #3996]
54097         * lib/glob.c (attribute_hidden): Define if not defined.
54098         (glob): Unescape dirname, filename or username when needed and not
54099         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54100         is NULL.  Handle unescaped [ in pattern without closing ].
54101         Don't pass GLOB_CHECK down to recursive glob for directories.
54102         (__glob_pattern_type): New function.
54103         (__glob_pattern_p): Implement using __glob_pattern_type.
54104         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54105         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54106         Remove unreachable code.
54107
54108         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54109
54110         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54111         explain why there are no leaks.
54112
54113         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54114
54115         [BZ #3253]
54116         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54117         time, rather allocate increasingly bigger arrays of pointers, if
54118         possible with alloca, if too large with malloc.
54119
54120 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54121
54122         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54123         Problem reported by H.Merijn Brand in
54124         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54125         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54126         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54127
54128 2007-10-15  Bruno Haible  <bruno@clisp.org>
54129
54130         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54131         with explicit rpl_ prefix.
54132         * lib/fopen.c (fopen): Likewise.
54133         * lib/freopen.c (freopen): Likewise.
54134         * lib/iconv.c (iconv): Likewise.
54135         * lib/iconv_close.c (iconv_close): Likewise.
54136
54137 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54138
54139         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54140
54141 2007-10-15  Bruno Haible  <bruno@clisp.org>
54142
54143         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54144         <stddef.h> instead of <stdlib.h> since we only need NULL.
54145         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54146
54147 2007-10-15  Bruno Haible  <bruno@clisp.org>
54148
54149         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54150         Replace paragraph talking about LIBOBJS.
54151         Reported by Colin Watson <cjwatson@debian.org>.
54152
54153 2007-10-15  Bruno Haible  <bruno@clisp.org>
54154
54155         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54156         <stdlib.h> before using NULL.
54157
54158 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54159
54160         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54161         Reported by Albert Chin <china@thewrittenword.com>.
54162
54163 2007-10-14  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/iconv_open-utf-tests: New file.
54166         * tests/test-iconv-utf.c: New file.
54167
54168         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54169         * modules/iconv_open-utf: New file.
54170         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54171         (iconv, iconv_close): New declarations.
54172         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54173         be defined.
54174         (iconv_open): Add special handling of conversion between UTF-8 and
54175         UTF-{16,32}{BE,LE}.
54176         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54177         * lib/iconv_close.c: New file.
54178         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54179         gl_FUNC_ICONV_OPEN.
54180         (gl_FUNC_ICONV_OPEN): Use it.
54181         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54182         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54183         and REPLACE_ICONV_UTF.
54184         * modules/iconv_open (Depends-on): Add c-strcase.
54185         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54186         ICONV_CONST.
54187         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54188
54189 2007-10-13  Albert Chin  <china@thewrittenword.com>
54190             Bruno Haible  <bruno@clisp.org>
54191
54192         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54193         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54194
54195 2007-10-13  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54198         defined, use the ISO C99 inline semantics.
54199         * lib/argp.h (ARGP_EI): Likewise.
54200
54201 2007-10-13  Bruno Haible  <bruno@clisp.org>
54202
54203         Handle 'inline' change in gcc 4.3.0.
54204         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54205         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54206         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54207         argp_fmtstream_point): Disable 'extern' declaration if the function
54208         definition is going to be provided inline.
54209         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54210         semantics, not the ISO C99 inline semantics.
54211         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54212         'extern' declaration if the function definition is going to be provided
54213         inline.
54214         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54215         the GNU C inline semantics, not the ISO C99 inline semantics. With
54216         GCC 4.2, avoid a warning.
54217
54218 2007-10-13  Bruno Haible  <bruno@clisp.org>
54219
54220         * lib/freading.h (freading): Enable the use of __freading for
54221         glibc >= 2.7.
54222         * lib/freading.c (freading): Likewise.
54223
54224 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54225
54226         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54227         "warning: C99 inline functions are not supported; using GNU89".
54228
54229 2007-10-12  Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54232         of 2.
54233         * tests/test-ceilf2.c: New file.
54234         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54235
54236         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54237         * modules/ceilf-tests: Update.
54238
54239 2007-10-12  Bruno Haible  <bruno@clisp.org>
54240
54241         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54242         of 2.
54243         * tests/test-floorf2.c: New file.
54244         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54245
54246         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54247         * modules/floorf-tests: Update.
54248
54249 2007-10-12  Bruno Haible  <bruno@clisp.org>
54250
54251         * tests/test-trunc2.c: New file.
54252         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54253
54254         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54255         * modules/trunc-tests: Update.
54256
54257 2007-10-12  Bruno Haible  <bruno@clisp.org>
54258
54259         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54260         of 2.
54261         * tests/test-truncf2.c: New file.
54262         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54263
54264         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54265         * modules/truncf-tests: Update.
54266
54267 2007-10-11  Eric Blake  <ebb9@byu.net>
54268
54269         Don't claim strerror is broken on Interix.
54270         * doc/functions/strerror.texi (strerror): Known broken systems are
54271         now Solaris 8, and not Interix.
54272         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54273         Interix on cross-compile.
54274         Reported by Martin Koeppe in
54275         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54276
54277 2007-10-11  Bruno Haible  <bruno@clisp.org>
54278
54279         * modules/i-ring-tests: New file.
54280         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54281         instead of assert.
54282
54283 2007-10-11  Bruno Haible  <bruno@clisp.org>
54284
54285         * modules/filenamecat-tests: New file.
54286         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54287         * lib/filenamecat.c: Remove test code.
54288
54289 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54290
54291         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54292
54293         * lib/strerror.c: Include <string.h> always, to test interface,
54294         and to remove the need for the dummy.
54295         Include intprops.h to compute width instead of doing it ourselves
54296         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54297         (strerror): Define it to return NULL if there's no system strerror.
54298         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54299         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54300         ancient pre-strerror Unix systems well any more.  Saying "unknown
54301         system error" is enough.
54302         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54303         simpler strerror.c implementation.
54304         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54305         Simplify the tests to reflect the simpler strerror implementation.
54306         * modules/strerror (Depends-on): Add intprops.
54307
54308 2007-10-09  Eric Blake  <ebb9@byu.net>
54309
54310         Silence test-fpending.
54311         * modules/fpending-tests (Files): Add wrapper script.
54312         * tests/test-fpending.sh: New file.
54313
54314 2007-10-09  Bruno Haible  <bruno@clisp.org>
54315
54316         * MODULES.html.sh (func_module): Don't create a hyperlink for
54317         function names like 'printf_frexp'.
54318         (Misc): Add crc, memxor.
54319         (Characteristics of floating types): New section.
54320         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54321         isnanf-nolibm, signbit, trunc, truncf, truncl.
54322         (Enhancements for ISO C 99 functions): New subsection Input/output.
54323         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54324         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54325         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54326         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54327         (Enhancements for POSIX:2001 functions): Add chdir-long.
54328         (File system functions): Add areadlink, chdir-safer, read-file.
54329         Remove cycle-check.
54330         (File system as inode set): New section.
54331         (Date and time): Add gethrxtime.
54332         (Multithreading): Add openmp.
54333         (Internationalization functions): Add localename.
54334         (Unicode string functions): Add unistr/u*-mbsnlen.
54335         (Support for maintaining and releasing projects): Add git-version-gen.
54336         (Lone files): Remove directories.
54337
54338 2007-10-08  Ben Pfaff  <blp@gnu.org>
54339
54340         * lib/xmalloca.h: Fix typo in comment.
54341
54342 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54343
54344         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54345         when avoiding problems with integer overflow.  Use a portable test
54346         instead.
54347
54348 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54349
54350         * modules/dummy (License): Change to LGPLv2+.
54351         * modules/float (License): Likewise
54352         * modules/realloc (License): Likewise
54353         * modules/stdlib (License): Likewise
54354
54355 2007-10-07  Bruno Haible  <bruno@clisp.org>
54356
54357         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54358         * floor.c (TWO_MANT_DIG): Likewise.
54359         * ceil.c (TWO_MANT_DIG): Likewise.
54360         Reported by Ben Pfaff.
54361
54362 2007-10-07  Bruno Haible  <bruno@clisp.org>
54363
54364         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54365         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54366         * lib/frexp.c (FUNC): Likewise.
54367         * lib/printf-frexp.h (printf_frexp): Likewise.
54368         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54369         * lib/printf-frexp.c (FUNC): Likewise.
54370         Suggested by Jim Meyering.
54371
54372 2007-10-07  Jim Meyering  <meyering@redhat.com>
54373
54374         Make xnanosleep's integer overflow test more robust.
54375         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54376         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54377
54378 2007-10-07  Bruno Haible  <bruno@clisp.org>
54379
54380         * NEWS: Mention the license change.
54381
54382         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54383         abbreviations in the modules files.
54384
54385         Change copyright notice from GPLv2+ to GPLv3+.
54386         * README: Change copyright notice.
54387         * MODULES.html.sh: Likewise.
54388         * build-aux/bootstrap.conf: Likewise.
54389         * build-aux/config.libpath: Likewise.
54390         * build-aux/csharpcomp.sh.in: Likewise.
54391         * build-aux/csharpexec.sh.in: Likewise.
54392         * build-aux/install-reloc: Likewise.
54393         * build-aux/javacomp.sh.in: Likewise.
54394         * build-aux/javaexec.sh.in: Likewise.
54395         * build-aux/ldd.sh.in: Likewise.
54396         * build-aux/reloc-ldflags: Likewise.
54397         * build-aux/relocatable.sh.in: Likewise.
54398         * build-aux/x-to-1.in: Likewise.
54399         * check-module: Likewise.
54400         * config/srclistvars.sh: Likewise.
54401         * gnulib-tool: Likewise.
54402         * lib/acl-internal.h: Likewise.
54403         * lib/acl.c: Likewise.
54404         * lib/acl.h: Likewise.
54405         * lib/acl_entries.c: Likewise.
54406         * lib/areadlink-with-size.c: Likewise.
54407         * lib/areadlink.c: Likewise.
54408         * lib/areadlink.h: Likewise.
54409         * lib/argmatch.c: Likewise.
54410         * lib/argmatch.h: Likewise.
54411         * lib/argp-ba.c: Likewise.
54412         * lib/argp-eexst.c: Likewise.
54413         * lib/argp-fmtstream.c: Likewise.
54414         * lib/argp-fmtstream.h: Likewise.
54415         * lib/argp-fs-xinl.c: Likewise.
54416         * lib/argp-help.c: Likewise.
54417         * lib/argp-namefrob.h: Likewise.
54418         * lib/argp-parse.c: Likewise.
54419         * lib/argp-pin.c: Likewise.
54420         * lib/argp-pv.c: Likewise.
54421         * lib/argp-pvh.c: Likewise.
54422         * lib/argp-xinl.c: Likewise.
54423         * lib/argp.h: Likewise.
54424         * lib/at-func.c: Likewise.
54425         * lib/atanl.c: Likewise.
54426         * lib/backupfile.c: Likewise.
54427         * lib/backupfile.h: Likewise.
54428         * lib/basename.c: Likewise.
54429         * lib/binary-io.h: Likewise.
54430         * lib/byteswap.in.h: Likewise.
54431         * lib/c-stack.c: Likewise.
54432         * lib/c-stack.h: Likewise.
54433         * lib/c-strcasestr.c: Likewise.
54434         * lib/c-strcasestr.h: Likewise.
54435         * lib/c-strstr.c: Likewise.
54436         * lib/c-strstr.h: Likewise.
54437         * lib/c-strtod.c: Likewise.
54438         * lib/calloc.c: Likewise.
54439         * lib/canon-host.c: Likewise.
54440         * lib/canon-host.h: Likewise.
54441         * lib/canonicalize-lgpl.c: Likewise.
54442         * lib/canonicalize.c: Likewise.
54443         * lib/canonicalize.h: Likewise.
54444         * lib/ceil.c: Likewise.
54445         * lib/ceilf.c: Likewise.
54446         * lib/ceill.c: Likewise.
54447         * lib/chdir-long.c: Likewise.
54448         * lib/chdir-long.h: Likewise.
54449         * lib/chdir-safer.c: Likewise.
54450         * lib/chdir-safer.h: Likewise.
54451         * lib/chown.c: Likewise.
54452         * lib/classpath.c: Likewise.
54453         * lib/classpath.h: Likewise.
54454         * lib/clean-temp.c: Likewise.
54455         * lib/clean-temp.h: Likewise.
54456         * lib/cloexec.c: Likewise.
54457         * lib/close-stream.c: Likewise.
54458         * lib/closein.c: Likewise.
54459         * lib/closein.h: Likewise.
54460         * lib/closeout.c: Likewise.
54461         * lib/closeout.h: Likewise.
54462         * lib/concat-filename.c: Likewise.
54463         * lib/copy-file.c: Likewise.
54464         * lib/copy-file.h: Likewise.
54465         * lib/count-one-bits.h: Likewise.
54466         * lib/crc.c: Likewise.
54467         * lib/crc.h: Likewise.
54468         * lib/creat-safer.c: Likewise.
54469         * lib/csharpcomp.c: Likewise.
54470         * lib/csharpcomp.h: Likewise.
54471         * lib/csharpexec.c: Likewise.
54472         * lib/csharpexec.h: Likewise.
54473         * lib/cycle-check.c: Likewise.
54474         * lib/cycle-check.h: Likewise.
54475         * lib/diacrit.c: Likewise.
54476         * lib/diacrit.h: Likewise.
54477         * lib/diffseq.h: Likewise.
54478         * lib/dirchownmod.c: Likewise.
54479         * lib/dirent.in.h: Likewise.
54480         * lib/dirfd.c: Likewise.
54481         * lib/dirfd.h: Likewise.
54482         * lib/dirname.c: Likewise.
54483         * lib/dirname.h: Likewise.
54484         * lib/dummy.c: Likewise.
54485         * lib/dup-safer.c: Likewise.
54486         * lib/dup2.c: Likewise.
54487         * lib/eealloc.h: Likewise.
54488         * lib/error.c: Likewise.
54489         * lib/error.h: Likewise.
54490         * lib/euidaccess.c: Likewise.
54491         * lib/exclude.c: Likewise.
54492         * lib/exclude.h: Likewise.
54493         * lib/execute.c: Likewise.
54494         * lib/execute.h: Likewise.
54495         * lib/exitfail.c: Likewise.
54496         * lib/exitfail.h: Likewise.
54497         * lib/expl.c: Likewise.
54498         * lib/fatal-signal.c: Likewise.
54499         * lib/fatal-signal.h: Likewise.
54500         * lib/fbufmode.c: Likewise.
54501         * lib/fbufmode.h: Likewise.
54502         * lib/fchdir.c: Likewise.
54503         * lib/fchmodat.c: Likewise.
54504         * lib/fchownat.c: Likewise.
54505         * lib/fcntl--.h: Likewise.
54506         * lib/fcntl-safer.h: Likewise.
54507         * lib/fcntl.in.h: Likewise.
54508         * lib/fd-safer.c: Likewise.
54509         * lib/fflush.c: Likewise.
54510         * lib/file-has-acl.c: Likewise.
54511         * lib/file-set.c: Likewise.
54512         * lib/file-type.c: Likewise.
54513         * lib/file-type.h: Likewise.
54514         * lib/fileblocks.c: Likewise.
54515         * lib/filemode.c: Likewise.
54516         * lib/filemode.h: Likewise.
54517         * lib/filename.h: Likewise.
54518         * lib/filenamecat.c: Likewise.
54519         * lib/filenamecat.h: Likewise.
54520         * lib/findprog.c: Likewise.
54521         * lib/findprog.h: Likewise.
54522         * lib/float.in.h: Likewise.
54523         * lib/floor.c: Likewise.
54524         * lib/floorf.c: Likewise.
54525         * lib/floorl.c: Likewise.
54526         * lib/fopen-safer.c: Likewise.
54527         * lib/fopen.c: Likewise.
54528         * lib/fpending.c: Likewise.
54529         * lib/fpending.h: Likewise.
54530         * lib/fprintf.c: Likewise.
54531         * lib/fprintftime.h: Likewise.
54532         * lib/fpucw.h: Likewise.
54533         * lib/fpurge.c: Likewise.
54534         * lib/fpurge.h: Likewise.
54535         * lib/freadable.c: Likewise.
54536         * lib/freadable.h: Likewise.
54537         * lib/freadahead.c: Likewise.
54538         * lib/freadahead.h: Likewise.
54539         * lib/freading.c: Likewise.
54540         * lib/freading.h: Likewise.
54541         * lib/free.c: Likewise.
54542         * lib/freopen.c: Likewise.
54543         * lib/frexp.c: Likewise.
54544         * lib/frexpl.c: Likewise.
54545         * lib/fseek.c: Likewise.
54546         * lib/fseterr.c: Likewise.
54547         * lib/fseterr.h: Likewise.
54548         * lib/fstatat.c: Likewise.
54549         * lib/fstrcmp.c: Likewise.
54550         * lib/fstrcmp.h: Likewise.
54551         * lib/fsusage.c: Likewise.
54552         * lib/fsusage.h: Likewise.
54553         * lib/ftell.c: Likewise.
54554         * lib/ftello.c: Likewise.
54555         * lib/fts-cycle.c: Likewise.
54556         * lib/fts.c: Likewise.
54557         * lib/fts_.h: Likewise.
54558         * lib/full-read.c: Likewise.
54559         * lib/full-read.h: Likewise.
54560         * lib/full-write.c: Likewise.
54561         * lib/full-write.h: Likewise.
54562         * lib/fwritable.c: Likewise.
54563         * lib/fwritable.h: Likewise.
54564         * lib/fwriteerror.c: Likewise.
54565         * lib/fwriteerror.h: Likewise.
54566         * lib/fwriting.c: Likewise.
54567         * lib/fwriting.h: Likewise.
54568         * lib/gcd.c: Likewise.
54569         * lib/gcd.h: Likewise.
54570         * lib/getcwd.c: Likewise.
54571         * lib/getdate.h: Likewise.
54572         * lib/getdate.y: Likewise.
54573         * lib/getdomainname.c: Likewise.
54574         * lib/getdomainname.h: Likewise.
54575         * lib/getgroups.c: Likewise.
54576         * lib/gethostname.c: Likewise.
54577         * lib/gethrxtime.c: Likewise.
54578         * lib/gethrxtime.h: Likewise.
54579         * lib/getloadavg.c: Likewise.
54580         * lib/getndelim2.c: Likewise.
54581         * lib/getndelim2.h: Likewise.
54582         * lib/getnline.c: Likewise.
54583         * lib/getnline.h: Likewise.
54584         * lib/getopt.c: Likewise.
54585         * lib/getopt.in.h: Likewise.
54586         * lib/getopt1.c: Likewise.
54587         * lib/getopt_int.h: Likewise.
54588         * lib/getpagesize.h: Likewise.
54589         * lib/getsubopt.c: Likewise.
54590         * lib/gettime.c: Likewise.
54591         * lib/getugroups.c: Likewise.
54592         * lib/getugroups.h: Likewise.
54593         * lib/getusershell.c: Likewise.
54594         * lib/gl_anyavltree_list1.h: Likewise.
54595         * lib/gl_anyavltree_list2.h: Likewise.
54596         * lib/gl_anyhash_list1.h: Likewise.
54597         * lib/gl_anyhash_list2.h: Likewise.
54598         * lib/gl_anylinked_list1.h: Likewise.
54599         * lib/gl_anylinked_list2.h: Likewise.
54600         * lib/gl_anyrbtree_list1.h: Likewise.
54601         * lib/gl_anyrbtree_list2.h: Likewise.
54602         * lib/gl_anytree_list1.h: Likewise.
54603         * lib/gl_anytree_list2.h: Likewise.
54604         * lib/gl_anytree_oset.h: Likewise.
54605         * lib/gl_anytreehash_list1.h: Likewise.
54606         * lib/gl_anytreehash_list2.h: Likewise.
54607         * lib/gl_array_list.c: Likewise.
54608         * lib/gl_array_list.h: Likewise.
54609         * lib/gl_array_oset.c: Likewise.
54610         * lib/gl_array_oset.h: Likewise.
54611         * lib/gl_avltree_list.c: Likewise.
54612         * lib/gl_avltree_list.h: Likewise.
54613         * lib/gl_avltree_oset.c: Likewise.
54614         * lib/gl_avltree_oset.h: Likewise.
54615         * lib/gl_avltreehash_list.c: Likewise.
54616         * lib/gl_avltreehash_list.h: Likewise.
54617         * lib/gl_carray_list.c: Likewise.
54618         * lib/gl_carray_list.h: Likewise.
54619         * lib/gl_linked_list.c: Likewise.
54620         * lib/gl_linked_list.h: Likewise.
54621         * lib/gl_linkedhash_list.c: Likewise.
54622         * lib/gl_linkedhash_list.h: Likewise.
54623         * lib/gl_list.c: Likewise.
54624         * lib/gl_list.h: Likewise.
54625         * lib/gl_oset.c: Likewise.
54626         * lib/gl_oset.h: Likewise.
54627         * lib/gl_rbtree_list.c: Likewise.
54628         * lib/gl_rbtree_list.h: Likewise.
54629         * lib/gl_rbtree_oset.c: Likewise.
54630         * lib/gl_rbtree_oset.h: Likewise.
54631         * lib/gl_rbtreehash_list.c: Likewise.
54632         * lib/gl_rbtreehash_list.h: Likewise.
54633         * lib/gl_sublist.c: Likewise.
54634         * lib/gl_sublist.h: Likewise.
54635         * lib/group-member.c: Likewise.
54636         * lib/group-member.h: Likewise.
54637         * lib/hard-locale.c: Likewise.
54638         * lib/hard-locale.h: Likewise.
54639         * lib/hash-pjw.c: Likewise.
54640         * lib/hash-pjw.h: Likewise.
54641         * lib/hash-triple.c: Likewise.
54642         * lib/hash.c: Likewise.
54643         * lib/hash.h: Likewise.
54644         * lib/human.c: Likewise.
54645         * lib/human.h: Likewise.
54646         * lib/i-ring.c: Likewise.
54647         * lib/i-ring.h: Likewise.
54648         * lib/idcache.c: Likewise.
54649         * lib/imaxabs.c: Likewise.
54650         * lib/imaxdiv.c: Likewise.
54651         * lib/inet_pton.c: Likewise.
54652         * lib/inet_pton.h: Likewise.
54653         * lib/intprops.h: Likewise.
54654         * lib/inttostr.c: Likewise.
54655         * lib/inttostr.h: Likewise.
54656         * lib/inttypes.in.h: Likewise.
54657         * lib/isapipe.c: Likewise.
54658         * lib/isdir.c: Likewise.
54659         * lib/isnan.c: Likewise.
54660         * lib/isnan.h: Likewise.
54661         * lib/isnanf.c: Likewise.
54662         * lib/isnanf.h: Likewise.
54663         * lib/isnanl-nolibm.h: Likewise.
54664         * lib/isnanl.c: Likewise.
54665         * lib/isnanl.h: Likewise.
54666         * lib/javacomp.c: Likewise.
54667         * lib/javacomp.h: Likewise.
54668         * lib/javaexec.c: Likewise.
54669         * lib/javaexec.h: Likewise.
54670         * lib/javaversion.c: Likewise.
54671         * lib/javaversion.h: Likewise.
54672         * lib/javaversion.java: Likewise.
54673         * lib/lbrkprop.h: Likewise.
54674         * lib/lchmod.h: Likewise.
54675         * lib/lchown.c: Likewise.
54676         * lib/ldexpl.c: Likewise.
54677         * lib/linebreak.c: Likewise.
54678         * lib/linebreak.h: Likewise.
54679         * lib/linebuffer.c: Likewise.
54680         * lib/linebuffer.h: Likewise.
54681         * lib/locale.in.h: Likewise.
54682         * lib/logl.c: Likewise.
54683         * lib/long-options.c: Likewise.
54684         * lib/long-options.h: Likewise.
54685         * lib/lstat.c: Likewise.
54686         * lib/lstat.h: Likewise.
54687         * lib/math.in.h: Likewise.
54688         * lib/mbchar.c: Likewise.
54689         * lib/mbchar.h: Likewise.
54690         * lib/mbfile.h: Likewise.
54691         * lib/mbiter.h: Likewise.
54692         * lib/mbscasecmp.c: Likewise.
54693         * lib/mbscasestr.c: Likewise.
54694         * lib/mbschr.c: Likewise.
54695         * lib/mbscspn.c: Likewise.
54696         * lib/mbslen.c: Likewise.
54697         * lib/mbsncasecmp.c: Likewise.
54698         * lib/mbsnlen.c: Likewise.
54699         * lib/mbspbrk.c: Likewise.
54700         * lib/mbspcasecmp.c: Likewise.
54701         * lib/mbsrchr.c: Likewise.
54702         * lib/mbssep.c: Likewise.
54703         * lib/mbsspn.c: Likewise.
54704         * lib/mbsstr.c: Likewise.
54705         * lib/mbstok_r.c: Likewise.
54706         * lib/mbswidth.c: Likewise.
54707         * lib/mbswidth.h: Likewise.
54708         * lib/mbuiter.h: Likewise.
54709         * lib/memcasecmp.c: Likewise.
54710         * lib/memcasecmp.h: Likewise.
54711         * lib/memchr.c: Likewise.
54712         * lib/memcmp.c: Likewise.
54713         * lib/memcoll.c: Likewise.
54714         * lib/memcoll.h: Likewise.
54715         * lib/memcpy.c: Likewise.
54716         * lib/memrchr.c: Likewise.
54717         * lib/mkancesdirs.c: Likewise.
54718         * lib/mkdir-p.c: Likewise.
54719         * lib/mkdir-p.h: Likewise.
54720         * lib/mkdir.c: Likewise.
54721         * lib/mkdirat.c: Likewise.
54722         * lib/mkdtemp.c: Likewise.
54723         * lib/mkstemp-safer.c: Likewise.
54724         * lib/mkstemp.c: Likewise.
54725         * lib/modechange.c: Likewise.
54726         * lib/modechange.h: Likewise.
54727         * lib/mountlist.c: Likewise.
54728         * lib/mountlist.h: Likewise.
54729         * lib/mpsort.c: Likewise.
54730         * lib/nanosleep.c: Likewise.
54731         * lib/obstack.c: Likewise.
54732         * lib/obstack.h: Likewise.
54733         * lib/open-safer.c: Likewise.
54734         * lib/open.c: Likewise.
54735         * lib/openat-die.c: Likewise.
54736         * lib/openat-priv.h: Likewise.
54737         * lib/openat-proc.c: Likewise.
54738         * lib/openat.c: Likewise.
54739         * lib/openat.h: Likewise.
54740         * lib/pagealign_alloc.c: Likewise.
54741         * lib/pagealign_alloc.h: Likewise.
54742         * lib/physmem.c: Likewise.
54743         * lib/physmem.h: Likewise.
54744         * lib/pipe-safer.c: Likewise.
54745         * lib/pipe.c: Likewise.
54746         * lib/pipe.h: Likewise.
54747         * lib/posixtm.c: Likewise.
54748         * lib/posixtm.h: Likewise.
54749         * lib/posixver.c: Likewise.
54750         * lib/printf-frexp.c: Likewise.
54751         * lib/printf-frexp.h: Likewise.
54752         * lib/printf-frexpl.c: Likewise.
54753         * lib/printf-frexpl.h: Likewise.
54754         * lib/printf.c: Likewise.
54755         * lib/progname.c: Likewise.
54756         * lib/progname.h: Likewise.
54757         * lib/progreloc.c: Likewise.
54758         * lib/putenv.c: Likewise.
54759         * lib/quote.c: Likewise.
54760         * lib/quote.h: Likewise.
54761         * lib/quotearg.c: Likewise.
54762         * lib/quotearg.h: Likewise.
54763         * lib/raise.c: Likewise.
54764         * lib/readline.c: Likewise.
54765         * lib/readline.h: Likewise.
54766         * lib/readlink.c: Likewise.
54767         * lib/readtokens.c: Likewise.
54768         * lib/readtokens.h: Likewise.
54769         * lib/readtokens0.c: Likewise.
54770         * lib/readtokens0.h: Likewise.
54771         * lib/readutmp.c: Likewise.
54772         * lib/readutmp.h: Likewise.
54773         * lib/realloc.c: Likewise.
54774         * lib/relocwrapper.c: Likewise.
54775         * lib/rename-dest-slash.c: Likewise.
54776         * lib/rename.c: Likewise.
54777         * lib/rmdir.c: Likewise.
54778         * lib/rpmatch.c: Likewise.
54779         * lib/safe-read.c: Likewise.
54780         * lib/safe-read.h: Likewise.
54781         * lib/safe-write.c: Likewise.
54782         * lib/safe-write.h: Likewise.
54783         * lib/same-inode.h: Likewise.
54784         * lib/same.c: Likewise.
54785         * lib/same.h: Likewise.
54786         * lib/save-cwd.c: Likewise.
54787         * lib/save-cwd.h: Likewise.
54788         * lib/savedir.c: Likewise.
54789         * lib/savedir.h: Likewise.
54790         * lib/savewd.c: Likewise.
54791         * lib/savewd.h: Likewise.
54792         * lib/search.in.h: Likewise.
54793         * lib/setenv.c: Likewise.
54794         * lib/setenv.h: Likewise.
54795         * lib/settime.c: Likewise.
54796         * lib/sh-quote.c: Likewise.
54797         * lib/sh-quote.h: Likewise.
54798         * lib/sig2str.c: Likewise.
54799         * lib/sig2str.h: Likewise.
54800         * lib/signal.in.h: Likewise.
54801         * lib/signbitd.c: Likewise.
54802         * lib/signbitf.c: Likewise.
54803         * lib/signbitl.c: Likewise.
54804         * lib/sigprocmask.c: Likewise.
54805         * lib/sincosl.c: Likewise.
54806         * lib/sleep.c: Likewise.
54807         * lib/sprintf.c: Likewise.
54808         * lib/sqrtl.c: Likewise.
54809         * lib/stat-time.h: Likewise.
54810         * lib/stdio--.h: Likewise.
54811         * lib/stdio-safer.h: Likewise.
54812         * lib/stdlib--.h: Likewise.
54813         * lib/stdlib-safer.h: Likewise.
54814         * lib/stdlib.in.h: Likewise.
54815         * lib/stpcpy.c: Likewise.
54816         * lib/stpncpy.c: Likewise.
54817         * lib/strchrnul.c: Likewise.
54818         * lib/strcspn.c: Likewise.
54819         * lib/strerror.c: Likewise.
54820         * lib/strftime.c: Likewise.
54821         * lib/strftime.h: Likewise.
54822         * lib/striconveh.c: Likewise.
54823         * lib/striconveh.h: Likewise.
54824         * lib/striconveha.c: Likewise.
54825         * lib/striconveha.h: Likewise.
54826         * lib/stripslash.c: Likewise.
54827         * lib/strnlen1.c: Likewise.
54828         * lib/strnlen1.h: Likewise.
54829         * lib/strtod.c: Likewise.
54830         * lib/strtoimax.c: Likewise.
54831         * lib/strtok_r.c: Likewise.
54832         * lib/strtol.c: Likewise.
54833         * lib/strtoll.c: Likewise.
54834         * lib/strtoul.c: Likewise.
54835         * lib/strtoull.c: Likewise.
54836         * lib/sysexits.in.h: Likewise.
54837         * lib/tempname.c: Likewise.
54838         * lib/tempname.h: Likewise.
54839         * lib/timespec.h: Likewise.
54840         * lib/tls.c: Likewise.
54841         * lib/tls.h: Likewise.
54842         * lib/tmpdir.c: Likewise.
54843         * lib/tmpdir.h: Likewise.
54844         * lib/tmpfile-safer.c: Likewise.
54845         * lib/tmpfile.c: Likewise.
54846         * lib/trigl.c: Likewise.
54847         * lib/trigl.h: Likewise.
54848         * lib/trim.c: Likewise.
54849         * lib/trim.h: Likewise.
54850         * lib/trunc.c: Likewise.
54851         * lib/truncf.c: Likewise.
54852         * lib/truncl.c: Likewise.
54853         * lib/tsearch.c: Likewise.
54854         * lib/unicodeio.c: Likewise.
54855         * lib/unicodeio.h: Likewise.
54856         * lib/unistd--.h: Likewise.
54857         * lib/unistd-safer.h: Likewise.
54858         * lib/unistdio/ulc-fprintf.c: Likewise.
54859         * lib/unistdio/ulc-vfprintf.c: Likewise.
54860         * lib/unlinkdir.c: Likewise.
54861         * lib/unlinkdir.h: Likewise.
54862         * lib/unlocked-io.h: Likewise.
54863         * lib/unsetenv.c: Likewise.
54864         * lib/userspec.c: Likewise.
54865         * lib/utime.c: Likewise.
54866         * lib/utimecmp.c: Likewise.
54867         * lib/utimecmp.h: Likewise.
54868         * lib/utimens.c: Likewise.
54869         * lib/verify.h: Likewise.
54870         * lib/verror.c: Likewise.
54871         * lib/verror.h: Likewise.
54872         * lib/version-etc-fsf.c: Likewise.
54873         * lib/version-etc.c: Likewise.
54874         * lib/version-etc.h: Likewise.
54875         * lib/vfprintf.c: Likewise.
54876         * lib/vprintf.c: Likewise.
54877         * lib/vsprintf.c: Likewise.
54878         * lib/w32spawn.h: Likewise.
54879         * lib/wait-process.c: Likewise.
54880         * lib/wait-process.h: Likewise.
54881         * lib/wcwidth.c: Likewise.
54882         * lib/write-any-file.c: Likewise.
54883         * lib/xalloc-die.c: Likewise.
54884         * lib/xalloc.h: Likewise.
54885         * lib/xasprintf.c: Likewise.
54886         * lib/xgetcwd.c: Likewise.
54887         * lib/xgetcwd.h: Likewise.
54888         * lib/xgetdomainname.c: Likewise.
54889         * lib/xgetdomainname.h: Likewise.
54890         * lib/xgethostname.c: Likewise.
54891         * lib/xmalloc.c: Likewise.
54892         * lib/xmalloca.c: Likewise.
54893         * lib/xmalloca.h: Likewise.
54894         * lib/xmemcoll.c: Likewise.
54895         * lib/xnanosleep.c: Likewise.
54896         * lib/xreadlink.c: Likewise.
54897         * lib/xreadlink.h: Likewise.
54898         * lib/xsetenv.c: Likewise.
54899         * lib/xsetenv.h: Likewise.
54900         * lib/xstriconv.c: Likewise.
54901         * lib/xstriconv.h: Likewise.
54902         * lib/xstrndup.c: Likewise.
54903         * lib/xstrndup.h: Likewise.
54904         * lib/xstrtod.c: Likewise.
54905         * lib/xstrtod.h: Likewise.
54906         * lib/xstrtol-error.c: Likewise.
54907         * lib/xstrtol.c: Likewise.
54908         * lib/xstrtol.h: Likewise.
54909         * lib/xtime.h: Likewise.
54910         * lib/xvasprintf.c: Likewise.
54911         * lib/xvasprintf.h: Likewise.
54912         * lib/yesno.c: Likewise.
54913         * lib/yesno.h: Likewise.
54914         * posix-modules: Likewise.
54915         * tests/test-alloca-opt.c: Likewise.
54916         * tests/test-arcfour.c: Likewise.
54917         * tests/test-arctwo.c: Likewise.
54918         * tests/test-argmatch.c: Likewise.
54919         * tests/test-argp-2.sh: Likewise.
54920         * tests/test-argp.c: Likewise.
54921         * tests/test-arpa_inet.c: Likewise.
54922         * tests/test-array_list.c: Likewise.
54923         * tests/test-array_oset.c: Likewise.
54924         * tests/test-atexit.c: Likewise.
54925         * tests/test-avltree_list.c: Likewise.
54926         * tests/test-avltree_oset.c: Likewise.
54927         * tests/test-avltreehash_list.c: Likewise.
54928         * tests/test-base64.c: Likewise.
54929         * tests/test-binary-io.c: Likewise.
54930         * tests/test-byteswap.c: Likewise.
54931         * tests/test-c-ctype.c: Likewise.
54932         * tests/test-c-strcasecmp.c: Likewise.
54933         * tests/test-c-strcasestr.c: Likewise.
54934         * tests/test-c-strncasecmp.c: Likewise.
54935         * tests/test-c-strstr.c: Likewise.
54936         * tests/test-canonicalize-lgpl.c: Likewise.
54937         * tests/test-canonicalize.c: Likewise.
54938         * tests/test-carray_list.c: Likewise.
54939         * tests/test-ceilf.c: Likewise.
54940         * tests/test-ceill.c: Likewise.
54941         * tests/test-count-one-bits.c: Likewise.
54942         * tests/test-crc.c: Likewise.
54943         * tests/test-dirname.c: Likewise.
54944         * tests/test-fbufmode.c: Likewise.
54945         * tests/test-fcntl.c: Likewise.
54946         * tests/test-fflush.c: Likewise.
54947         * tests/test-floorf.c: Likewise.
54948         * tests/test-floorl.c: Likewise.
54949         * tests/test-fopen.c: Likewise.
54950         * tests/test-fprintf-posix.c: Likewise.
54951         * tests/test-fprintf-posix.h: Likewise.
54952         * tests/test-fpurge.c: Likewise.
54953         * tests/test-freadable.c: Likewise.
54954         * tests/test-freadahead.c: Likewise.
54955         * tests/test-freading.c: Likewise.
54956         * tests/test-freopen.c: Likewise.
54957         * tests/test-frexp.c: Likewise.
54958         * tests/test-frexpl.c: Likewise.
54959         * tests/test-fseek.c: Likewise.
54960         * tests/test-fseeko.c: Likewise.
54961         * tests/test-fseterr.c: Likewise.
54962         * tests/test-fstrcmp.c: Likewise.
54963         * tests/test-ftell.c: Likewise.
54964         * tests/test-ftello.c: Likewise.
54965         * tests/test-fwritable.c: Likewise.
54966         * tests/test-fwriting.c: Likewise.
54967         * tests/test-getaddrinfo.c: Likewise.
54968         * tests/test-getpass.c: Likewise.
54969         * tests/test-gettimeofday.c: Likewise.
54970         * tests/test-hmac-md5.c: Likewise.
54971         * tests/test-hmac-sha1.c: Likewise.
54972         * tests/test-iconv.c: Likewise.
54973         * tests/test-iconvme.c: Likewise.
54974         * tests/test-inttypes.c: Likewise.
54975         * tests/test-isnan.c: Likewise.
54976         * tests/test-isnanf.c: Likewise.
54977         * tests/test-isnanl-nolibm.c: Likewise.
54978         * tests/test-isnanl.c: Likewise.
54979         * tests/test-isnanl.h: Likewise.
54980         * tests/test-ldexpl.c: Likewise.
54981         * tests/test-linked_list.c: Likewise.
54982         * tests/test-linkedhash_list.c: Likewise.
54983         * tests/test-locale.c: Likewise.
54984         * tests/test-localename.c: Likewise.
54985         * tests/test-lock.c: Likewise.
54986         * tests/test-lseek.c: Likewise.
54987         * tests/test-malloca.c: Likewise.
54988         * tests/test-math.c: Likewise.
54989         * tests/test-mbscasecmp.c: Likewise.
54990         * tests/test-mbscasestr1.c: Likewise.
54991         * tests/test-mbscasestr2.c: Likewise.
54992         * tests/test-mbscasestr3.c: Likewise.
54993         * tests/test-mbscasestr4.c: Likewise.
54994         * tests/test-mbschr.c: Likewise.
54995         * tests/test-mbscspn.c: Likewise.
54996         * tests/test-mbsncasecmp.c: Likewise.
54997         * tests/test-mbspbrk.c: Likewise.
54998         * tests/test-mbspcasecmp.c: Likewise.
54999         * tests/test-mbsrchr.c: Likewise.
55000         * tests/test-mbsspn.c: Likewise.
55001         * tests/test-mbsstr1.c: Likewise.
55002         * tests/test-mbsstr2.c: Likewise.
55003         * tests/test-mbsstr3.c: Likewise.
55004         * tests/test-md5.c: Likewise.
55005         * tests/test-memmem.c: Likewise.
55006         * tests/test-netinet_in.c: Likewise.
55007         * tests/test-open.c: Likewise.
55008         * tests/test-printf-frexp.c: Likewise.
55009         * tests/test-printf-frexpl.c: Likewise.
55010         * tests/test-printf-posix.c: Likewise.
55011         * tests/test-printf-posix.h: Likewise.
55012         * tests/test-rbtree_list.c: Likewise.
55013         * tests/test-rbtree_oset.c: Likewise.
55014         * tests/test-rbtreehash_list.c: Likewise.
55015         * tests/test-read-file.c: Likewise.
55016         * tests/test-rijndael.c: Likewise.
55017         * tests/test-search.c: Likewise.
55018         * tests/test-signbit.c: Likewise.
55019         * tests/test-sleep.c: Likewise.
55020         * tests/test-snprintf-posix.c: Likewise.
55021         * tests/test-snprintf-posix.h: Likewise.
55022         * tests/test-snprintf.c: Likewise.
55023         * tests/test-sprintf-posix.c: Likewise.
55024         * tests/test-sprintf-posix.h: Likewise.
55025         * tests/test-stat-time.c: Likewise.
55026         * tests/test-stdbool.c: Likewise.
55027         * tests/test-stdint.c: Likewise.
55028         * tests/test-stdio.c: Likewise.
55029         * tests/test-stdlib.c: Likewise.
55030         * tests/test-stpncpy.c: Likewise.
55031         * tests/test-strcasestr.c: Likewise.
55032         * tests/test-striconv.c: Likewise.
55033         * tests/test-striconveh.c: Likewise.
55034         * tests/test-striconveha.c: Likewise.
55035         * tests/test-string.c: Likewise.
55036         * tests/test-sys_select.c: Likewise.
55037         * tests/test-sys_socket.c: Likewise.
55038         * tests/test-sys_stat.c: Likewise.
55039         * tests/test-sys_time.c: Likewise.
55040         * tests/test-sysexits.c: Likewise.
55041         * tests/test-time.c: Likewise.
55042         * tests/test-tls.c: Likewise.
55043         * tests/test-trunc.c: Likewise.
55044         * tests/test-truncf.c: Likewise.
55045         * tests/test-truncl.c: Likewise.
55046         * tests/test-unistd.c: Likewise.
55047         * tests/test-vasnprintf-posix.c: Likewise.
55048         * tests/test-vasnprintf-posix2.c: Likewise.
55049         * tests/test-vasnprintf.c: Likewise.
55050         * tests/test-vasprintf-posix.c: Likewise.
55051         * tests/test-vasprintf.c: Likewise.
55052         * tests/test-verify.c: Likewise.
55053         * tests/test-vfprintf-posix.c: Likewise.
55054         * tests/test-vprintf-posix.c: Likewise.
55055         * tests/test-vsnprintf-posix.c: Likewise.
55056         * tests/test-vsnprintf.c: Likewise.
55057         * tests/test-vsprintf-posix.c: Likewise.
55058         * tests/test-wchar.c: Likewise.
55059         * tests/test-wctype.c: Likewise.
55060         * tests/test-wcwidth.c: Likewise.
55061         * tests/test-xstrtol.c: Likewise.
55062         * tests/test-xvasprintf.c: Likewise.
55063         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55064         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55065         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55066         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55067         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55068         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55069         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55070         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55071         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55072         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55073         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55074         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55075         * tests/uniname/test-uninames.c: Likewise.
55076         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55077         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55078         * tests/unistdio/test-u16-printf1.h: Likewise.
55079         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55080         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55081         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55082         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55083         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55084         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55085         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55086         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55087         * tests/unistdio/test-u32-printf1.h: Likewise.
55088         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55089         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55090         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55091         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55092         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55093         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55094         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55095         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55096         * tests/unistdio/test-u8-printf1.h: Likewise.
55097         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55098         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55099         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55100         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55101         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55102         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55103         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55104         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55105         * tests/unistdio/test-ulc-printf1.h: Likewise.
55106         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55107         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55108         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55109         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55110         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55111         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55112         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55113         * tests/uniwidth/test-u16-width.c: Likewise.
55114         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55115         * tests/uniwidth/test-u32-width.c: Likewise.
55116         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55117         * tests/uniwidth/test-u8-width.c: Likewise.
55118         * tests/uniwidth/test-uc_width.c: Likewise.
55119         * config/srclist-update: Likewise.
55120         (fixlicense): Update to GPLv3+.
55121
55122         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55123         * tests/test-tsearch.c: Change copyright notice.
55124
55125         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55126         * lib/c-strcaseeq.h: Change copyright notice.
55127         * lib/streq.h: Likewise.
55128         * lib/uniconv.h: Likewise.
55129         * lib/uniconv/u-conv-from-enc.h: Likewise.
55130         * lib/uniconv/u-conv-to-enc.h: Likewise.
55131         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55132         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55133         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55134         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55135         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55136         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55137         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55138         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55139         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55140         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55141         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55142         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55143         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55144         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55145         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55146         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55147         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55148         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55149         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55150         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55151         * lib/uniname.h: Likewise.
55152         * lib/uniname/uniname.c: Likewise.
55153         * lib/unistdio.h: Likewise.
55154         * lib/unistdio/u-asnprintf.h: Likewise.
55155         * lib/unistdio/u-asprintf.h: Likewise.
55156         * lib/unistdio/u-printf-args.c: Likewise.
55157         * lib/unistdio/u-printf-args.h: Likewise.
55158         * lib/unistdio/u-printf-parse.h: Likewise.
55159         * lib/unistdio/u-snprintf.h: Likewise.
55160         * lib/unistdio/u-sprintf.h: Likewise.
55161         * lib/unistdio/u-vasprintf.h: Likewise.
55162         * lib/unistdio/u-vsnprintf.h: Likewise.
55163         * lib/unistdio/u-vsprintf.h: Likewise.
55164         * lib/unistdio/u16-asnprintf.c: Likewise.
55165         * lib/unistdio/u16-asprintf.c: Likewise.
55166         * lib/unistdio/u16-printf-parse.c: Likewise.
55167         * lib/unistdio/u16-snprintf.c: Likewise.
55168         * lib/unistdio/u16-sprintf.c: Likewise.
55169         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55170         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55171         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55172         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55173         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55174         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55175         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55176         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55177         * lib/unistdio/u16-vasnprintf.c: Likewise.
55178         * lib/unistdio/u16-vasprintf.c: Likewise.
55179         * lib/unistdio/u16-vsnprintf.c: Likewise.
55180         * lib/unistdio/u16-vsprintf.c: Likewise.
55181         * lib/unistdio/u32-asnprintf.c: Likewise.
55182         * lib/unistdio/u32-asprintf.c: Likewise.
55183         * lib/unistdio/u32-printf-parse.c: Likewise.
55184         * lib/unistdio/u32-snprintf.c: Likewise.
55185         * lib/unistdio/u32-sprintf.c: Likewise.
55186         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55187         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55188         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55189         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55190         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55191         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55192         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55193         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55194         * lib/unistdio/u32-vasnprintf.c: Likewise.
55195         * lib/unistdio/u32-vasprintf.c: Likewise.
55196         * lib/unistdio/u32-vsnprintf.c: Likewise.
55197         * lib/unistdio/u32-vsprintf.c: Likewise.
55198         * lib/unistdio/u8-asnprintf.c: Likewise.
55199         * lib/unistdio/u8-asprintf.c: Likewise.
55200         * lib/unistdio/u8-printf-parse.c: Likewise.
55201         * lib/unistdio/u8-snprintf.c: Likewise.
55202         * lib/unistdio/u8-sprintf.c: Likewise.
55203         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55204         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55205         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55206         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55207         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55208         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55209         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55210         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55211         * lib/unistdio/u8-vasnprintf.c: Likewise.
55212         * lib/unistdio/u8-vasprintf.c: Likewise.
55213         * lib/unistdio/u8-vsnprintf.c: Likewise.
55214         * lib/unistdio/u8-vsprintf.c: Likewise.
55215         * lib/unistdio/ulc-asnprintf.c: Likewise.
55216         * lib/unistdio/ulc-asprintf.c: Likewise.
55217         * lib/unistdio/ulc-printf-parse.c: Likewise.
55218         * lib/unistdio/ulc-snprintf.c: Likewise.
55219         * lib/unistdio/ulc-sprintf.c: Likewise.
55220         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55221         * lib/unistdio/ulc-vasprintf.c: Likewise.
55222         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55223         * lib/unistdio/ulc-vsprintf.c: Likewise.
55224         * lib/unistr.h: Likewise.
55225         * lib/unistr/u-cpy-alloc.h: Likewise.
55226         * lib/unistr/u-cpy.h: Likewise.
55227         * lib/unistr/u-endswith.h: Likewise.
55228         * lib/unistr/u-move.h: Likewise.
55229         * lib/unistr/u-set.h: Likewise.
55230         * lib/unistr/u-startswith.h: Likewise.
55231         * lib/unistr/u-stpcpy.h: Likewise.
55232         * lib/unistr/u-stpncpy.h: Likewise.
55233         * lib/unistr/u-strcat.h: Likewise.
55234         * lib/unistr/u-strcpy.h: Likewise.
55235         * lib/unistr/u-strcspn.h: Likewise.
55236         * lib/unistr/u-strdup.h: Likewise.
55237         * lib/unistr/u-strlen.h: Likewise.
55238         * lib/unistr/u-strncat.h: Likewise.
55239         * lib/unistr/u-strncpy.h: Likewise.
55240         * lib/unistr/u-strnlen.h: Likewise.
55241         * lib/unistr/u-strpbrk.h: Likewise.
55242         * lib/unistr/u-strspn.h: Likewise.
55243         * lib/unistr/u-strstr.h: Likewise.
55244         * lib/unistr/u-strtok.h: Likewise.
55245         * lib/unistr/u16-check.c: Likewise.
55246         * lib/unistr/u16-chr.c: Likewise.
55247         * lib/unistr/u16-cmp.c: Likewise.
55248         * lib/unistr/u16-cpy-alloc.c: Likewise.
55249         * lib/unistr/u16-cpy.c: Likewise.
55250         * lib/unistr/u16-endswith.c: Likewise.
55251         * lib/unistr/u16-mblen.c: Likewise.
55252         * lib/unistr/u16-mbsnlen.c: Likewise.
55253         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55254         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55255         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55256         * lib/unistr/u16-mbtouc.c: Likewise.
55257         * lib/unistr/u16-mbtoucr.c: Likewise.
55258         * lib/unistr/u16-move.c: Likewise.
55259         * lib/unistr/u16-next.c: Likewise.
55260         * lib/unistr/u16-prev.c: Likewise.
55261         * lib/unistr/u16-set.c: Likewise.
55262         * lib/unistr/u16-startswith.c: Likewise.
55263         * lib/unistr/u16-stpcpy.c: Likewise.
55264         * lib/unistr/u16-stpncpy.c: Likewise.
55265         * lib/unistr/u16-strcat.c: Likewise.
55266         * lib/unistr/u16-strchr.c: Likewise.
55267         * lib/unistr/u16-strcmp.c: Likewise.
55268         * lib/unistr/u16-strcpy.c: Likewise.
55269         * lib/unistr/u16-strcspn.c: Likewise.
55270         * lib/unistr/u16-strdup.c: Likewise.
55271         * lib/unistr/u16-strlen.c: Likewise.
55272         * lib/unistr/u16-strmblen.c: Likewise.
55273         * lib/unistr/u16-strmbtouc.c: Likewise.
55274         * lib/unistr/u16-strncat.c: Likewise.
55275         * lib/unistr/u16-strncmp.c: Likewise.
55276         * lib/unistr/u16-strncpy.c: Likewise.
55277         * lib/unistr/u16-strnlen.c: Likewise.
55278         * lib/unistr/u16-strpbrk.c: Likewise.
55279         * lib/unistr/u16-strrchr.c: Likewise.
55280         * lib/unistr/u16-strspn.c: Likewise.
55281         * lib/unistr/u16-strstr.c: Likewise.
55282         * lib/unistr/u16-strtok.c: Likewise.
55283         * lib/unistr/u16-to-u32.c: Likewise.
55284         * lib/unistr/u16-to-u8.c: Likewise.
55285         * lib/unistr/u16-uctomb-aux.c: Likewise.
55286         * lib/unistr/u16-uctomb.c: Likewise.
55287         * lib/unistr/u32-check.c: Likewise.
55288         * lib/unistr/u32-chr.c: Likewise.
55289         * lib/unistr/u32-cmp.c: Likewise.
55290         * lib/unistr/u32-cpy-alloc.c: Likewise.
55291         * lib/unistr/u32-cpy.c: Likewise.
55292         * lib/unistr/u32-endswith.c: Likewise.
55293         * lib/unistr/u32-mblen.c: Likewise.
55294         * lib/unistr/u32-mbsnlen.c: Likewise.
55295         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55296         * lib/unistr/u32-mbtouc.c: Likewise.
55297         * lib/unistr/u32-mbtoucr.c: Likewise.
55298         * lib/unistr/u32-move.c: Likewise.
55299         * lib/unistr/u32-next.c: Likewise.
55300         * lib/unistr/u32-prev.c: Likewise.
55301         * lib/unistr/u32-set.c: Likewise.
55302         * lib/unistr/u32-startswith.c: Likewise.
55303         * lib/unistr/u32-stpcpy.c: Likewise.
55304         * lib/unistr/u32-stpncpy.c: Likewise.
55305         * lib/unistr/u32-strcat.c: Likewise.
55306         * lib/unistr/u32-strchr.c: Likewise.
55307         * lib/unistr/u32-strcmp.c: Likewise.
55308         * lib/unistr/u32-strcpy.c: Likewise.
55309         * lib/unistr/u32-strcspn.c: Likewise.
55310         * lib/unistr/u32-strdup.c: Likewise.
55311         * lib/unistr/u32-strlen.c: Likewise.
55312         * lib/unistr/u32-strmblen.c: Likewise.
55313         * lib/unistr/u32-strmbtouc.c: Likewise.
55314         * lib/unistr/u32-strncat.c: Likewise.
55315         * lib/unistr/u32-strncmp.c: Likewise.
55316         * lib/unistr/u32-strncpy.c: Likewise.
55317         * lib/unistr/u32-strnlen.c: Likewise.
55318         * lib/unistr/u32-strpbrk.c: Likewise.
55319         * lib/unistr/u32-strrchr.c: Likewise.
55320         * lib/unistr/u32-strspn.c: Likewise.
55321         * lib/unistr/u32-strstr.c: Likewise.
55322         * lib/unistr/u32-strtok.c: Likewise.
55323         * lib/unistr/u32-to-u16.c: Likewise.
55324         * lib/unistr/u32-to-u8.c: Likewise.
55325         * lib/unistr/u32-uctomb.c: Likewise.
55326         * lib/unistr/u8-check.c: Likewise.
55327         * lib/unistr/u8-chr.c: Likewise.
55328         * lib/unistr/u8-cmp.c: Likewise.
55329         * lib/unistr/u8-cpy-alloc.c: Likewise.
55330         * lib/unistr/u8-cpy.c: Likewise.
55331         * lib/unistr/u8-endswith.c: Likewise.
55332         * lib/unistr/u8-mblen.c: Likewise.
55333         * lib/unistr/u8-mbsnlen.c: Likewise.
55334         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55335         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55336         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55337         * lib/unistr/u8-mbtouc.c: Likewise.
55338         * lib/unistr/u8-mbtoucr.c: Likewise.
55339         * lib/unistr/u8-move.c: Likewise.
55340         * lib/unistr/u8-next.c: Likewise.
55341         * lib/unistr/u8-prev.c: Likewise.
55342         * lib/unistr/u8-set.c: Likewise.
55343         * lib/unistr/u8-startswith.c: Likewise.
55344         * lib/unistr/u8-stpcpy.c: Likewise.
55345         * lib/unistr/u8-stpncpy.c: Likewise.
55346         * lib/unistr/u8-strcat.c: Likewise.
55347         * lib/unistr/u8-strchr.c: Likewise.
55348         * lib/unistr/u8-strcmp.c: Likewise.
55349         * lib/unistr/u8-strcpy.c: Likewise.
55350         * lib/unistr/u8-strcspn.c: Likewise.
55351         * lib/unistr/u8-strdup.c: Likewise.
55352         * lib/unistr/u8-strlen.c: Likewise.
55353         * lib/unistr/u8-strmblen.c: Likewise.
55354         * lib/unistr/u8-strmbtouc.c: Likewise.
55355         * lib/unistr/u8-strncat.c: Likewise.
55356         * lib/unistr/u8-strncmp.c: Likewise.
55357         * lib/unistr/u8-strncpy.c: Likewise.
55358         * lib/unistr/u8-strnlen.c: Likewise.
55359         * lib/unistr/u8-strpbrk.c: Likewise.
55360         * lib/unistr/u8-strrchr.c: Likewise.
55361         * lib/unistr/u8-strspn.c: Likewise.
55362         * lib/unistr/u8-strstr.c: Likewise.
55363         * lib/unistr/u8-strtok.c: Likewise.
55364         * lib/unistr/u8-to-u16.c: Likewise.
55365         * lib/unistr/u8-to-u32.c: Likewise.
55366         * lib/unistr/u8-uctomb-aux.c: Likewise.
55367         * lib/unistr/u8-uctomb.c: Likewise.
55368         * lib/unitypes.h: Likewise.
55369         * lib/uniwidth.h: Likewise.
55370         * lib/uniwidth/cjk.h: Likewise.
55371         * lib/uniwidth/u16-strwidth.c: Likewise.
55372         * lib/uniwidth/u16-width.c: Likewise.
55373         * lib/uniwidth/u32-strwidth.c: Likewise.
55374         * lib/uniwidth/u32-width.c: Likewise.
55375         * lib/uniwidth/u8-strwidth.c: Likewise.
55376         * lib/uniwidth/u8-width.c: Likewise.
55377         * lib/uniwidth/width.c: Likewise.
55378
55379 2007-10-07  Bruno Haible  <bruno@clisp.org>
55380
55381         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55382         The file is still under LGPL (see modules/inttypes).
55383
55384 2007-10-06  Bruno Haible  <bruno@clisp.org>
55385
55386         * modules/trunc (Dependencies): Add 'extensions'.
55387         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55388         Reported by Ben Pfaff <blp@gnu.org>.
55389
55390 2007-10-06  Bruno Haible  <bruno@clisp.org>
55391
55392         * modules/freopen-tests: New file.
55393         * tests/test-freopen.c: New file.
55394
55395         * modules/fopen-tests: New file.
55396         * tests/test-fopen.c: New file.
55397
55398         * modules/fopen: New file.
55399         * lib/fopen.c: New file.
55400         * m4/fopen.m4: New file.
55401         * modules/freopen: New file.
55402         * lib/freopen.c: New file.
55403         * m4/freopen.m4: New file.
55404         * lib/stdio.in.h (fopen, freopen): New declarations.
55405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55406         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55407         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55408         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55409         * doc/functions/fopen.texi: Mention the 'fopen' module.
55410         * doc/functions/freopen.texi: Mention the 'freopen' module.
55411
55412 2007-10-06  Bruno Haible  <bruno@clisp.org>
55413
55414         * modules/open-tests: New file.
55415         * tests/test-open.c: New file.
55416
55417         * modules/open: New file.
55418         * lib/open.c: New file.
55419         * m4/open.m4: New file.
55420         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55421         lib/open.c does.
55422         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55423         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55424         macros.
55425         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55426         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55427         REPLACE_OPEN.
55428         * doc/functions/open.texi: Mention the 'open' module.
55429
55430 2007-10-04  Bruno Haible  <bruno@clisp.org>
55431
55432         * modules/ceill-tests: New file.
55433         * tests/test-ceill.c: New file.
55434
55435         * modules/ceill: New file.
55436         * lib/ceill.c: Replace entire file.
55437         * m4/ceill.m4: New file.
55438         * lib/math.in.h (ceill): Replace declaration.
55439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55440         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55441         * doc/functions/ceill.texi: Mention the 'ceill' module.
55442         * modules/mathl (Files): Remove lib/ceill.c.
55443         (Depends-on): Add ceill.
55444
55445 2007-10-04  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/ceilf-tests: New file.
55448         * tests/test-ceilf.c: New file.
55449
55450         * modules/ceilf: New file.
55451         * lib/ceil.c: New file.
55452         * lib/ceilf.c: New file.
55453         * m4/ceilf.m4: New file.
55454         * lib/math.in.h (ceilf): New declaration.
55455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55456         HAVE_DECL_CEILF.
55457         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55458         HAVE_DECL_CEILF.
55459         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55460
55461 2007-10-04  Bruno Haible  <bruno@clisp.org>
55462
55463         * modules/floorl-tests: New file.
55464         * tests/test-floorl.c: New file.
55465
55466         * modules/floorl: New file.
55467         * lib/floorl.c: Replace entire file.
55468         * m4/floorl.m4: New file.
55469         * lib/math.in.h (floorl): Replace declaration.
55470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55471         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55472         * doc/functions/floorl.texi: Mention the 'floorl' module.
55473         * modules/mathl (Files): Remove lib/floorl.c.
55474         (Depends-on): Add floorl.
55475
55476 2007-10-04  Bruno Haible  <bruno@clisp.org>
55477
55478         * modules/floorf-tests: New file.
55479         * tests/test-floorf.c: New file.
55480
55481         * modules/floorf: New file.
55482         * lib/floor.c: New file.
55483         * lib/floorf.c: New file.
55484         * m4/floorf.m4: New file.
55485         * lib/math.in.h (floorf): New declaration.
55486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55487         HAVE_DECL_FLOORF.
55488         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55489         HAVE_DECL_FLOORF.
55490         * doc/functions/floorf.texi: Mention the 'floorf' module.
55491
55492 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55493             Bruno Haible  <bruno@clisp.org>
55494
55495         Advertise for the Git server instead of the CVS server.
55496         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55497         repository instead of the CVS one.
55498         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55499         about all VCS systems generically.
55500         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55501
55502 2007-10-04  Bruno Haible  <bruno@clisp.org>
55503
55504         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55505         means.
55506         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55507
55508 2007-10-04  Bruno Haible  <bruno@clisp.org>
55509
55510         * modules/truncl-tests: New file.
55511         * tests/test-truncl.c: New file.
55512
55513         * modules/truncl: New file.
55514         * lib/truncl.c: New file.
55515         * m4/truncl.m4: New file.
55516         * lib/math.in.h (truncl): New declaration.
55517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55518         HAVE_DECL_TRUNCL.
55519         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55520         HAVE_DECL_TRUNCL.
55521         * doc/functions/truncl.texi: Mention the 'truncl' module.
55522
55523 2007-10-04  Bruno Haible  <bruno@clisp.org>
55524
55525         * modules/truncf-tests: New file.
55526         * tests/test-truncf.c: New file.
55527
55528         * modules/truncf: New file.
55529         * lib/trunc.c: Make paramerizable through USE_* macros.
55530         * lib/truncf.c: New file.
55531         * m4/truncf.m4: New file.
55532         * lib/math.in.h (truncf): New declaration.
55533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55534         HAVE_DECL_TRUNCF.
55535         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55536         HAVE_DECL_TRUNCF.
55537         * doc/functions/truncf.texi: Mention the 'truncf' module.
55538
55539 2007-10-03  Bruno Haible  <bruno@clisp.org>
55540
55541         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55542         augmentation also for tests modules.
55543         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55544         * modules/atexit-tests (Makefile.am): Likewise.
55545         * modules/binary-io-tests (Makefile.am): Likewise.
55546         * modules/c-strcase-tests (Makefile.am): Likewise.
55547         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55548         * modules/canonicalize-tests (Makefile.am): Likewise.
55549         * modules/closein-tests (Makefile.am): Likewise.
55550         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55551         * modules/freadahead-tests (Makefile.am): Likewise.
55552         * modules/fseek-tests (Makefile.am): Likewise.
55553         * modules/fseeko-tests (Makefile.am): Likewise.
55554         * modules/ftell-tests (Makefile.am): Likewise.
55555         * modules/ftello-tests (Makefile.am): Likewise.
55556         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55557         * modules/isnanl-tests (Makefile.am): Likewise.
55558         * modules/lseek-tests (Makefile.am): Likewise.
55559         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55560         * modules/mbscasestr-tests (Makefile.am): Likewise.
55561         * modules/mbschr-tests (Makefile.am): Likewise.
55562         * modules/mbscspn-tests (Makefile.am): Likewise.
55563         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55564         * modules/mbspbrk-tests (Makefile.am): Likewise.
55565         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55566         * modules/mbsrchr-tests (Makefile.am): Likewise.
55567         * modules/mbsspn-tests (Makefile.am): Likewise.
55568         * modules/mbsstr-tests (Makefile.am): Likewise.
55569         * modules/printf-posix-tests (Makefile.am): Likewise.
55570         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55571         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55572         * modules/tsearch-tests (Makefile.am): Likewise.
55573         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55574         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55575         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55576         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55577         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55578         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55579         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55580         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55581         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55582         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55583         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55584         * modules/xstrtol-tests (Makefile.am): Likewise.
55585         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55586         * modules/yesno-tests (Makefile.am): Likewise.
55587
55588 2007-10-03  Bruno Haible  <bruno@clisp.org>
55589
55590         * modules/trunc-tests: New file.
55591         * tests/test-trunc.c: New file.
55592
55593         * modules/trunc: New file.
55594         * lib/trunc.c: New file.
55595         * m4/trunc.m4: New file.
55596         * lib/math.in.h (trunc): New declaration.
55597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55598         HAVE_DECL_TRUNC.
55599         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55600         HAVE_DECL_TRUNC.
55601         * doc/functions/trunc.texi: Mention the 'trunc' module.
55602
55603 2007-10-03  Bruno Haible  <bruno@clisp.org>
55604
55605         * tests/test-fpending.c: New file, mostly copied
55606         from coreutils/lib/t-fpending.c.
55607         * modules/fpending-tests: New file.
55608
55609 2007-10-03  Bruno Haible  <bruno@clisp.org>
55610
55611         Port the stdio extensions to QNX (untested).
55612         * lib/fseterr.c (fseterr): Add support for QNX.
55613         * lib/fbufmode.c (fbufmode): Likewise.
55614         * lib/freadable.c (freadable): Likewise.
55615         * lib/fwritable.c (fwritable): Likewise.
55616         * lib/freading.c (freading): Likewise.
55617         * lib/fwriting.c (fwriting): Likewise.
55618         * lib/freadahead.c (freadahed): Likewise.
55619         * lib/fpurge.c (fpurge): Likewise.
55620         * lib/fseeko.c (rpl_fseeko): Likewise.
55621
55622 2007-10-03  Bruno Haible  <bruno@clisp.org>
55623             Jim Meyering  <jim@meyering.net>
55624             Eric Blake  <ebb9@byu.net>
55625
55626         * doc/relocatable.texi: Use @command instead of @program.
55627
55628 2007-10-02  Jim Meyering  <jim@meyering.net>
55629
55630         Perform one more "_.h" -> ".in.h" substitution.
55631         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55632         instead of unistd_.h here, too.
55633
55634 2007-10-01  Bruno Haible  <bruno@clisp.org>
55635
55636         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55637         Needed for the alloca-opt module.
55638
55639 2007-09-30  Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55642         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55643         alloca_.h.
55644         * lib/argz.in.h: Renamed from lib/argz_.h.
55645         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55646         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55647         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55648         byteswap_.h.
55649         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55650         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55651         dirent_.h.
55652         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55653         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55654         fcntl_.h.
55655         * lib/float.in.h: Renamed from lib/float_.h.
55656         * modules/float (Files, Makefile.am): Use float.in.h instead of
55657         float_.h.
55658         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55659         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55660         fnmatch_.h.
55661         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55662         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55663         getopt_.h.
55664         * lib/glob.in.h: Renamed from lib/glob_.h.
55665         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55666         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55667         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55668         iconv_.h.
55669         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55670         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55671         inttypes_.h.
55672         * lib/locale.in.h: Renamed from lib/locale_.h.
55673         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55674         locale_.h.
55675         * lib/math.in.h: Renamed from lib/math_.h.
55676         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55677         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55678         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55679         of netinet_in_.h. Add dependency.
55680         * lib/poll.in.h: Renamed from lib/poll_.h.
55681         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55682         * lib/search.in.h: Renamed from lib/search_.h.
55683         * modules/search (Files, Makefile.am): Use search.in.h instead of
55684         search_.h.
55685         * lib/signal.in.h: Renamed from lib/signal_.h.
55686         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55687         _signal.h.
55688         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55689         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55690         stdbool_.h.
55691         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55692         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55693         stdint_.h.
55694         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55695         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55696         stdio_.h.
55697         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55698         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55699         stdlib_.h.
55700         * lib/string.in.h: Renamed from lib/string_.h.
55701         * modules/string (Files, Makefile.am): Use string.in.h instead of
55702         string_.h.
55703         * doc/gnulib-tool.texi (Initial import): Update.
55704         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55705         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55706         of sys_select_.h. Add dependency.
55707         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55708         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55709         of sys_socket_.h.
55710         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55711         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55712         sys_stat_.h.
55713         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55714         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55715         sys_time_.h.
55716         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55717         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55718         sysexits_.h.
55719         * lib/time.in.h: Renamed from lib/time_.h.
55720         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55721         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55722         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55723         unistd_.h.
55724         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55725         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55726         wchar_.h.
55727         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55728         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55729         wctype_.h.
55730         * build-aux/bootstrap (slurp): Update.
55731         * lib/.cppi-disable: Update.
55732
55733 2007-09-30  Bruno Haible  <bruno@clisp.org>
55734
55735         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55736         Needed on BeOS.
55737
55738 2007-09-30  Bruno Haible  <bruno@clisp.org>
55739
55740         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55741
55742 2007-09-29  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55745
55746 2007-09-29  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55749         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55750         * build-aux/install-reloc: Compile also areadlink.c.
55751         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55752
55753 2007-09-29  Bruno Haible  <bruno@clisp.org>
55754
55755         * gnulib-tool (func_emit_initmacro_done): Indentation.
55756
55757 2007-09-29  Bruno Haible  <bruno@clisp.org>
55758
55759         * README: Add CVS checkout update instructions.
55760         Info from Bob Proulx <bob@proulx.com>.
55761
55762 2007-09-28  Eric Blake  <ebb9@byu.net>
55763
55764         Provide move-if-change.
55765         * build-aux/move-if-change: New file, based on best practice
55766         rather than any canonical upstream location.
55767
55768 2007-09-28  Jim Meyering  <jim@meyering.net>
55769
55770         Fix canonicalize loop-detection corner case.
55771         Do not attempt to stat the symlink values stored via seen_triple.
55772         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55773         on linux-2.6.18, (but not 2.6.22).
55774         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55775         triple_compare.  The former compares dev,ino,filename, while the latter
55776         would actually stat dirname(filename) when dev and ino were equal.
55777         * lib/hash-triple.c: Install <string.h>.
55778         (STREQ): Define.
55779         (triple_compare_ino_str): New function.
55780         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55781
55782 2007-09-28  Eric Blake  <ebb9@byu.net>
55783
55784         Enforce that AC_REPLACE_FUNCS files exist.
55785         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55786         override check for typos.
55787
55788         Fix test-closein on Solaris 10.
55789         * tests/test-closein.c (main): Don't assume stdin can be inherited
55790         closed on all systems.
55791         * tests/test-closein.sh: Likewise.
55792         Reported by Piotr Tarnowski.
55793
55794 2007-09-28  Jim Meyering  <jim@meyering.net>
55795
55796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55797
55798 2007-09-27  Jim Meyering  <jim@meyering.net>
55799
55800         canonicalize: Avoid a false-positive cycle failure.
55801         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55802         Sort.  Remove cycle-check.
55803         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55804         not cycle-check.h.
55805         (seen_triple): New function.
55806         (canonicalize_filename_mode): Use it instead of cycle-check.
55807         * tests/test-canonicalize.c: Add a test for this bug.
55808         * tests/test-canonicalize.sh: Set up and run the test.
55809
55810         New module, file-set, from coreutils.
55811         * modules/file-set: Define it.
55812         * lib/file-set.c, lib/file-set.h: Implement.
55813
55814         New module, hash-triple, from coreutils.
55815         * modules/hash-triple: Define it.
55816         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55817
55818 2007-09-25  Eric Blake  <ebb9@byu.net>
55819
55820         Fix strerror on Interix.
55821         * lib/string_.h (strerror): Declare replacement.
55822         * doc/functions/strerror.texi (strerror): Document the Interix
55823         shortcoming.
55824         * modules/string (Makefile.am): Support new hooks.
55825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55826         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55827         gl_FUNC_STRERROR_SEPARATE.
55828         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55829         * lib/strerror.c (rpl_strerror): Provide replacement.
55830         * modules/strerror (Depends-on): Add string.
55831         (configure.ac): Detect use of module.
55832         * tests/test-strerror.c: New file.
55833         * modules/strerror-tests: New test module.
55834         * modules/argp (Depends-on): Add strerror.
55835         * modules/error (Depends-on): Likewise.
55836         Reported by Martin Koeppe.
55837
55838 2007-09-24  Bruno Haible  <bruno@clisp.org>
55839
55840         * README: Update git instructions.
55841
55842 2007-09-24  Eric Blake  <ebb9@byu.net>
55843
55844         Revert fpending breakage from 2007-09-08.
55845         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55846         __fpending.c.
55847
55848 2007-09-24  Jim Meyering  <jim@meyering.net>
55849
55850         filenamecat.c: Add a test.
55851         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55852         showing how the function works when DIR is the empty string.
55853
55854 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55855
55856         * tests/test-canonicalize.sh: Turn on executable bit.
55857
55858 2007-09-19  Eric Blake  <ebb9@byu.net>
55859
55860         * README: Update CVS instructions.
55861
55862 2007-09-18  Bruno Haible  <bruno@clisp.org>
55863
55864         * modules/areadlink: New file.
55865         * lib/areadlink.h (areadlink): New declaration.
55866         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55867
55868 2007-09-17  Jim Meyering  <jim@meyering.net>
55869
55870         * lib/savewd.c (ESTALE) [!defined]: Define.
55871         Reported to be required on Interix by Martin Koeppe.
55872
55873 2007-09-17  Bruno Haible  <bruno@clisp.org>
55874
55875         * gnulib-tool (func_version): Use $version.
55876
55877 2007-09-16  Bruno Haible  <bruno@clisp.org>
55878
55879         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55880         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55881         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55882         Reported by Greg Schafer <gschafer@zip.com.au>.
55883
55884 2007-09-15  Bruno Haible  <bruno@clisp.org>
55885
55886         * gnulib-tool (sed): Try a little harder to make bash understand the
55887         alias.
55888         Reported by Bruce Korb <bruce.korb@gmail.com>.
55889
55890 2007-09-13  Eric Blake  <ebb9@byu.net>
55891
55892         * ChangeLog: Remove conflict markers.
55893
55894 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55895
55896         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55897         Reported by Bruno Haible <bruno@clisp.org>.
55898
55899 2007-09-12  Bruno Haible  <bruno@clisp.org>
55900
55901         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55902         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55903         is not defined.
55904
55905 2007-09-12  Eric Blake  <ebb9@byu.net>
55906
55907         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55908         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55909         Autoconf definition.
55910         * modules/euidaccess (Depends-on): Add extensions, for
55911         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55912         * modules/fnmatch (Depends-on): Likewise.
55913         * modules/getaddrinfo (Depends-on): Likewise.
55914         * modules/getdelim (Depends-on): Likewise.
55915         * modules/getline (Depends-on): Likewise.
55916         * modules/getsubopt (Depends-on): Likewise.
55917         * modules/gettext (Depends-on): Likewise.
55918         * modules/group-member (Depends-on): Likewise.
55919         * modules/mbchar (Depends-on): Likewise.
55920         * modules/memmem (Depends-on): Likewise.
55921         * modules/mempcpy (Depends-on): Likewise.
55922         * modules/memrchr (Depends-on): Likewise.
55923         * modules/pagealign_alloc (Depends-on): Likewise.
55924         * modules/readutmp (Depends-on): Likewise.
55925         * modules/stpcpy (Depends-on): Likewise.
55926         * modules/stpncpy (Depends-on): Likewise.
55927         * modules/strchrnul (Depends-on): Likewise.
55928         * modules/strndup (Depends-on): Likewise.
55929         * modules/strsep (Depends-on): Likewise.
55930         * modules/strverscmp (Depends-on): Likewise.
55931         * modules/vasprintf (Depends-on): Likewise.
55932         * modules/wcwidth (Depends-on): Likewise.
55933         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55934         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55935         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55936         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55938         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55939         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55940         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55941         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55942         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55944         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55946         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55947         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55948         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55949         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55950         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55952         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55953         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55954         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55955         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55957         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55959         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55960         so that lock.m4 can be used in gettext without extensions module.
55961
55962 2007-09-11  Bruno Haible  <bruno@clisp.org>
55963
55964         * m4/isc-posix.m4: Remove file.
55965         Suggested by Eric Blake.
55966
55967 2007-09-11  Eric Blake  <ebb9@byu.net>
55968
55969         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55970
55971 2007-09-10  Bruno Haible  <bruno@clisp.org>
55972
55973         * posix-modules: Fix typo in error message.
55974         Reported by Matt <mkraai@beckman.com>.
55975
55976 2007-09-09  Bruno Haible  <bruno@clisp.org>
55977
55978         * doc/functions/getdelim.texi: Update list of platforms lacking the
55979         function.
55980         * doc/functions/getline.texi: Likewise.
55981
55982 2007-09-09  Jim Meyering  <jim@meyering.net>
55983
55984         * lib/hash.c (hash_initialize): Detect calloc failure.
55985         Reported by Bruno Haible.
55986
55987 2007-09-09  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55990         malloc or realloc fails.
55991
55992 2007-09-09  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/getcwd (Depends-on): Add malloc-posix.
55995         * modules/glob (Depends-on): Likewise.
55996         * modules/putenv (Depends-on): Likewise.
55997         * modules/strdup (Depends-on): Likewise.
55998         * modules/getdelim (Depends-on): Add realloc-posix.
55999         * modules/read-file (Depends-on): Likewise.
56000
56001 2007-09-09  Bruno Haible  <bruno@clisp.org>
56002
56003         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56004         (gl_FUNC_MALLOC_POSIX): Require it.
56005         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56006         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56007         * modules/realloc (Files): Add m4/malloc.m4.
56008         * modules/calloc (Files): Likewise.
56009
56010 2007-09-09  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/malloc-posix: New file.
56013         * modules/malloc (Depends-on): Add malloc-posix.
56014         * lib/malloc.c: Include errno.h.
56015         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56016         and a POSIX-compatible malloc into a single function. Set ENOMEM
56017         when returning NULL.
56018         * m4/malloc.m4: New file.
56019         * doc/functions/malloc.texi: Mention the malloc-posix module.
56020         * lib/stdlib_.h (malloc): New declaration.
56021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56022         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56023         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56024         and HAVE_MALLOC_POSIX.
56025
56026 2007-09-09  Bruno Haible  <bruno@clisp.org>
56027
56028         * modules/realloc-posix: New file.
56029         * modules/realloc (Depends-on): Add realloc-posix.
56030         * lib/realloc.c: Include errno.h.
56031         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56032         and a POSIX-compatible realloc into a single function. Set ENOMEM
56033         when returning NULL.
56034         * m4/realloc.m4: New file.
56035         * doc/functions/realloc.texi: Mention the realloc-posix module.
56036         * lib/stdlib_.h (realloc): New declaration.
56037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56038         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56039         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56040         and HAVE_REALLOC_POSIX.
56041
56042 2007-09-09  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/calloc-posix: New file.
56045         * modules/calloc (Depends-on): Add calloc-posix.
56046         * lib/calloc.c: Include errno.h.
56047         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56048         and a POSIX-compatible calloc into a single function. Set ENOMEM
56049         when returning NULL.
56050         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56051         * doc/functions/calloc.texi: Mention the calloc-posix module.
56052         * lib/stdlib_.h (calloc): New declaration.
56053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56054         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56055         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56056         and HAVE_CALLOC_POSIX.
56057
56058 2007-09-09  Bruno Haible  <bruno@clisp.org>
56059
56060         Allow for modules to show an arbitrary notice.
56061         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56062         * gnulib-tool: New option --extract-notice.
56063         (func_usage): Document it.
56064         (sed_extract_prog): Update.
56065         (func_get_notice): New function.
56066         (func_modules_notice): New function.
56067         (func_import, func_create_testdir): Invoke it.
56068         Suggested by Jim Meyering.
56069
56070 2007-09-09  Bruno Haible  <bruno@clisp.org>
56071
56072         * gnulib-tool: New options --verbose, --quiet.
56073         (func_usage): Document them.
56074         (verbose): New variable.
56075         (func_execute_command): New function.
56076         (func_import): Don't show the module list and the file list if
56077         $verbose < 0.
56078         (func_create_testdir): Likewise. Use func_execute_command.
56079         (func_create_megatestdir): Use func_execute_command.
56080
56081 2007-09-08  Bruno Haible  <bruno@clisp.org>
56082
56083         * gnulib-tool (func_import): Prefer rsync over wget when available,
56084         for fetching the PO files.
56085
56086 2007-09-08  Bruno Haible  <bruno@clisp.org>
56087
56088         * posix-modules: New file. Portions copied from gnulib-tool.
56089         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56090
56091 2007-09-08  Jim Meyering  <jim@meyering.net>
56092
56093         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56094         * lib/fpending.h: Rename from __fpending.h.
56095         * lib/fpending.c: Rename from __fpending.c.
56096         Include "fpending.h", not "__fpending.h".
56097         * lib/__fpending.h, lib/__fpending.c: Remove files.
56098         * modules/fpending (Files): Reflect new file names.
56099         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56100
56101 2007-09-08  Bruno Haible  <bruno@clisp.org>
56102
56103         * m4/inttypes-h.m4: Remove stub file.
56104
56105 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56106
56107         * doc/headers/stdint.texi: Discuss #include_next issue.
56108
56109 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56110
56111         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56112
56113 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56114
56115         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56116         in variable name.
56117
56118 2007-09-03  Jim Meyering  <jim@meyering.net>
56119
56120         New module: git-version-gen.
56121         * modules/git-version-gen: New file.
56122
56123         Import changes from coreutils for bootstrap script.
56124
56125         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56126
56127         bootstrap: uses rsync to download the .po files
56128         * build-aux/bootstrap (po_download_command_format): New global.
56129         (download_po_files): Use rsync.
56130         (update_po_files): Don't remove .po files after download,
56131         so future rsync runs can take advantage of the copies.
56132
56133         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56134
56135         Solve the unnecessary-.po-file-regeneration problem once and for all.
56136         * build-aux/bootstrap (download_po_files): New function, renamed from
56137         get_translations.  Now, downloads, but doesn't update LINGUAS.
56138         (update_po_files): New function.
56139
56140         bootstrap: Ignore more.
56141         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56142         uniwidth to e.g., lib/.gitignore.
56143         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56144
56145         * build-aux/bootstrap: New setting: vc_ignore.
56146         (insert_sorted_if_absent): Create $file if absent.
56147         Adapt to new, possibly empty, list: $vc_ignore.
56148
56149         bootstrap: generate more ignorable names
56150         * build-aux/bootstrap (slurp): When generating ignorable names,
56151         also map .sin to .sed, .gperf to .c, and .y to .c.
56152
56153 2007-09-03  Jim Meyering  <jim@meyering.net>
56154
56155         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56156         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56157
56158 2007-09-02  Bruno Haible  <bruno@clisp.org>
56159
56160         Fix mis-recognition of 'mcs' on QNX 6.
56161         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56162         output contains the string "Mono".
56163         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56164         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56165
56166 2007-09-01  Bruno Haible  <bruno@clisp.org>
56167
56168         Fix collision between uniwidth/* and linebreak modules.
56169         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56170         u32_width): Remove declarations.
56171         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56172         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56173         streq3, streq2, streq1, streq0): Remove functions.
56174         (STREQ): Remove macro.
56175         (is_cjk_encoding): Remove function.
56176         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56177         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56178         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56179         * NEWS: Document the change.
56180
56181 2007-09-01  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/streq.h: Add double-inclusion guard.
56184
56185 2007-09-01  Karl Berry  <karl@gnu.org>
56186
56187         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56188
56189 2007-08-28  Jim Meyering  <jim@meyering.net>
56190
56191         Rename mreadlink_with_size to areadlink_with_size.
56192         * NEWS: Document the change.
56193         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56194         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56195         * lib/mreadlink.h: Rename this to...
56196         * lib/areadlink.h: ...this.
56197         * modules/mreadlink-with-size: Rename this to...
56198         * modules/areadlink-with-size: ...this.
56199         * lib/canonicalize.c: Reflect the renaming.
56200         * modules/canonicalize: Likewise.
56201
56202 2007-08-26  Bruno Haible  <bruno@clisp.org>
56203
56204         * gnulib-tool (func_import): When deciding which files to remove,
56205         consider also dangling symbolic links.
56206         Reported by Eric Blake.
56207
56208 2007-08-26  Bruno Haible  <bruno@clisp.org>
56209
56210         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56211
56212 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56213
56214         * lib/readline.c: Don't include getline.h, the prototype is now
56215         found in stdio.h.
56216
56217 2007-08-23  Jim Meyering  <jim@meyering.net>
56218
56219         Getdelim touchup.
56220         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56221         around the funlockfile call, since funlockfile never sets errno.
56222         Don't set errno upon failed realloc.
56223
56224 2007-08-22  Eric Blake  <ebb9@byu.net>
56225
56226         Getline touchups.
56227         * lib/getdelim.c (getdelim): Revert regression that required *n to
56228         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56230         getdelim, rather than whether implementation is missing.
56231         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56232         * lib/stdio_.h (getline): Also declare if replacement is
56233         required.
56234         * doc/functions/getdelim.texi: New file.
56235         * doc/functions/getline.texi: Likewise.
56236         * doc/gnulib.texi (Function Substitutes): Add new files.
56237         Reported by Bruno Haible.
56238
56239 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56240
56241         * users.txt: Add Guile.
56242
56243 2007-08-22  Eric Blake  <ebb9@byu.net>
56244
56245         * tests/test-getdelim.c (main): Use remove, not unlink.
56246         * tests/test-getline.c (main): Likewise.
56247
56248         Move getline and getdelim into stdio.h, per POSIX 200x.
56249         * modules/getline (Files): Remove getline.h.
56250         (Depends-on): Add stdio.
56251         (configure.ac): Add module indicator.
56252         * modules/getdelim (Files): Remove getdelim.h.
56253         (Depends-on): Add stdio.
56254         (configure.ac): Add module indicator.
56255         * modules/stdio (Makefile.am): Work with new indicators.
56256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56257         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56258         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56259         * lib/getdelim.h: Delete.
56260         * lib/getline.h: Delete.
56261         * lib/stdio_.h (getdelim, getline): Declare.
56262         * modules/getdelim-tests: New module.
56263         * modules/getline-tests: Likewise.
56264         * tests/test-getdelim.c: New file.
56265         * tests/test-getline.c: Likewise.
56266         * NEWS: Document the change.
56267         * lib/getline.c: Update choice of header.
56268         * lib/csharpcomp.c: Likewise.
56269         * lib/getpass.c: Likewise.
56270         * lib/javacomp.c: Likewise.
56271         * lib/javaversion.c: Likewise.
56272         * lib/yesno.c: Likewise.
56273         * lib/getdelim.c: Likewise.
56274         (getdelim): Set errno on failure, and avoid memory leak.
56275
56276 2007-08-19  Bruno Haible  <bruno@clisp.org>
56277
56278         * modules/closein (Depends-on): Add freadahead.
56279         * lib/closein.c: Include freadahead.h.
56280         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56281         is zero.
56282
56283 2007-08-19  Bruno Haible  <bruno@clisp.org>
56284
56285         * modules/freadahead-tests: New file.
56286         * tests/test-freadahead.sh: New file.
56287         * tests/test-freadahead.c: New file.
56288
56289         * modules/freadahead: New file.
56290         * lib/freadahead.h: New file.
56291         * lib/freadahead.c: New file.
56292         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56293         fbufmode, fpurge, freadable, fwritable.
56294
56295 2007-08-19  Eric Blake  <ebb9@byu.net>
56296
56297         Test yesno in combination with closein.
56298         * lib/yesno.c (yesno): Document use of stdin.
56299         * modules/yesno-tests (Files): New module.
56300         * tests/test-yesno.c (main): New file.
56301         * tests/test-yesno.sh: Likewise.
56302
56303 2007-08-19  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56306         * lib/fseeko.c (rpl_fseeko): Likewise.
56307         * lib/fseterr.c (fseterr): Likewise.
56308
56309 2007-08-19  Bruno Haible  <bruno@clisp.org>
56310
56311         * tests/test-lseek.c (main): Disable a test for BeOS.
56312         * doc/functions/lseek.texi: Document the BeOS bug.
56313
56314 2007-08-19  Bruno Haible  <bruno@clisp.org>
56315             Eric Blake  <ebb9@byu.net>
56316
56317         * lib/lseek.c: Include <sys/stat.h>.
56318         (rpl_lseek): Add workaround code also for Unix platforms.
56319         Needed for BeOS.
56320         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56321         * doc/functions/lseek.texi: Document BeOS definiency.
56322
56323 2007-08-18  Bruno Haible  <bruno@clisp.org>
56324
56325         * modules/fstrcmp-tests: New file.
56326         * tests/test-fstrcmp.c: New file.
56327
56328 2007-08-18  Bruno Haible  <bruno@clisp.org>
56329
56330         * modules/fstrcmp: New file, from GNU gettext with modifications.
56331         * lib/fstrcmp.h: New file, from GNU gettext.
56332         * lib/fstrcmp.c: New file, from GNU gettext.
56333         * MODULES.html.sh (String handling): Add fstrcmp.
56334
56335 2007-08-18  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56338         'bool'.
56339         (diag, compareseq): Remove const from the ctxt argument.
56340         (USE_HEURISTIC): Undefine at the end.
56341
56342 2007-08-18  Jim Meyering  <jim@meyering.net>
56343
56344         New file: lib/idcache.h
56345         * NEWS: Mention the addition.
56346         * modules/idcache (Files): Add lib/idcache.h
56347         * lib/idcache.c: Include "idcache.h".
56348         Don't include <sys/types.h>.
56349         Add a FIXME comment.
56350         Move file-scoped "static" declarations to the top.
56351         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56352
56353 2007-08-17  Bruno Haible  <bruno@clisp.org>
56354         and Paul Eggert  <eggert@cs.ucla.edu>
56355
56356         * MODULES.html.sh: Add diffseq.
56357         * modules/diffseq: New file.
56358         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56359         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56360
56361 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56362
56363         Import changes from coreutils for bootstrap script.
56364
56365         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         * build-aux/bootstrap (slurp): Work even in environments where
56368         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56369         current code does not slurp files whose names start with ".", and
56370         this looks like it might be a troublesome area.
56371
56372         2007-07-11  Jim Meyering  <jim@meyering.net>
56373
56374         If there's a GPL vN copyright comment, require that N == 3.
56375
56376         2007-07-08  Jim Meyering  <jim@meyering.net>
56377
56378         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56379         * build-aux/bootstrap (mam_template): Move definition out of loop.
56380
56381         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56382
56383         * build-aux/bootstrap (symlink_to_dir): Rename function from
56384         symlink_to_gnulib.  Add a directory parameter.  Update all
56385         callers.
56386         (cp_mark_as_generated): Also check for -- and link to -- files in
56387         gl/.
56388
56389         2007-07-08  Jim Meyering  <jim@meyering.net>
56390
56391         Adapt to deeper hierarchy in gnulib.
56392         * build-aux/bootstrap (symlink_to_dir): If the destination
56393         directory doesn't exist, create it. This is required at least for
56394         "lib/uniwidth/cjk.h".
56395
56396         2007-05-15  Jim Meyering  <jim@meyering.net>
56397
56398         * build-aux/bootstrap: Now that generated Makefile.am files
56399         are no longer under version control, they must be created at
56400         bootstrap time.
56401
56402 2007-08-14  Ben Pfaff  <blp@gnu.org>
56403
56404         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56405
56406 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56409         given the changes below.
56410         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56411         even on hosts that have padding bits beyond the supported 64.
56412
56413 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56416         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56417         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56418         depends on it.
56419         (xstrtol_error): Remove.
56420         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56421         but with a different signature.
56422         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56423         * lib/xstrtol-error.c: Include exitfail.h.
56424         (xstrtol_fatal): New function, with a different signature from the
56425         old xstrtol_error, so that the caller need not worry about passing
56426         in an exit status, or about storage management of the option argument.
56427         (xstrtol_error): Now a static function.  Redo signature to
56428         implement xstrtol_fatal.  Output the correct number of hyphens in
56429         front of the option so that the caller need not worry about
56430         storage management.
56431         (N_): New macro.
56432         (_): Remove; not used now.
56433         * modules/xstrtol: Depend on getopt.
56434         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56435         of old STRTOL_FATAL_ERROR macro.
56436         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56437         of test program.
56438         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56439         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56440
56441 2007-08-08  Eric Blake  <ebb9@byu.net>
56442
56443         * lib/xstrtol-error.c: Add missing include.
56444
56445         Move xstrtol messages into gnulib domain, when --pobase is used.
56446         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56447         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56448         * modules/xstrtol (Files): Distribute new file.
56449         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56450         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56451         * tests/test-xstrtol.c: ...into new file.
56452         * tests/test-xstrtoul.c: Also test xstrtoul.
56453         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56454         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56455         * tests/test-xstrtol.sh: Drive the tests.
56456         * tests/test-xstrtoimax.sh: Likewise.
56457         * tests/test-xstrtoumax.sh: Likewise.
56458         * modules/xstrtol-tests: New module.
56459         * modules/xstrtoimax-tests: Likewise.
56460         * modules/xstrtoumax-tests: Likewise.
56461
56462 2007-08-08  Jim Meyering  <jim@meyering.net>
56463
56464         New function: mfile_name_concat.
56465         * lib/filenamecat.c (mfile_name_concat): New function, just like
56466         file_name_concat, but return NULL upon failure rather than exiting
56467         with a diagnostic.
56468         * lib/filenamecat.h: Declare it.
56469
56470 2007-08-07  Bruno Haible  <bruno@clisp.org>
56471
56472         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56473         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56474         warning from gcc.
56475         Reported by Eric Blake.
56476
56477 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56478
56479         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56480         * modules/crypto/arcfour (License): Likewise.
56481         * modules/crypto/des-tests (License): Likewise.
56482         * modules/crypto/gc-arctwo-tests (License): Likewise.
56483         * modules/crypto/gc-des-tests (License): Likewise.
56484         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56485         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56486         * modules/crypto/gc-md2-tests (License): Likewise.
56487         * modules/crypto/gc-md4-tests (License): Likewise.
56488         * modules/crypto/gc-md5-tests (License): Likewise.
56489         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56490         * modules/crypto/gc-rijndael-tests (License): Likewise.
56491         * modules/crypto/gc-sha1-tests (License): Likewise.
56492         * modules/crypto/gc-tests (License): Likewise.
56493         * modules/crypto/hmac-md5 (License): Likewise.
56494         * modules/crypto/hmac-sha1 (License): Likewise.
56495         * modules/crypto/md2-tests (License): Likewise.
56496         * modules/crypto/md4-tests (License): Likewise.
56497         * modules/crypto/md5 (License): Likewise.
56498         * modules/crypto/rijndael (License): Likewise.
56499         * modules/crypto/sha1 (License): Likewise.
56500         * modules/memxor (License): Likewise.
56501
56502 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56503         and Bruno Haible  <bruno@clisp.org>
56504
56505         * NEWS: Describe interface changes to human, xstrtol.
56506         * lib/human.h: Include <xstrtol.h>.
56507         (human_options): Return enum strtol_error, not int.  Remove
56508         bool arg; take int * instead.
56509         * lib/human.c: Don't include "gettext.h".
56510         (_): Remove; no longer used.
56511         Don't include <xstrtol.h>, since human.h does it.
56512         (human_options): Adjust to abovementioned interface changes.
56513         Do not report error to stderr; that's now the caller's
56514         responsibility.
56515         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56516         interface change.
56517         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56518         Str, Argument_type_string.  All uses changed.  Put " argument"
56519         in diagnostics to make them clearer.  Change wording of suffix
56520         message for clarity.
56521         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56522         Argument_type_string.
56523         (STRTOL_FATAL_WARN): Remove; no longer used.
56524         * modules/human (Depends-on): Remove gettext-h.
56525
56526 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56527
56528         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56529
56530 2007-07-31  Bruno Haible  <bruno@clisp.org>
56531
56532         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56533         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56534         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56535
56536 2007-07-31  Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56539         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56540
56541 2007-07-30  Bruno Haible  <bruno@clisp.org>
56542
56543         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56544         * modules/c-ctype (License): Likewise.
56545         * modules/c-strcase (License): Likewise.
56546         * modules/check-version (License): Likewise.
56547         * modules/iconv (License): Likewise.
56548         * modules/iconv_open (License): Likewise.
56549         * modules/read-file (License): Likewise.
56550         * modules/striconv (License): Likewise.
56551         * modules/strverscmp (License): Likewise.
56552         * modules/vasprintf (License): Likewise.
56553         * modules/crypto/des (License): Likewise.
56554         * modules/crypto/gc (License): Likewise.
56555         * modules/crypto/gc-arcfour (License): Likewise.
56556         * modules/crypto/gc-arctwo (License): Likewise.
56557         * modules/crypto/gc-des (License): Likewise.
56558         * modules/crypto/gc-hmac-md5 (License): Likewise.
56559         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56560         * modules/crypto/gc-md2 (License): Likewise.
56561         * modules/crypto/gc-md4 (License): Likewise.
56562         * modules/crypto/gc-md5 (License): Likewise.
56563         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56564         * modules/crypto/gc-random (License): Likewise.
56565         * modules/crypto/gc-rijndael (License): Likewise.
56566         * modules/crypto/gc-sha1 (License): Likewise.
56567         * modules/crypto/md2 (License): Likewise.
56568         * modules/crypto/md4 (License): Likewise.
56569
56570 2007-07-30  Jim Meyering  <jim@meyering.net>
56571
56572         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56573         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56574         it has valid stat data.  This bug would cause du not to count the
56575         sizes of inaccessible directories.
56576         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56577         in <http://bugzilla.redhat.com/250077>.
56578
56579 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56580             Bruno Haible  <bruno@clisp.org>
56581
56582         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56583         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56584         #include_next, gives a diagnostic about it, but reports no error in
56585         the exit code.
56586         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56587
56588 2007-07-24  Ben Pfaff  <blp@gnu.org>
56589
56590         Improve name: "count-one-bits" is better than "popcount".
56591         * MODULES.html.sh: Update name.
56592         * lib/popcount.h: Renamed lib/count-one-bits.h.
56593         (popcount): Renamed count_one_bits.
56594         (popcountl): Renamed count_one_bits_l.
56595         (popcountll): Renamed count_one_bits_ll.
56596         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56597         * modules/popcount: Renamed module/count-one-bits.
56598         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56599         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56600
56601 2007-07-23  Ben Pfaff  <blp@gnu.org>
56602
56603         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56604         better code generation, and add U to large constants to avoid
56605         warnings, in non-GCC case.
56606         Suggested by Bruno Haible.
56607
56608 2007-07-23  Ben Pfaff  <blp@gnu.org>
56609
56610         * lib/popcount.h: Use verify_true instead of if...abort.
56611         * modules/popcount: Depend on verify module.
56612         Suggested by Jim Meyering.
56613
56614 2007-07-23  Bruno Haible  <bruno@clisp.org>
56615
56616         * gnulib-tool (func_import): Create a .cvsignore file also when the
56617         directory is not yet in CVS but the toplevel directory is. When
56618         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56619         Reported by Karl Berry.
56620
56621 2007-07-22  Ben Pfaff  <blp@gnu.org>
56622
56623         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56624         case.
56625         Suggested by Eric Blake.
56626
56627 2007-07-22  Ben Pfaff  <blp@gnu.org>
56628
56629         New module: popcount.
56630         * MODULES.html.sh: Add popcount.
56631         * modules/popcount: New file.
56632         * modules/popcount-tests: New file.
56633         * tests/test-popcount.c: New file.
56634         * lib/popcount.h: New file.
56635         * m4/popcount.m4: New file.
56636
56637 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56638
56639         * build-aux/announce-gen: Update to GPLv3.
56640
56641         * build-aux/config.guess: Update from config.
56642
56643 2007-07-21  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56646         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56647
56648 2007-07-20  Jim Meyering  <jim@meyering.net>
56649
56650         * check-module: Diagnose a self-dependency.
56651
56652 2007-07-19  Bruno Haible  <bruno@clisp.org>
56653
56654         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56655         empty.
56656         Reported by Eric Blake.
56657
56658 2007-07-18  Bruno Haible  <bruno@clisp.org>
56659
56660         * gnulib-tool: New options --po-base, --po-domain.
56661         (func_usage): Document them.
56662         (pobase, po_domain): New variables.
56663         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56664         DEFAULT_TEXT_DOMAIN.
56665         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56666         (func_import): Consider pobase and po_domain. Create a po/ directory.
56667         (func_create_testdir): Set pobase and po_domain to empty.
56668         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56669         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56670
56671 2007-07-18  Bruno Haible  <bruno@clisp.org>
56672
56673         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56674         EXTRA_DIST augmentation for files in build-aux/.
56675
56676 2007-07-16  Bruno Haible  <bruno@clisp.org>
56677
56678         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56679         * modules/getdelim (License): Likewise.
56680
56681 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56682
56683         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56684         * modules/d-type (License): Likewise.
56685         * modules/extensions (License): Likewise.
56686         * modules/fnmatch (License): Likewise.
56687         * modules/fseeko (License): Likewise.
56688         * modules/getaddrinfo (License): Likewise.
56689         * modules/getline (License): Likewise.
56690         * modules/getlogin_r (License): Likewise.
56691         * modules/getpass (License): Likewise.
56692         * modules/gettimeofday (License): Likewise.
56693         * modules/glob (License): Likewise.
56694         * modules/inet_ntop (License): Likewise.
56695         * modules/malloc (License): Likewise.
56696         * modules/malloca (License): Likewise.
56697         * modules/memmem (License): Likewise.
56698         * modules/mempcpy (License): Likewise.
56699         * modules/memset (License): Likewise.
56700         * modules/minmax (License): Likewise.
56701         * modules/mktime (License): Likewise.
56702         * modules/netinet_in (License): Likewise.
56703         * modules/pathmax (License): Likewise.
56704         * modules/poll (License): Likewise.
56705         * modules/regex (License): Likewise.
56706         * modules/snprintf (License): Likewise.
56707         * modules/stdbool (License): Likewise.
56708         * modules/stdint (License): Likewise.
56709         * modules/stdio (License): Likewise.
56710         * modules/strcase (License): Likewise.
56711         * modules/strcasestr (License): Likewise.
56712         * modules/strdup (License): Likewise.
56713         * modules/string (License): Likewise.
56714         * modules/strndup (License): Likewise.
56715         * modules/strnlen (License): Likewise.
56716         * modules/strpbrk (License): Likewise.
56717         * modules/strptime (License): Likewise.
56718         * modules/strsep (License): Likewise.
56719         * modules/sys_select (License): Likewise.
56720         * modules/sys_socket (License): Likewise.
56721         * modules/sys_stat (License): Likewise.
56722         * modules/sys_time (License): Likewise.
56723         * modules/time (License): Likewise.
56724         * modules/time_r (License): Likewise.
56725         * modules/timegm (License): Likewise.
56726         * modules/unistd (License): Likewise.
56727         * modules/vsnprintf (License): Likewise.
56728         * modules/wctype (License): Likewise.
56729
56730 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56731
56732         * modules/argz (License): LGPLv2+.
56733
56734 2007-07-15  Karl Berry  <karl@gnu.org>
56735
56736         * doc/gnulib.texi: revise node structure per new fdl.texi.
56737
56738 2007-07-14  Bruno Haible  <bruno@clisp.org>
56739
56740         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56741         the output file.
56742         * lib/uniname/uninames.h: Regenerated.
56743
56744 2007-07-14  Karl Berry  <karl@gnu.org>
56745
56746         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56747         omitting sectioning and index commands.
56748
56749 2007-07-13  Bruno Haible  <bruno@clisp.org>
56750
56751         New gnulib-tool option --more-symlinks.
56752         * gnulib-tool (func_usage): Document --more-symlinks.
56753         (do_copyrights): New variable.
56754         Recognize option --more-symlinks.
56755         (func_import): Don't add a copyright notice transform to
56756         sed_transform_lib_file if do_copyrights is empty.
56757
56758 2007-07-13  Bruno Haible  <bruno@clisp.org>
56759
56760         * lib/vasnprintf.c (decimal_point_char): Define also if
56761         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56762         && !NEED_PRINTF_DIRECTIVE_A.
56763         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56764         Gary V. Vaughan <gary@gnu.org>.
56765
56766 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56767
56768         * lib/inttypes_.h: Undo previous change, since it was fixed
56769         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56770
56771 2007-07-13  Bruno Haible  <bruno@clisp.org>
56772
56773         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56774         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56775
56776 2007-07-13  Jim Meyering  <jim@meyering.net>
56777
56778         df: Don't fail for Tru64's "file-on-file mount".
56779         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56780         so we fall through and use statfs instead.  Details here:
56781         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56782         Reported by Albert Chin.
56783
56784 2007-07-13  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56787         * modules/configmake (License): Likewise.
56788         * modules/gettext (License): Likewise.
56789         * modules/gettext-h (License): Likewise.
56790         * modules/include_next (License): Likewise.
56791         * modules/link-warning (License): Likewise.
56792         * modules/localcharset (License): Likewise.
56793         * modules/localename (License): Likewise.
56794         * modules/lock (License): Likewise.
56795         * modules/relocatable-lib-lgpl (License): Likewise.
56796         * modules/size_max (License): Likewise.
56797         * modules/vasnprintf (License): Likewise.
56798         * modules/wchar (License): Likewise.
56799         * modules/xsize (License): Likewise.
56800
56801 2007-07-13  Bruno Haible  <bruno@clisp.org>
56802
56803         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56804         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56805
56806 2007-07-12  Bruno Haible  <bruno@clisp.org>
56807
56808         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56809         in the modules files.
56810
56811 2007-07-11  Karl Berry  <karl@gnu.org>
56812
56813         * MODULES.html.sh (func_module): use
56814          sed -e '\|^'"${includefile}"'$|d'
56815          instead of /.../d, to avoid errors on $includefile's containing /.
56816
56817 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56818
56819         * gnulib-tool (func_import): Avoid duplication of --avoid
56820         statements
56821         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56822         names to `_' in variable names.
56823
56824 2007-07-10  Eric Blake  <ebb9@byu.net>
56825
56826         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56827         * NEWS: Document this change.
56828
56829 2007-07-08  Bruno Haible  <bruno@clisp.org>
56830
56831         Update to Unicode 5.0.
56832         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56833         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56834         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56835         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56836         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56837         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56838         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56839         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56840         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56841         U+10A3F, U+1D242..U+1D244.
56842         (nonspacing_table_ind): Update.
56843         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56844         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56845
56846 2007-07-08  Bruno Haible  <bruno@clisp.org>
56847
56848         Update to Unicode 5.0.
56849         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56850         code transform. Extend the name index field of unicode_name_to_code and
56851         unicode_code_to_name from 16 to 24 bits.
56852         * lib/uniname/uniname.c (unicode_character_name,
56853         unicode_name_character): Add the range 0x12xxx to the code transform.
56854         * lib/uniname/uninames.h: Regenerated.
56855         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56856
56857 2007-07-07  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/wcwidth-tests: New file.
56860         * tests/test-wcwidth.c: New file.
56861
56862         Work around MacOS X wcwidth() bug.
56863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56864         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56865         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56866         original wcwidth in non-UTF-8 locales.
56867         * modules/wcwidth (Depends-on): Add localcharset, streq,
56868         uniwidth/width.
56869         * doc/functions/wcwidth.texi: Update.
56870
56871 2007-07-07  Bruno Haible  <bruno@clisp.org>
56872
56873         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56874         (wcwidth): New declaration.
56875         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56876         macros.
56877         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56878         here. Prepare for creating <wchar.h> unconditionally.
56879         * modules/wchar (Depends-on): Add link-warning.
56880         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56881         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56882         * lib/wcwidth.h: Remove file.
56883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56884         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56885         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56886         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56887         (Include): Replace wcwidth.h with <wchar.h>.
56888         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56889         * lib/mbchar.h: Don't include wcwidth.h.
56890         * lib/mbswidth.c: Likewise.
56891         * NEWS: Mention the change.
56892
56893 2007-07-07  Bruno Haible  <bruno@clisp.org>
56894
56895         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56896         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56897         definition with an external declaration.
56898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56899         defined as a function. Remove AC_C_INLINE requirement.
56900         * modules/wcwidth (Files): Add lib/wcwidth.c.
56901         (Makefile.am): Remove redundant statement.
56902
56903 2007-07-07  Bruno Haible  <bruno@clisp.org>
56904
56905         * MODULES.html.sh (Unicode string functions): Add the new modules.
56906
56907         * tests/uniwidth/test-u32-strwidth.c: New file.
56908         * modules/uniwidth/u32-strwidth-tests: New file.
56909
56910         * lib/uniwidth/u32-strwidth.c: New file.
56911         * modules/uniwidth/u32-strwidth: New file.
56912
56913         * tests/uniwidth/test-u16-strwidth.c: New file.
56914         * modules/uniwidth/u16-strwidth-tests: New file.
56915
56916         * lib/uniwidth/u16-strwidth.c: New file.
56917         * modules/uniwidth/u16-strwidth: New file.
56918
56919         * tests/uniwidth/test-u8-strwidth.c: New file.
56920         * modules/uniwidth/u8-strwidth-tests: New file.
56921
56922         * lib/uniwidth/u8-strwidth.c: New file.
56923         * modules/uniwidth/u8-strwidth: New file.
56924
56925         * tests/uniwidth/test-u32-width.c: New file.
56926         * modules/uniwidth/u32-width-tests: New file.
56927
56928         * lib/uniwidth/u32-width.c: New file.
56929         * modules/uniwidth/u32-width: New file.
56930
56931         * tests/uniwidth/test-u16-width.c: New file.
56932         * modules/uniwidth/u16-width-tests: New file.
56933
56934         * lib/uniwidth/u16-width.c: New file.
56935         * modules/uniwidth/u16-width: New file.
56936
56937         * tests/uniwidth/test-u8-width.c: New file.
56938         * modules/uniwidth/u8-width-tests: New file.
56939
56940         * lib/uniwidth/u8-width.c: New file.
56941         * modules/uniwidth/u8-width: New file.
56942
56943         * tests/uniwidth/test-uc_width.c: New file.
56944         * modules/uniwidth/width-tests: New file.
56945
56946         * lib/uniwidth/width.c: New file, from GNU libiconv.
56947         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56948         * modules/uniwidth/width: New file.
56949
56950         * lib/uniwidth.h: New file, from GNU libiconv.
56951         * modules/uniwidth/base: New file.
56952
56953 2007-07-07  Bruno Haible  <bruno@clisp.org>
56954
56955         * lib/uniname.h: New file, from GNU gettext.
56956         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56957         * lib/uniname/uninames.h: New file, from GNU gettext.
56958         * lib/uniname/uniname.c: New file, from GNU gettext.
56959         * tests/uniname/test-uninames.sh: New file.
56960         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56961         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56962         * modules/uniname/base: New file.
56963         * modules/uniname/uniname: New file.
56964         * modules/uniname/uniname-tests: New file.
56965         * MODULES.html.sh (Unicode string functions): Add the new modules.
56966
56967 2007-07-06  Bruno Haible  <bruno@clisp.org>
56968
56969         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56970
56971 2007-07-06  Bruno Haible  <bruno@clisp.org>
56972
56973         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56974         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56975         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56976         include <sys/time.h>.
56977         Reported by Eric Blake.
56978
56979 2007-07-06  Eric Blake  <ebb9@byu.net>
56980
56981         Fix testing canonicalize on cygwin.
56982         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56983         Revert patch from 2007-06-19.
56984         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56985         canonicalize module is also in use.
56986         * tests/test-canonicalize.c: New file.
56987         * tests/test-canonicalize.sh: Likewise.
56988         * modules/canonicalize-tests: Likewise.
56989
56990 2007-07-06  Jim Meyering  <jim@meyering.net>
56991
56992         * lib/getugroups.c (getugroups): Detect getgrent failure.
56993         Adjust comment to reflect reality: this function may return -1.
56994
56995 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56996
56997         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56998         the new TP address.
56999         (usage): Fix typo
57000         (gnulib_mk): New variable.
57001
57002 2007-07-05  Jim Meyering  <jim@meyering.net>
57003
57004         Don't let endgrent clobber errno, no matter how improbable.
57005         * lib/getugroups.c (getugroups): Save and restore errno around
57006         endgrent call.
57007
57008         Close the group DB even when failing with 2^31 or more members.
57009         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57010
57011 2007-07-04  Jim Meyering  <jim@meyering.net>
57012
57013         * lib/getugroups.h: New file.
57014         * lib/getugroups.c: Include "getugroups.h".
57015         Remove uses of "register" keyword.
57016         Move local variable, "cp", down into scope where used.
57017         Give "username" parameter the "const" attribute.
57018         * modules/getugroups (Files): Add lib/getugroups.h
57019
57020 2007-07-04  Karl Berry  <karl@gnu.org>
57021
57022         * MODULES.html.sh (func_all_modules): Complete rename of
57023         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57024
57025 2007-07-02  Bruno Haible  <bruno@clisp.org>
57026
57027         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57028         mode, when inttypes.h comes from gnulib.
57029         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57030
57031 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57032
57033         * NEWS: Mention lgpl module name change.
57034
57035         * modules/lgpl-2.1: Renamed from lgpl.
57036
57037         * NEWS: Mention gpl module name change.
57038
57039         * modules/gpl-3.0: New file, based on gpl-2.0.
57040
57041         * modules/gpl-2.0: Renamed from gpl.
57042
57043         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57044         doc/gpl-2.0.texi.
57045
57046 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57047
57048         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57049         #define __STDC_LIMIT_MACROS temporarily while including
57050         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57051         Problem reported by Joel E. Denny in
57052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57053
57054 2007-07-01  Bruno Haible  <bruno@clisp.org>
57055
57056         * lib/unistdio.h: New file.
57057         * lib/unistdio/u-asnprintf.h: New file.
57058         * lib/unistdio/u-asprintf.h: New file.
57059         * lib/unistdio/u-printf-args.c: New file.
57060         * lib/unistdio/u-printf-args.h: New file.
57061         * lib/unistdio/u-printf-parse.h: New file.
57062         * lib/unistdio/u-snprintf.h: New file.
57063         * lib/unistdio/u-sprintf.h: New file.
57064         * lib/unistdio/u-vasprintf.h: New file.
57065         * lib/unistdio/u-vsnprintf.h: New file.
57066         * lib/unistdio/u-vsprintf.h: New file.
57067         * lib/unistdio/ulc-asnprintf.c: New file.
57068         * lib/unistdio/ulc-asprintf.c: New file.
57069         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57070         * lib/unistdio/ulc-printf-parse.c: New file.
57071         * lib/unistdio/ulc-snprintf.c: New file.
57072         * lib/unistdio/ulc-sprintf.c: New file.
57073         * lib/unistdio/ulc-vasnprintf.c: New file.
57074         * lib/unistdio/ulc-vasprintf.c: New file.
57075         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57076         * lib/unistdio/ulc-vsnprintf.c: New file.
57077         * lib/unistdio/ulc-vsprintf.c: New file.
57078         * lib/unistdio/u8-asnprintf.c: New file.
57079         * lib/unistdio/u8-asprintf.c: New file.
57080         * lib/unistdio/u8-printf-parse.c: New file.
57081         * lib/unistdio/u8-snprintf.c: New file.
57082         * lib/unistdio/u8-sprintf.c: New file.
57083         * lib/unistdio/u8-vasnprintf.c: New file.
57084         * lib/unistdio/u8-vasprintf.c: New file.
57085         * lib/unistdio/u8-vsnprintf.c: New file.
57086         * lib/unistdio/u8-vsprintf.c: New file.
57087         * lib/unistdio/u8-u8-asnprintf.c: New file.
57088         * lib/unistdio/u8-u8-asprintf.c: New file.
57089         * lib/unistdio/u8-u8-snprintf.c: New file.
57090         * lib/unistdio/u8-u8-sprintf.c: New file.
57091         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57092         * lib/unistdio/u8-u8-vasprintf.c: New file.
57093         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57094         * lib/unistdio/u8-u8-vsprintf.c: New file.
57095         * lib/unistdio/u16-asnprintf.c: New file.
57096         * lib/unistdio/u16-asprintf.c: New file.
57097         * lib/unistdio/u16-printf-parse.c: New file.
57098         * lib/unistdio/u16-snprintf.c: New file.
57099         * lib/unistdio/u16-sprintf.c: New file.
57100         * lib/unistdio/u16-vasnprintf.c: New file.
57101         * lib/unistdio/u16-vasprintf.c: New file.
57102         * lib/unistdio/u16-vsnprintf.c: New file.
57103         * lib/unistdio/u16-vsprintf.c: New file.
57104         * lib/unistdio/u16-u16-asnprintf.c: New file.
57105         * lib/unistdio/u16-u16-asprintf.c: New file.
57106         * lib/unistdio/u16-u16-snprintf.c: New file.
57107         * lib/unistdio/u16-u16-sprintf.c: New file.
57108         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57109         * lib/unistdio/u16-u16-vasprintf.c: New file.
57110         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57111         * lib/unistdio/u16-u16-vsprintf.c: New file.
57112         * lib/unistdio/u32-asnprintf.c: New file.
57113         * lib/unistdio/u32-asprintf.c: New file.
57114         * lib/unistdio/u32-printf-parse.c: New file.
57115         * lib/unistdio/u32-snprintf.c: New file.
57116         * lib/unistdio/u32-sprintf.c: New file.
57117         * lib/unistdio/u32-vasnprintf.c: New file.
57118         * lib/unistdio/u32-vasprintf.c: New file.
57119         * lib/unistdio/u32-vsnprintf.c: New file.
57120         * lib/unistdio/u32-vsprintf.c: New file.
57121         * lib/unistdio/u32-u32-asnprintf.c: New file.
57122         * lib/unistdio/u32-u32-asprintf.c: New file.
57123         * lib/unistdio/u32-u32-snprintf.c: New file.
57124         * lib/unistdio/u32-u32-sprintf.c: New file.
57125         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57126         * lib/unistdio/u32-u32-vasprintf.c: New file.
57127         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57128         * lib/unistdio/u32-u32-vsprintf.c: New file.
57129         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57130         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57131         * tests/unistdio/test-ulc-printf1.h: New file.
57132         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57133         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57134         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57135         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57136         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57137         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57138         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57139         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57140         * tests/unistdio/test-u8-asnprintf1.c: New file.
57141         * tests/unistdio/test-u8-asnprintf1.h: New file.
57142         * tests/unistdio/test-u8-printf1.h: New file.
57143         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57144         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57145         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57146         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57147         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57148         * tests/unistdio/test-u8-vasprintf1.c: New file.
57149         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57150         * tests/unistdio/test-u8-vsprintf1.c: New file.
57151         * tests/unistdio/test-u16-asnprintf1.c: New file.
57152         * tests/unistdio/test-u16-asnprintf1.h: New file.
57153         * tests/unistdio/test-u16-printf1.h: New file.
57154         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57155         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57156         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57157         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57158         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57159         * tests/unistdio/test-u16-vasprintf1.c: New file.
57160         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57161         * tests/unistdio/test-u16-vsprintf1.c: New file.
57162         * tests/unistdio/test-u32-asnprintf1.c: New file.
57163         * tests/unistdio/test-u32-asnprintf1.h: New file.
57164         * tests/unistdio/test-u32-printf1.h: New file.
57165         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57166         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57167         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57168         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57169         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57170         * tests/unistdio/test-u32-vasprintf1.c: New file.
57171         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57172         * tests/unistdio/test-u32-vsprintf1.c: New file.
57173         * modules/unistdio/base: New file.
57174         * modules/unistdio/u-printf-args: New file.
57175         * modules/unistdio/ulc-asnprintf: New file.
57176         * modules/unistdio/ulc-asprintf: New file.
57177         * modules/unistdio/ulc-fprintf: New file.
57178         * modules/unistdio/ulc-printf-parse: New file.
57179         * modules/unistdio/ulc-snprintf: New file.
57180         * modules/unistdio/ulc-sprintf: New file.
57181         * modules/unistdio/ulc-vasnprintf: New file.
57182         * modules/unistdio/ulc-vasprintf: New file.
57183         * modules/unistdio/ulc-vfprintf: New file.
57184         * modules/unistdio/ulc-vsnprintf: New file.
57185         * modules/unistdio/ulc-vsprintf: New file.
57186         * modules/unistdio/u8-asnprintf: New file.
57187         * modules/unistdio/u8-asprintf: New file.
57188         * modules/unistdio/u8-printf-parse: New file.
57189         * modules/unistdio/u8-snprintf: New file.
57190         * modules/unistdio/u8-sprintf: New file.
57191         * modules/unistdio/u8-vasnprintf: New file.
57192         * modules/unistdio/u8-vasprintf: New file.
57193         * modules/unistdio/u8-vsnprintf: New file.
57194         * modules/unistdio/u8-vsprintf: New file.
57195         * modules/unistdio/u8-u8-asnprintf: New file.
57196         * modules/unistdio/u8-u8-asprintf: New file.
57197         * modules/unistdio/u8-u8-snprintf: New file.
57198         * modules/unistdio/u8-u8-sprintf: New file.
57199         * modules/unistdio/u8-u8-vasnprintf: New file.
57200         * modules/unistdio/u8-u8-vasprintf: New file.
57201         * modules/unistdio/u8-u8-vsnprintf: New file.
57202         * modules/unistdio/u8-u8-vsprintf: New file.
57203         * modules/unistdio/u16-asnprintf: New file.
57204         * modules/unistdio/u16-asprintf: New file.
57205         * modules/unistdio/u16-printf-parse: New file.
57206         * modules/unistdio/u16-snprintf: New file.
57207         * modules/unistdio/u16-sprintf: New file.
57208         * modules/unistdio/u16-vasnprintf: New file.
57209         * modules/unistdio/u16-vasprintf: New file.
57210         * modules/unistdio/u16-vsnprintf: New file.
57211         * modules/unistdio/u16-vsprintf: New file.
57212         * modules/unistdio/u16-u16-asnprintf: New file.
57213         * modules/unistdio/u16-u16-asprintf: New file.
57214         * modules/unistdio/u16-u16-snprintf: New file.
57215         * modules/unistdio/u16-u16-sprintf: New file.
57216         * modules/unistdio/u16-u16-vasnprintf: New file.
57217         * modules/unistdio/u16-u16-vasprintf: New file.
57218         * modules/unistdio/u16-u16-vsnprintf: New file.
57219         * modules/unistdio/u16-u16-vsprintf: New file.
57220         * modules/unistdio/u32-asnprintf: New file.
57221         * modules/unistdio/u32-asprintf: New file.
57222         * modules/unistdio/u32-printf-parse: New file.
57223         * modules/unistdio/u32-snprintf: New file.
57224         * modules/unistdio/u32-sprintf: New file.
57225         * modules/unistdio/u32-vasnprintf: New file.
57226         * modules/unistdio/u32-vasprintf: New file.
57227         * modules/unistdio/u32-vsnprintf: New file.
57228         * modules/unistdio/u32-vsprintf: New file.
57229         * modules/unistdio/u32-u32-asnprintf: New file.
57230         * modules/unistdio/u32-u32-asprintf: New file.
57231         * modules/unistdio/u32-u32-snprintf: New file.
57232         * modules/unistdio/u32-u32-sprintf: New file.
57233         * modules/unistdio/u32-u32-vasnprintf: New file.
57234         * modules/unistdio/u32-u32-vasprintf: New file.
57235         * modules/unistdio/u32-u32-vsnprintf: New file.
57236         * modules/unistdio/u32-u32-vsprintf: New file.
57237         * modules/unistdio/ulc-asnprintf-tests: New file.
57238         * modules/unistdio/ulc-vasnprintf-tests: New file.
57239         * modules/unistdio/ulc-vasprintf-tests: New file.
57240         * modules/unistdio/ulc-vsnprintf-tests: New file.
57241         * modules/unistdio/ulc-vsprintf-tests: New file.
57242         * modules/unistdio/u8-asnprintf-tests: New file.
57243         * modules/unistdio/u8-vasnprintf-tests: New file.
57244         * modules/unistdio/u8-vasprintf-tests: New file.
57245         * modules/unistdio/u8-vsnprintf-tests: New file.
57246         * modules/unistdio/u8-vsprintf-tests: New file.
57247         * modules/unistdio/u16-asnprintf-tests: New file.
57248         * modules/unistdio/u16-vasnprintf-tests: New file.
57249         * modules/unistdio/u16-vasprintf-tests: New file.
57250         * modules/unistdio/u16-vsnprintf-tests: New file.
57251         * modules/unistdio/u16-vsprintf-tests: New file.
57252         * modules/unistdio/u32-asnprintf-tests: New file.
57253         * modules/unistdio/u32-vasnprintf-tests: New file.
57254         * modules/unistdio/u32-vasprintf-tests: New file.
57255         * modules/unistdio/u32-vsnprintf-tests: New file.
57256         * modules/unistdio/u32-vsprintf-tests: New file.
57257         * MODULES.html.sh (Unicode string functions): Add the new modules.
57258
57259 2007-07-01  Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/sprintf.c (sprintf): Limit the available length estimation,
57262         to avoid address wraparound.
57263         * lib/vsprintf.c (vsprintf): Likewise.
57264         * modules/sprintf-posix (Dependencies): Add stdint.
57265         * modules/vsprintf-posix (Dependencies): Likewise.
57266
57267 2007-07-01  Bruno Haible  <bruno@clisp.org>
57268
57269         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57270         Windows PATH as well. Conservative double-quoting. Comments.
57271
57272 2007-07-01  Bruno Haible  <bruno@clisp.org>
57273             Eric Blake  <ebb9@byu.net>
57274             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57275
57276         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57277         empty components in $PATH, denoting '.'.
57278
57279 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57280
57281         * gnulib-tool: Fix indentation.
57282         (func_create_megatestdir): Likewise.
57283         Report by Bruno Haible.
57284
57285 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57286
57287         Sync from Automake.
57288         * build-aux/gnupload: Fix shell portability issues with for loops.
57289         Report by Karl Berry.
57290
57291 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57292
57293         * build-aux/maint.mk (POURL): Use translationproject.org.
57294
57295 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57296             Bruno Haible  <bruno@clisp.org>
57297
57298         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57299         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57300         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57301         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57302         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57303
57304 2007-06-27  Bruno Haible  <bruno@clisp.org>
57305
57306         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57307         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57308
57309 2007-06-26  Karl Berry  <karl@gnu.org>
57310
57311         * MODULES.html.sh: remove xreadlink-with-size.
57312
57313 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57314
57315         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57316         method that I hope also handles the double-include problem noted
57317         by Bruno Haible in
57318         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57319
57320 2007-06-23  Bruno Haible  <bruno@clisp.org>
57321
57322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57323         Don't let the 'mostlyclean' target fail if the last subdirectory could
57324         not be removed.
57325         Reported by Karl Berry.
57326
57327 2007-06-23  Bruno Haible  <bruno@clisp.org>
57328
57329         * gnulib-tool (echo): Add a speedier workaround for ksh.
57330         * tests/test-echo.sh: Likewise.
57331
57332 2007-06-23  Bruno Haible  <bruno@clisp.org>
57333
57334         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57335         * tests/test-echo.sh: Likewise.
57336
57337 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57338
57339         * gnulib-tool (IFS): Initialize early, so we don't set it to
57340         empty later.
57341         (self_abspathname): Rewrite algorithm to set it, reindent.
57342         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57343         (func_create_megatestdir): Merge some sed scripts.
57344
57345 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57348         exposed by Sun Studio 11 cc on Solaris 8.
57349
57350 2007-06-22  Bruno Haible  <bruno@clisp.org>
57351
57352         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57353         backslashes.
57354         * tests/test-echo.sh: New file.
57355
57356 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57357
57358         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57359         simplify `sed_replace_build_aux' scripts, they are portable but
57360         echoing them with `echo' is not.
57361         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57362
57363 2007-06-21  Karl Berry  <karl@gnu.org>
57364
57365         * config/srclist.txt: guess we can't handle the licenses via
57366         srclist at the moment.
57367
57368 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57369
57370         * MODULES.html.sh: Add include_next.
57371         * modules/include_next: New file.
57372
57373 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57376         INCLUDE_NEXT.
57377         (gl_CHECK_NEXT_HEADERS): New macro.
57378         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57379         the obsolescent gl_ABSOLUTE_HEADER.
57380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57381         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57382         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57383         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57384         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57385         * m4/math_h.m4 (gl_MATH_H): Likewise.
57386         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57387         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57388         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57389         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57390         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57391         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57392         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57396         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57397         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57398         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57400         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57401         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57402         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57403         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57404         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57405         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57406         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57407         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57408         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57409         * lib/float_.h: Likewise.
57410         * lib/inttypes_.h: Likewise.
57411         * lib/math_.h: Likewise.
57412         * lib/search_.h: Likewise.
57413         * lib/signal_.h: Likewise.
57414         * lib/stdint_.h: Likewise.
57415         * lib/stdio_.h: Likewise.
57416         * lib/stdlib_.h: Likewise.
57417         * lib/string_.h: Likewise.
57418         * lib/sys_stat_.h: Likewise.
57419         * lib/sys_time_.h: Likewise.
57420         * lib/time_.h: Likewise.
57421         * lib/unistd_.h: Likewise.
57422         * lib/wchar_.h: Likewise.
57423         * lib/wctype_.h: Likewise.
57424         * lib/dirent_.h: Likewise.
57425         * lib/iconv_.h: Likewise.
57426         * lib/locale_.h: Likewise.
57427         * lib/netinet_in_.h: Likewise.
57428         * lib/sys_select_.h: Likewise.
57429         * lib/sys_socket_.h: Likewise.
57430         * lib/sysexits_.h: Likewise.
57431         * modules/fcntl (Depends-on): Depend on include_next, not
57432         absolute_header.
57433         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57434         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57435         * modules/fchdir: Likewise.
57436         * modules/float: Likewise.
57437         * modules/iconv_open: Likewise.
57438         * modules/inttypes: Likewise.
57439         * modules/locale: Likewise.
57440         * modules/math: Likewise.
57441         * modules/netinet_in: Likewise.
57442         * modules/search: Likewise.
57443         * modules/signal: Likewise.
57444         * modules/stdint: Likewise.
57445         * modules/stdio: Likewise.
57446         * modules/stdlib: Likewise.
57447         * modules/string: Likewise.
57448         * modules/sys_select: Likewise.
57449         * modules/sys_socket: Likewise.
57450         * modules/sys_stat: Likewise.
57451         * modules/sys_time: Likewise.
57452         * modules/sysexits: Likewise.
57453         * modules/time: Likewise.
57454         * modules/unistd: Likewise.
57455         * modules/wchar: Likewise.
57456         * modules/wctype: Likewise.
57457         * modules/sys_stat: Change maintainer to "all".
57458         * modules/unistd: Likewise.
57459
57460 2007-06-20  Karl Berry  <karl@gnu.org>
57461
57462         * config/srclist.txt: track www changes in license files.
57463
57464 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57465
57466         * build-aux/bootstrap: Remove stray dot.
57467         Make sure build_aux settings are honored when linking
57468         gnulib_extra_files.
57469
57470 2007-06-19  Eric Blake  <ebb9@byu.net>
57471
57472         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57473         Allow compilation on cygwin.
57474
57475 2007-06-19  Jim Meyering  <jim@meyering.net>
57476
57477         xreadlink-with-size: Remove module.  No longer used.
57478         Ex-callers now use xreadlink or mreadlink-with-size.
57479         * modules/xreadlink-with-size: Remove module.
57480         * lib/xreadlink-with-size.c: Remove file.
57481         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57482         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57483         just before the function definition *is* accurate.
57484
57485         Eliminate one way canonicalize_filename_mode could exit.
57486         * lib/canonicalize.c (canonicalize_filename_mode):
57487         Use mreadlink_with_size, not xreadlink_with_size.
57488
57489 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57490
57491         Detect porting problems to FreeBSD/arm, which has time_t wider than
57492         long int.  Original problem reported for GNU diff by Xin Li in
57493         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57494         * modules/getdate (Depends-on): Add intprops, verify.
57495         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57496         is an integer type no wider than long int.
57497
57498 2007-06-18  Jim Meyering  <jim@meyering.net>
57499
57500         New module: mreadlink-with-size.
57501         * MODULES.html.sh: Add mreadlink-with-size.
57502         * modules/mreadlink-with-size: New module
57503         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57504         not xreadlink-with-size.
57505         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57506
57507 2007-06-16  Bruno Haible  <bruno@clisp.org>
57508
57509         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57510         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57511         Reported by Gary V. Vaughan <gary@gnu.org>.
57512
57513 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57514
57515         Revamp lchown so that it lives in unistd.h where it belongs.
57516         * lib/lchown.h: Remove.
57517         * lib/dirchownmod.c: Don't include lib/lchown.h.
57518         * lib/fchownat.c: Likewise.
57519         * lib/openat.c: Likewise.
57520         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57521         does not follow symlinks.
57522         (EOPNOTSUPP): Define if not defined.
57523         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57524         is defined to 0.
57525         (lchown): New decl.
57526         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57527         Do not check for lchown decl.
57528         Set REPLACE_LCHOWN.
57529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57530         REPLACE_LCHOWN.
57531         * modules/chown: Make it clear it follows symlinks.
57532         * modules/lchown: Make it clear it doesn't follow symlinks.
57533         (Files): Remove lib/lchown.h
57534         (Depends-on): Add unistd.
57535         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57536         (Include): Include <unistd.h>, not "lchown.h".
57537         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57538         REPLACE_LCHOWN.
57539
57540 2007-06-15  Jim Meyering  <jim@meyering.net>
57541
57542         Change license (GPL to LGPL) of fsusage and dependents.
57543         * modules/fsusage (License): Change to LGPL.
57544         * modules/full-read (License): Likewise.
57545         * modules/full-write (License): Likewise.
57546         * modules/safe-read (License): Likewise.
57547         * modules/safe-write (License): Likewise.
57548
57549 2007-06-14  Ben Pfaff  <blp@gnu.org>
57550
57551         Missing part of allocsa -> malloca transition.
57552         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57553         gl_MALLOCA.
57554
57555 2007-06-12  Bruno Haible  <bruno@clisp.org>
57556
57557         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57558         to ia64, x86_64, i386.
57559         Reported by Eric Blake.
57560
57561 2007-06-12  Bruno Haible  <bruno@clisp.org>
57562
57563         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57564         cross-compiling to x86_64.
57565
57566 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57567
57568         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57569         glitch reported by Ralf Wildenhues in
57570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57571
57572         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57573         Vin Shelton.
57574
57575 2007-06-11  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57578         replacement string.
57579         Reported by Eric Blake.
57580
57581 2007-06-10  Bruno Haible  <bruno@clisp.org>
57582
57583         Prepare vasnprintf code for use with Unicode strings.
57584         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57585         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57586         TYPE_U32_STRING.
57587         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57588         a_u32_string variants.
57589         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57590         * lib/printf-args.c: Don't include config.h and the specification
57591         header if PRINTF_FETCHARGS is already defined.
57592         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57593         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57594         TYPE_U16_STRING, TYPE_U32_STRING.
57595         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57596         u16_directive, u16_directives, u32_directive, u32_directives): New
57597         types.
57598         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57599         New declarations.
57600         * lib/printf-parse.c: Don't include config.h and the specification
57601         header if PRINTF_PARSE is already defined. Eliminate the set of
57602         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57603         them now. Include c-ctype.h.
57604         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57605         directive and CHAR_T_ONLY_ASCII.
57606         * lib/vasnprintf.c: Don't include config.h and the specification header
57607         if VASNPRINTF is already defined.
57608         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57609         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57610         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57611         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57612         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57613         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57614         code accordingly.
57615         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57616         pad_ourselves also in this case, with the 'c' and 's' directives, and
57617         with a different notion of "width".
57618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57619
57620 2007-06-10  Bruno Haible  <bruno@clisp.org>
57621
57622         * modules/unistr/u32-mbsnlen: New file.
57623         * lib/unistr/u32-mbsnlen.c: New file.
57624
57625         * modules/unistr/u16-mbsnlen: New file.
57626         * lib/unistr/u16-mbsnlen.c: New file.
57627
57628         * modules/unistr/u8-mbsnlen: New file.
57629         * lib/unistr/u8-mbsnlen.c: New file.
57630
57631         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57632         declarations.
57633
57634 2007-06-10  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/string_.h (mbsnlen): New declaration.
57637         * lib/mbsnlen.c: New file.
57638         * m4/mbsnlen.m4: New file.
57639         * modules/mbsnlen: New file.
57640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57641         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57642         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57643
57644 2007-06-10  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57647
57648 2007-06-10  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57651         * lib/mbuiter.h: Likewise.
57652
57653 2007-06-10  Bruno Haible  <bruno@clisp.org>
57654
57655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57656         declaration.
57657
57658 2007-06-10  Karl Berry  <karl@gnu.org>
57659
57660         * config/srclist.txt: remove gettext entries, Bruno prefers
57661         to update individually.
57662
57663 2007-06-10  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57666         'maxlen'. Ensure only length + width bytes are allocated, not
57667         length + 1 + width.
57668
57669 2007-06-09  Bruno Haible  <bruno@clisp.org>
57670
57671         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57672         (CHAR_T): Remove macro.
57673         (VASNPRINTF): Update.
57674
57675 2007-06-09  Bruno Haible  <bruno@clisp.org>
57676
57677         * MODULES.html.sh (Unicode string functions): Add the new modules.
57678
57679         * modules/uniconv/u32-conv-to-enc: New file.
57680         * lib/uniconv/u32-conv-to-enc.c: New file.
57681         * modules/uniconv/u32-conv-to-enc-tests: New file.
57682         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57683
57684         * modules/uniconv/u16-conv-to-enc: New file.
57685         * lib/uniconv/u16-conv-to-enc.c: New file.
57686         * lib/uniconv/u-conv-to-enc.h: New file.
57687         * modules/uniconv/u16-conv-to-enc-tests: New file.
57688         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57689
57690         * modules/uniconv/u8-conv-to-enc: New file.
57691         * lib/uniconv/u8-conv-to-enc.c: New file.
57692         * modules/uniconv/u8-conv-to-enc-tests: New file.
57693         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57694
57695         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57696         u32_conv_to_encoding): New declarations.
57697
57698 2007-06-09  Bruno Haible  <bruno@clisp.org>
57699
57700         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57701
57702 2007-06-09  Bruno Haible  <bruno@clisp.org>
57703
57704         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57705         * modules/malloca: Renamed from modules/allocsa, updated.
57706         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57707         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57708         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57709         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57710         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57711         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57712         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57713         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57714         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57715         * modules/c-strcasestr (Depends-on): Update.
57716         * lib/c-strcasestr.c: Update.
57717         * modules/c-strstr (Depends-on): Update.
57718         * lib/c-strstr.c: Update.
57719         * modules/canonicalize-lgpl (Depends-on): Update.
57720         * lib/canonicalize-lgpl.c: Update.
57721         * modules/clean-temp (Depends-on): Update.
57722         * lib/clean-temp.c: Update.
57723         * modules/csharpcomp (Depends-on): Update.
57724         * lib/csharpcomp.c: Update.
57725         * modules/csharpexec (Depends-on): Update.
57726         * lib/csharpexec.c: Update.
57727         * modules/javacomp (Depends-on): Update.
57728         * lib/javacomp.c: Update.
57729         * modules/javaexec (Depends-on): Update.
57730         * lib/javaexec.c: Update.
57731         * modules/mbscasestr (Depends-on): Update.
57732         * lib/mbscasestr.c: Update.
57733         * modules/mbsstr (Depends-on): Update.
57734         * lib/mbsstr.c: Update.
57735         * modules/setenv (Depends-on): Update.
57736         * lib/setenv.c: Update.
57737         * modules/strcasestr (Depends-on): Update.
57738         * lib/strcasestr.c: Update.
57739         * modules/striconveha (Depends-on): Update.
57740         * lib/striconveha.c: Update.
57741         * modules/relocatable-prog-wrapper (Files): Update.
57742         * lib/relocwrapper.c: Update.
57743         * build-aux/install-reloc: Update.
57744         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57745
57746 2007-06-08  Bruno Haible  <bruno@clisp.org>
57747
57748         Port to uClibc.
57749         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57750         * lib/fpurge.c (fpurge): Likewise.
57751         * lib/freading.c (freading): Likewise.
57752         * lib/fseeko.c (rpl_fseeko): Likewise.
57753         * lib/fseterr.c (fseterr): Likewise.
57754         * lib/fwriting.c (fwriting): Likewise.
57755         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57756
57757 2007-06-08  Bruno Haible  <bruno@clisp.org>
57758
57759         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57760         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57761         * modules/gettext (Files): Add m4/intlmacosx.m4.
57762
57763 2007-06-07  Bruno Haible  <bruno@clisp.org>
57764
57765         * modules/localename-tests: New file.
57766         * tests/test-localename.c: New file.
57767
57768         New module 'localename'.
57769         * lib/localename.h: New file.
57770         * lib/localename.c: New file, from GNU gettext.
57771         * m4/localename.m4: New file.
57772         * modules/localename: New file.
57773
57774 2007-06-07  Bruno Haible  <bruno@clisp.org>
57775
57776         Work around the lack of <wchar.h> on some builds of uClibc.
57777         * doc/headers/wchar.texi: Update.
57778         * lib/wchar_.h: Include <wchar.h> only if it exists.
57779         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57780         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57781         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57782         doesn't exist.
57783         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57784         * modules/mbfile (Depends-on): Add wchar.
57785         * modules/mbiter (Depends-on): Likewise.
57786         * modules/mbuiter (Depends-on): Likewise.
57787         Reported by Simon Josefsson.
57788
57789 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57790
57791         Work around problem reported by Steven M. Schweda in
57792         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57793         Tru64 5.1B with the Compaq compiler environment installed declares
57794         an 'isblank' function but does not define it in the C library.
57795         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57796         * lib/regex_internal.h (isblank): Likewise.
57797         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57798         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57799
57800 2007-06-05  Bruno Haible  <bruno@clisp.org>
57801
57802         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57803         ia64.
57804         * modules/printf-safe: New file.
57805         * modules/fprintf-posix (Depends-on): Add printf-safe.
57806         * modules/printf-posix (Depends-on): Likewise.
57807         * modules/snprintf-posix (Depends-on): Likewise.
57808         * modules/sprintf-posix (Depends-on): Likewise.
57809         * modules/vasnprintf-posix (Depends-on): Likewise.
57810         * modules/vasprintf-posix (Depends-on): Likewise.
57811         * modules/vfprintf-posix (Depends-on): Likewise.
57812         * modules/vprintf-posix (Depends-on): Likewise.
57813         * modules/vsnprintf-posix (Depends-on): Likewise.
57814         * modules/vsprintf-posix (Depends-on): Likewise.
57815         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57816         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57817         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57818         "no" on i386, x86_64, ia64.
57819         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57820         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57821         on i386, x86_64, ia64.
57822         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57823         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57824         on i386, x86_64, ia64.
57825         * tests/test-vasnprintf-posix.c: Include float.h.
57826         (LDBL80_WORDS): New macro.
57827         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57828         on i386, x86_64, ia64.
57829         * tests/test-vasprintf-posix.c: Include float.h.
57830         (LDBL80_WORDS): New macro.
57831         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57832         on i386, x86_64, ia64.
57833         * tests/test-snprintf-posix.c: Include float.h.
57834         * tests/test-sprintf-posix.c: Likewise.
57835         * tests/test-vsnprintf-posix.c: Likewise.
57836         * tests/test-vsprintf-posix.c: Likewise.
57837
57838 2007-06-05  Bruno Haible  <bruno@clisp.org>
57839
57840         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57841         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57842         non-IEEE numbers on i386, x86_64, ia64.
57843         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57844         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57845         * tests/test-isnanl.h: Include float.h.
57846         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57847
57848 2007-06-05  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57851         also the %a / %A. Handle the %a / %A code before this extra handling.
57852
57853 2007-06-05  Bruno Haible  <bruno@clisp.org>
57854
57855         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57856         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57857
57858 2007-06-05  Bruno Haible  <bruno@clisp.org>
57859
57860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57861         typo in variable name.
57862
57863 2007-06-05  Eric Blake  <ebb9@byu.net>
57864
57865         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57866         Reported by Simon Josefsson.
57867
57868 2007-06-04  Bruno Haible  <bruno@clisp.org>
57869
57870         Avoid test failures on some PowerPC platforms.
57871         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57872         Define differently for PowerPC.
57873         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57874         Reported by Gary V. Vaughan <gary@gnu.org>.
57875
57876 2007-06-02  Bruno Haible  <bruno@clisp.org>
57877
57878         Fix test-stdint failure on FreeBSD/ia64.
57879         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57880         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57881         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57882         * doc/headers/stdint.texi: Update.
57883
57884 2007-06-01  Bruno Haible  <bruno@clisp.org>
57885
57886         * tests/test-binary-io.c (main): Pass a third argument to open().
57887         Reported by Gary V. Vaughan <gary@gnu.org>.
57888
57889 2007-06-01  Bruno Haible  <bruno@clisp.org>
57890
57891         * doc/functions/frexpl.texi: Update for mingw.
57892
57893 2007-06-01  Bruno Haible  <bruno@clisp.org>
57894
57895         * tests/test-lseek.c (main): Disable test of errno for invalid third
57896         argument.
57897         * doc/functions/lseek.texi: Update.
57898         Reported by Gary V. Vaughan <gary@gnu.org>.
57899
57900 2007-05-28  Bruno Haible  <bruno@clisp.org>
57901
57902         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57903
57904 2007-05-31  Eric Blake  <ebb9@byu.net>
57905
57906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57907         cross compiling.
57908
57909 2007-05-30  Eric Blake  <ebb9@byu.net>
57910         and Bruno Haible  <bruno@clisp.org>
57911
57912         Work around mingw test failures exposed by m4-1.4.9b.
57913         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57914         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57915         moment.
57916
57917 2007-05-30  Bruno Haible  <bruno@clisp.org>
57918
57919         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57920         assuming that they are closed. Needed on HP-UX 11.
57921
57922 2007-05-29  Bruno Haible  <bruno@clisp.org>
57923
57924         Fix a problem with #include_next.
57925         * lib/dirent_.h: Split the double-inclusion guard.
57926         * lib/fcntl_.h: Likewise.
57927         * lib/float_.h: Likewise.
57928         * lib/iconv_.h: Likewise.
57929         * lib/inttypes_.h: Likewise.
57930         * lib/locale_.h: Likewise.
57931         * lib/math_.h: Likewise.
57932         * lib/netinet_in_.h: Likewise.
57933         * lib/search_.h: Likewise.
57934         * lib/signal_.h: Likewise.
57935         * lib/stdint_.h: Likewise.
57936         * lib/stdio_.h: Likewise.
57937         * lib/stdlib_.h: Likewise.
57938         * lib/string_.h: Likewise.
57939         * lib/sys_select_.h: Likewise.
57940         * lib/sys_socket_.h: Likewise.
57941         * lib/sys_stat_.h: Likewise.
57942         * lib/sys_time_.h: Likewise.
57943         * lib/sysexits_.h: Likewise.
57944         * lib/time_.h: Likewise.
57945         * lib/unistd_.h: Likewise.
57946         * lib/wchar_.h: Likewise.
57947         * lib/wctype_.h: Likewise.
57948
57949 2007-05-29  Bruno Haible  <bruno@clisp.org>
57950
57951         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57952         for the moment.
57953
57954 2007-05-29  Bruno Haible  <bruno@clisp.org>
57955
57956         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57957         invocation.
57958         Reported by Eric Blake.
57959
57960 2007-05-29  Bruno Haible  <bruno@clisp.org>
57961
57962         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57963         compiling case.
57964
57965 2007-05-29  Eric Blake  <ebb9@byu.net>
57966             Bruno Haible  <bruno@clisp.org>
57967
57968         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57969         cross compiles.
57970
57971 2007-05-28  Eric Blake  <ebb9@byu.net>
57972
57973         * modules/closein-tests (test_closein_LDADD): Support test on
57974         cygwin with libtool.
57975
57976 2007-05-28  Bruno Haible  <bruno@clisp.org>
57977
57978         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57979         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57980         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57981         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57982         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57983         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57984         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57985         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57986         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57987
57988 2007-05-28  Eric Blake  <ebb9@byu.net>
57989
57990         Unconditionally include <config.h> in unit tests.
57991         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57992         * tests/test-allocsa.c, tests/test-arcfour.c,
57993         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57994         tests/test-array_list.c, tests/test-array_oset.c,
57995         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57996         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57997         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57998         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57999         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58000         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58001         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58002         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58003         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58004         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58005         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58006         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58007         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58008         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58009         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58010         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58011         test-md5.c, test-memmem.c, test-printf-posix.c,
58012         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58013         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58014         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58015         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58016         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58017         test-vasnprintf-posix2.c, test-vasnprintf.c,
58018         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58019         test-vfprintf-posix.c, test-vprintf-posix.c,
58020         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58021         test-xvasprintf.c: Likewise.
58022
58023 2007-05-28  Bruno Haible  <bruno@clisp.org>
58024
58025         * gnulib-tool (func_import): Remember the --with-tests command-line
58026         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58027         Reported by Eric Blake.
58028
58029 2007-05-28  Bruno Haible  <bruno@clisp.org>
58030
58031         * modules/ftell-tests: New file.
58032         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58033         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58034
58035         * lib/ftell.c: New file.
58036         * modules/ftell: New file.
58037         * m4/ftell.m4: New file.
58038         * doc/functions/ftell.texi: Update.
58039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58040         REPLACE_FTELL.
58041         * lib/stdio_.h (rpl_ftell): New declaration.
58042         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58043         REPLACE_FTELL.
58044
58045 2007-05-28  Eric Blake  <ebb9@byu.net>
58046
58047         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58048
58049 2007-05-28  Bruno Haible  <bruno@clisp.org>
58050
58051         * modules/fseek-tests: New file.
58052         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58053         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58054
58055         * lib/fseek.c: New file.
58056         * modules/fseek: New file.
58057         * m4/fseek.m4: New file.
58058         * doc/functions/fseek.texi: Update.
58059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58060         REPLACE_FSEEK.
58061         * lib/stdio_.h (rpl_fseek): New declaration.
58062         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58063         REPLACE_FSEEK.
58064
58065 2007-05-28  Bruno Haible  <bruno@clisp.org>
58066
58067         * lib/stdio_.h (fflush): More comments.
58068
58069 2007-05-28  Bruno Haible  <bruno@clisp.org>
58070
58071         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58072         runtime test.
58073
58074 2007-05-28  Eric Blake  <ebb9@byu.net>
58075
58076         Improve lseek module.
58077         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58078         * lib/unistd_.h (lseek): Scale back link warning message.
58079         * tests/test-lseek.c: Beef up test.
58080         * tests/test-lseek.sh: Exercise more facets of lseek.
58081         Reported by Bruno Haible.
58082
58083 2007-05-28  Bruno Haible  <bruno@clisp.org>
58084
58085         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58086         to define.
58087
58088 2007-05-27  Bruno Haible  <bruno@clisp.org>
58089
58090         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58091
58092 2007-05-27  Bruno Haible  <bruno@clisp.org>
58093
58094         * modules/openmp: New file.
58095         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58096         Noah Misch.
58097
58098 2007-05-26  Bruno Haible  <bruno@clisp.org>
58099
58100         * modules/chdir-long (Depends-on): Add fchdir.
58101         * modules/chdir-safer (Depends-on): Likewise.
58102         * modules/fts (Depends-on): Likewise.
58103         * modules/fts-lgpl (Depends-on): Likewise.
58104         * modules/openat (Depends-on): Likewise.
58105         * modules/savewd (Depends-on): Likewise.
58106
58107 2007-05-24  Eric Blake  <ebb9@byu.net>
58108
58109         Fix lseek on mingw.
58110         * modules/lseek: New module.
58111         * m4/lseek.m4: New file.
58112         * lib/lseek.c: New file.
58113         * modules/lseek-tests: New file.
58114         * tests/test-lseek.c: New file.
58115         * tests/test-lseek.sh: New file.
58116         * MODULES.html.sh: Document lseek module.
58117         * modules/fflush (Depends-on): Add lseek, fseeko.
58118         * modules/fseeko (Depends-on): Likewise.
58119         * modules/ftello (Depends-on): Likewise.
58120         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58121         broken.
58122         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58123         broken.
58124         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58125         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58126         * lib/ftello.c (rpl_ftello): Likewise.
58127         * tests/test-fseeko.c (main): Test this.
58128         * tests/test-fseeko.sh: Likewise.
58129         * tests/test-ftello.c (main): Likewise.
58130         * tests/test-ftello.sh: Likewise.
58131         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58132         implies replacing fseek.
58133         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58134         HAVE_FTELLO.
58135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58136         * modules/unistd (Makefile.am): Likewise.
58137         * lib/unistd_.h (lseek): Declare a replacement.
58138         * doc/functions/lseek.texi (lseek): Document this fix.
58139         * doc/functions/fseek.texi (fseek): Likewise.
58140         * doc/functions/ftell.texi (ftell): Likewise.
58141
58142 2007-05-24  Bruno Haible  <bruno@clisp.org>
58143
58144         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58145         in the printed representation of a NaN.
58146         * tests/test-vasprintf-posix.c (test_function): Likewise.
58147         * tests/test-snprintf-posix.h (test_function): Likewise.
58148         * tests/test-sprintf-posix.h (test_function): Likewise.
58149         Reported by Eric Blake.
58150
58151 2007-05-23  Eric Blake  <ebb9@byu.net>
58152
58153         Fix fseeko/ftello on cygwin 1.5.24.
58154         * doc/functions/fseeko.texi (fseeko): Document the fix.
58155         * doc/functions/ftello.texi (ftello): Document the fix.
58156         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58157         * doc/functions/stdout.text (stdout): New file.
58158         * doc/functions/stderr.text (stderr): New file.
58159         * doc/gnulib.texi (Function Substitutes): Use new files.
58160         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58161         prior to 1.7.0.
58162         * tests/test-ftello.c (main): Likewise for ftello.
58163         * tests/test-fseeko.sh: New file.
58164         * tests/test-ftello.sh: New file.
58165         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58166         with seekable stdin.
58167         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58168         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58169         (gl_REPLACE_FSEEKO): New macro.
58170         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58171         * modules/fseeko (Files): Distribute fseeko.c.
58172         * modules/ftello (Files): Distribute ftello.c.
58173         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58174         mode.
58175         * lib/ftello.c (rpl_ftello): New file.
58176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58177         fseeko, ftello.
58178         (gl_STDIN_LARGE_OFFSET): New macro.
58179         * modules/stdio (Makefile.am): Perform the replacement.
58180         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58181
58182 2007-05-23  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58185         GNULIB_POSIXCHECK is defined.
58186
58187 2007-05-21  Bruno Haible  <bruno@clisp.org>
58188
58189         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58190         Check also the output for NaN arguments. When cross-compiling, guess
58191         no on IRIX.
58192         * lib/vasnprintf.c: Update comments.
58193         * tests/test-vasnprintf-posix.c (strisnan): New function.
58194         (test_function): Use it.
58195         * tests/test-vasprintf-posix.c (strisnan): New function.
58196         (test_function): Use it.
58197         * tests/test-snprintf-posix.h (strisnan): New function.
58198         (test_function): Use it.
58199         * tests/test-sprintf-posix.h (strisnan): New function.
58200         (test_function): Use it.
58201         Reported by Eric Blake.
58202
58203 2007-05-20  Bruno Haible  <bruno@clisp.org>
58204
58205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58206         numbers that fails on BeOS.
58207         * doc/functions/frexpl.texi: Update.
58208
58209 2007-05-20  Jim Meyering  <jim@meyering.net>
58210
58211         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58212         forced upon us by glibc-2.6.
58213
58214 2007-05-20  Bruno Haible  <bruno@clisp.org>
58215
58216         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58217         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58218         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58219         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58220         NEED_PRINTF_INFINITE.
58221         (is_infinitel): New function.
58222         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58224         gl_PREREQ_VASNPRINTF_INFINITE.
58225         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58226         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58227         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58228         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58229         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58230         gl_PREREQ_VASNPRINTF_INFINITE.
58231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58238         * doc/functions/fprintf.texi: Update.
58239         * doc/functions/printf.texi: Update.
58240         * doc/functions/snprintf.texi: Update.
58241         * doc/functions/sprintf.texi: Update.
58242         * doc/functions/vfprintf.texi: Update.
58243         * doc/functions/vprintf.texi: Update.
58244         * doc/functions/vsnprintf.texi: Update.
58245         * doc/functions/vsprintf.texi: Update.
58246
58247 2007-05-20  Bruno Haible  <bruno@clisp.org>
58248
58249         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58250         was not found in libc.
58251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58252
58253 2007-05-20  Bruno Haible  <bruno@clisp.org>
58254
58255         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58256         printed as "-nan" instead of "nan".
58257         * tests/test-vasprintf-posix.c (test_function): Likewise.
58258         * tests/test-snprintf-posix.h (test_function): Likewise.
58259         * tests/test-sprintf-posix.h (test_function): Likewise.
58260         Needed for HP-UX 11.
58261
58262 2007-05-20  Jim Meyering  <jim@meyering.net>
58263
58264         Fix buggy test for the fchownat-deref bug.
58265         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58266         symlink required for the run-test.  Without it, this test would
58267         always declare that fchownat doesn't work, and client code would
58268         unnecessarily use the replacement function with fixed libc.
58269         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58270         Reported by Greg Schafer.
58271
58272 2007-05-19  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58275         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58276         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58277         Needed for IRIX 6.5 and Solaris 2.5.1.
58278
58279 2007-05-19  Bruno Haible  <bruno@clisp.org>
58280
58281         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58282         (test_function): Skip tests involving -0.0 on platforms where
58283         -0.0 = 0.0.
58284         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58285         (test_function): Skip tests involving -0.0 on platforms where
58286         -0.0 = 0.0.
58287         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58288         (test_function): Skip tests involving -0.0 on platforms where
58289         -0.0 = 0.0.
58290         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58291         (test_function): Skip tests involving -0.0 on platforms where
58292         -0.0 = 0.0.
58293         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58294         tests.
58295         * tests/test-printf-posix.h (test_function): Likewise.
58296         * tests/test-printf-posix.output: Remove all -0.0 related results.
58297         Needed for IRIX 6.5.
58298
58299 2007-05-19  Bruno Haible  <bruno@clisp.org>
58300
58301         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58302         printed as "nan0x7fffffff" instead of "nan".
58303         * tests/test-vasprintf-posix.c (test_function): Likewise.
58304         * tests/test-snprintf-posix.h (test_function): Likewise.
58305         * tests/test-sprintf-posix.h (test_function): Likewise.
58306         * tests/test-fprintf-posix.h (NaN): Remove macro.
58307         (test_function): Remove all NaN related tests.
58308         * tests/test-printf-posix.h (NaN): Remove macro.
58309         (test_function): Remove all NaN related tests.
58310         * tests/test-printf-posix.output: Remove all NaN related results.
58311         Needed for IRIX 6.5.
58312
58313 2007-05-19  Bruno Haible  <bruno@clisp.org>
58314
58315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58317
58318 2007-05-19  Bruno Haible  <bruno@clisp.org>
58319
58320         * lib/float_.h: New file.
58321         * m4/float_h.m4: New file.
58322         * modules/float: New file.
58323         * modules/isnanl (Dependencies): Add float.
58324         * modules/isnanl-nolibm (Dependencies): Likewise.
58325         * modules/mathl (Dependencies): Likewise.
58326         * modules/printf-frexpl (Dependencies): Likewise.
58327         * modules/signbit (Dependencies): Likewise.
58328         * modules/vasnprintf (Dependencies): Likewise.
58329         * doc/headers/float.texi: Update.
58330
58331 2007-05-19  Jim Meyering  <jim@meyering.net>
58332
58333         * lib/utimens.c (gl_futimens): Rename from futimens,
58334         now that glibc-2.6 declares futimens.
58335         * lib/utimens.h: Likewise.
58336
58337 2007-05-19  Bruno Haible  <bruno@clisp.org>
58338
58339         Avoid test failures on mingw.
58340         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58341         * tests/test-printf-posix.sh: Likewise.
58342         * tests/test-vfprintf-posix.sh: Likewise.
58343         * tests/test-vprintf-posix.sh: Likewise.
58344
58345 2007-05-19  Bruno Haible  <bruno@clisp.org>
58346
58347         Fix *printf result for NaN, Inf, -0.0 on mingw.
58348         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58349         * lib/vasnprintf.c: Include math.h and isnan.h.
58350         (is_infinite_or_zero): New function.
58351         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58352         values in the %f, %F, %e, %E, %g, %G directives.
58353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58355         gl_PRINTF_INFINITE and test its result. Invoke
58356         gl_PREREQ_VASNPRINTF_INFINITE.
58357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58364         * doc/functions/fprintf.texi: Update.
58365         * doc/functions/printf.texi: Update.
58366         * doc/functions/snprintf.texi: Update.
58367         * doc/functions/sprintf.texi: Update.
58368         * doc/functions/vfprintf.texi: Update.
58369         * doc/functions/vprintf.texi: Update.
58370         * doc/functions/vsnprintf.texi: Update.
58371         * doc/functions/vsprintf.texi: Update.
58372
58373 2007-05-19  Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58376         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58377         Instead of multiplying with 10^k, set extra_zeroes to k.
58378         (scale10_round_long_double): Remove function.
58379
58380 2007-05-18  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58383         introduced on 2007-05-06.
58384
58385 2007-05-18  Bruno Haible  <bruno@clisp.org>
58386
58387         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58388         %g directives.
58389         * tests/test-vasprintf-posix.c (test_function): Likewise.
58390         * tests/test-snprintf-posix.h (test_function): Likewise.
58391         * tests/test-sprintf-posix.h (test_function): Likewise.
58392
58393 2007-05-18  Bruno Haible  <bruno@clisp.org>
58394
58395         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58396         (strmatch): New function.
58397         (test_function): Test the %f directive on numbers of various exponents.
58398         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58399         (strmatch): New function.
58400         (test_function): Test the %f directive on numbers of various exponents.
58401         * tests/test-snprintf-posix.h (strmatch): New function.
58402         (test_function): Test the %f directive on numbers of various exponents.
58403         * tests/test-sprintf-posix.h (strmatch): New function.
58404         (test_function): Test the %f directive on numbers of various exponents.
58405         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58406         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58407         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58408         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58409
58410 2007-05-18  Bruno Haible  <bruno@clisp.org>
58411
58412         Add support for 'long double' number output.
58413         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58414         * lib/vasnprintf.c: Include math.h and float+.h.
58415         (mp_limb_t): New type.
58416         (GMP_LIMB_BITS): New macro.
58417         (mp_twolimb_t): New type.
58418         (GMP_TWOLIMB_BITS): New macro.
58419         (mpn_t): New type.
58420         (multiply, divide, convert_to_decimal, decode_long_double,
58421         scale10_round_long_double, scale10_round_decimal_long_double,
58422         floorlog10l): New functions.
58423         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58424         for the %f, %F, %e, %E, %g, %G directives.
58425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58427         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58428         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58430         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58431         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58433         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58434         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58436         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58437         * modules/snprintf-posix (Depends-on): Likewise.
58438         * modules/sprintf-posix (Depends-on): Likewise.
58439         * modules/vasnprintf-posix (Depends-on): Likewise.
58440         * modules/vasprintf-posix (Depends-on): Likewise.
58441         * modules/vfprintf-posix (Depends-on): Likewise.
58442         * modules/vsnprintf-posix (Depends-on): Likewise.
58443         * modules/vsprintf-posix (Depends-on): Likewise.
58444         * modules/vasnprintf (Files): Add lib/float+.h.
58445         * doc/functions/fprintf.texi: Update.
58446         * doc/functions/printf.texi: Update.
58447         * doc/functions/snprintf.texi: Update.
58448         * doc/functions/sprintf.texi: Update.
58449         * doc/functions/vfprintf.texi: Update.
58450         * doc/functions/vprintf.texi: Update.
58451         * doc/functions/vsnprintf.texi: Update.
58452         * doc/functions/vsprintf.texi: Update.
58453
58454 2007-05-18  Bruno Haible  <bruno@clisp.org>
58455
58456         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58457
58458 2007-05-18  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58461         for printing 64-bit integers. Needed for mingw.
58462
58463 2007-05-18  Bruno Haible  <bruno@clisp.org>
58464
58465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58466         gl_FUNC_FREXPL_WORKS.
58467         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58468
58469 2007-05-18  Bruno Haible  <bruno@clisp.org>
58470
58471         * modules/frexpl-nolibm-tests: New file.
58472
58473         * modules/frexpl-nolibm: New file.
58474         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58475
58476 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58477
58478         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58479         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58480         GCC 4.2, which otherwise issues a lot of warnings.
58481         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58482         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58483         Likewise.
58484         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58485         * modules/iconv_open (iconv.h): Likewise.
58486         * modules/locale (locale.h): Likewise.
58487         * modules/netinet_in (netinet/in.h): Likewise.
58488         * modules/sys_select (sys_select.h): Likewise.
58489         * modules/sys_socket (sys/socket.h): Likewise.
58490         * modules/sys_stat (sys/stat.h): Likewise.
58491         * modules/sysexits (sysexits.h): Likewise.
58492         * modules/unistd (unistd.h): Likewise.
58493
58494 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58495
58496         * modules/closein-tests (Makefile.am): Distribute
58497         `test-closein.sh'.
58498
58499 2007-05-17  Bruno Haible  <bruno@clisp.org>
58500
58501         * tests/test-printf-posix.output: Renamed from
58502         tests/test-fprintf-posix.out.
58503         * modules/fprintf-posix-tests: Update.
58504         * modules/printf-posix-tests: Update.
58505         * modules/vfprintf-posix-tests: Update.
58506         * modules/vprintf-posix-tests: Update.
58507         * tests/test-fprintf-posix.sh: Update.
58508         * tests/test-printf-posix.sh: Update.
58509         * tests/test-vfprintf-posix.sh: Update.
58510         * tests/test-vprintf-posix.sh: Update.
58511         Reported by Ralf Wildenhues.
58512
58513 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58516         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58517         GCC 4.2, which otherwise issues a lot of warnings.
58518         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58519         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58520         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58521         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58522         it should no longer be needed.
58523         * lib/string_.h: Likewise.
58524         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58525         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58526         * modules/inttypes (inttypes.h): Likewise.
58527         * modules/math (math.h): Likewise.
58528         * modules/search (search.h): Likewise.
58529         * modules/signal (signal.h): Likewise.
58530         * modules/stdint (stdint.h): Likewise.
58531         * modules/stdio (stdio.h): Likewise.
58532         * modules/stdlib (stdlib.h): Likewise.
58533         * modules/string (string.h): Likewise.
58534         * modules/sys_time (sys/time.h): Likewise.
58535         * modules/time (time.h): Likewise.
58536         * modules/wchar (wchar.h): Likewise.
58537         * modules/wctype (wtype.h): Likewise.
58538
58539 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58540
58541         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58542
58543 2007-05-13  Bruno Haible  <bruno@clisp.org>
58544
58545         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58546         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58547         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58548         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58549         (gl_PREREQ_STRTOK_R): Don't require it here.
58550
58551 2007-05-13  Bruno Haible  <bruno@clisp.org>
58552
58553         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58554         when used in C++ mode.
58555
58556 2007-05-12  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/linebuffer.h: Tweak doc.
58559         * lib/linebuffer.c: Likewise.
58560
58561 2007-05-12  James Youngman  <jay@gnu.org>
58562
58563         * lib/linebuffer.c (readlinebuffer_delim): New function,
58564         like readlinebuffer, but use a caller-specified delimiter.
58565         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58566         as the delimiter.
58567         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58568
58569 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58570
58571         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58572         * modules/openat (Files): Remove openat-die.c.
58573         (Depends-on): Add openat-die.
58574         * modules/openat-die: New module.
58575
58576 2007-05-06  Bruno Haible  <bruno@clisp.org>
58577
58578         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58579         Update with info about Cygwin.
58580         * doc/functions/fprintf.texi: Update.
58581         * doc/functions/printf.texi: Update.
58582         * doc/functions/snprintf.texi: Update.
58583         * doc/functions/sprintf.texi: Update.
58584         * doc/functions/vfprintf.texi: Update.
58585         * doc/functions/vprintf.texi: Update.
58586         * doc/functions/vsnprintf.texi: Update.
58587         * doc/functions/vsprintf.texi: Update.
58588         Reported by Eric Blake.
58589
58590 2007-05-06  Bruno Haible  <bruno@clisp.org>
58591
58592         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58593         padding ourselves for the floating-point directives.
58594         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58597         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58598         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58600         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58602         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58603         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58604         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58605         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58606         * tests/test-snprintf-posix.h (test_function): Also check the width
58607         and some flags in the %f directive.
58608         * tests/test-sprintf-posix.h (test_function): Likewise.
58609         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58610         * tests/test-vasprintf-posix.c (test_function): Likewise.
58611         * doc/functions/fprintf.texi: Update.
58612         * doc/functions/printf.texi: Update.
58613         * doc/functions/snprintf.texi: Update.
58614         * doc/functions/sprintf.texi: Update.
58615         * doc/functions/vfprintf.texi: Update.
58616         * doc/functions/vprintf.texi: Update.
58617         * doc/functions/vsnprintf.texi: Update.
58618         * doc/functions/vsprintf.texi: Update.
58619
58620 2007-05-06  Bruno Haible  <bruno@clisp.org>
58621
58622         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58623         pass the ' flag character to sprintf or snprintf.
58624         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58627         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58628         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58629         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58636         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58637         flag.
58638         * tests/test-sprintf-posix.h (test_function): Likewise.
58639         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58640         * tests/test-vasprintf-posix.c (test_function): Likewise.
58641         * doc/functions/fprintf.texi: Update.
58642         * doc/functions/printf.texi: Update.
58643         * doc/functions/snprintf.texi: Update.
58644         * doc/functions/sprintf.texi: Update.
58645         * doc/functions/vfprintf.texi: Update.
58646         * doc/functions/vprintf.texi: Update.
58647         * doc/functions/vsnprintf.texi: Update.
58648         * doc/functions/vsprintf.texi: Update.
58649
58650 2007-05-01  Bruno Haible  <bruno@clisp.org>
58651
58652         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58653
58654 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58657         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58658
58659 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58662         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58664
58665 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58666
58667         * lib/argp-help.c (struct hol_entry): New member `ord'.
58668         (HOL_ENTRY_PTRCMP): Use ord for comparison
58669         (hol_sort): Initialize ord.
58670
58671 2007-05-01  Bruno Haible  <bruno@clisp.org>
58672
58673         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58674         Reported by Eric Blake.
58675         * doc/gnulib.texi (Function Substitutes): Update.
58676
58677 2007-05-01  Bruno Haible  <bruno@clisp.org>
58678
58679         * doc/functions.texi: Remove file, now redundant through
58680         doc/functions/*.texi.
58681
58682 2007-05-01  Bruno Haible  <bruno@clisp.org>
58683
58684         * modules/argp (Depends-on): Add sleep.
58685
58686 2007-05-01  Bruno Haible  <bruno@clisp.org>
58687
58688         * modules/sleep-tests: New file.
58689         * tests/test-sleep.c: New file.
58690
58691         * modules/sleep: New file.
58692         * lib/sleep.c: New file.
58693         * m4/sleep.m4: New file.
58694         * lib/unistd_.h (sleep): New declaration.
58695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58696         HAVE_SLEEP.
58697         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58698         * doc/functions/sleep.texi: Document the sleep module.
58699
58700 2007-05-01  Bruno Haible  <bruno@clisp.org>
58701
58702         * lib/sigprocmask.h: Remove file.
58703         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58704         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58705         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58706         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58707         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58708         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58709         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58710         HAVE_SIGSET_T as a shell variable.
58711         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58712         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58713         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58714         (Depends-on): Add signal. Remove verify.
58715         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58716         (Include): Mention <signal.h> instead of sigprocmask.h.
58717         * NEWS: Mention the change.
58718         * lib/fatal-signal.c: Don't include sigprocmask.h.
58719
58720 2007-05-01  Bruno Haible  <bruno@clisp.org>
58721
58722         * modules/signal: New file.
58723         * lib/signal_.h: New file.
58724         * m4/signal_h.m4: New file.
58725
58726 2007-05-01  Bruno Haible  <bruno@clisp.org>
58727
58728         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58729         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58730         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58731         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58732
58733 2007-05-01  Bruno Haible  <bruno@clisp.org>
58734
58735         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58736         configure time.
58737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58738         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58739         * modules/sys_stat (Makefile.am): Substitute their values into
58740         sys/stat.h.
58741
58742 2007-05-01  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58745         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58746         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58747
58748 2007-05-01  Bruno Haible  <bruno@clisp.org>
58749
58750         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58751         'assert' module here.
58752
58753 2007-05-01  Bruno Haible  <bruno@clisp.org>
58754
58755         * doc/functions/*.texi: New files.
58756         * doc/functions/google-ranking.txt: New file.
58757         * doc/gnulib.texi (Function Substitutes): New chapter.
58758         (ctime, inet_ntoa): Remove sections.
58759         * doc/ctime.texi: Remove file.
58760         * doc/inet_ntoa.texi: Remove file.
58761         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58762         dependencies.
58763         (%.info): New rule, specifying a --reference-limit.
58764
58765 2007-05-01  Bruno Haible  <bruno@clisp.org>
58766
58767         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58768
58769 2007-05-01  Bruno Haible  <bruno@clisp.org>
58770
58771         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58772         the portability of 'mkdir' to mingw systems.
58773
58774 2007-05-01  Bruno Haible  <bruno@clisp.org>
58775
58776         * doc/headers/google-ranking.txt: New file.
58777
58778 2007-04-30  Eric Blake  <ebb9@byu.net>
58779
58780         Prefer fseeko to fseek.
58781         * modules/getpass (Depends-on): Add fseeko.
58782         * lib/getpass.c (getpass): Use fseeko, not fseek.
58783
58784 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58785
58786         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58787         assumes the sorting is stable, while most qsort implementations
58788         are not.  Use argument addresses to ensure they never compare as
58789         equal.
58790
58791         * tests/test-argp-2.sh (usage-indent test): Fix output
58792         (func_compare): Restore diff options
58793         * tests/test-argp.c: Restore #include "progname.h"
58794
58795 2007-04-29  Bruno Haible  <bruno@clisp.org>
58796
58797         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58799         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58801         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58802         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58803         (TESTS, check_PROGRAMS): Add test-snprintf.
58804         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58805         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58806         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58807         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58808         assertions that fail on HP-UX, OSF/1, or IRIX.
58809         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58810
58811 2007-04-29  Bruno Haible  <bruno@clisp.org>
58812
58813         * MODULES.html.sh (posix_functions): Remove 'contents'.
58814
58815 2007-04-29  Karl Berry  <karl@gnu.org>
58816
58817         * config/srclist.txt (gendocs_template_min): new entry.
58818
58819 2007-04-29  Bruno Haible  <bruno@clisp.org>
58820
58821         Work around fpurge bug on BSD systems.
58822         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58823         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58824         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58825         fpurge to rpl_fpurge if the system already has this function.
58826         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58827         the case where the system already has this function. Correct invariants
58828         on BSD systems.
58829         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58830         BSD systems.
58831
58832 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58833
58834         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58835         proposed by Sven Verdoolaege.
58836
58837         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58838         options.
58839         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58840         (usage and help tests): Update
58841
58842 2007-04-29  Bruno Haible  <bruno@clisp.org>
58843
58844         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58845         Print more information in case of failure. Disable a test on BeOS.
58846
58847 2007-04-29  Bruno Haible  <bruno@clisp.org>
58848
58849         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58850         This helps debugging on systems on which no gdb is available.
58851
58852 2007-04-29  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/freading.h: Improve comments.
58855         * lib/fwriting.h: Likewise.
58856         * tests/test-freading.c (main): Don't check freading immediately after
58857         repositioning. Needed for glibc.
58858
58859 2007-04-29  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/freading.c (freading): Trivial simplification.
58862
58863 2007-04-28  Bruno Haible  <bruno@clisp.org>
58864
58865         * tests/test-fwriting.c (main): Also test the interaction between
58866         fflush and fwriting.
58867         * modules/fwriting-tests (Depends-on): Add fflush.
58868
58869         * tests/test-freading.c (main): Also test the interaction between
58870         fflush and freading.
58871         * modules/freading-tests (Depends-on): Add fflush.
58872
58873 2007-04-28  Bruno Haible  <bruno@clisp.org>
58874
58875         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58876         fseeko and ftello.
58877         Suggested by Eric Blake.
58878
58879 2007-04-28  Jim Meyering  <jim@meyering.net>
58880
58881         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58882         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58883         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58884
58885 2007-04-27  Eric Blake  <ebb9@byu.net>
58886
58887         * doc/headers/assert.texi (assert.h): Document assert module use.
58888
58889 2007-04-27  Bruno Haible  <bruno@clisp.org>
58890
58891         * doc/headers/*.texi: New files.
58892         * doc/gnulib.texi (Header File Substitutes): New chapter.
58893         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58894         dependencies.
58895         (standards.info ,standards.html, standards.dvi): Update dependencies.
58896         (mostlyclean, clean): New targets.
58897
58898 2007-04-27  Bruno Haible  <bruno@clisp.org>
58899
58900         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58901         * modules/sysexits (Files, Makefile.am): Update.
58902
58903         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58904         * modules/sys_socket (Files, Makefile.am): Update.
58905
58906         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58907         * modules/sys_stat (Files, Makefile.am): Update.
58908
58909 2007-04-27  Eric Blake  <ebb9@byu.net>
58910
58911         * lib/freading.h: Improve comments.
58912         * lib/fwriting.h: Likewise.
58913         * lib/fflush.c: Likewise.
58914
58915         Fix closein for mingw.
58916         * modules/closein-tests: Add tests for closein.
58917         * tests/test-closein.c: New file.
58918         * tests/test-closein.sh: Likewise.
58919         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58920         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58921
58922 2007-04-27  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58925         version is < 6.
58926         * lib/math_.h [__DECC]: Likewise.
58927         * lib/stdio_.h [__DECC]: Likewise.
58928         * lib/stdlib_.h [__DECC]: Likewise.
58929         * lib/string_.h [__DECC]: Likewise.
58930         * lib/time_.h [__DECC]: Likewise.
58931         * lib/wchar_.h [__DECC]: Likewise.
58932         * lib/wctype_.h [__DECC]: Likewise.
58933
58934 2007-04-27  Bruno Haible  <bruno@clisp.org>
58935
58936         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58937
58938 2007-04-27  Bruno Haible  <bruno@clisp.org>
58939
58940         * lib/fflush.c: Add comments.
58941         * modules/fpurge-tests (Depends-on): Add fflush.
58942         * modules/freadable-tests (Depends-on): Likewise.
58943         * modules/fwritable-tests (Depends-on): Likewise.
58944
58945 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58946
58947         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58948         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58949         Report by Bruno Haible <bruno@clisp.org>.
58950
58951 2007-04-26  Eric Blake  <ebb9@byu.net>
58952
58953         Fix fflush on mingw.
58954         * modules/fflush (Depends-on): Add freading.
58955         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58956         but unread data.
58957
58958 2007-04-26  Eric Blake  <ebb9@byu.net>
58959         and Bruno Haible  <bruno@clisp.org>
58960
58961         Implement freading and fwriting.
58962         * lib/freading.c: New file.
58963         * lib/freading.h: Likewise.
58964         * m4/freading.m4: Likewise.
58965         * modules/freading: Likewise.
58966         * modules/freading-tests: Likewise.
58967         * tests/test-freading.c: Likewise.
58968         * lib/fwriting.c: New file.
58969         * lib/fwriting.h: Likewise.
58970         * m4/fwriting.m4: Likewise.
58971         * modules/fwriting: Likewise.
58972         * modules/fwriting-tests: Likewise.
58973         * tests/test-fwriting.c: Likewise.
58974         * MODULES.html.sh (File stream based Input/Output): Mention them.
58975
58976 2007-04-26  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58979         'long' when we assume it.
58980         Suggested by Eric Blake.
58981
58982 2007-04-26  Bruno Haible  <bruno@clisp.org>
58983
58984         Ensure fseeko, ftello are declared on glibc systems.
58985         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58986         * modules/fseeko (configure.ac-early): Likewise.
58987         * modules/ftello (configure.ac-early): Likewise.
58988         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58989         AC_FUNC_FSEEKO for this.
58990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58991         (gl_CHECK_FSEEKO): Remove macro.
58992
58993 2007-04-26  Bruno Haible  <bruno@clisp.org>
58994
58995         * tests/test-fflush.c (main): Also check the ftell result after
58996         fflush and fseek/fseeko.
58997         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58998         file descriptor position cache in the stream.
58999         * lib/fseeko.c (rpl_fseeko): Likewise.
59000
59001 2007-04-26  Bruno Haible  <bruno@clisp.org>
59002
59003         * modules/fflush-tests (Depends-on): Add fseeko.
59004
59005 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59006             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59007
59008         * lib/argz_.h: ensure error_t definition is obtained in same
59009         mechanism system argz.h would have.
59010         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59011         argz facilities are known bad.  Err on the side of caution if
59012         cross-compiling.
59013
59014 2007-04-25  Eric Blake  <ebb9@byu.net>
59015
59016         * lib/fpurge.c (includes): Use stdlib.h for free.
59017         * tests/test-fflush.c (main): Also test fflush-fseeko.
59018
59019 2007-04-25  Bruno Haible  <bruno@clisp.org>
59020
59021         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59022         * lib/fseeko.c: New file.
59023         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59024         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59025         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59026         gl_FUNC_FSEEKO.
59027         (gl_FUNC_FSEEKO): Invoke it.
59028         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59029         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59030         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59031
59032 2007-04-25  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/fflush (Depends-on): Add ftello.
59035
59036 2007-04-25  Bruno Haible  <bruno@clisp.org>
59037
59038         * modules/ftello-tests: New file.
59039         * tests/test-ftello.c: New file.
59040
59041         * modules/ftello: New file.
59042         * m4/ftello.m4: New file.
59043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59044         HAVE_FTELLO.
59045         * lib/stdio_.h (ftello): New declaration.
59046         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59047         HAVE_FTELLO.
59048
59049 2007-04-25  Bruno Haible  <bruno@clisp.org>
59050
59051         * modules/fseeko-tests: New file.
59052         * tests/test-fseeko.c: New file.
59053
59054         * modules/fseeko: New file.
59055         * m4/fseeko.m4: New file.
59056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59057         HAVE_FSEEKO.
59058         * lib/stdio_.h (fseeko): New declaration.
59059         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59060         HAVE_FSEEKO.
59061
59062 2007-04-25  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59065
59066 2007-04-25  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59069         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59070         * tests/test-unistd.c: Likewise.
59071         * tests/test-fcntl.c: Likewise.
59072
59073 2007-04-23  Eric Blake  <ebb9@byu.net>
59074
59075         * lib/fflush.c: Fix missing include.
59076         Reported by Bruno Haible.
59077
59078 2007-04-23  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59081         Reported by Eric Blake.
59082
59083 2007-04-23  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59086
59087 2007-04-23  Bruno Haible  <bruno@clisp.org>
59088
59089         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59090
59091 2007-04-23  Bruno Haible  <bruno@clisp.org>
59092
59093         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59094         Needed on HP-UX 11.
59095
59096 2007-04-16  Eric Blake  <ebb9@byu.net>
59097
59098         Make fflush rely on fpurge.
59099         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59100         open coding all variants.
59101         * modules/fflush (Depends-on): Add fpurge and unistd.
59102         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59103         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59104
59105         Fix --with-tests compilation on cygwin.
59106         * modules/argmatch-tests (Makefile.am): List gnulib library first
59107         in LDADD.
59108         * modules/argp-tests (Makefile.am): Likewise.
59109         * modules/array-list-tests (Makefile.am): Likewise.
59110         * modules/array-oset-tests (Makefile.am): Likewise.
59111         * modules/avltree-list-tests (Makefile.am): Likewise.
59112         * modules/avltree-oset-tests (Makefile.am): Likewise.
59113         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59114         * modules/carray-list-tests (Makefile.am): Likewise.
59115         * modules/dirname-tests (Makefile.am): Likewise.
59116         * modules/frexp-tests (Makefile.am): Likewise.
59117         * modules/isnanl-tests (Makefile.am): Likewise.
59118         * modules/linked-list-tests (Makefile.am): Likewise.
59119         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59120         * modules/lock-tests (Makefile.am): Likewise.
59121         * modules/rbtree-list-tests (Makefile.am): Likewise.
59122         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59123         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59124         * modules/tls-tests (Makefile.am): Likewise.
59125         * modules/tsearch-tests (Makefile.am): Likewise.
59126         * modules/xvasprintf-tests (Makefile.am): Likewise.
59127
59128         Fix fpurge for cygwin.
59129         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59130         value.
59131         * modules/fpurge-tests (Depends-on): Clean up trash.
59132
59133 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59134
59135         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59136
59137         * m4/autobuild.m4: Re-indent.
59138
59139 2007-04-13  Bruno Haible  <bruno@clisp.org>
59140
59141         * modules/fpurge-tests: New file.
59142         * tests/test-fpurge.c: New file.
59143
59144         * modules/fpurge: New file.
59145         * lib/fpurge.h: New file.
59146         * lib/fpurge.c: New file.
59147         * m4/fpurge.m4: New file.
59148
59149 2007-04-13  Bruno Haible  <bruno@clisp.org>
59150
59151         * modules/fbufmode-tests: New file.
59152         * tests/test-fbufmode.c: New file.
59153
59154         * modules/fbufmode: New file.
59155         * lib/fbufmode.h: New file.
59156         * lib/fbufmode.c: New file.
59157         * m4/fbufmode.m4: New file.
59158
59159 2007-04-13  Bruno Haible  <bruno@clisp.org>
59160
59161         * modules/fwritable-tests: New file.
59162         * tests/test-fwritable.c: New file.
59163
59164         * modules/fwritable: New file.
59165         * lib/fwritable.h: New file.
59166         * lib/fwritable.c: New file.
59167         * m4/fwritable.m4: New file.
59168
59169 2007-04-13  Bruno Haible  <bruno@clisp.org>
59170
59171         * modules/freadable-tests: New file.
59172         * tests/test-freadable.c: New file.
59173
59174         * modules/freadable: New file.
59175         * lib/freadable.h: New file.
59176         * lib/freadable.c: New file.
59177         * m4/freadable.m4: New file.
59178
59179 2007-04-13  Bruno Haible  <bruno@clisp.org>
59180
59181         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59182         MOSTLYCLEANFILES.
59183
59184 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59187         gzip bootstrap.conf to avoid dragging in i18n machinery.
59188         (gnulib_tool_option): Use it.
59189
59190 2007-04-13  Bruno Haible  <bruno@clisp.org>
59191
59192         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59193         %F directives.
59194         * tests/test-vasprintf-posix.c (test_function): Likewise.
59195         * tests/test-snprintf-posix.h (test_function): Likewise.
59196         * tests/test-sprintf-posix.h (test_function): Likewise.
59197         * tests/test-fprintf-posix.h (test_function): Likewise.
59198         * tests/test-printf-posix.h (test_function): Likewise.
59199         * tests/test-fprintf-posix.out: Likewise.
59200
59201 2007-04-13  Bruno Haible  <bruno@clisp.org>
59202
59203         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59204         * modules/tls-tests (configure.ac): Likewise.
59205         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59206
59207 2007-04-13  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/tls.c (glthread_tls_get): Fix return type.
59210         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59211
59212 2007-04-12  Eric Blake  <ebb9@byu.net>
59213
59214         * modules/gettime (Depends-on): Remove gettime.
59215         Reported by Dmitry V. Levin.
59216
59217 2007-04-12  Bruno Haible  <bruno@clisp.org>
59218
59219         * modules/fflush (Include): Mention <stdio.h>.
59220         * modules/strtoimax (Include): Mention <inttypes.h>.
59221         * modules/strtoumax (Include): Likewise.
59222
59223 2007-04-12  Eric Blake  <ebb9@byu.net>
59224
59225         * .cvsignore: New file.
59226         * .gitignore: Likewise.
59227
59228 2007-04-12  Bruno Haible  <bruno@clisp.org>
59229
59230         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59231         not before, since $(LDADD) often contains libgnu.a.
59232         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59233         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59234         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59235         Needed on Cygwin.
59236
59237 2007-04-12  Eric Blake  <ebb9@byu.net>
59238
59239         Work around glibc's failure to flush stdin on fclose.
59240         * lib/closein.c (close_stdin): Flush stdin before closing.
59241
59242         Work around glibc's failure to reset seekable stdin on exit.
59243         * modules/closein: New module.
59244         * lib/closein.c: New file.
59245         * lib/closein.h: Likewise.
59246         * m4/closein.m4: Likewise.
59247         * MODULES.html.sh (File stream based Input/Output): Document it.
59248
59249 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59250
59251         * gnulib-tool: Rename generated 'autobuild' script to
59252         'do-autobuild' in --create-megatestdir output.
59253
59254         * doc/gnulib.texi (Build robot for gnulib): Fix.
59255
59256 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59257
59258         * modules/sysexits (Depends-on): Add absolute-header.
59259
59260 2007-04-12  Eric Blake  <ebb9@byu.net>
59261
59262         No need to preserve errno on success.
59263         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59264         Reported by Bruno Haible.
59265
59266 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59267
59268         * MODULES.html.sh (Support for maintaining and releasing
59269         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59270
59271 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59272
59273         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59274
59275 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59276
59277         * modules/autobuild: New module.
59278
59279         * m4/autobuild.m4: New file.
59280
59281 2007-04-11  Bruno Haible  <bruno@clisp.org>
59282
59283         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59284         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59288         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59289         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59291         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59292         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59294         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59295         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59297         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59298         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59300         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59301         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59303         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59304         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59306         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59307         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59309         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59310         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59311         Reported by Eric Blake.
59312
59313 2007-04-11  Bruno Haible  <bruno@clisp.org>
59314
59315         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59316
59317 2007-04-10  Bruno Haible  <bruno@clisp.org>
59318
59319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59320         for NaN and Infinity. Needed on FreeBSD 6.1.
59321         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59322         regarding results for "%010a" of Infinity and NaN.
59323         * tests/test-vasprintf-posix.c (test_function): Likewise.
59324         * tests/test-snprintf-posix.h (test_function): Likewise.
59325         * tests/test-sprintf-posix.h (test_function): Likewise.
59326         * tests/test-fprintf-posix.h (test_function): Likewise.
59327         * tests/test-printf-posix.h (test_function): Likewise.
59328         * tests/test-fprintf-posix.out: Likewise.
59329
59330 2007-04-10  Bruno Haible  <bruno@clisp.org>
59331
59332         * modules/locale-tests: New file.
59333         * tests/test-locale.c: New file.
59334
59335         * modules/locale: New file.
59336         * lib/locale_.h: New file.
59337         * m4/locale_h.m4: New file.
59338
59339 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59340             Bruno Haible  <bruno@clisp.org>
59341
59342         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59343         be determined, test for availability of the copysignf, copysign,
59344         copysignl functions.
59345         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59346         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59347         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59348
59349 2007-04-09  Eric Blake  <ebb9@byu.net>
59350
59351         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59352         * modules/stdio (Makefile.am): Support fflush.
59353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59354         * modules/fflush: New file.
59355         * lib/fflush.c: Likewise.
59356         * m4/fflush.m4: Likewise.
59357         * modules/fflush-tests: New test.
59358         * tests/test-fflush.c: Likewise.
59359         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59360
59361 2007-04-06  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59364         (VASNPRINTF): Use signbit for faster determination whether to print a
59365         minus sign.
59366         * modules/vasnprintf (Files): Remove lib/float+.h.
59367         * modules/fprintf-posix (Depends-on): Add signbit.
59368         * modules/snprintf-posix (Depends-on): Likewise.
59369         * modules/sprintf-posix (Depends-on): Likewise.
59370         * modules/vasnprintf-posix (Depends-on): Likewise.
59371         * modules/vasprintf-posix (Depends-on): Likewise.
59372         * modules/vfprintf-posix (Depends-on): Likewise.
59373         * modules/vsnprintf-posix (Depends-on): Likewise.
59374         * modules/vsprintf-posix (Depends-on): Likewise.
59375
59376 2007-04-06  Bruno Haible  <bruno@clisp.org>
59377
59378         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59379         * tests/test-frexpl.c (main): Likewise.
59380         * tests/test-ldexpl.c (main): Likewise.
59381         * modules/frexp-tests (Depends-on): Add signbit.
59382         * modules/frexpl-tests (Depdends-on): Likewise.
59383         * modules/ldexpl-tests (Depdends-on): Likewise.
59384
59385 2007-04-06  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/signbit-tests: New file.
59388         * tests/test-signbit.c: New file.
59389
59390         * modules/signbit: New file.
59391         * lib/signbitf.c: New file.
59392         * lib/signbitd.c: New file.
59393         * lib/signbitl.c: New file.
59394         * m4/signbit.m4: New file.
59395         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59396         (signbit): New macro.
59397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59398         REPLACE_SIGNBIT.
59399         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59400         REPLACE_FREXPL into math.h.
59401
59402 2007-04-06  Bruno Haible  <bruno@clisp.org>
59403
59404         * modules/isnanf-nolibm-tests: New file.
59405         * tests/test-isnanf.c: New file.
59406
59407         * modules/isnanf-nolibm: New file.
59408         * lib/isnanf.h: New file.
59409         * lib/isnanf.c: New file.
59410         * lib/isnan.c: Consider the USE_FLOAT macro.
59411         * m4/isnanf.m4: New file.
59412
59413 2007-04-06  Bruno Haible  <bruno@clisp.org>
59414
59415         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59416         (Link): New section.
59417
59418         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59419
59420 2007-04-06  Bruno Haible  <bruno@clisp.org>
59421
59422         Assume the 'long double' type.
59423         * m4/longdouble.m4: Remove file.
59424         * config/srclist.txt: Don't mention longdouble.m4.
59425         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59426         * lib/float+.h: Likewise.
59427         * lib/frexp.c: Likewise.
59428         * lib/printf-args.h: Likewise.
59429         * lib/printf-args.c: Likewise.
59430         * lib/printf-frexp.c: Likewise.
59431         * lib/printf-parse.c: Likewise.
59432         * lib/vasnprintf.c: Likewise.
59433         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59434         * m4/intl.m4: Likewise.
59435         * m4/isnanl.m4: Likewise.
59436         * m4/printf.m4: Likewise.
59437         * m4/printf-frexpl.m4: Likewise.
59438         * m4/vasnprintf.m4: Likewise.
59439         * modules/allocsa (Files): Remove m4/longdouble.m4.
59440         * modules/gettext (Files): Likewise.
59441         * modules/relocatable-prog-wrapper (Files): Likewise.
59442         * modules/vasnprintf (Files): Likewise.
59443         * modules/isnanl (Files): Likewise.
59444         (Include): Simplify.
59445         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59446         (Include): Simplify.
59447         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59448         (Include): Simplify.
59449         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59450         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59451         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59452         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59453         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59454         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59455         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59456         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59457         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59458         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59459         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59460         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59461         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59462         * tests/test-isnanl.c: Likewise.
59463         * tests/test-snprintf-posix.h: Likewise.
59464         * tests/test-sprintf-posix.h: Likewise.
59465         * tests/test-vasnprintf-posix.c: Likewise.
59466         * tests/test-vasnprintf-posix2.c: Likewise.
59467         * tests/test-vasprintf-posix.c: Likewise.
59468
59469 2007-04-06  Bruno Haible  <bruno@clisp.org>
59470
59471         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59472         * lib/math_.h [__DECC]: Include the overridden include file through
59473         #include_next, outside the double-inclusion guard.
59474         * lib/stdio_.h [__DECC]: Likewise.
59475         * lib/stdlib_.h [__DECC]: Likewise.
59476         * lib/string_.h [__DECC]: Likewise.
59477         * lib/time_.h [__DECC]: Likewise.
59478         * lib/wchar_.h [__DECC]: Likewise.
59479         * lib/wctype_.h [__DECC]: Likewise.
59480         * lib/inttypes_.h [__DECC]: Likewise.
59481         Reported by Albert Chin <china@thewrittenword.com> in
59482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59483
59484 2007-04-04  Eric Blake  <ebb9@byu.net>
59485
59486         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59487         1.5.x.
59488
59489 2007-04-04  Bruno Haible  <bruno@clisp.org>
59490
59491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59492         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59493
59494 2007-04-04  Bruno Haible  <bruno@clisp.org>
59495
59496         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59497         results for "%010a" of Infinity and NaN.
59498         * tests/test-vasprintf-posix.c (test_function): Likewise.
59499         * tests/test-snprintf-posix.h (test_function): Likewise.
59500         * tests/test-sprintf-posix.h (test_function): Likewise.
59501         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59502         * tests/test-printf-posix.h (test_function): Likewise.
59503         * tests/test-fprintf-posix.out: Update.
59504         Needed for FreeBSD 6.1.
59505
59506 2007-04-04  Bruno Haible  <bruno@clisp.org>
59507
59508         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59509         directly used by the gnulib modules nor by gnulib-tool.
59510
59511 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59512
59513         * DEPENDENCIES: Give overall description of version dependency
59514         desirability.  Use more-typical names for apps.
59515         Add shell, coreutils, diffutils, grep, tar, gzip.
59516
59517 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59518
59519         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59520
59521 2007-04-04  Karl Berry  <karl@gnu.org>
59522
59523         * MODULES.html.sh (func_module): missing '.
59524
59525 2007-04-03  Bruno Haible  <bruno@clisp.org>
59526
59527         * modules/argmatch-tests (Makefile.am): New variable
59528         test_argmatch_LDADD.
59529         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59530         * modules/array-list-tests (Makefile.am): New variable
59531         test_array_list_LDADD.
59532         * modules/array-oset-tests (Makefile.am): New variable
59533         test_array_oset_LDADD.
59534         * modules/avltree-list-tests (Makefile.am): New variable
59535         test_avltree_list_LDADD.
59536         * modules/avltree-oset-tests (Makefile.am): New variable
59537         test_avltree_oset_LDADD.
59538         * modules/avltreehash-list-tests (Makefile.am): New variable
59539         test_avltreehash_list_LDADD.
59540         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59541         test_canonicalize_lgpl_LDADD.
59542         * modules/carray-list-tests (Makefile.am): New variable
59543         test_carray_list_LDADD.
59544         * modules/dirname-tests (Makefile.am): New variable
59545         test_dirname_LDADD.
59546         * modules/linked-list-tests (Makefile.am): New variable
59547         test_linked_list_LDADD.
59548         * modules/linkedhash-list-tests (Makefile.am): New variable
59549         test_linkedhash_list_LDADD.
59550         * modules/rbtree-list-tests (Makefile.am): New variable
59551         test_rbtree_list_LDADD.
59552         * modules/rbtree-oset-tests (Makefile.am): New variable
59553         test_rbtree_oset_LDADD.
59554         * modules/rbtreehash-list-tests (Makefile.am): New variable
59555         test_rbtreehash_list_LDADD.
59556         * modules/xvasprintf-tests (Makefile.am): New variable
59557         test_xvasprintf_LDADD.
59558         Reported by Eric Blake.
59559
59560 2007-04-03  Eric Blake  <ebb9@byu.net>
59561
59562         * DEPENDENCIES: Weaken m4 requirements.
59563
59564 2007-04-03  Bruno Haible  <bruno@clisp.org>
59565
59566         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59567         * modules/isnanl-tests (configure.ac): Likewise.
59568
59569 2007-04-03  Ben Pfaff  <blp@gnu.org>
59570
59571         * modules/iconv_open: Add $(srcdir)/ to source directory
59572         references in Makefile fragments that call gperf, to fix VPATH
59573         builds.
59574
59575 2007-04-03  Bruno Haible  <bruno@clisp.org>
59576
59577         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59578         * lib/ldexpl.c: Undo last change.
59579
59580 2007-04-03  Bruno Haible  <bruno@clisp.org>
59581
59582         * modules/printf-frexpl (Depends-on): Undo last change.
59583         (Files): Add m4/ldexpl.m4.
59584
59585 2007-04-03  Bruno Haible  <bruno@clisp.org>
59586
59587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59588         * modules/isnanl (Link): New section.
59589
59590         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59591         * modules/frexp (Link): New section.
59592
59593         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59594         * modules/frexpl (Link): New section.
59595
59596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59597         * modules/ldexpl (Link): New section.
59598
59599 2007-04-03  Bruno Haible  <bruno@clisp.org>
59600
59601         * modules/TEMPLATE-EXTENDED: New file.
59602         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59603
59604 2007-04-03  Bruno Haible  <bruno@clisp.org>
59605
59606         * DEPENDENCIES: New file.
59607         Suggested by Simon Josefsson.
59608
59609 2007-04-03  Bruno Haible  <bruno@clisp.org>
59610
59611         * doc/gnulib.texi: Escape @.
59612
59613 2007-04-03  James Youngman  <jay@gnu.org>
59614         and Paul Eggert  <eggert@cs.ucla.edu>
59615
59616         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59617         birthtime on all systems that have birthtime, not just those which
59618         use st_birthtimensec rather than st_birthtim.  Putting zero in
59619         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59620         that the birth time is not available for files on an NFS mount.
59621
59622 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59623
59624         * modules/memxor: Move back from crypto/, suggested by Bruno.
59625         * modules/crypto/hmac-sha1: Fix memxor dependency.
59626
59627         * modules/crypto/gc: Moved from ../.
59628
59629 2007-04-02  Eric Blake  <ebb9@byu.net>
59630
59631         * lib/ldexpl.c (includes): Avoid libm.
59632
59633         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59634
59635 2007-04-02  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59638         on IRIX.
59639
59640 2007-04-02  Bruno Haible  <bruno@clisp.org>
59641
59642         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59643         x86 or x86_64 platforms running MacOS X.
59644         Reported by Ryan Schmidt <@ryandesign.com>.
59645
59646 2007-04-02  Bruno Haible  <bruno@clisp.org>
59647
59648         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59649         i386.
59650
59651 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59652
59653         * modules/crypto/arcfour: Moved from ../.
59654         * modules/crypto/arcfour-tests: Moved from ../.
59655         * modules/crypto/arctwo: Moved from ../.
59656         * modules/crypto/arctwo-tests: Moved from ../.
59657         * modules/crypto/des: Moved from ../.
59658         * modules/crypto/des-tests: Moved from ../.
59659         * modules/crypto/gc-arcfour: Moved from ../.
59660         * modules/crypto/gc-arcfour-tests: Moved from ../.
59661         * modules/crypto/gc-arctwo: Moved from ../.
59662         * modules/crypto/gc-arctwo-tests: Moved from ../.
59663         * modules/crypto/gc-des: Moved from ../.
59664         * modules/crypto/gc-des-tests: Moved from ../.
59665         * modules/crypto/gc-hmac-md5: Moved from ../.
59666         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59667         * modules/crypto/gc-hmac-sha1: Moved from ../.
59668         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59669         * modules/crypto/gc-md2: Moved from ../.
59670         * modules/crypto/gc-md2-tests: Moved from ../.
59671         * modules/crypto/gc-md4: Moved from ../.
59672         * modules/crypto/gc-md4-tests: Moved from ../.
59673         * modules/crypto/gc-md5: Moved from ../.
59674         * modules/crypto/gc-md5-tests: Moved from ../.
59675         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59676         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59677         * modules/crypto/gc-random: Moved from ../.
59678         * modules/crypto/gc-rijndael: Moved from ../.
59679         * modules/crypto/gc-rijndael-tests: Moved from ../.
59680         * modules/crypto/gc-sha1: Moved from ../.
59681         * modules/crypto/gc-sha1-tests: Moved from ../.
59682         * modules/crypto/gc-tests: Moved from ../.
59683         * modules/crypto/hmac-md5: Moved from ../.
59684         * modules/crypto/hmac-md5-tests: Moved from ../.
59685         * modules/crypto/hmac-sha1: Moved from ../.
59686         * modules/crypto/hmac-sha1-tests: Moved from ../.
59687         * modules/crypto/md2: Moved from ../.
59688         * modules/crypto/md2-tests: Moved from ../.
59689         * modules/crypto/md4: Moved from ../.
59690         * modules/crypto/md4-tests: Moved from ../.
59691         * modules/crypto/md5: Moved from ../.
59692         * modules/crypto/md5-tests: Moved from ../.
59693         * modules/crypto/memxor: Moved from ../.
59694         * modules/crypto/rijndael: Moved from ../.
59695         * modules/crypto/rijndael-tests: Moved from ../.
59696         * modules/crypto/sha1: Moved from ../.
59697
59698 2007-03-30  James Youngman  <jay@gnu.org>
59699
59700         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59701         rename() to change the ctime of a file (because ctime is unaffected
59702         by rename on jfs2 on AIX 5.1).
59703         (main): Start by doing cleanup, in case a previous run failed leaving
59704         test files behind.
59705
59706 2007-03-31  Bruno Haible  <bruno@clisp.org>
59707
59708         Support old proprietary implementations of iconv.
59709         * modules/iconv_open: New file.
59710         * lib/iconv_.h: New file.
59711         * m4/iconv_h.m4: New file.
59712         * lib/iconv_open.c: New file.
59713         * lib/iconv_open-aix.gperf: New file.
59714         * lib/iconv_open-hpux.gperf: New file.
59715         * lib/iconv_open-irix.gperf: New file.
59716         * lib/iconv_open-osf.gperf: New file.
59717         * m4/iconv_open.m4: New file.
59718         * modules/linebreak (Depends-on): Add iconv_open.
59719         * modules/striconv (Depends-on): Likewise.
59720         * modules/striconveh (Depends-on): Likewise.
59721         * modules/unicodeio (Depends-on): Likewise.
59722         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59723         (iconv_t)(-1).
59724         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59725         conversion if cd is (iconv_t)(-1).
59726         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59727         is not possible.
59728
59729 2007-03-31  Bruno Haible  <bruno@clisp.org>
59730
59731         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59732         work on Solaris either. Protect also second use of "autodetect_jp".
59733
59734 2007-03-31  Bruno Haible  <bruno@clisp.org>
59735
59736         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59737         the function is not present.
59738
59739 2007-03-31  Bruno Haible  <bruno@clisp.org>
59740
59741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59742         the function is not present.
59743
59744 2007-03-31  Bruno Haible  <bruno@clisp.org>
59745
59746         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59747         a bug in HP-UX iconv_open().
59748
59749 2007-03-31  Bruno Haible  <bruno@clisp.org>
59750
59751         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59752         (Mathematics <math.h>): New section, add fpieee.
59753         (Input/output <stdio.h>): Add fseterr.
59754         (Mathematics <math.h>): New section, add printf-frexp.
59755         (Container data structures): Add sublist.
59756         (Core language properties): Add fpucw, inline.
59757         (Functions for greatest-width integer types <inttypes.h>): Add
59758         imaxabs, imaxdiv, inttypes.
59759         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59760         isnanl-nolibm, ldexp.
59761         (Mathematics <math.h>): New section, add printf-frexpl.
59762         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59763         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59764         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59765         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59766         (Unicode string functions): Add unistr/u*-mbtoucr.
59767         (Java): Add javacomp-script, javaexec-script.
59768         (C#): Add csharpcomp-script, csharpexec-script.
59769         (Support for building libraries and executables): Add havelib,
59770         relocatable-*.
59771         (Support for maintaining and releasing projects): Renamed from
59772         'Support for maintaining and release projects'. Add announce-gen.
59773
59774 2007-03-31  Bruno Haible  <bruno@clisp.org>
59775
59776         * README: Talk primarily about git.
59777         (git and CVS): Renamed from CVS.
59778         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59779         gnulib is available through git.
59780         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59781
59782 2007-03-30  Bruno Haible  <bruno@clisp.org>
59783
59784         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59785         * lib/poll_.h: Likewise.
59786         * lib/stat_.h: Likewise.
59787         * lib/sys_time_.h: Likewise.
59788         * lib/sysexit_.h: Likewise.
59789         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59790         * lib/stdbool_.h: Likewise.
59791         * lib/byteswap_.h: Add double-inclusion guard.
59792
59793 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59794
59795         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59796
59797 2007-03-30  Karl Berry  <karl@gnu.org>
59798
59799         * config/srclist-update: double space after USA in the license
59800         substitution, since that's how it's usually (?) written.
59801
59802 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59803
59804         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59805         reported by Bruno Haible.
59806
59807 2007-03-29  Bruno Haible  <bruno@clisp.org>
59808
59809         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59810         a bug in AIX iconv().
59811
59812 2007-03-29  Bruno Haible  <bruno@clisp.org>
59813
59814         * modules/ldexpl-tests: New file.
59815         * tests/test-ldexpl.c: New file.
59816
59817 2007-03-29  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/ldexpl.c: Include fpucw.h.
59820         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59821         multiplication.
59822         * modules/ldexpl (Depends-on): Add fpucw.
59823
59824 2007-03-29  Bruno Haible  <bruno@clisp.org>
59825
59826         * modules/ldexpl: New file.
59827         * m4/ldexpl.m4: New file.
59828         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59829         set.
59830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59831         REPLACE_LDEXPL.
59832         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59833         REPLACE_LDEXPL.
59834         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59835         gl_FUNC_LDEXPL_WORKS.
59836         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59837         * modules/mathl (Files): Remove lib/ldexpl.c.
59838         (Depends-on): Add ldexpl.
59839
59840 2007-03-29  Bruno Haible  <bruno@clisp.org>
59841
59842         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59843
59844 2007-03-29  Bruno Haible  <bruno@clisp.org>
59845
59846         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59847         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59848         and possibly also HP-UX.
59849         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59850         work on AIX, IRIX, HP-UX, OSF/1.
59851         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59852         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59853         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59854         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59855         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59856         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59857
59858 2007-03-29  Bruno Haible  <bruno@clisp.org>
59859
59860         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59861
59862 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59865         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59866
59867 2007-03-29  Eric Blake  <ebb9@byu.net>
59868
59869         * lib/acl-internal.h: Remove redundant include.
59870         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59871         Cygwin when a file is locked.
59872
59873 2007-03-29  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59876         file.
59877         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59878
59879 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59880
59881         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59882         try to remove a parent directory if the child couldn't be removed
59883         (except for the first rmdir, which could fail because the child
59884         doesn't exist).  Problem reported by Jeff Blaine in
59885         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59886
59887 2007-03-28  Bruno Haible  <bruno@clisp.org>
59888
59889         * lib/striconveh.c (utf8conv_carefully): New function.
59890         (mem_cd_iconveh_internal): Invoke it.
59891
59892 2007-03-28  Bruno Haible  <bruno@clisp.org>
59893
59894         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59895         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59896         input.
59897         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59898         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59899         unistr/u8-uctomb.
59900
59901 2007-03-28  Bruno Haible  <bruno@clisp.org>
59902
59903         * modules/unistr/u8-mbtoucr: New file.
59904         * lib/unistr/u8-mbtoucr.c: New file.
59905         * modules/unistr/u16-mbtoucr: New file.
59906         * lib/unistr/u16-mbtoucr.c: New file.
59907         * modules/unistr/u16-mbtoucr: New file.
59908         * lib/unistr/u16-mbtoucr.c: New file.
59909         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59910
59911 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59912             Bruno Haible  <bruno@clisp.org>
59913
59914         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59915         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59916         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59917
59918         * m4/stdio_h.m4: Add stubs for vasprintf too.
59919
59920         * modules/stdio: Support vasprintf in sed command.
59921
59922         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59923         vasprintf.h.  Add stdio module indicator.
59924
59925         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59926         vasprintf.h.
59927
59928         * lib/vasprintf.h: File removed.
59929
59930         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59931         * lib/vasprintf.c: Ditto.
59932         * lib/xvasprintf.c: Ditto.
59933         * tests/test-vasprintf-posix.c: Ditto.
59934         * tests/test-vasprintf.c: Ditto.
59935
59936 2007-03-27  Bruno Haible  <bruno@clisp.org>
59937
59938         Make vasnprintf multithread-safe.
59939         * lib/vasnprintf.c (decimal_point_char): New function.
59940         (VASNPRINTF): Use it.
59941         Suggested by Simon Josefsson.
59942
59943 2007-03-27  Eric Blake  <ebb9@byu.net>
59944
59945         Support sub-second birthtime on cygwin.
59946         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59947         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59948         (get_stat_birthtime): Also work with st_birthtim.
59949
59950 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59953         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59954         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59955         (get_stat_birthtime_ns): Simplify compile-time tests.
59956         (get_stat_birthtime): Change the API to look like
59957         get_stat_mtime etc., except return a negative tv_nsec on error.
59958         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59959         Don't check for "spare" fields.
59960         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59961         or for struct stat.st_birthtime, as these tests aren't used.
59962         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59963
59964 2007-03-27  Bruno Haible  <bruno@clisp.org>
59965
59966         * lib/stat-time.h: Include <sys/stat.h>.
59967
59968 2007-03-27  James Youngman  <jay@gnu.org>
59969
59970         * lib/stat-time.h (get_stat_birthtime): New function for
59971           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59972         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59973           and its variants.
59974         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59975         * modules/stat-time-test: New file.
59976         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59977
59978 2007-03-26  Bruno Haible  <bruno@clisp.org>
59979
59980         Better support of signalling NaNs.
59981         * lib/atanl.c: Include isnanl.h.
59982         (atanl): Perform test for NaN at the beginning of the function and
59983         through a call to isnanl.
59984         * lib/cosl.c: Include isnanl.h.
59985         (cosl): Perform test for NaN at the beginning of the function and
59986         through a call to isnanl.
59987         * lib/ldexpl.c: Include isnanl.h.
59988         (ldexpl): Perform test for NaN through a call to isnanl.
59989         * lib/logl.c: Include isnanl.h.
59990         (logl): Perform test for NaN at the beginning of the function and
59991         through a call to isnanl.
59992         * lib/sinl.c: Include isnanl.h.
59993         (sinl): Perform test for NaN at the beginning of the function and
59994         through a call to isnanl.
59995         * lib/sqrtl.c: Include isnanl.h.
59996         (sqrtl): Perform test for NaN at the beginning of the function and
59997         through a call to isnanl.
59998         * lib/tanl.c: Include isnanl.h.
59999         (tanl): Perform test for NaN at the beginning of the function and
60000         through a call to isnanl.
60001         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60002         * modules/mathl (Depends-on): Add isnanl.
60003
60004 2007-03-26  Eric Blake  <ebb9@byu.net>
60005
60006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60007         regression in logic sense of previous patch.
60008
60009 2007-03-26  Bruno Haible  <bruno@clisp.org>
60010
60011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60012         unportable shell command "if ! ...".
60013         Reported by Ralf Wildenhues.
60014
60015 2007-03-25  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60018         <sysexits.h> file, and only add EX_CONFIG.
60019         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60020         absolute file name and whether it is sufficient. Substitute also
60021         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60022         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60023         ABSOLUTE_SYSEXITS_H into sysexits.h.
60024
60025 2007-03-25  Bruno Haible  <bruno@clisp.org>
60026
60027         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60028         hints is NULL.
60029
60030 2007-03-25  Bruno Haible  <bruno@clisp.org>
60031
60032         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60033         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60034
60035 2007-03-25  Bruno Haible  <bruno@clisp.org>
60036
60037         * lib/vasnprintf.c: Include langinfo.h.
60038         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60039         multithread-safe.
60040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60049         Reported by Simon Josefsson.
60050
60051 2007-03-25  Bruno Haible  <bruno@clisp.org>
60052
60053         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60054         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60055         * modules/vasnprintf (Depends-on): Add stdint.
60056
60057 2007-03-25  Bruno Haible  <bruno@clisp.org>
60058
60059         * modules/fpieee: New file.
60060         * m4/fpieee.m4: New file.
60061         * modules/isnan-nolibm (Depends-on): Add fpieee.
60062         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60063         * modules/isnanl (Depends-on): Add fpieee.
60064
60065 2007-03-25  Bruno Haible  <bruno@clisp.org>
60066
60067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60068
60069 2007-03-25  Bruno Haible  <bruno@clisp.org>
60070
60071         Avoid test failures on IRIX 6.5.
60072         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60073         (main): Use it.
60074         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60075         macros.
60076         (main): Use them.
60077
60078 2007-03-25  Bruno Haible  <bruno@clisp.org>
60079
60080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60081         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60082         exists but doesn't work.
60083         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60084         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60086         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60087         math.h.
60088
60089 2007-03-25  Bruno Haible  <bruno@clisp.org>
60090
60091         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60092         returns inf. Needed on IRIX 6.5.
60093
60094 2007-03-25  Bruno Haible  <bruno@clisp.org>
60095
60096         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60097         (main): Use isnanl instead of x != x idiom.
60098         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60099
60100         * tests/test-frexp.c: Include isnan.h.
60101         (main): Use isnan instead of x != x idiom.
60102         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60103
60104 2007-03-25  Bruno Haible  <bruno@clisp.org>
60105
60106         * tests/test-frexp.c (NaN): New function/macro.
60107         (main): Use it instead of 0.0 / 0.0.
60108         * tests/test-isnan.c (NaN): New function/macro.
60109         (main): Use it instead of 0.0 / 0.0.
60110         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60111         (test_function): Use it instead of 0.0 / 0.0.
60112         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60113         (test_function): Use it instead of 0.0 / 0.0.
60114         * tests/test-snprintf-posix.h (NaN): New function/macro.
60115         (test_function): Use it instead of 0.0 / 0.0.
60116         * tests/test-sprintf-posix.h (NaN): New function/macro.
60117         (test_function): Use it instead of 0.0 / 0.0.
60118         * tests/test-fprintf-posix.h (NaN): New function/macro.
60119         (test_function): Use it instead of 0.0 / 0.0.
60120         * tests/test-printf-posix.h (NaN): New function/macro.
60121         (test_function): Use it instead of 0.0 / 0.0.
60122
60123         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60124
60125 2007-03-25  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60128
60129 2007-03-25  Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/regexec.c (merge_state_with_log): Make static.
60132
60133 2007-03-25  Bruno Haible  <bruno@clisp.org>
60134
60135         * lib/trigl.c (kernel_rem_pio2): Make static.
60136
60137 2007-03-25  Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/sincosl.c (sincosl_table): Make static.
60140
60141 2007-03-25  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60144         if the compiler does not support C99.
60145
60146 2007-03-25  Bruno Haible  <bruno@clisp.org>
60147
60148         * modules/time (Makefile.am): Ensure all rule action lines start with a
60149         tab.
60150
60151 2007-03-24  Bruno Haible  <bruno@clisp.org>
60152
60153         * modules/tsearch-tests: New file.
60154         * tests/test-tsearch.sh: New file.
60155         * tests/test-tsearch.c: New file, mostly copied from glibc.
60156
60157         * modules/search-tests: New file.
60158         * tests/test-search.c: New file.
60159
60160         * modules/search: New file.
60161         * lib/search_.h: New file, incorporating lib/tsearch.h.
60162         * m4/search_h.m4: New file.
60163         * lib/tsearch.h: Remove file.
60164         * lib/tsearch.c: Include search.h instead of tsearch.h.
60165         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60166         HAVE_TSEARCH.
60167         * modules/tsearch (Files): Remove lib/tsearch.h.
60168         (Depends-on): Add search.
60169         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60170         (Include): Change tsearch.h into search.h.
60171
60172 2007-03-24  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/fpucw: New file.
60175         * lib/fpucw.h: New file.
60176         * lib/frexp.c: Include fpucw.h.
60177         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60178         (FUNC): Use them.
60179         * lib/printf-frexp.c: Include fpucw.h.
60180         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60181         (FUNC): Use them.
60182         * lib/vasnprintf.c: Include fpucw.h.
60183         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60184         'long double' calculations.
60185         * tests/test-frexpl.c: Include fpucw.h.
60186         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60187         * tests/test-printf-frexpl.c: Include fpucw.h.
60188         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60189         * modules/frexpl (Depends-on): Add fpucw.
60190         * modules/printf-frexpl (Depends-on): Likewise.
60191         * modules/fprintf-posix (Depends-on): Likewise.
60192         * modules/snprintf-posix (Depends-on): Likewise.
60193         * modules/sprintf-posix (Depends-on): Likewise.
60194         * modules/vasnprintf-posix (Depends-on): Likewise.
60195         * modules/vasprintf-posix (Depends-on): Likewise.
60196         * modules/vfprintf-posix (Depends-on): Likewise.
60197         * modules/vsnprintf-posix (Depends-on): Likewise.
60198         * modules/vsprintf-posix (Depends-on): Likewise.
60199         * modules/frexpl-tests (Depends-on): Likewise.
60200         * modules/printf-frexpl-tests (Depends-on): Likewise.
60201
60202 2007-03-24  Bruno Haible  <bruno@clisp.org>
60203
60204         * lib/float+.h: New file.
60205         * lib/isnan.c: Include float+.h.
60206         (SIZE): New macro.
60207         (FUNC): Compare only SIZE bytes of the value.
60208         * lib/vasnprintf.c: Include float+.h.
60209         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60210         SIZEOF_LDBL or SIZEOF_DBL bytes.
60211         * modules/isnan-nolibm (Files): Add lib/float+.h.
60212         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60213         * modules/isnanl (Files): Add lib/float+.h.
60214         * modules/vasnprintf (Files): Add lib/float+.h.
60215
60216 2007-03-24  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60219         include isnanl-nolibm.h.
60220
60221 2007-03-24  Bruno Haible  <bruno@clisp.org>
60222
60223         * tests/test-read-file.c (main): Don't produce spurious output for
60224         expected situations. Make the test fail if it encountered unexpected
60225         results.
60226
60227 2007-03-24  Bruno Haible  <bruno@clisp.org>
60228
60229         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60230         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60231
60232 2007-03-24  Bruno Haible  <bruno@clisp.org>
60233
60234         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60235
60236 2007-03-24  Bruno Haible  <bruno@clisp.org>
60237
60238         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60239         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60240
60241         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60242         * modules/utf8-ucs4: Turn into a symbolic link to module
60243         unistr/u8-mbtouc.
60244
60245         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60246         utf8-ucs4-unsafe.
60247         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60248         unistr/u8-mbtouc-unsafe.
60249
60250         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60251         * modules/utf16-ucs4: Turn into a symbolic link to module
60252         unistr/u16-mbtouc.
60253
60254         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60255         utf16-ucs4-unsafe.
60256         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60257         unistr/u16-mbtouc-unsafe.
60258
60259         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60260         * modules/ucs4-utf8: Turn into a symbolic link to module
60261         unistr/u8-ubtomb.
60262
60263         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60264         * modules/ucs4-utf16: Turn into a symbolic link to module
60265         unistr/u16-ubtomb.
60266
60267 2007-03-24  Bruno Haible  <bruno@clisp.org>
60268
60269         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60270         Enable the function only if HAVE_INLINE.
60271         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60272         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60273         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60274         Enable the function only if HAVE_INLINE.
60275         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60276         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60277         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60278         Enable the function only if HAVE_INLINE.
60279         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60280         Enable the function only if HAVE_INLINE.
60281         * modules/utf8-ucs4: Update.
60282         * modules/utf8-ucs4-unsafe: Update.
60283         * modules/utf16-ucs4: Update.
60284         * modules/utf16-ucs4-unsafe: Update.
60285         * modules/ucs4-utf8: Update.
60286         * modules/ucs4-utf16: Update.
60287
60288 2007-03-24  Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/utf8-ucs4.h: Remove file.
60291         * lib/utf8-ucs4-unsafe.h: Remove file.
60292         * lib/utf16-ucs4.h: Remove file.
60293         * lib/utf16-ucs4-unsafe.h: Remove file.
60294         * lib/ucs4-utf8.h: Remove file.
60295         * lib/ucs4-utf16.h: Remove file.
60296         * lib/unistr.h: Include their previous contents.
60297         * m4/utf-ucs4.m4: Remove file.
60298         * m4/ucs4-utf.m4: Remove file.
60299         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60300         (Depends-on): Add unistr/base.
60301         (configure.ac): Remove gl_UTF_UCS4.
60302         (Makefile.am): Update.
60303         (Include): Change to unistr.h.
60304         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60305         (Depends-on): Add unistr/base.
60306         (configure.ac): Remove gl_UTF_UCS4.
60307         (Makefile.am): Update.
60308         (Include): Change to unistr.h.
60309         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60310         (Depends-on): Add unistr/base.
60311         (configure.ac): Remove gl_UTF_UCS4.
60312         (Makefile.am): Update.
60313         (Include): Change to unistr.h.
60314         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60315         (Depends-on): Add unistr/base.
60316         (configure.ac): Remove gl_UTF_UCS4.
60317         (Makefile.am): Update.
60318         (Include): Change to unistr.h.
60319         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60320         (Depends-on): Add unistr/base.
60321         (configure.ac): Remove gl_UCS4_UTF.
60322         (Makefile.am): Update.
60323         (Include): Change to unistr.h.
60324         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60325         (Depends-on): Add unistr/base.
60326         (configure.ac): Remove gl_UCS4_UTF.
60327         (Makefile.am): Update.
60328         (Include): Change to unistr.h.
60329         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60330         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60331         utf8-ucs4-unsafe.h.
60332         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60333         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60334         utf16-ucs4-unsafe.h.
60335         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60336         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60337         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60338         * lib/unistr/u8-strchr.c: Likewise.
60339         * lib/unistr/u8-strrchr.c: Likewise.
60340         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60341         * lib/unistr/u16-strchr.c: Likewise.
60342         * lib/unistr/u16-strrchr.c: Likewise.
60343         * lib/striconveh.c: Update.
60344         * lib/linebreak.c: Update.
60345
60346 2007-03-24  Bruno Haible  <bruno@clisp.org>
60347
60348         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60349         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60350
60351 2007-03-22  Bruno Haible  <bruno@clisp.org>
60352
60353         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60354
60355 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * MODULES.html.sh (File system functions): New module write-any-file.
60358         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60359         * m4/write-any-file.m4: New files.
60360
60361 2007-03-23  Eric Blake  <ebb9@byu.net>
60362
60363         * gnulib-tool: Rearrange space-tab sequences, since some editors
60364         like to eat them.
60365
60366 2007-03-23  Eric Blake  <ebb9@byu.net>
60367
60368         * lib/version-etc.c (version_etc_va): Update license wording to
60369         be more concise.  Recommended by Richard Stallman.
60370
60371 2007-03-22  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/poll.c (MSG_PEEK): New fallback definition.
60374
60375 2007-03-22  Bruno Haible  <bruno@clisp.org>
60376
60377         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60378         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60379         (main): Update.
60380         Fixes a compilation error on BeOS.
60381
60382 2007-03-22  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/frexpl-tests: New file.
60385         * tests/test-frexpl.c: New file.
60386
60387         * modules/frexpl: New file.
60388         * m4/frexpl.m4: New file.
60389         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60390         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60392         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60393         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60394         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60395
60396 2007-03-22  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/frexpl.c: Share code with lib/frexp.c.
60399         * modules/mathl (Files): Add lib/frexp.c.
60400         (Depends-on): Add isnanl-nolibm.
60401
60402 2007-03-22  Bruno Haible  <bruno@clisp.org>
60403
60404         * modules/printf-frexp (Files): Add m4/frexp.m4.
60405         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60406         only if the found frexp function actually works.
60407
60408 2007-03-22  Bruno Haible  <bruno@clisp.org>
60409
60410         * lib/frexp.c: Remove older implementation that uses divisions.
60411
60412 2007-03-21  Bruno Haible  <bruno@clisp.org>
60413
60414         * modules/frexp-tests: New file.
60415         * tests/test-frexp.c: New file.
60416
60417         * modules/frexp: New file.
60418         * lib/frexp.c: New file.
60419         * m4/frexp.m4: New file.
60420         * lib/math_.h (frexp): New declaration.
60421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60422         REPLACE_FREXP.
60423         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60424
60425 2007-03-21  Bruno Haible  <bruno@clisp.org>
60426
60427         * modules/isnanl-tests: New file.
60428         * tests/test-isnanl.c: New file.
60429
60430         * modules/isnanl: New file.
60431         * lib/isnanl.h: New file.
60432         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60433         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60434         gl_FUNC_ISNANL_WORKS.
60435         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60436         New macros.
60437
60438 2007-03-21  Bruno Haible  <bruno@clisp.org>
60439
60440         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60441         lib/isnanl.h.
60442         (Include): Update.
60443         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60444         * lib/vasnprintf.c: Update.
60445         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60446         tests/test-isnanl.h, remove tests/test-isnanl.c.
60447         (Makefile.am): Update.
60448         * tests/test-isnanl-nolibm.c: New file.
60449         * tests/test-isnanl.h: New file.
60450         * tests/test-isnanl.c: Remove file.
60451
60452 2007-03-21  Jim Meyering  <jim@meyering.net>
60453
60454         When trying to open ".", treat ESTALE like EACCES.
60455         * lib/savewd.c (savewd_save): Resort to forking not just upon
60456         failure with EACCES, but also when errno is ESTALE.
60457
60458 2007-03-20  Bruno Haible  <bruno@clisp.org>
60459
60460         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60461         Needed on AIX 5.1. Reported by Matthew Woehlke.
60462
60463 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         Suggestions by Bruno Haible:
60466         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60467         our own.
60468         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60469         * modules/acl (Depends-on): Add gettext.
60470
60471 2007-03-19  Bruno Haible  <bruno@clisp.org>
60472
60473         * modules/iconvme: Remove file.
60474         * lib/iconvme.h: Remove file.
60475         * lib/iconvme.c: Remove file.
60476         * m4/iconvme.m4: Remove file.
60477
60478 2007-03-19  Bruno Haible  <bruno@clisp.org>
60479
60480         * doc/relocatable-maint.texi: Break long shell script line.
60481         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60482
60483 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60484
60485         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60486         handle file_has_acl.
60487         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60488         * lib/acl.c: Move header inclusions and related macro defns into
60489         lib/acl-internal.h.
60490         (S_ISLNK): Remove defn, since that's now done for us.
60491         (file_has_acl): Move to lib/file-has-acl.c.
60492         Call acl_trivial if available.  This is the crucial part of the fix.
60493         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60494         shared within the library.  Rewrite a bit, partly to make it compatible
60495         with the GNU coding style.
60496         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60497         Remove unnecessary double-quotes.
60498         Don't test for acl_to_text; the build will catch that.
60499         Replace acl_entries if it doesn't exist and it is needed.
60500         Check for -lsec and acl_trivial (as used on Solaris 10).
60501         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60502         lib/file-has-acl.c.
60503         (Depends-on): Add sys_stat, for S_ISLNK.
60504
60505 2007-03-19  Ben Pfaff  <blp@gnu.org>
60506
60507         * doc/gnulib.texi: Fix typos.
60508         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60509
60510 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60511
60512         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60513         If size is zero here, buf must be zero.
60514
60515 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60516
60517         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60518         <bruno@clisp.org>.
60519
60520 2007-03-18  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60523         Suggested by Eric Blake.
60524
60525 2007-03-18  Ben Pfaff  <blp@gnu.org>
60526
60527         * doc/relocatable.texi: Recommend using as prefix a directory
60528         that does not exist and will never be created.  Based on
60529         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60530         and others.
60531
60532 2007-03-17  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/fchownat.c: Include lchown.h.
60535
60536 2007-03-17  Bruno Haible  <bruno@clisp.org>
60537
60538         Fix endless loop when the given allocated size was > INT_MAX.
60539         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60540         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60541         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60542         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60543         * lib/sprintf.c (sprintf): Likewise.
60544
60545 2007-03-17  Bruno Haible  <bruno@clisp.org>
60546
60547         * tests/test-argp-2.sh (func_compare): Output a context diff.
60548
60549 2007-03-17  Bruno Haible  <bruno@clisp.org>
60550
60551         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60552         locale's decimal-point character.
60553
60554 2007-03-17  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60557         before comparing it. Needed because on some platforms (e.g. x86) a
60558         'long double' occupies less bytes than sizeof (long double).
60559
60560 2007-03-17  Bruno Haible  <bruno@clisp.org>
60561
60562         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60563         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60564         * tests/test-getaddrinfo.c (simple): Likewise.
60565         * tests/test-read-file.c (main): Likewise.
60566
60567 2007-03-17  Bruno Haible  <bruno@clisp.org>
60568
60569         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60570
60571 2007-03-17  Bruno Haible  <bruno@clisp.org>
60572
60573         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60574         unused variable.
60575
60576 2007-03-17  Bruno Haible  <bruno@clisp.org>
60577
60578         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60579         * tests/test-c-strncasecmp.c: Likewise.
60580
60581 2007-03-17  Bruno Haible  <bruno@clisp.org>
60582
60583         * modules/stdlib (Depends-on): Add unistd.
60584         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60585         Needed for MacOS X 10.3.
60586
60587 2007-03-17  Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60590
60591 2007-03-17  Bruno Haible  <bruno@clisp.org>
60592
60593         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60594
60595 2007-03-17  Bruno Haible  <bruno@clisp.org>
60596
60597         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60598         to reflect files copied from gnulib (with or without modifications).
60599         Suggested by Jim Meyering.
60600
60601 2007-03-17  Eric Blake  <ebb9@byu.net>
60602
60603         * NEWS: Document stdlib change from 2007-02-18.
60604
60605 2007-03-17  Jim Meyering  <jim@meyering.net>
60606
60607         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60608         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60609         someone uses a name containing shell meta-characters.
60610         Reported by Alfred M. Szmidt.
60611
60612         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60613
60614 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60615
60616         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60617         and copy gettext configuration files only if configure.ac contains
60618         a use of AM_GNU_GETTEXT_VERSION.
60619
60620 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60621
60622         * build-aux/bootstrap (gnulib_name): New variable.
60623         (gnulib_tool_options): Use it.
60624
60625 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60626
60627         * tests/test-des.c: Use new namespace.
60628
60629 2007-03-15  Bruno Haible  <bruno@clisp.org>
60630
60631         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60632         Reported by James Youngman <jay@gnu.org>.
60633
60634 2007-03-15  Bruno Haible  <bruno@clisp.org>
60635
60636         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60637         declared prototype. Needed with cc on OSF/1 5.1.
60638
60639 2007-03-15  Bruno Haible  <bruno@clisp.org>
60640
60641         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60642         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60643         (struct gl_list_implementation): Add dispose_fn argument to the
60644         'create_empty', 'create' methods.
60645         (struct gl_list_impl_base): Add field 'dispose_fn'.
60646         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60647         argument.
60648         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60649         dispose_fn argument.
60650         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60651         dispose_fn on the dropped values.
60652         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60653         dispose_fn argument.
60654         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60655         dropped values.
60656         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60657         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60658         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60659         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60660         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60661         argument.
60662         (gl_tree_list_free): Call dispose_fn on the dropped values.
60663         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60664         the dropped values.
60665         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60666         Add dispose_fn argument.
60667         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60668         Call dispose_fn on the dropped values.
60669         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60670         Add dispose_fn argument.
60671         (gl_sublist_create): Initialize the 'dispose_fn' field.
60672         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60673         * tests/test-array_list.c (main): Update.
60674         * tests/test-carray_list.c (main): Update.
60675         * tests/test-avltree_list.c (main): Update.
60676         * tests/test-rbtree_list.c (main): Update.
60677         * tests/test-avltreehash_list.c (main): Update.
60678         * tests/test-rbtreehash_list.c (main): Update.
60679         * tests/test-linked_list.c (main): Update.
60680         * tests/test-linkedhash_list.c (main): Update.
60681         * tests/test-array_oset.c (main): Update.
60682
60683 2007-03-15  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60686         (gl_oset_create_empty): Add dispose_fn argument.
60687         (struct gl_oset_implementation): Add dispose_fn argument to
60688         'create_empty' method.
60689         (struct gl_oset_impl_base): Add dispose_fn field.
60690         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60691         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60692         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60693         values.
60694         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60695         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60696         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60697         dropped value.
60698         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60699         dropped value.
60700         * tests/test-array_oset.c (main): Update.
60701         * tests/test-avltree_oset.c (main): Update.
60702         * tests/test-rbtree_oset.c (main): Update.
60703         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60704
60705 2007-03-13  Bruno Haible  <bruno@clisp.org>
60706
60707         * tests/test-stdbool.c (i): Update after last patch.
60708
60709 2007-03-12  Bruno Haible  <bruno@clisp.org>
60710
60711         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60712         the iswprint macro. Needed on Solaris 2.5.1.
60713
60714 2007-03-12  Bruno Haible  <bruno@clisp.org>
60715
60716         * tests/test-printf-frexp.c (main): Declare x as volatile.
60717
60718 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60719
60720         * doc/gnulib.texi (Build robot for gnulib): New section.
60721
60722 2007-03-12  Jim Meyering  <jim@meyering.net>
60723
60724         * build-aux/bootstrap: New file.
60725         * build-aux/bootstrap.conf: New file, from coreutils.
60726
60727 2007-03-11  Bruno Haible  <bruno@clisp.org>
60728
60729         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60730
60731 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60732
60733         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60734         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60735         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60736
60737 2007-03-11  Bruno Haible  <bruno@clisp.org>
60738
60739         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60740         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60741
60742 2007-03-11  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60745         formula. Needed for SunPRO C 5.0.
60746
60747 2007-03-11  Bruno Haible  <bruno@clisp.org>
60748
60749         * modules/long-options (Depends-on): Add getopt.
60750
60751 2007-03-11  Bruno Haible  <bruno@clisp.org>
60752
60753         * modules/modechange (Depends-on): Add stdbool.
60754
60755 2007-03-11  Bruno Haible  <bruno@clisp.org>
60756
60757         * modules/i-ring (Depends-on): Add stdbool.
60758
60759 2007-03-11  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/gc-des (Depends-on): Add stdbool.
60762
60763 2007-03-11  Bruno Haible  <bruno@clisp.org>
60764
60765         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60766
60767 2007-03-11  Bruno Haible  <bruno@clisp.org>
60768
60769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60770
60771 2007-03-11  Bruno Haible  <bruno@clisp.org>
60772
60773         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60774
60775 2007-03-11  Bruno Haible  <bruno@clisp.org>
60776
60777         * lib/vasnprintf.c (sprintf): Undefine.
60778
60779 2007-03-11  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60782         initializers in SunPRO C and Compaq C compilers.
60783
60784 2007-03-11  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60787         decrementing code ANSI C compliant.
60788
60789 2007-03-11  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60792         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60793
60794 2007-03-11  Bruno Haible  <bruno@clisp.org>
60795
60796         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60797         <stdbool.h> substitute doesn't pass.
60798
60799 2007-03-11  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60802
60803 2007-03-11  Bruno Haible  <bruno@clisp.org>
60804
60805         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60806         script, for submission to autobuild.josefsson.org.
60807
60808 2007-03-10  Bruno Haible  <bruno@clisp.org>
60809
60810         * modules/canonicalize-lgpl-tests: New file.
60811         * tests/test-canonicalize-lgpl.sh: New file.
60812         * tests/test-canonicalize-lgpl.c: New file.
60813
60814         * modules/c-strcase-tests: New file.
60815         * tests/test-c-strcase.sh: New file.
60816         * tests/test-c-strcasecmp.c: New file.
60817         * tests/test-c-strncasecmp.c: New file.
60818
60819         * modules/atexit-tests: New file.
60820         * tests/test-atexit.sh: New file.
60821         * tests/test-atexit.c: New file.
60822
60823 2007-03-10  Bruno Haible  <bruno@clisp.org>
60824
60825         * tests/test-binary-io.sh: Use temporary filenames that are not so
60826         likely to clash with those of other tests (in a parallel make).
60827         * tests/test-binary-io.c: Likewise.
60828
60829 2007-03-10  Bruno Haible  <bruno@clisp.org>
60830
60831         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60832         fallback; use #error instead.
60833         Suggested by Simon Josefsson.
60834
60835 2007-03-10  Bruno Haible  <bruno@clisp.org>
60836
60837         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60838         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60839         first and the last.
60840
60841 2007-03-10  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60844
60845 2007-03-10  Bruno Haible  <bruno@clisp.org>
60846
60847         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60848         "make distcheck".
60849         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60850         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60851         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60852
60853 2007-03-10  Bruno Haible  <bruno@clisp.org>
60854
60855         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60856         variable.
60857         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60858         variable.
60859
60860 2007-03-09  Eric Blake  <ebb9@byu.net>
60861         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60862
60863         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60864         types are not being provided by gnulib.
60865         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60866         types are supported.
60867
60868 2007-03-10  Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/stdio_.h (__attribute__): New macro.
60871         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60872         vsprintf): Specify __attribute__ __format__ for GCC.
60873         Suggested by Eric Blake.
60874
60875 2007-03-09  Bruno Haible  <bruno@clisp.org>
60876
60877         * modules/printf-posix-tests: New file.
60878         * tests/test-printf-posix.sh: New file.
60879         * tests/test-printf-posix.c: New file.
60880
60881         * modules/printf-posix: New file.
60882         * lib/printf.c: New file.
60883         * m4/printf-posix-rpl.m4: New file.
60884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60885         REPLACE_PRINTF.
60886         * lib/stdio_.h (printf): New declaration.
60887         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60888         ____strfmon____): New macros.
60889         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60890         REPLACE_PRINTF.
60891
60892 2007-03-09  Bruno Haible  <bruno@clisp.org>
60893
60894         * tests/test-vasnprintf-posix2.sh: New file.
60895         * tests/test-vasnprintf-posix2.c: New file.
60896         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60897         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60898         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60899
60900         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60901         a locale dependent decimal point, rather than always '.'.
60902
60903 2007-03-09  Eric Blake  <ebb9@byu.net>
60904
60905         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60906         spite of platforms like Tandem/NSK that define it to -1.
60907
60908 2007-03-08  Bruno Haible  <bruno@clisp.org>
60909
60910         * modules/vprintf-posix-tests: New file.
60911         * tests/test-vprintf-posix.sh: New file.
60912         * tests/test-vprintf-posix.c: New file.
60913         * tests/test-printf-posix.h: New file.
60914
60915         * modules/vprintf-posix: New file.
60916         * lib/vprintf.c: New file.
60917         * m4/vprintf-posix.m4: New file.
60918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60919         REPLACE_VPRINTF.
60920         * lib/stdio_.h (vprintf): New declaration.
60921         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60922         REPLACE_VPRINTF.
60923
60924 2007-03-08  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/fprintf-posix-tests: New file.
60927         * tests/test-fprintf-posix.sh: New file.
60928         * tests/test-fprintf-posix.c: New file.
60929
60930         * modules/fprintf-posix: New file.
60931         * lib/fprintf.c: New file.
60932         * m4/fprintf-posix.m4: New file.
60933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60934         REPLACE_FPRINTF.
60935         * lib/stdio_.h (fprintf): New declaration.
60936         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60937         REPLACE_FPRINTF.
60938
60939 2007-03-08  Bruno Haible  <bruno@clisp.org>
60940
60941         * modules/vfprintf-posix-tests: New file.
60942         * tests/test-vfprintf-posix.sh: New file.
60943         * tests/test-vfprintf-posix.c: New file.
60944         * tests/test-fprintf-posix.h: New file.
60945         * tests/test-fprintf-posix.out: New file.
60946
60947         * modules/vfprintf-posix: New file.
60948         * lib/vfprintf.c: New file.
60949         * m4/vfprintf-posix.m4: New file.
60950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60951         REPLACE_VFPRINTF.
60952         * lib/stdio_.h (vfprintf): New declaration.
60953         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60954         REPLACE_VFPRINTF.
60955
60956 2007-03-08  Bruno Haible  <bruno@clisp.org>
60957
60958         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60959
60960 2007-03-08  Bruno Haible  <bruno@clisp.org>
60961
60962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60963         instead of 'expr' invocations.
60964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60968         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60969         Suggested by Paul Eggert.
60970
60971 2007-03-08  Bruno Haible  <bruno@clisp.org>
60972
60973         * modules/fseterr-tests: New file.
60974         * tests/test-fseterr.c: New file.
60975
60976         * modules/fseterr: New file.
60977         * lib/fseterr.h: New file.
60978         * lib/fseterr.c: New file.
60979
60980 2007-03-08  Bruno Haible  <bruno@clisp.org>
60981
60982         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60983         * lib/getopt_.h: Likewise.
60984         * lib/mbswidth.h: Likewise.
60985         * lib/setenv.h: Likewise.
60986         * lib/vasnprintf.h: Likewise.
60987         * lib/vasprintf.h: Likewise.
60988         * lib/verror.h: Likewise.
60989         * lib/xsetenv.h: Likewise.
60990         * lib/xvasprintf.h: Likewise.
60991
60992 2007-03-08  Jim Meyering  <jim@meyering.net>
60993
60994         * users.txt: Add parted.
60995
60996         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60997
60998 2007-03-07  Bruno Haible  <bruno@clisp.org>
60999
61000         * m4/printf.m4: Make the shell script snippets copy&pastable.
61001
61002 2007-03-02  Bruno Haible  <bruno@clisp.org>
61003
61004         * lib/netinet_in_.h: New file.
61005         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61006         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61007         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61008         (Depends-on): Add absolute-header.
61009         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61010         into netinet/in.h.
61011
61012 2007-03-03  Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/sys_select_.h: New file.
61015         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61016         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61017         * modules/sys_select (Files): Add lib/sys_select_.h.
61018         (Depends-on): Add absolute-header.
61019         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61020         into sys/select.h.
61021
61022 2007-03-02  Bruno Haible  <bruno@clisp.org>
61023
61024         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61025         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61026         values.
61027         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61028         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61029         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61030         * modules/sys_socket (Depends-on): Add absolute-header.
61031         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61032         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61033         (Include): Remove requirement of inclusion of <sys/types.h>.
61034
61035 2007-03-02  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/byteswap_.h (bswap_32): Fix formula.
61038
61039 2007-03-06  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/sprintf-posix-tests: New file.
61042         * tests/test-sprintf-posix.c: New file.
61043
61044         * modules/sprintf-posix: New file.
61045         * lib/sprintf.c: New file.
61046         * m4/sprintf-posix.m4: New file.
61047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61048         REPLACE_SPRINTF.
61049         * lib/stdio_.h (sprintf): New declaration.
61050         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61051         REPLACE_SPRINTF.
61052
61053 2007-03-06  Bruno Haible  <bruno@clisp.org>
61054
61055         * modules/vsprintf-posix-tests: New file.
61056         * tests/test-vsprintf-posix.c: New file.
61057         * tests/test-sprintf-posix.h: New file.
61058
61059         * modules/vsprintf-posix: New file.
61060         * lib/vsprintf.c: New file.
61061         * m4/vsprintf-posix.m4: New file.
61062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61063         REPLACE_VSPRINTF.
61064         * lib/stdio_.h (vsprintf): New declaration.
61065         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61066         REPLACE_VSPRINTF.
61067
61068 2007-03-06  Bruno Haible  <bruno@clisp.org>
61069
61070         * modules/vsnprintf (Depend-on): Remove minmax.
61071
61072 2007-03-06  Bruno Haible  <bruno@clisp.org>
61073
61074         * modules/snprintf-posix-tests: New file.
61075         * tests/test-snprintf-posix.c: New file.
61076
61077         * modules/snprintf-posix: New file.
61078         * m4/snprintf-posix.m4: New file.
61079         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61080         gl_FUNC_SNPRINTF.
61081         (gl_FUNC_SNPRINTF): Invoke it.
61082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61083         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61084         is set.
61085         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61086
61087 2007-03-06  Bruno Haible  <bruno@clisp.org>
61088
61089         * modules/vsnprintf-posix-tests: New file.
61090         * tests/test-vsnprintf-posix.c: New file.
61091         * tests/test-snprintf-posix.h: New file.
61092
61093         * modules/vsnprintf-posix: New file.
61094         * m4/vsnprintf-posix.m4: New file.
61095         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61096         gl_FUNC_VSNPRINTF.
61097         (gl_FUNC_VSNPRINTF): Invoke it.
61098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61099         * lib/stdio_.h (vsnprintf): Define as a replacement if
61100         REPLACE_VSNPRINTF is set.
61101         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61102
61103 2007-03-06  Bruno Haible  <bruno@clisp.org>
61104
61105         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61107
61108 2007-03-06  Bruno Haible  <bruno@clisp.org>
61109
61110         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61111         (asinl): Declare also if HAVE_DECL_ASINL is set.
61112         (atanl): Declare also if HAVE_DECL_ATANL is set.
61113         (ceill): Declare also if HAVE_DECL_CEILL is set.
61114         (cosl): Declare also if HAVE_DECL_COSL is set.
61115         (expl): Declare also if HAVE_DECL_EXPL is set.
61116         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61117         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61118         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61119         (logl): Declare also if HAVE_DECL_LOGL is set.
61120         (sinl): Declare also if HAVE_DECL_SINL is set.
61121         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61122         (tanl): Declare also if HAVE_DECL_TANL is set.
61123         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61125         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61126         declaration of frexpl, ldexpl.
61127         * modules/printf-frexpl (Depends-on): Add math.
61128         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61129
61130 2007-03-05  Bruno Haible  <bruno@clisp.org>
61131
61132         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61133         frexpl and ldexpl are declared.
61134         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61135
61136 2007-03-05  Bruno Haible  <bruno@clisp.org>
61137
61138         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61139         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61140
61141 2007-03-05  Bruno Haible  <bruno@clisp.org>
61142
61143         * lib/stdio_.h: Include <stddef.h>.
61144
61145 2007-03-05  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61148
61149 2007-03-05  Bruno Haible  <bruno@clisp.org>
61150
61151         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61152         NetBSD 4, from Ralf Wildenhues.
61153
61154 2007-03-04  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/vasprintf.h: Update #if logic for the case when the functions
61157         exist but are overridden.
61158
61159 2007-03-04  Bruno Haible  <bruno@clisp.org>
61160
61161         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61162         implementations: glibc-2.4 and MacOS X 10.3.
61163         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61164         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61165         * tests/test-vasprintf-posix.c (test_function): Likewise.
61166
61167 2007-03-04  Bruno Haible  <bruno@clisp.org>
61168
61169         * modules/vasprintf-posix-tests: New file.
61170         * tests/test-vasprintf-posix.c: New file.
61171
61172         * modules/vasprintf-posix: New file.
61173         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61174         defined.
61175         * m4/vasprintf-posix.m4: New file.
61176         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61177         gl_FUNC_VASPRINTF.
61178         (gl_FUNC_VASPRINTF): Invoke it.
61179         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61180         here.
61181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61182
61183 2007-03-04  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61186         REPLACE_GETTIMEOFDAY.
61187         * modules/sys_time (Makefile.am): Likewise.
61188         * m4/sys_time_h.m4: Likewise.
61189         * m4/gettimeofday.m4: Likewise.
61190
61191 2007-03-04  Bruno Haible  <bruno@clisp.org>
61192
61193         * modules/vasnprintf-posix-tests: New file.
61194         * tests/test-vasnprintf-posix.c: New file.
61195
61196         * modules/vasnprintf-posix: New file.
61197         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61198         printf-frexpl.h.
61199         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61200         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61201         REPLACE_VASNPRINTF is defined.
61202         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61203         gl_FUNC_VASNPRINTF.
61204         (gl_FUNC_VASNPRINTF): Invoke it.
61205         * m4/vasnprintf-posix.m4: New file.
61206         * m4/printf.m4: New file.
61207
61208 2007-03-04  Bruno Haible  <bruno@clisp.org>
61209
61210         Compile progreloc.c only if --enable-relocatable is specified.
61211         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61212         if --enable-relocatable was specified.
61213         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61214         lib_SOURCES.
61215
61216 2007-03-04  Jim Meyering  <jim@meyering.net>
61217
61218         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61219         Use it consistently, rather than enumerating errno constants.
61220
61221 2007-03-04  Bruno Haible  <bruno@clisp.org>
61222
61223         * modules/xvasprintf-tests: New file.
61224         * tests/test-xvasprintf.c: New file.
61225
61226         * modules/vasprintf-tests: New file.
61227         * tests/test-vasprintf.c: New file.
61228
61229         * modules/vasnprintf-tests: New file.
61230         * tests/test-vasnprintf.c: New file.
61231
61232         * modules/vsnprintf-tests: New file.
61233         * tests/test-vsnprintf.c: New file.
61234
61235         * modules/snprintf-tests: New file.
61236         * tests/test-snprintf.c: New file.
61237
61238 2007-03-04  Bruno Haible  <bruno@clisp.org>
61239
61240         Compile relocatable.c only if --enable-relocatable is specified.
61241         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61242         gl_RELOCATABLE_LIBRARY.
61243         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61244         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61245         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61246         gl_RELOCATABLE_LIBRARY.
61247         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61248         (Makefile.am): Remove lib_SOURCES.
61249         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61250         gl_RELOCATABLE_LIBRARY.
61251         (Makefile.am): Remove lib_SOURCES.
61252         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61253         always.
61254         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61255         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61256
61257 2007-03-04  Bruno Haible  <bruno@clisp.org>
61258
61259         * modules/argmatch-tests: New file.
61260         * tests/test-argmatch.c: New file.
61261
61262         * tests/test-allocsa.c (main): Halve the number of loop runs.
61263
61264         * modules/alloca-opt-tests: New file.
61265         * tests/test-alloca-opt.c: New file.
61266
61267 2007-03-04  Jim Meyering  <jim@meyering.net>
61268
61269         Work around difference between Linux ACLs and Solaris 10 ZFS.
61270         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61271         for EINVAL.
61272
61273 2007-03-03  Bruno Haible  <bruno@clisp.org>
61274
61275         * modules/relocatable-prog (Depends-on): Add back progreloc's
61276         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61277
61278 2007-03-03  Bruno Haible  <bruno@clisp.org>
61279
61280         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61281         * modules/relocatable-lib: New file.
61282
61283 2007-03-03  Bruno Haible  <bruno@clisp.org>
61284
61285         * modules/relocatable-prog: Renamed from modules/relocatable.
61286         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61287
61288 2007-03-03  Bruno Haible  <bruno@clisp.org>
61289
61290         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61291         m4/relocatable-lib.m4.
61292         (Depends-on): Remove 'relocatable'.
61293         (configure.ac): Add gl_RELOCATABLE_NOP.
61294
61295 2007-03-03  Bruno Haible  <bruno@clisp.org>
61296
61297         * modules/relocatable-prog-wrapper: New file.
61298         * modules/relocatable (Depends-on): Add it. Remove all other
61299         dependencies except progname.
61300         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61301
61302         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61303         (gl_FUNC_STRERROR): Nop.
61304         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61305
61306         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61307         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61308
61309         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61310         (gl_FUNC_READLINK): Update.
61311
61312         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61313
61314 2007-03-03  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61317         * modules/xreadlink (Depends-on): Add unistd.
61318         * modules/xreadlink-with-size (Depends-on): Likewise.
61319
61320 2007-03-03  Bruno Haible  <bruno@clisp.org>
61321
61322         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61323         extracted from gt_FUNC_SETENV.
61324         (gt_FUNC_SETENV): Remove macro.
61325         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61326         remove gt_FUNC_SETENV.
61327
61328 2007-03-03  Bruno Haible  <bruno@clisp.org>
61329
61330         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61331         ENABLE_RELOCATABLE here.
61332         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61333
61334 2007-03-03  Bruno Haible  <bruno@clisp.org>
61335
61336         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61337         * tests/test-rbtreehash_list.c: Include progname.h.
61338         (main): Call set_program_name.
61339
61340         * modules/rbtree-oset-tests (Depends-on): Add progname.
61341         * tests/test-rbtree_oset.c: Include progname.h.
61342         (main): Call set_program_name.
61343
61344         * modules/rbtree-list-tests (Depends-on): Add progname.
61345         * tests/test-rbtree_list.c: Include progname.h.
61346         (main): Call set_program_name.
61347
61348         * modules/linked-list-tests (Depends-on): Add progname.
61349         * tests/test-linked_list.c: Include progname.h.
61350         (main): Call set_program_name.
61351
61352 2007-03-03  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61355         All uses of __restrict changed to _Restrict_.
61356         * lib/glob_.h (__restrict): Remove macro.
61357
61358 2007-03-02  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/gettext (configure.ac): Require gettext infrastructure
61361         from version 0.16.1.
61362
61363 2007-03-02  Bruno Haible  <bruno@clisp.org>
61364
61365         * modules/linkedhash-list-tests (Depends-on): Add progname.
61366         * tests/test-linkedhash_list.c: Include progname.h.
61367         (main): Call set_program_name.
61368
61369         * modules/carray-list-tests (Depends-on): Add progname.
61370         * tests/test-carray_list.c: Include progname.h.
61371         (main): Call set_program_name.
61372
61373         * modules/avltreehash-list-tests (Depends-on): Add progname.
61374         * tests/test-avltreehash_list.c: Include progname.h.
61375         (main): Call set_program_name.
61376
61377         * modules/avltree-oset-tests (Depends-on): Add progname.
61378         * tests/test-avltree_oset.c: Include progname.h.
61379         (main): Call set_program_name.
61380
61381         * modules/avltree-list-tests (Depends-on): Add progname.
61382         * tests/test-avltree_list.c: Include progname.h.
61383         (main): Call set_program_name.
61384
61385         * modules/array-oset-tests (Depends-on): Add progname.
61386         * tests/test-array_oset.c: Include progname.h.
61387         (main): Call set_program_name.
61388
61389         * modules/array-list-tests (Depends-on): Add progname.
61390         * tests/test-array_list.c: Include progname.h.
61391         (main): Call set_program_name.
61392
61393         * modules/argp-tests (Depends-on): Add progname.
61394         * tests/test-argp.c: Include argp.h first. Include progname.h.
61395         (main): Call set_program_name.
61396
61397 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * doc/gnulib-tool.texi (Initial import): Reword description of
61400         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61401         limited effect even if defined after the first system include.
61402
61403 2007-03-01  Bruno Haible  <bruno@clisp.org>
61404
61405         * build-aux/config.libpath: Update to libtool-1.5.22.
61406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61407
61408 2007-03-01  Bruno Haible  <bruno@clisp.org>
61409
61410         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61411         foo_CFLAGS.
61412         Reported by Ralf Wildenhues.
61413
61414 2007-03-01  Bruno Haible  <bruno@clisp.org>
61415
61416         * build-aux/install-reloc: Remove object files left over by some
61417         compilers.
61418         Reported by Ralf Wildenhues.
61419
61420 2007-03-01  Bruno Haible  <bruno@clisp.org>
61421
61422         * build-aux/install-reloc: Break long lines.
61423
61424 2007-03-01  Bruno Haible  <bruno@clisp.org>
61425
61426         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61427         Reported by Ralf Wildenhues.
61428
61429 2007-03-01  Bruno Haible  <bruno@clisp.org>
61430
61431         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61432         include ordering constraints.
61433
61434 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61435
61436         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61438         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61439         as another example.
61440         * lib/time_.h: Fix misspelling.
61441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61442         Require gl_HEADER_TIME_H_DEFAULTS.
61443         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61444         * m4/time_r.m4 (gl_TIME_R): Likewise.
61445         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61446
61447 2007-03-01  Bruno Haible  <bruno@clisp.org>
61448
61449         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61450         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61451
61452 2007-03-01  Jim Meyering  <jim@meyering.net>
61453
61454         * modules/xreadlink (Maintainer): Add my name.
61455         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61456
61457 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61458             Bruno Haible  <bruno@clisp.org>
61459
61460         * build-aux/install-reloc: Compile also c-ctype.c.
61461         * build-aux/relocatable.sh.in: New file.
61462         * doc/relocatable.texi: New file.
61463         * doc/relocatable-maint.texi: New file.
61464         * doc/gnulib.texi: Include relocatable-maint.texi.
61465         * lib/progreloc.c: Include unistd.h unconditionally.
61466         * lib/relocwrapper.c: Include unistd.h unconditionally.
61467         Include c-ctype.h.
61468         (add_dotbin): Use c_tolower.
61469         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61470         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61471         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61472         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61473         to m4/relocatable-lib.m4.
61474         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61475         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61476         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61477         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61478         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61479         * modules/relocatable: New file.
61480         * modules/relocatable-lib: New file.
61481         * modules/relocatable-script: New file.
61482
61483 2007-02-28  Bruno Haible  <bruno@clisp.org>
61484
61485         Import --enable-relocatable infrastructure.
61486         * build-aux/config.libpath: New file, from GNU gettext.
61487         * build-aux/install-reloc: New file, from GNU gettext.
61488         * build-aux/reloc-ldflags: New file, from GNU gettext.
61489         * lib/relocatable.h: New file, from GNU gettext.
61490         * lib/relocatable.c: New file, from GNU gettext.
61491         * lib/relocwrapper.c: New file, from GNU gettext.
61492         * m4/relocatable.m4: New file, from GNU gettext.
61493
61494 2007-02-28  Bruno Haible  <bruno@clisp.org>
61495
61496         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61497
61498         * modules/xreadlink: New file, from GNU gettext with modifications.
61499         * lib/xreadlink.c: New file, from GNU gettext.
61500         * lib/xreadlink.h: Add comments.
61501         (xreadlink): New declaration.
61502
61503         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61504         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61505         lib/xreadlink-with-size.c.
61506         (configure.ac): Remove gl_XREADLINK invocation.
61507         (Makefile.am): Augment lib_SOURCES.
61508         * m4/xreadlink.m4: Remove file.
61509         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61510         (xreadlink_with_size): Renamed from xreadink.
61511         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61512         * modules/canonicalize (Depends-on): Replace xreadlink with
61513         xreadlink-with-size.
61514         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61515
61516 2007-02-25  Jim Meyering  <jim@meyering.net>
61517
61518         * build-aux/announce-gen: When complaining about excess arguments,
61519         list them.
61520
61521 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61522
61523         * README: Document signed integer overflow situation more
61524         accurately.
61525
61526 2007-02-25  Bruno Haible  <bruno@clisp.org>
61527
61528         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61529         'a' or 'A' conversion.
61530
61531 2007-02-25  Bruno Haible  <bruno@clisp.org>
61532
61533         * modules/filename: Renamed from modules/pathname.
61534         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61535         lib/concatpath.c with lib/concat-filename.c.
61536         (Makefile.am): Update.
61537         (Include): Replace pathname.h with filename.h.
61538         * lib/filename.h: Renamed from lib/pathname.h.
61539         (concatenated_filename): Renamed from concatenated_pathname.
61540         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61541         (concatenated_filename): Renamed from concatenated_pathname.
61542         * lib/findprog.c: Include filename.h instead of pathname.h.
61543         (find_in_path): Update.
61544         * lib/javacomp.c: Include filename.h instead of pathname.h.
61545         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61546         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61547         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61548         is_oldgcj_14_13_usable, is_javac_usable): Update.
61549         * lib/javaexec.c: Include filename.h instead of pathname.h.
61550         (execute_java_class): Update.
61551         * modules/findprog: Update.
61552         * modules/javacomp: Update.
61553         * modules/javaexec: Update.
61554         * MODULES.html.sh (File system functions): Add 'filename', remove
61555         'pathname'.
61556
61557 2007-02-25  Bruno Haible  <bruno@clisp.org>
61558
61559         * modules/printf-frexpl-tests: New file.
61560         * tests/test-printf-frexpl.c: New file.
61561
61562         * modules/printf-frexpl: New file.
61563         * lib/printf-frexpl.h: New file.
61564         * lib/printf-frexpl.c: New file.
61565         * m4/printf-frexpl.m4: New file.
61566
61567 2007-02-25  Bruno Haible  <bruno@clisp.org>
61568
61569         * modules/printf-frexp-tests: New file.
61570         * tests/test-printf-frexp.c: New file.
61571
61572         * modules/printf-frexp: New file.
61573         * lib/printf-frexp.h: New file.
61574         * lib/printf-frexp.c: New file.
61575         * m4/printf-frexp.m4: New file.
61576
61577 2007-02-25  Bruno Haible  <bruno@clisp.org>
61578
61579         Assume automake >= 1.10 for the tests.
61580         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61581         * modules/arctwo-tests: Likewise.
61582         * modules/argp-tests: Likewise.
61583         * modules/avltree-list-tests: Likewise.
61584         * modules/avltree-oset-tests: Likewise.
61585         * modules/avltreehash-list-tests: Likewise.
61586         * modules/carray-list-tests: Likewise.
61587         * modules/crc-tests: Likewise.
61588         * modules/des-tests: Likewise.
61589         * modules/gc-arcfour-tests: Likewise.
61590         * modules/gc-arctwo-tests: Likewise.
61591         * modules/gc-des-tests: Likewise.
61592         * modules/gc-hmac-md5-tests: Likewise.
61593         * modules/gc-hmac-sha1-tests: Likewise.
61594         * modules/gc-md2-tests: Likewise.
61595         * modules/gc-md4-tests: Likewise.
61596         * modules/gc-md5-tests: Likewise.
61597         * modules/gc-pbkdf2-sha1-tests: Likewise.
61598         * modules/gc-rijndael-tests: Likewise.
61599         * modules/gc-sha1-tests: Likewise.
61600         * modules/gc-tests: Likewise.
61601         * modules/getaddrinfo-tests: Likewise.
61602         * modules/hmac-md5-tests: Likewise.
61603         * modules/hmac-sha1-tests: Likewise.
61604         * modules/linked-list-tests: Likewise.
61605         * modules/linkedhash-list-tests: Likewise.
61606         * modules/lock-tests: Likewise.
61607         * modules/md2-tests: Likewise.
61608         * modules/md4-tests: Likewise.
61609         * modules/md5-tests: Likewise.
61610         * modules/rbtree-list-tests: Likewise.
61611         * modules/rbtree-oset-tests: Likewise.
61612         * modules/rbtreehash-list-tests: Likewise.
61613         * modules/read-file-tests: Likewise.
61614         * modules/rijndael-tests: Likewise.
61615         * modules/stdint-tests: Likewise.
61616         * modules/tls-tests: Likewise.
61617
61618 2007-02-24  Bruno Haible  <bruno@clisp.org>
61619
61620         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61621         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61622         function; instead check whether isnan with a double argument links.
61623         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61624         function; instead check whether isnan with a 'long double' argument
61625         links.
61626         Reported by Eric Blake <ebb9@byu.net>.
61627
61628 2007-02-24  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61631         defined.
61632         * lib/isnanl.c: Remove all code. Just include isnan.c.
61633         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61634
61635 2007-02-25  Jim Meyering  <jim@meyering.net>
61636
61637         Avoid conflicting types for 'unsetenv' on FreeBSD.
61638         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61639         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61640         in stdlib.h.
61641
61642 2007-02-24  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/isnanl-nolibm-tests: New file.
61645         * tests/test-isnanl.c: New file.
61646
61647         * modules/isnanl-nolibm: New file.
61648         * lib/isnanl.h: New file.
61649         * lib/isnanl.c: New file.
61650         * m4/isnanl.m4: New file.
61651
61652 2007-02-24  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/isnan-nolibm-tests: New file.
61655         * tests/test-isnan.c: New file.
61656
61657         * modules/isnan-nolibm: New file.
61658         * lib/isnan.h: New file.
61659         * lib/isnan.c: New file.
61660         * m4/isnan.m4: New file.
61661
61662 2007-02-24  Bruno Haible  <bruno@clisp.org>
61663
61664         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61665         assume that an exponent fits in 20 bits.
61666
61667 2007-02-24  Jim Meyering  <jim@meyering.net>
61668
61669         * m4/regex.m4: Update the description of the configure-time option,
61670         --without-included-regex, to state accurately what the defaults are,
61671         and perhaps to give people an idea why using this option is risky.
61672
61673 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61674
61675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61676         loops on small arguments.  This attempts to avoid the problem
61677         Bruno Haible reported for AIX 4.3.2 in
61678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61679
61680 2007-02-23  Bruno Haible  <bruno@clisp.org>
61681
61682         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61683         Needed for help2man.
61684
61685 2007-02-23  Karl Berry  <karl@gnu.org>
61686
61687         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61688         exists, foo.h should be cvs-ignored, not committed.
61689
61690 2007-02-23  Eric Blake  <ebb9@byu.net>
61691
61692         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61693         * lib/stat-time.h (includes): Likewise.
61694         * lib/utimecmp.c (includes): Likewise.
61695         * lib/utimens.h (includes): Likewise.
61696         * lib/getdate.y (includes): Also include "timespec.h" for use
61697         internal to the module.
61698         * modules/utimens (Depends-on): Revert yesterday's patch.
61699         * modules/nanosleep (Depends-on): Add missing dependency.
61700
61701 2007-02-22  Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/glob.c: Don't include getlogin_r.h.
61704
61705 2007-02-22  Jim Meyering  <jim@meyering.net>
61706
61707         * modules/utimens (Depends-on): Add timespec, required for
61708         utimens.h's inclusion of timespec.h.
61709
61710 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61711
61712         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61713         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61714         Schwab in
61715         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61716         I'll try to think of a better way to fix the Solaris problem.
61717
61718         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61719         like glibc; on Solaris 10, it fails with errno == EINVAL.
61720         POSIX says the behavior is unspecified if the first argument is NULL,
61721         so play it safe and never pass NULL to the system getcwd.
61722
61723 2007-02-21  Jim Meyering  <jim@meyering.net>
61724
61725         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61726         of gettimeofday.  It would conflict with the one now always
61727         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61728         an IRIX 6.5 build failure.
61729
61730 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61731
61732         Minor fixups to port to Solaris 10 with Sun C 5.8.
61733         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61734         * modules/getcwd (Depends-on): Add dirfd.
61735         * lib/putenv.c (putenv): #undef it.
61736         (rpl_putenv): New decl.
61737         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61738
61739 2007-02-20  Bruno Haible  <bruno@clisp.org>
61740
61741         * modules/stdio-tests: New file.
61742         * tests/test-stdio.c: New file.
61743
61744         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61745         (Depends-on): Add stdio.
61746         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61747         (Include): Use <stdio.h> instead of vsnprintf.h.
61748         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61749         HAVE_DECL_VSNPRINTF.
61750         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61751
61752         * modules/snprintf (Files): Remove lib/snprintf.h.
61753         (Depends-on): Add stdio.
61754         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61755         (Include): Use <stdio.h> instead of snprintf.h.
61756         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61757         HAVE_DECL_SNPRINTF.
61758         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61759         * lib/getaddrinfo.c: Likewise.
61760
61761         * modules/stdio: New file.
61762         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61763         * lib/snprintf.h: Remove file.
61764         * lib/vsnprintf.h: Remove file.
61765         * lib/.cppi-disable: Remove snprintf.h.
61766         * m4/stdio_h.m4: New file.
61767         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61768
61769 2007-02-20  Jim Meyering  <jim@meyering.net>
61770
61771         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61772         used by e.g., mingw.  From Bruno Haible.
61773
61774 2007-02-19  Bruno Haible  <bruno@clisp.org>
61775
61776         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61777         warnings.
61778         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61779
61780 2007-02-19  Bruno Haible  <bruno@clisp.org>
61781
61782         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61783         from mingw users.
61784
61785 2007-02-19  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61788         warnings.
61789         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61790
61791 2007-02-19  Jim Meyering  <jim@meyering.net>
61792
61793         Don't use FD after a successful "fdopendir (fd)".
61794         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61795         Reset it by calling dirfd on the just-obtained DIR*.
61796
61797         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61798         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61799
61800 2007-02-18  Bruno Haible  <bruno@clisp.org>
61801
61802         * lib/readlink.c: Include <unistd.h>.
61803         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61804         HAVE_READLINK.
61805         * modules/readlink (Depends-on): Add unistd.
61806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61807         (Include): Add <unistd.h>.
61808
61809         * lib/getlogin_r.h: Remove file.
61810         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61811         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61812         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61813         HAVE_DECL_GETLOGIN_R.
61814         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61816         (Include): Use <unistd.h> instead of getlogin_r.h.
61817
61818         * lib/getcwd.h: Remove file.
61819         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61820         * lib/xgetcwd.c: Likewise.
61821         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61822         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61823         * modules/getcwd (Files): Remove lib/getcwd.h.
61824         (Depends-on): Add unistd.
61825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61826         (Include): Use <unistd.h> instad of getcwd.h.
61827
61828         * lib/ftruncate.c: Include <unistd.h> first.
61829         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61830         Set HAVE_FTRUNCATE.
61831         * modules/ftruncate (Depends-on): Add unistd.
61832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61833
61834         * lib/fchdir.c: Include <unistd.h> first.
61835         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61837         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61838         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61839         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61840
61841         * lib/dup2.c: Include <unistd.h> first.
61842         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61843         HAVE_DUP2.
61844         * modules/dup2 (Depends-on): Add unistd.
61845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61846
61847         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61848         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61849         REPLACE_CHOWN. Don't define chown as a macro here.
61850         * modules/chown (Depends-on): Add unistd.
61851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61852
61853         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61854         Add definition for GL_LINK_WARNING.
61855         (chown, dup2): New declarations.
61856         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61857         link warning.
61858         (ftruncate): New declaration.
61859         (getcwd): New declaration, taken from old getcwd.h.
61860         (getlogin_r): New declaration, taken from old getlogin_r.h.
61861         (readlink): New declaration.
61862         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61863         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61864         (gl_PREREQ_UNISTD): Remove macro.
61865         (gl_UNISTD_MODULE_INDICATOR): New macro.
61866         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61867         many new variables. Don't set UNISTD_H.
61868         * modules/unistd (Description): Change.
61869         (Depends-on): Add link-warning.
61870         (configure.ac): Update.
61871         (Makefile.am): Create unistd.h always. Substitute many new variables
61872         into it.
61873
61874 2007-02-18  Bruno Haible  <bruno@clisp.org>
61875
61876         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61877         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61878         HAVE_GETSUBOPT.
61879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61880         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61881         * lib/getsubopt.h: Remove file.
61882         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61883         (Depends-on): Add stdlib.
61884         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61885         (Includes): Use <stdlib.h> instead of getsubopt.h.
61886         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61887         Set HAVE_GETSUBOPT.
61888         * lib/getsubopt.c: Don't include getsubopt.h.
61889
61890 2007-02-18  Bruno Haible  <bruno@clisp.org>
61891
61892         * modules/fchdir (Depends-on): Add dup2.
61893
61894 2007-02-18  Bruno Haible  <bruno@clisp.org>
61895
61896         * lib/stdlib_.h: Handle glibc's special invocation convention
61897         specially.
61898
61899 2007-02-18  Bruno Haible  <bruno@clisp.org>
61900
61901         * modules/stdlib-tests: New file.
61902         * tests/test-stdlib.c: New file.
61903
61904         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61905         (Depends-on): Add stdlib.
61906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61907         (Includes): Use <stdlib.h> instead of mkstemp.h.
61908         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61909         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61910         * lib/mkstemp.c: Don't include mkstemp.h.
61911         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61912         * lib/stdlib--.h: Don't include mkstemp.h.
61913
61914         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61915         (Depends-on): Add stdlib.
61916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61917         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61918         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61919         HAVE_MKDTEMP.
61920         * lib/mkdtemp.c: Don't include mkdtemp.h.
61921         * lib/clean-temp.c: Don't include mkdtemp.h.
61922
61923         * modules/exit (Files): Remove lib/exit.h.
61924         (Depends-on): Add stdlib.
61925         (Makefile.am): Remove lib_SOURCES.
61926         (Include): Use <stdlib.h> instead of exit.h.
61927         * lib/argmatch.c: Don't include exit.h.
61928         * lib/execute.c: Likewise.
61929         * lib/pagealign_alloc.c: Likewise.
61930         * lib/pipe.c: Likewise.
61931         * lib/wait-process.c: Likewise.
61932         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61933         * lib/exitfail.c: Likewise.
61934         * lib/savewd.c: Likewise.
61935         * lib/xsetenv.c: Likewise.
61936
61937         * modules/stdlib: New file.
61938         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61939         and extra comments about mkstemp().
61940         * lib/exit.h: Remove file.
61941         * lib/mkdtemp.h: Remove file.
61942         * lib/mkstemp.h: Remove file.
61943         * m4/stdlib_h.m4: New file.
61944         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61945
61946 2007-02-18  Bruno Haible  <bruno@clisp.org>
61947
61948         * modules/math-tests: New file.
61949         * tests/test-math.c: New file.
61950
61951         * modules/math: New file.
61952         * modules/mathl (Files): Remove lib/mathl.h.
61953         (Depends-on): Add math.
61954         (Makefile.am): Don't mention mathl.h.
61955         (Include): Use <math.h> instead of mathl.h.
61956         * lib/math_.h: New file.
61957         * lib/mathl.h: Remove file.
61958         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61959         mathl.h.
61960         * lib/asinl.c: Likewise.
61961         * lib/atanl.c: Likewise.
61962         * lib/ceill.c: Likewise.
61963         * lib/cosl.c: Likewise.
61964         * lib/expl.c: Likewise.
61965         * lib/floorl.c: Likewise.
61966         * lib/frexpl.c: Likewise.
61967         * lib/ldexpl.c: Likewise.
61968         * lib/logl.c: Likewise.
61969         * lib/sincosl.c: Likewise.
61970         * lib/sinl.c: Likewise.
61971         * lib/sqrtl.c: Likewise.
61972         * lib/tanl.c: Likewise.
61973         * lib/trigl.c: Likewise.
61974         * m4/math_h.m4: New file.
61975         * MODULES.html.sh (Mathematics): Add math.
61976
61977 2007-02-17  Bruno Haible  <bruno@clisp.org>
61978
61979         * modules/wctype-tests: New file.
61980         * tests/test-wctype.c: New file.
61981
61982         * modules/wchar-tests: New file.
61983         * tests/test-wchar.c: New file.
61984
61985         * modules/unistd-tests: New file.
61986         * tests/test-unistd.c: New file.
61987
61988         * modules/time-tests: New file.
61989         * tests/test-time.c: New file.
61990
61991         * modules/sysexits-tests: New file.
61992         * tests/test-sysexits.c: New file.
61993
61994         * modules/sys_time-tests: New file.
61995         * tests/test-sys_time.c: New file.
61996
61997         * modules/sys_stat-tests: New file.
61998         * tests/test-sys_stat.c: New file.
61999
62000         * modules/sys_socket-tests: New file.
62001         * tests/test-sys_socket.c: New file.
62002
62003         * modules/sys_select-tests: New file.
62004         * tests/test-sys_select.c: New file.
62005
62006         * modules/string-tests: New file.
62007         * tests/test-string.c: New file.
62008
62009         * modules/stdbool-tests: New file.
62010         * tests/test-stdbool.c: New file.
62011
62012         * modules/netinet_in-tests: New file.
62013         * tests/test-netinet_in.c: New file.
62014
62015         * modules/inttypes-tests: New file.
62016         * tests/test-inttypes.c: New file.
62017
62018         * modules/fcntl-tests: New file.
62019         * tests/test-fcntl.c: New file.
62020
62021         * modules/byteswap-tests: New file.
62022         * tests/test-byteswap.c: New file.
62023
62024         * modules/arpa_inet-tests: New file.
62025         * tests/test-arpa_inet.c: New file.
62026
62027 2007-02-17  Bruno Haible  <bruno@clisp.org>
62028
62029         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62030         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62031         if the corresponding module is not enabled. Emit link warnings if
62032         the function is used nevertheless.
62033         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62034         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62035         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62036         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62037         * modules/inttypes (Depends-on): Add link-warning.
62038         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62039         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62040         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62041         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62042         * modules/imaxdiv (configure.ac): Likewise.
62043         * modules/strtoimax (configure.ac): Likewise.
62044         * modules/strtoumax (configure.ac): Likewise.
62045
62046 2007-02-17  Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62049         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62050         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62051         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62052
62053 2007-02-17  Bruno Haible  <bruno@clisp.org>
62054
62055         * modules/link-warning: New file.
62056         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62057         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62058         * modules/string (Depends-on): Add link-warning.
62059         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62060         string.h.
62061         * MODULES.html.sh (Support for building libraries and executables): Add
62062         link-warning.
62063
62064 2007-02-17  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62067         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62068         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62069         long lines.
62070
62071 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62072             Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/tmpfile: New file.
62075         * lib/tmpfile.c: New file.
62076         * m4/tmpfile.m4: New file.
62077         * MODULES.html.sh (func_all_modules): New section "Input/output".
62078
62079 2007-02-15  Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62082         (supports_delete_on_close): New function.
62083         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62084
62085 2007-02-14  Bruno Haible  <bruno@clisp.org>
62086
62087         * modules/mbspcasecmp-tests: New file.
62088         * tests/test-mbspcasecmp.sh: New file.
62089         * tests/test-mbspcasecmp.c: New file.
62090
62091         New module mbspcasecmp.
62092         * modules/mbspcasecmp: New file.
62093         * lib/mbspcasecmp.c: New file.
62094         * lib/string_.h (strncasecmp): Change warning message.
62095         (mbspcasecmp): New declaration.
62096         * m4/mbspcasecmp.m4: New file.
62097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62098         GNULIB_MBSPCASECMP.
62099         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62100         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62101
62102 2007-02-14  Bruno Haible  <bruno@clisp.org>
62103
62104         * modules/mbsncasecmp-tests: New file.
62105         * tests/test-mbsncasecmp.sh: New file.
62106         * tests/test-mbsncasecmp.c: New file.
62107
62108         New module mbsncasecmp.
62109         * modules/mbsncasecmp: New file.
62110         * lib/mbsncasecmp.c: New file.
62111         * lib/string_.h (mbsncasecmp): New declaration.
62112         * m4/mbsncasecmp.m4: New file.
62113         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62114         GNULIB_MBSNCASECMP.
62115         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62116         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62117
62118 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62121         Verify that it doesn't overlap with our flags.
62122         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62123         do not have the desired effect in multibyte locales; instead, use
62124         mbscasecmp.
62125         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62126         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62127         we don't require GNU fnmatch ourselves (if our users require it, they
62128         should do so explicitly).
62129
62130         Fix regex code so it doesn't rely on strcasecmp.
62131         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62132         Otherwise, include gnulib's langinfo.h.
62133         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62134         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62135         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62136         * modules/regex (FILES): Remove m4/codeset.m4.
62137         (Depends-on): Add localcharset.  Remove strcase.
62138
62139 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62140
62141         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62142         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62143
62144 2007-02-13  Bruno Haible  <bruno@clisp.org>
62145
62146         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62148
62149 2007-02-12  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62152         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62153         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62154         time warning rather than a link error.
62155
62156 2007-02-12  Bruno Haible  <bruno@clisp.org>
62157
62158         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62159         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62161
62162 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62163
62164         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62165         args, not 2.
62166
62167 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         New module 'time', so that apps can include <time.h> as per
62170         POSIX and GNU instead of separate include files like time_r.h
62171         and timegm.h.  This implementation tries out a simpler approach
62172         for replacing decls in standard include files (as compared to
62173         the string module), somewhat as an experiment.
62174
62175         * config/srclist.txt: Comment out mktime.c for now.
62176         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62177         since it doesn't apply any more.  Use generic wording instead.
62178         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62179         'time'.
62180         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62181         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62182         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62183         Don't include <sys/types.h>; no longer needed since we assume C89.
62184         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62185         * lib/strftime.c: Likewise.
62186         * lib/time_r.c: Likewise.
62187         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62188         * lib/nanosleep.c: Include <time.h> first, to check interface.
62189         * lib/strptime.c: Likewise.
62190         * lib/time_r.c: Likewise.
62191         * lib/timegm.c: Likewise.
62192         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62193         needed.
62194         * lib/timegm.c: Don't include timegm.h; no longer needed.
62195         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62196         time.h now handles any problems in that area.
62197         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62198         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62199         that time.h defines struct timespec.
62200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62201         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62202         handles that.
62203         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62204         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62205         needed.  Set REPLACE_LOCALTIME.
62206         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62207         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62208         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62209         nanosleep; time_h.m4 now does that.  Don't require
62210         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62211         module handles this now.
62212         * modules/getdate (Depends-on): Remove timespec.  Add time.
62213         * modules/nanosleep (Depends-on): Likewise.
62214         * modules/stat-time (Depends-on): Likewise.
62215         * modules/nanosleep (Include): Include time.h, not timespec.h.
62216         * modules/strptime (Files): Remove lib/strptime.h.
62217         (Depends-on): Add extensions, time.
62218         (Include): Include time.h, not strptime.h.
62219         * modules/time_r (Files): Remove lib/time_r.h.
62220         (Depends-on): Add time.
62221         (Include): Include time.h, not time_r.h.
62222         * modules/timegm: Likewise.
62223         * modules/timespec (Description): Now does timespec-related decls
62224         of our own, instead of struct timespec itself.
62225         (Depends-on): Add time; remove extensions.
62226         (Maintainer): Add self.
62227         * modules/utimecmp (Depends-on): Add time; remove timespec.
62228         * modules/utimens (Depends-on): Likewise.
62229         * modules/xnanosleep (Depends-on): Likewise.
62230
62231 2007-02-11  Bruno Haible  <bruno@clisp.org>
62232
62233         * lib/c-strstr.c: Include allocsa.h.
62234         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62235         * lib/c-strcasestr.c: Include allocsa.h.
62236         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62237         * lib/strcasestr.c: Include allocsa.h.
62238         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62239         * lib/mbsstr.c: Include allocsa.h.
62240         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62241         allocsa/freesa instead of malloc/free.
62242         * lib/mbscasestr.c: Include allocsa.h.
62243         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62244         allocsa/freesa instead of malloc/free.
62245         * modules/c-strstr (Depends-on): Add allocsa.
62246         * modules/c-strcasestr (Depends-on): Likewise.
62247         * modules/strcasestr (Depends-on): Likewise.
62248         * modules/mbsstr (Depends-on): Likewise.
62249         * modules/mbscasestr (Depends-on): Likewise.
62250
62251 2007-02-11  Bruno Haible  <bruno@clisp.org>
62252
62253         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62254
62255         * modules/mbsspn-tests: New file.
62256         * tests/test-mbsspn.sh: New file.
62257         * tests/test-mbsspn.c: New file.
62258
62259 2007-02-11  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62262
62263         * modules/mbspbrk-tests: New file.
62264         * tests/test-mbspbrk.sh: New file.
62265         * tests/test-mbspbrk.c: New file.
62266
62267 2007-02-11  Bruno Haible  <bruno@clisp.org>
62268
62269         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62270         unneeded cast.
62271
62272         * modules/mbscspn-tests: New file.
62273         * tests/test-mbscspn.sh: New file.
62274         * tests/test-mbscspn.c: New file.
62275
62276 2007-02-11  Bruno Haible  <bruno@clisp.org>
62277
62278         * modules/mbscasecmp-tests: New file.
62279         * tests/test-mbscasecmp.sh: New file.
62280         * tests/test-mbscasecmp.c: New file.
62281
62282 2007-02-11  Bruno Haible  <bruno@clisp.org>
62283
62284         Ensure O(n) worst-case complexity of mbscasestr.
62285         * lib/mbscasestr.c: Include stdbool.h.
62286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62287         functions.
62288         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62289         the bookkeeping indicates that it's worth it.
62290         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62291
62292         * modules/mbscasestr-tests: New file.
62293         * tests/test-mbscasestr1.c: New file.
62294         * tests/test-mbscasestr2.sh: New file.
62295         * tests/test-mbscasestr2.c: New file.
62296         * tests/test-mbscasestr3.sh: New file.
62297         * tests/test-mbscasestr3.c: New file.
62298         * tests/test-mbscasestr4.sh: New file.
62299         * tests/test-mbscasestr4.c: New file.
62300         * m4/locale-tr.m4: New file.
62301
62302 2007-02-11  Bruno Haible  <bruno@clisp.org>
62303
62304         Ensure O(n) worst-case complexity of mbsstr.
62305         * lib/mbsstr.c: Include stdbool.h.
62306         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62307         functions.
62308         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62309         bookkeeping indicates that it's worth it.
62310         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62311
62312         * modules/mbsstr-tests: New file.
62313         * tests/test-mbsstr1.c: New file.
62314         * tests/test-mbsstr2.sh: New file.
62315         * tests/test-mbsstr2.c: New file.
62316         * tests/test-mbsstr3.sh: New file.
62317         * tests/test-mbsstr3.c: New file.
62318         * m4/locale-fr.m4: New file.
62319
62320 2007-02-11  Bruno Haible  <bruno@clisp.org>
62321
62322         * lib/mbsrchr.c (mbsrchr): Fix bug.
62323
62324         * modules/mbsrchr-tests: New file.
62325         * tests/test-mbsrchr.sh: New file.
62326         * tests/test-mbsrchr.c: New file.
62327
62328 2007-02-11  Bruno Haible  <bruno@clisp.org>
62329
62330         * lib/mbschr.c (mbschr): Fix bug.
62331
62332         * modules/mbschr-tests: New file.
62333         * tests/test-mbschr.sh: New file.
62334         * tests/test-mbschr.c: New file.
62335         * m4/locale-zh.m4: New file.
62336
62337 2007-02-11  Bruno Haible  <bruno@clisp.org>
62338
62339         Support for copying multibyte string iterators.
62340         * lib/mbiter.h: Include <string.h>.
62341         (mbiter_multi_copy): New function.
62342         (mbi_copy): New macro.
62343         * lib/mbuiter.h: Include <string.h>.
62344         (mbuiter_multi_copy): New function.
62345         (mbui_copy): New macro.
62346
62347 2007-02-11  Bruno Haible  <bruno@clisp.org>
62348
62349         New module mbslen.
62350         * modules/mbslen: New file.
62351         * lib/mbslen.c: New file.
62352         * lib/string_.h (mbslen): New declaration.
62353         * m4/mbslen.m4: New file.
62354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62355         GNULIB_MBSLEN.
62356         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62357         * MODULES.html.sh (Internationalization functions): Add mbslen.
62358
62359 2007-02-11  Bruno Haible  <bruno@clisp.org>
62360
62361         Ensure O(n) worst-case complexity of strcasestr substitute.
62362         * lib/strcasestr.c: Include stdbool.h.
62363         (knuth_morris_pratt): New function.
62364         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62365         bookkeeping indicates that it's worth it.
62366         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62367
62368         * modules/strcasestr-tests: New file.
62369         * tests/test-strcasestr.c: New file.
62370
62371 2007-02-11  Bruno Haible  <bruno@clisp.org>
62372
62373         Ensure O(n) worst-case complexity of c_strcasestr.
62374         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62375         (knuth_morris_pratt): New function.
62376         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62377         the bookkeeping indicates that it's worth it.
62378         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62379
62380         * modules/c-strcasestr-tests: New file.
62381         * tests/test-c-strcasestr.c: New file.
62382
62383 2007-02-11  Bruno Haible  <bruno@clisp.org>
62384
62385         Ensure O(n) worst-case complexity of c_strstr.
62386         * lib/c-strstr.c: Include stdbool.h, string.h.
62387         (knuth_morris_pratt): New function.
62388         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62389         bookkeeping indicates that it's worth it.
62390         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62391
62392         * lib/c-strstr.c: Complete rewrite for maintainability.
62393
62394         * modules/c-strstr-tests: New file.
62395         * tests/test-c-strstr.c: New file.
62396
62397 2007-02-11  Bruno Haible  <bruno@clisp.org>
62398
62399         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62400         5.2.1 and earlier, whereby \055 was treated just like the range
62401         delimiter '-'.
62402         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62403
62404 2007-02-08  Bruno Haible  <bruno@clisp.org>
62405
62406         * modules/regex (Depends-on): Add stdbool.
62407         Reported by Dalibor Topic <robilad@kaffe.org>.
62408
62409 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62410
62411         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62412         Prefer returning from main to exiting from it.
62413         Remove unnecessary parens after sizeof.
62414
62415 2007-02-05  Bruno Haible  <bruno@clisp.org>
62416
62417         New module mbssep.
62418         * modules/mbssep: New file.
62419         * lib/mbssep.c: New file.
62420         * lib/string_.h (strsep): Add a conditional link warning.
62421         (mbssep): New declaration.
62422         * m4/mbssep.m4: New file.
62423         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62424         GNULIB_MBSSEP.
62425         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62426         * MODULES.html.sh (Internationalization functions): Add mbssep.
62427
62428 2007-02-05  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62431         Optimize search in case of 1 delimiter.
62432
62433 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62434
62435         * lib/acl.h: Include sys/types.h before sys/acl.h.
62436
62437 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62438
62439         Merge upstream fix for glibc bugzilla #3957:
62440
62441         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62442
62443         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62444         bit for RE_HAT_LISTS_NOT_NEWLINE.
62445         (build_charclass_op): Remove bogus comment.
62446
62447 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62448
62449         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62450
62451 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62452
62453         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62454         * lib/memmem.c [!defined _LIBC]: Include config.h.
62455
62456 2007-02-04  Bruno Haible  <bruno@clisp.org>
62457
62458         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62459         warning message.
62460
62461 2007-02-04  Bruno Haible  <bruno@clisp.org>
62462
62463         New module mbstok_r.
62464         * modules/mbstok_r: New file.
62465         * lib/mbstok_r.c: New file.
62466         * lib/string_.h (strtok_r): Change argument names to match the
62467         comments. Add a conditional link warning.
62468         (mbstok_r): New declaration.
62469         * m4/mbstok_r.m4: New file.
62470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62471         GNULIB_MBSTOK_R.
62472         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62473         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62474
62475 2007-02-04  Bruno Haible  <bruno@clisp.org>
62476
62477         New module mbsspn.
62478         * modules/mbsspn: New file.
62479         * lib/mbsspn.c: New file.
62480         * lib/string_.h (strspn): Add a conditional link warning.
62481         (mbsspn): New declaration.
62482         * m4/mbsspn.m4: New file.
62483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62484         GNULIB_MBSSPN.
62485         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62486         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62487
62488 2007-02-04  Bruno Haible  <bruno@clisp.org>
62489
62490         New module mbspbrk.
62491         * modules/mbspbrk: New file.
62492         * lib/mbspbrk.c: New file.
62493         * lib/string_.h (strpbrk): Add a conditional link warning.
62494         (mbspbrk): New declaration.
62495         * m4/mbspbrk.m4: New file.
62496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62497         GNULIB_MBSPBRK.
62498         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62499         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62500
62501 2007-02-04  Bruno Haible  <bruno@clisp.org>
62502
62503         New module mbscspn.
62504         * modules/mbscspn: New file.
62505         * lib/mbscspn.c: New file.
62506         * lib/string_.h (strcspn): Add a conditional link warning.
62507         (mbscspn): New declaration.
62508         * m4/mbscspn.m4: New file.
62509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62510         GNULIB_MBSCSPN.
62511         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62512         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62513
62514 2007-02-04  Bruno Haible  <bruno@clisp.org>
62515
62516         New module mbscasestr, reduced goal of strcasestr.
62517         * modules/mbscasestr: New file.
62518         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62519         (mbscasestr): Renamed from strcasestr.
62520         * lib/strcasestr.c: Don't include mbuiter.h.
62521         (strcasestr): Remove support for multibyte locales.
62522         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62523         Change the conditional link warning.
62524         (mbscasestr): New declaration.
62525         * m4/mbscasestr.m4: New file.
62526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62527         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62528         REPLACE_STRCASESTR.
62529         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62531         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62532         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62533         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62534         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62535         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62536         (Depends-on): Remove mbuiter.
62537         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62538
62539 2007-02-04  Bruno Haible  <bruno@clisp.org>
62540
62541         Simplify handling of strncasecmp.
62542         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62543         the conditional link warning.
62544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62545         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62546         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62547         * modules/strcase (configure.ac): Don't invoke
62548         gl_STRING_MODULE_INDICATOR.
62549         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62550
62551 2007-02-04  Bruno Haible  <bruno@clisp.org>
62552
62553         New module mbscasecmp, reduced goal of strcasecmp.
62554         * modules/mbscasecmp: New file.
62555         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62556         (mbscasecmp): Renamed from strcasecmp.
62557         * lib/strcasecmp.c: Don't include mbuiter.h.
62558         (strcasecmp): Remove support for multibyte locales.
62559         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62560         Change the conditional link warning.
62561         (mbscasecmp): New declaration.
62562         * m4/mbscasecmp.m4: New file.
62563         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62564         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62565         REPLACE_STRCASECMP.
62566         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62568         GNULIB_MBSCASECMP.
62569         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62570         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62571         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62572         (Depends-on): Remove mbuiter.
62573         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62574
62575 2007-02-04  Bruno Haible  <bruno@clisp.org>
62576
62577         New module mbsstr. Remove module strstr.
62578         * modules/mbsstr: New file.
62579         * modules/strstr: Remove file.
62580         * lib/mbsstr.c: Renamed from lib/strstr.c.
62581         (mbsstr): Renamed from strstr.
62582         * lib/string_.h (strstr): Remove declaration. Change the conditional
62583         link warning.
62584         (mbsstr): New declaration.
62585         * m4/mbsstr.m4: New file.
62586         * m4/strstr.m4: Remove file.
62587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62588         REPLACE_STRSTR.
62589         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62590         Don't initialize GNULIB_STRSTR.
62591         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62592         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62593         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62594         (Support for systems lacking ANSI C 89): Remove strstr.
62595
62596 2007-02-04  Bruno Haible  <bruno@clisp.org>
62597
62598         New module mbsrchr.
62599         * modules/mbsrchr: New file.
62600         * lib/mbsrchr.c: New file.
62601         * lib/string_.h (strrchr): Add a conditional link warning.
62602         (mbsrchr): New declaration.
62603         * m4/mbsrchr.m4: New file.
62604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62605         GNULIB_MBSRCHR.
62606         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62607         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62608
62609 2007-02-04  Bruno Haible  <bruno@clisp.org>
62610
62611         New module mbschr.
62612         * modules/mbschr: New file.
62613         * lib/mbschr.c: New file.
62614         * lib/string_.h (strchr): Add a conditional link warning.
62615         (mbschr): New declaration.
62616         * m4/mbschr.m4: New file.
62617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62618         GNULIB_MBSCHR.
62619         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62620         * MODULES.html.sh (Internationalization functions): Add mbschr.
62621
62622 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62625
62626         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62627
62628 2007-02-04  Bruno Haible  <bruno@clisp.org>
62629
62630         New module description section 'configure.ac-early'.
62631         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62632         (func_get_autoconf_early_snippet): New function.
62633         (func_import, func_create_testdir): Use it. Remove special cases for
62634         modules 'extensions' and 'lock'.
62635         * modules/extensions (configure.ac-early): Require
62636         gl_USE_SYSTEM_EXTENSIONS.
62637         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62638
62639 2007-02-04  Bruno Haible  <bruno@clisp.org>
62640
62641         Make use of gcj-4.3's -fsource and -ftarget option.
62642         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62643         and if so try the options -fsource and -ftarget.
62644         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62645         source_version, ftarget_option, target_version arguments.
62646         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62647         (is_envjavac_oldgcj_14_14_usable): Renamed from
62648         is_envjavac_gcj_14_14_usable.
62649         (is_envjavac_oldgcj_14_13_usable): Renamed from
62650         is_envjavac_gcj_14_13_usable.
62651         (is_gcj_present): Update.
62652         (is_gcj_43, is_gcj43_usable): New functions.
62653         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62654         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62655         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62656         try the options -fsource and -ftarget.
62657
62658 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62661         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62662         larger value.
62663
62664 2007-02-03  Jim Meyering  <jim@meyering.net>
62665
62666         Give tools a better chance to allocate space for very large buffers.
62667         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62668
62669         Make pwd and readlink work also when run with an unreadable parent dir
62670         on systems with openat support.
62671         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62672         provided getcwd function, even when we have openat support.
62673         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62674
62675 2007-02-02  Bruno Haible  <bruno@clisp.org>
62676
62677         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62678         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62679         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62680         portability problems if one of these functions is only used on specific
62681         platforms.
62682         Reported by Paul Eggert.
62683
62684 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62685
62686         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62687         is causing more trouble than it's curing.
62688         * lib/regex_internal.h (__mempcpy): Remove.
62689         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62690         (and make the code a tad smaller to boot).
62691         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62692
62693 2007-02-02  Jim Meyering  <jim@meyering.net>
62694
62695         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62696         section, not in the Makefile.am: one.
62697
62698 2007-02-02  Eric Blake  <ebb9@byu.net>
62699
62700         * lib/strchrnul.c: Always include config.h first.
62701
62702         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62703         gnulib strstr is not necessary here.
62704
62705 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62706
62707         * m4/socklen.m4: Fix typo.
62708
62709 2007-02-02  Eric Blake  <ebb9@byu.net>
62710
62711         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62712         * modules/netinet_in (Makefile.am): Likewise.
62713
62714 2007-02-01  Bruno Haible  <bruno@clisp.org>
62715
62716         * lib/string_.h (GL_LINK_WARNING): New macro.
62717         (strcasecmp, strstr, strcasestr): If provided by the system,
62718         conditionally define as a macro that leads to a warning instead of to
62719         an error.
62720         (strncasecmp): Conditionally define as a macro that leads to a warning.
62721
62722 2007-02-01  Karl Berry  <karl@gnu.org>
62723
62724         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62725
62726 2007-02-01  Bruno Haible  <bruno@clisp.org>
62727
62728         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62729         renamings.
62730
62731 2007-02-01  Eric Blake  <ebb9@byu.net>
62732
62733         * modules/regex (Depends-on): Revert dependence on mempcpy.
62734         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62735         module's definition of mempcpy.
62736         Reported by Paul Eggert.
62737
62738 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62739
62740         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62741         the symbol XYZ before redefining it.  This fixes a problem with
62742         programs that don't use XYZ, when compiled on systems that define
62743         XYZ to something else.
62744
62745 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62746
62747         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62748         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62749         writeable to group or other and (2) is intended to have a special
62750         mode bit that is set or cleared.  In such a case, the directory
62751         should be neither group- nor other-writeable until the special
62752         mode bits are right.
62753
62754 2007-01-31  Eric Blake  <ebb9@byu.net>
62755
62756         * modules/mountlist (Depends-on): Add strstr.
62757
62758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62759         bug.
62760         * modules/string (Makefile.am): Remove redundant replacement.
62761         * modules/regex (Depends-on): Add mempcpy.
62762
62763 2007-01-31  Bruno Haible  <bruno@clisp.org>
62764
62765         New module description field 'Link'.
62766         * gnulib-tool (func_usage): Document --extract-link-directive.
62767         (sed_extract_prog): Recognize 'Link' directive.
62768         (func_get_link_directive): New function.
62769         (func_import): Show summary of link directives.
62770         Handle --extract-link-directive option.
62771         * modules/acl (Link): New section.
62772         * modules/clock-time (Link): New section.
62773         * modules/euidaccess (Link): New section.
62774         * modules/gettext (Link): New section.
62775         * modules/iconv (Link): New section.
62776         * modules/lock (Link): New section.
62777         * modules/nanosleep (Link): New section.
62778         * modules/readline (Link): New section.
62779
62780 2007-01-27  Bruno Haible  <bruno@clisp.org>
62781
62782         Enforce the use of gnulib modules for unportable <string.h> functions.
62783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62784         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62785         (gl_HEADER_STRING_H_BODY): Require it.
62786         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62787         the symbol XYZ to one that gives a link error.
62788         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62789         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62790         * modules/mempcpy (configure.ac): Likewise.
62791         * modules/memrchr (configure.ac): Likewise.
62792         * modules/stpcpy (configure.ac): Likewise.
62793         * modules/stpncpy (configure.ac): Likewise.
62794         * modules/strcase (configure.ac): Likewise.
62795         * modules/strcasestr (configure.ac): Likewise.
62796         * modules/strchrnul (configure.ac): Likewise.
62797         * modules/strdup (configure.ac): Likewise.
62798         * modules/strndup (configure.ac): Likewise.
62799         * modules/strnlen (configure.ac): Likewise.
62800         * modules/strpbrk (configure.ac): Likewise.
62801         * modules/strsep (configure.ac): Likewise.
62802         * modules/strstr (configure.ac): Likewise.
62803         * modules/strtok_r (configure.ac): Likewise.
62804
62805 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62806
62807         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62808
62809 2007-01-30  Jim Meyering  <jim@meyering.net>
62810
62811         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62812
62813 2007-01-29  Bruno Haible  <bruno@clisp.org>
62814
62815         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62816         * lib/execute.c: Likewise.
62817         * lib/pipe.c: Likewise.
62818         * lib/printf-args.h: Likewise.
62819         * lib/printf-args.c: Likewise.
62820         * lib/printf-parse.c: Likewise.
62821         * lib/vasnprintf.c: Likewise.
62822
62823 2007-01-29  Eric Blake  <ebb9@byu.net>
62824
62825         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62826         declaration.
62827
62828 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62829
62830         * lib/strptime.h (strptime): Use 'restrict' for args where
62831         POSIX requires this.
62832         * lib/strptime.c (strptime): Likewise.
62833         Change license notice from LGPL to GPL, since gnulib-tool will
62834         change this as needed.
62835         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62836         defined.
62837         Include "strptime.h" first, to check interface.
62838         Do not #undef _LIBC and _NL_CURRENT.
62839         Do not include <stdlib.h>; no longer needed.
62840         Include "time_r.h" and declare ptime_locale_status
62841         only if _LIBC is not defined.
62842         (__P): Remove unused macro.
62843         (match_string): Bring back glibc version, but use it only if _LIBC
62844         is defined.
62845         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62846         Remove unnecessary assertion and abort() call.
62847         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62848         * m4/strptime.m4: Fix serial number comment.
62849         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62850         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62851         (Depends-on): Add time_r.
62852
62853 2007-01-29  Bruno Haible  <bruno@clisp.org>
62854
62855         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62856         strptime.
62857         * modules/strptime (Depends-on): Add stdbool.
62858         * lib/strptime.h: Include <time.h> always. Add comments.
62859
62860 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62861
62862         * modules/strptime: New file.
62863         * lib/strptime.h: New file.
62864         * lib/strptime.c: New file.
62865         * m4/strptime.m4: New file.
62866
62867 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62868
62869         * MODULES.html.sh: New module mpsort.
62870         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62871
62872         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62873         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62875         All uses changed.
62876         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62877         All uses changed.
62878         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62879         to _Restrict_.
62880         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62881         the parameter matches the prototype.
62882
62883 2007-01-28  Jim Meyering  <jim@meyering.net>
62884
62885         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62886         sys/time.h here, reverting that part of the previous patch:
62887         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62888
62889 2007-01-28  Bruno Haible  <bruno@clisp.org>
62890
62891         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62892         value of $(SYS_TIME_H).
62893         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62894         remove it conditionally, too. [added by Jim Meyering]
62895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62896         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62897         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62898         GETTIMEOFDAY_REPLACEMENT to 1.
62899
62900 2007-01-28  Bruno Haible  <bruno@clisp.org>
62901
62902         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62903         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62905         Set UNISTD_H instead of UNISTD_H2.
62906         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62907
62908 2007-01-28  Bruno Haible  <bruno@clisp.org>
62909
62910         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62911         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62912
62913 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62914
62915         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62916         (func_create_testdir): Ensure C locale for `grep' and `tr'
62917         character ranges.
62918         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62919         ACLOCAL_AMFLAGS parsing state machine.
62920
62921 2007-01-27  Bruno Haible  <bruno@clisp.org>
62922
62923         * modules/unistr/base: Update.
62924
62925 2007-01-27  Bruno Haible  <bruno@clisp.org>
62926
62927         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62928         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62929         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62930         modules/unistr/u32-mbtouc.
62931         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62932         * lib/unistr.h: Update.
62933         * lib/linebreak.c: Update.
62934         * modules/unistr/u32-mbtouc: Renamed from
62935         modules/unistr/u32-mbtouc-safe.
62936         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62937         * lib/unistr.h: Update.
62938         * lib/unistr/u32-to-u8.c: Update.
62939         * lib/unistr/u32-to-u16.c: Update.
62940
62941 2007-01-27  Bruno Haible  <bruno@clisp.org>
62942
62943         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62944         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62945         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62946         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62947         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62948         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62949         modules/unistr/u16-mbtouc.
62950         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62951         * lib/unistr.h: Update.
62952         * lib/linebreak.c: Update.
62953         * modules/linebreak: Update.
62954         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62955         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62956         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62957         * modules/unistr/u16-mbtouc: Renamed from
62958         modules/unistr/u16-mbtouc-safe.
62959         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62960         * lib/unistr.h: Update.
62961         * lib/unistr/u16-to-u8.c: Update.
62962         * modules/unistr/u16-to-u8: Update.
62963         * lib/unistr/u16-to-u32.c: Update.
62964         * modules/unistr/u16-to-u32: Update.
62965
62966 2007-01-27  Bruno Haible  <bruno@clisp.org>
62967
62968         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62969         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62970         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62971         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62972         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62973         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62974         modules/unistr/u8-mbtouc.
62975         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62976         * lib/unistr.h: Update.
62977         * lib/striconveh.c: Update.
62978         * modules/striconveh: Update.
62979         * lib/linebreak.c: Update.
62980         * modules/linebreak: Update.
62981         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62982         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62983         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62984         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62985         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62986         * lib/unistr.h: Update.
62987         * lib/striconveh.c: Update.
62988         * modules/striconveh: Update.
62989         * lib/unistr/u8-to-u16.c: Update.
62990         * modules/unistr/u8-to-u16: Update.
62991         * lib/unistr/u8-to-u32.c: Update.
62992         * modules/unistr/u8-to-u32: Update.
62993
62994 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62995
62996         Sync from Libtool.
62997         * lib/argz.c: Do not include strings.h nor memory.h, include
62998         string.h unconditionally.  Patch by Simon Josefsson.
62999
63000 2007-01-27  Bruno Haible  <bruno@clisp.org>
63001
63002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63003         from gl_HEADER_STRING_H_BODY.
63004         (gl_HEADER_STRING_H_BODY): Require it.
63005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63006         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63007         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63008         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63010         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63012         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63013         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63014         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63015         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63016         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63017         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63018         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63019         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63020
63021 2007-01-27  Bruno Haible  <bruno@clisp.org>
63022
63023         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63024         check_PROGRAMS into noinst_PROGRAMS.
63025         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63026         check_PROGRAMS in this case.
63027         (func_import): Set for_test to false.
63028         (func_create_testdir): Set for_test to true.
63029
63030 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63031             Bruno Haible  <bruno@clisp.org>
63032
63033         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63034         (Depends-on): Add string.
63035         (Includes): Use <string.h> instead of strcasestr.h.
63036         * modules/string (Makefile.am): Also substitute the value of
63037         REPLACE_STRCASESTR.
63038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63039         assume strcasestr is declared in <string.h> not <strings.h>. Also
63040         set REPLACE_STRCASESTR.
63041         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63042         REPLACE_STRCASESTR.
63043         * lib/strcasestr.h: Remove file.
63044         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63045         * lib/string_.h (strcasestr): New declaration.
63046
63047 2007-01-27  Bruno Haible  <bruno@clisp.org>
63048
63049         * lib/string_.h: Use 'extern'.
63050
63051 2007-01-27  Jim Meyering  <jim@meyering.net>
63052
63053         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63054         of set-but-not-used local, "q".
63055
63056         * lib/mempcpy.c: Include <config.h> before <string.h>.
63057         This fixes a compilation error on HP-UX, due to the system's
63058         "restrict"-using mempcpy prototype.
63059
63060 2007-01-26  Bruno Haible  <bruno@clisp.org>
63061
63062         Small optimization.
63063         * lib/javacomp.c: Include c-strstr.h.
63064          (is_envjavac_gcj): Use c_strstr instead of strstr.
63065         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63066
63067 2007-01-26  Bruno Haible  <bruno@clisp.org>
63068
63069         * MODULES.html.sh (Unicode string functions): Add the new modules.
63070
63071         * modules/uniconv/u32-strconv-to-locale: New file.
63072         * lib/uniconv/u32-strconv-to-locale.c: New file.
63073
63074         * modules/uniconv/u16-strconv-to-locale: New file.
63075         * lib/uniconv/u16-strconv-to-locale.c: New file.
63076
63077         * modules/uniconv/u8-strconv-to-locale: New file.
63078         * lib/uniconv/u8-strconv-to-locale.c: New file.
63079
63080         * modules/uniconv/u32-strconv-from-locale: New file.
63081         * lib/uniconv/u32-strconv-from-locale.c: New file.
63082
63083         * modules/uniconv/u16-strconv-from-locale: New file.
63084         * lib/uniconv/u16-strconv-from-locale.c: New file.
63085
63086         * modules/uniconv/u8-strconv-from-locale: New file.
63087         * lib/uniconv/u8-strconv-from-locale.c: New file.
63088
63089         * modules/uniconv/u32-strconv-to-enc: New file.
63090         * lib/uniconv/u32-strconv-to-enc.c: New file.
63091         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63092         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63093
63094         * modules/uniconv/u16-strconv-to-enc: New file.
63095         * lib/uniconv/u16-strconv-to-enc.c: New file.
63096         * lib/uniconv/u-strconv-to-enc.h: New file.
63097         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63098         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63099
63100         * modules/uniconv/u8-strconv-to-enc: New file.
63101         * lib/uniconv/u8-strconv-to-enc.c: New file.
63102         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63103         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63104
63105         * modules/uniconv/u32-strconv-from-enc: New file.
63106         * lib/uniconv/u32-strconv-from-enc.c: New file.
63107         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63108         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63109
63110         * modules/uniconv/u16-strconv-from-enc: New file.
63111         * lib/uniconv/u16-strconv-from-enc.c: New file.
63112         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63113         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63114
63115         * modules/uniconv/u8-strconv-from-enc: New file.
63116         * lib/uniconv/u8-strconv-from-enc.c: New file.
63117         * lib/uniconv/u-strconv-from-enc.h: New file.
63118         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63119         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63120
63121         * modules/uniconv/u32-conv-from-enc: New file.
63122         * lib/uniconv/u32-conv-from-enc.c: New file.
63123         * modules/uniconv/u32-conv-from-enc-tests: New file.
63124         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63125
63126         * modules/uniconv/u16-conv-from-enc: New file.
63127         * lib/uniconv/u16-conv-from-enc.c: New file.
63128         * lib/uniconv/u-conv-from-enc.h: New file.
63129         * modules/uniconv/u16-conv-from-enc-tests: New file.
63130         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63131
63132         * modules/uniconv/u8-conv-from-enc: New file.
63133         * lib/uniconv/u8-conv-from-enc.c: New file.
63134         * modules/uniconv/u8-conv-from-enc-tests: New file.
63135         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63136
63137         * modules/uniconv/base: New file.
63138         * lib/uniconv.h: New file.
63139
63140 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         * doc/gnulib-tool.texi (Initial import): Update to match current
63143         behavior with strdup module.
63144         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63145         * lib/memmem.h: Remove; all uses removed.  This is now done
63146         by <string.h>.
63147         * lib/mempcpy.h: Likewise.
63148         * lib/memrchr.h: Likewise.
63149         * lib/stpcpy.h: Likewise.
63150         * lib/stpncpy.h: Likewise.
63151         * lib/strcase.h: Likewise.
63152         * lib/strchrnul.h: Likewise.
63153         * lib/strdup.h: Likewise.
63154         * lib/strndup.h: Likewise.
63155         * lib/strnlen.h: Likewise.
63156         * lib/strpbrk.h: Likewise.
63157         * lib/strsep.h: Likewise.
63158         * lib/strstr.h: Likewise.
63159         * lib/strtok_r.h: Likewise.
63160         * lib/string_.h: New file.
63161         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63162         Rely on <string.h> instead.
63163         * lib/canon-host.c: Likewise.
63164         * lib/chdir-long.c: Likewise.
63165         * lib/concatpath.c: Likewise.
63166         * lib/exclude.c: Likewise.
63167         * lib/fchdir.c: Likewise.
63168         * lib/getaddrinfo.c: Likewise.
63169         * lib/getcwd.c: Likewise.
63170         * lib/getsubopt.c: Likewise.
63171         * lib/glob.c: Likewise.
63172         * lib/hard-locale.c: Likewise.
63173         * lib/iconvme.c: Likewise.
63174         * lib/javacomp.c: Likewise.
63175         * lib/mempcpy.c: Likewise.
63176         * lib/memrchr.c: Likewise.
63177         * lib/regex_internal.h: Likewise.
63178         * lib/stpncpy.c: Likewise.
63179         * lib/strcasecmp.c: Likewise.
63180         * lib/strchrnul.c: Likewise.
63181         * lib/strdup.c: Likewise.
63182         * lib/striconv.c: Likewise.
63183         * lib/striconveh.c: Likewise.
63184         * lib/striconveha.c: Likewise.
63185         * lib/strncasecmp.c: Likewise.
63186         * lib/strndup.c: Likewise.
63187         * lib/strnlen.c: Likewise.
63188         * lib/strsep.c: Likewise.
63189         * lib/strstr.c: Likewise.
63190         * lib/strtok_r.c: Likewise.
63191         * lib/userspec.c: Likewise.
63192         * lib/w32spawn.h: Likewise.
63193         * lib/xstrndup.c: Likewise.
63194         * lib/mountlist.c (strstr): Remove decl.
63195         * m4/string_h.m4: New file.
63196         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63197         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63198         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63199         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63200         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63201         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63202         Set REPLACE_STRCASECMP if necessary.
63203         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63204         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63205         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63207         HAVE_DECL_STRDUP if necessary.
63208         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63209         since gl_FUNC_STRNDUP does that now.
63210         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63211         Check for decl here...
63212         (gl_PREREQ_STRNLEN): ... not here.
63213         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63214         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63215         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63217         necessary.
63218         * modules/string: New file.
63219         * modules/memmem (Files): Remove special-purpose include file.
63220         (Depends-on): Add string.
63221         (Include): Include <string.h>, not the removed file.
63222         * modules/mempcpy: Likewise.
63223         * modules/memrchr: Likewise.
63224         * modules/stpcpy: Likewise.
63225         * modules/stpncpy: Likewise.
63226         * modules/strcase: Likewise.
63227         * modules/strchrnul: Likewise.
63228         * modules/strdup: Likewise.
63229         * modules/strndup: Likewise.
63230         * modules/strnlen: Likewise.
63231         * modules/strpbrk: Likewise.
63232         * modules/strsep: Likewise.
63233         * modules/strstr: Likewise.
63234         * modules/strtok_r: Likewise.
63235         * tests/test-dirname.c: Don't include "strdup.h", since
63236         <string.h> now suffices.
63237         * tests/test-memmem.c: Don't include "memmem.h", since
63238         <string.h> now suffices.
63239
63240 2007-01-25  Bruno Haible  <bruno@clisp.org>
63241
63242         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63243         *resultp is 0.
63244
63245         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63246         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63247         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63248         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63249
63250         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63251         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63252         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63253         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63254         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63255         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63256
63257 2007-01-24  Bruno Haible  <bruno@clisp.org>
63258
63259         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63261         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63262         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63263         gl_FUNC_FTS_CORE.
63264         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63265         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63266         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63267         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63268         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63269         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63270         gl_FUNC_FCHOWNAT.
63271         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63272         gl_FUNC_STRFTIME.
63273         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63274         Reported by Ralf Wildenhues.
63275
63276 2007-01-24  Bruno Haible  <bruno@clisp.org>
63277
63278         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63279         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63280         gl_GETADDRINFO.
63281         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63282         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63283         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63284
63285 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63286
63287         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63288         Don't use 'exit'; just return from 'main'.
63289         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63290
63291         * lib/fnmatch_.h: Readjust white space and comments to match
63292         glibc, to avoid spurious diffs.
63293
63294 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63295
63296         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63297         2004-12-01 change by Jakub Jelinek, since this code won't compile
63298         if !LIBC.  Problem reported by Bob Proulx.
63299
63300 2007-01-23  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/striconveh.c: Include c-strcaseeq.h.
63303         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63304         * modules/striconveh (Depends-on): Add c-strcaseeq.
63305
63306 2007-01-23  Bruno Haible  <bruno@clisp.org>
63307
63308         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63309
63310         * modules/c-strcaseeq: New file.
63311         * lib/c-strcaseeq.h: New file.
63312
63313         * modules/streq: New file.
63314         * lib/streq.h: New file.
63315
63316 2007-01-23  Bruno Haible  <bruno@clisp.org>
63317
63318         * modules/striconveha-tests: New file.
63319         * tests/test-striconveha.c: New file.
63320
63321         * lib/striconveha.h: Include <stdbool.h>.
63322         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63323         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63324         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63325         (mem_iconveha): New function.
63326         (str_iconveha_notranslit): Renamed from str_iconveha.
63327         (str_iconveha): New function.
63328         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63329         c-strcase.
63330
63331 2007-01-23  Bruno Haible  <bruno@clisp.org>
63332
63333         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63334         encodings without forgiving before trying any encoding with handler.
63335         (str_iconveha): Try all encodings without forgiving before trying any
63336         encoding with handler.
63337
63338 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         Import the following changes from libc.
63341
63342         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63343
63344         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63345
63346         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63347
63348         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63349         normal_bracket label.
63350
63351         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63352
63353         [BZ #361]
63354         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63355         to normal_bracket after fetching the next character.
63356
63357 2007-01-22  Bruno Haible  <bruno@clisp.org>
63358
63359         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63360         argument.
63361         * lib/striconveh.c (iconv_carefully_1): New function.
63362         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63363         argument.
63364         (str_cd_iconveh): Update.
63365         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63366         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63367         * tests/test-striconveh.c (MAGIC): New macro.
63368         (new_offsets): New function.
63369         (main): Test call with and without offsets.
63370
63371 2007-01-22  Bruno Haible  <bruno@clisp.org>
63372
63373         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63374         * modules/sys_select (Makefile.am): Likewise.
63375         * modules/sys_socket (Makefile.am): Likewise.
63376         * modules/sys_time (Makefile.am): Likewise.
63377
63378 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63379
63380         * modules/gettimeofday (License): Change from GPL to LGPL, since
63381         gettimeofday is a library function.
63382
63383 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63384
63385         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63386
63387 2007-01-21  Bruno Haible  <bruno@clisp.org>
63388
63389         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63390
63391 2007-01-21  Bruno Haible  <bruno@clisp.org>
63392
63393         * modules/striconveha: New file.
63394         * lib/striconveha.h: New file.
63395         * lib/striconveha.c: New file.
63396         * MODULES.html.sh (Internationalization functions): Add striconveha.
63397         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63398         string.
63399         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63400
63401 2007-01-21  Bruno Haible  <bruno@clisp.org>
63402
63403         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63404         * lib/striconveh.c (str_iconveh): Likewise.
63405
63406 2007-01-21  Bruno Haible  <bruno@clisp.org>
63407
63408         * lib/striconveh.h (mem_iconveh): New declaration.
63409         * lib/striconveh.c (mem_iconveh): New function.
63410         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63411
63412 2007-01-21  Bruno Haible  <bruno@clisp.org>
63413
63414         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63415
63416         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63417         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63418         original result buffer.
63419         (str_cd_iconveh): Update.
63420         * tests/test-striconveh.c (main): Update.
63421
63422         * lib/striconv.h (mem_cd_iconv): Change specification.
63423         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63424         result buffer.
63425         (str_cd_iconv): Update.
63426         * tests/test-striconv.c (main): Update.
63427
63428 2007-01-21  Bruno Haible  <bruno@clisp.org>
63429
63430         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63431
63432 2007-01-20  Jim Meyering  <jim@meyering.net>
63433
63434         * lib/userspec.c (parse_with_separator): If a user or group string
63435         starts with "+", skip the corresponding name-to-ID look-up, since
63436         such a look-up must fail: user and group names may not include "+".
63437
63438 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63439
63440         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63441         since we now assume the sys_time module.
63442         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63443         check for sys/time.h; no longer needed.
63444         * modules/poll (Depends-on): Depend on sys_time.
63445
63446 2007-01-18  Bruno Haible  <bruno@clisp.org>
63447
63448         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63450
63451         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63452         gettimeofday.
63453
63454         * tests/test-gettimeofday.c: Include <time.h>.
63455         (dummy): Remove variable.
63456
63457         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63458         gl_HEADER_SYS_TIME_H.
63459         (gl_HEADER_SYS_TIME_H): New macro.
63460
63461         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63462         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63463         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63464         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63465         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63466         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63467         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63468         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63469         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63470         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63471         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63472
63473         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63474         last change; it caused a compilation error when cross-compiling to
63475         Cygwin.
63476
63477 2007-01-18  Jim Meyering  <jim@meyering.net>
63478
63479         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63480         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63481         than the race-prone "test -d sys || mkdir sys".
63482         (configure.ac): Use AC_PROG_MKDIR_P.
63483         * modules/sys_select: Likewise.
63484         * modules/sys_socket: Likewise.
63485         * modules/sys_time: Likewise.
63486
63487 2007-01-18  Eric Blake  <ebb9@byu.net>
63488
63489         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63490         replace gettimeofday.
63491         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63492         name, to avoid infinite recursion.
63493
63494 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63495
63496         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63497         module sys_time.
63498         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63499         assume timespec.h defines struct timeval.
63500         * lib/settime.c: Likewise.
63501         * lib/utimens.c: Likewise.
63502         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63503         since we now assume the gettimeofday module.
63504         * lib/tempname.c (__gen_tempname): Likewise.
63505         * lib/gettimeofday.h: Remove.
63506         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63507         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63508         Include <time.h>, for 'time()'.
63509         (localtime_buffer_addr): Also use this workaround if
63510         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63511         to simplify the uses.  All uses changed.
63512         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63513         that #undef is inside {}, and 'const' follows type name consistently.
63514         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63515         (gettimeofday): Do not use the maximum possible value for
63516         tv->tv_usec, since that might break usages other than ls.c.
63517         Instead, we'll leave ls.c alone.  This undoes today's patch
63518         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63519         we've never observed the problem but might as well keep the
63520         canary.
63521         * lib/nanosleep.c: Include timespec.h first, for interface check.
63522         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63523         now assume the sys_time module.
63524         * lib/tempname.c: Likewise.
63525         * lib/timespec.h: Likewise.
63526         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63527         needed.
63528         * lib/strftime.c: Likewise.
63529         * lib/timespec.h: Likewise.
63530         * lib/posixtm.c: Include posixtm.h first, for interface check.
63531         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63532         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63533         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63534         * lib/sys_time_.h: New file.
63535         * lib/timespec.h (struct timespec): Use long int, not long.
63536         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63537         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63538         Remove obsolescent call to AC_HEADER_TIME.
63539         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63541         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63542         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63543         Likewise.
63544         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63545         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63547         into the sys_time module.  Check for gettimeofday just once.
63548         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63549         for gettimeofday signature to just check the signature.  Merely
63550         compile it, since linking doesn't test signature.  Improve test for
63551         whether gettimeofday.o is actually needed.
63552         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63553         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63554         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63555         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63556         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63557         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63558         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63559         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63560         than worrying about sys/time.h.
63561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63562         Don't bother worrying about TIME_WITH_SYS_TIME.
63563         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63564         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63565         * m4/sys_time_h.m4: New file.
63566         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63567         Don't include sys/time.h.  Return from main rather than exiting.
63568         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63569         all uses changed.
63570         * modules/gethrxtime (Depends-on): Add sys_time.
63571         * modules/gettime (Depends-on): Likewise.
63572         * modules/gettimeofday (Depends-on): Likewise.
63573         * modules/nanosleep (Depends-on): Likewise.
63574         * modules/settime (Depends-on): Likewise.
63575         * modules/tempname (Depends-on): Likewise.
63576         * modules/utimens (Depends-on): Likewise.
63577         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63578         (Include): Change back to <sys/time.h>.
63579         (Maintainer): Add self.
63580         * modules/sys_time: New file.
63581         * modules/tempname (Depends-on): Add gettimeofday.
63582         * tests/test-gettimeofday.c: Include <sys/time.h>
63583         rather than gettimeofday.h.
63584
63585 2007-01-17  Bruno Haible  <bruno@clisp.org>
63586
63587         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63588         the license default to GPL.
63589         (func_create_testdir): Don't complain if a module is LGPL and its
63590         tests module depends on GPLed modules.
63591
63592 2007-01-17  Bruno Haible  <bruno@clisp.org>
63593
63594         * lib/gettimeofday.c (gettimeofday): Add code for the case
63595         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63596         maximum possible value for tv->tv_usec, rather than the minimum one.
63597
63598 2005-10-08  Martin Lambers  <marlam@marlam.de>
63599 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63600 2007-01-16  Bruno Haible  <bruno@clisp.org>
63601
63602         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63603         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63604         gl_FUNC_GETTIMEOFDAY.
63605         (Include): Add gettimeofday.h.
63606         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63607         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63608         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63609         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63610         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63611         * lib/gettimeofday.h: New file.
63612         * lib/gettimeofday.c: Include <sys/timeb.h>.
63613         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63614         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63615         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63616         fall back on time().
63617
63618         * tests/test-gettimeofday.c: New file.
63619         * modules/gettimeofday-tests: New file.
63620
63621 2007-01-16  Eric Blake  <ebb9@byu.net>
63622
63623         * modules/fnmatch (Depends-on): Depend on wchar.
63624         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63625         * m4/fnmatch.m4: Likewise.
63626         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63627         * m4/mbchar.m4: Likewise.
63628         * modules/mbswidth (Depends-on): Depend on wchar.
63629         * lib/mbswidth.c: Assume <wchar.h>.
63630         * m4/mbswidth.m4: Likewise.
63631         * modules/quotearg (Depends-on): Depend on wchar.
63632         * lib/quotearg.c: Assume <wchar.h>.
63633         * m4/quotearg.m4: Likewise.
63634         * modules/regex (Depends-on): Depend on wchar.
63635         * lib/regex_internal.h: Assume <wchar.h>.
63636         * m4/regex.m4: Likewise.
63637         * modules/stdint (Depends-on): Depend on wchar.
63638         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63639         * m4/stdint.m4: Likewise.
63640         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63641         * modules/strftime (Depends-on): Depend on wchar.
63642         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63643         * modules/strtol (Depends-on): Depend on wchar.
63644         * lib/strtol.c: Assume <wchar.h>.
63645         * modules/wcwidth (Depends-on): Depend on wchar.
63646         * lib/wcwidth.h: Assume <wchar.h>.
63647         * m4/wcwidth.m4: Likewise.
63648
63649 2007-01-16  Bruno Haible  <bruno@clisp.org>
63650
63651         * modules/csharpexec-script: New, created from...
63652         * modules/csharpexec: ... this.
63653
63654 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63655
63656         * modules/javaexec-script: New, created from...
63657         * modules/javaexec: ... this.
63658
63659 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63660
63661         * modules/poll (Dependencies): Add sys_select.
63662
63663 2007-01-15  Jim Meyering  <jim@meyering.net>
63664
63665         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63666         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63667         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63668         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63669
63670 2007-01-15  Bruno Haible  <bruno@clisp.org>
63671
63672         * modules/striconveh: New file.
63673         * lib/striconveh.h: New file.
63674         * lib/striconveh.c: New file.
63675         * MODULES.html.sh (Internationalization functions): Add striconveh.
63676
63677         * modules/striconveh-tests: New file.
63678         * tests/test-striconveh.c: New file.
63679
63680 2007-01-15  Bruno Haible  <bruno@clisp.org>
63681
63682         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63683         not from GNU libiconv or GNU libc.
63684
63685 2007-01-15  Bruno Haible  <bruno@clisp.org>
63686
63687         * doc/gnulib-intro.texi (Copyright): Explain the different license
63688         terms for module descriptions, autoconf macros, tests, documentation.
63689
63690 2007-01-14  Bruno Haible  <bruno@clisp.org>
63691
63692         * modules/striconv-tests: New file.
63693         * tests/test-striconv.c: New file.
63694
63695 2007-01-14  Bruno Haible  <bruno@clisp.org>
63696
63697         * modules/iconv-tests: New file.
63698         * tests/test-iconv.c: New file.
63699
63700 2007-01-14  Bruno Haible  <bruno@clisp.org>
63701
63702         * gnulib-tool (func_get_license): For test modules, use the license of
63703         the main module.
63704
63705 2007-01-14  Bruno Haible  <bruno@clisp.org>
63706
63707         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63708         if iconv is found to exist.
63709
63710 2007-01-14  Bruno Haible  <bruno@clisp.org>
63711
63712         * modules/c-ctype-tests: New file.
63713         * tests/test-c-ctype.c: New file.
63714
63715 2007-01-14  Bruno Haible  <bruno@clisp.org>
63716
63717         * modules/binary-io-tests: New file.
63718         * tests/test-binary-io.sh: New file.
63719         * tests/test-binary-io.c: New file.
63720
63721 2007-01-14  Bruno Haible  <bruno@clisp.org>
63722
63723         * modules/array-oset-tests: New file.
63724         * tests/test-array_oset.c: New file.
63725
63726 2007-01-14  Bruno Haible  <bruno@clisp.org>
63727
63728         * modules/array-list-tests: New file.
63729         * tests/test-array_list.c: New file.
63730
63731 2007-01-14  Bruno Haible  <bruno@clisp.org>
63732
63733         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63734         and make.
63735         Reported by Simon Josefsson in
63736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63737
63738 2007-01-14  Bruno Haible  <bruno@clisp.org>
63739
63740         * modules/allocsa-tests: New file.
63741         * tests/test-allocsa.c: New file.
63742
63743 2007-01-14  Bruno Haible  <bruno@clisp.org>
63744
63745         * modules/fchdir (Depends-on): Add absolute-header.
63746         * modules/unistd (Depends-on): Likewise.
63747
63748 2006-12-30  Bruno Haible  <bruno@clisp.org>
63749
63750         * modules/fchdir: New file.
63751         * modules/unistd (Files): Add lib/unistd_.h.
63752         (Makefile.am): Generate unistd.h from unistd_.h.
63753         * lib/fchdir.c: New file.
63754         * lib/dirent_.h: New file.
63755         * lib/unistd_.h: New file.
63756         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63757         * m4/fchdir.m4: New file.
63758         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63759         (gl_HEADER_UNISTD): Invoke it.
63760         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63761         function.
63762         * lib/backupfile.c (opendir, closedir): Undefine.
63763         * lib/chown.c (open, close): Undefine.
63764         * lib/clean-temp.c (open, close): Undefine.
63765         * lib/copy-file.c (open, close): Undefine.
63766         * lib/execute.c (open, close): Undefine.
63767         * lib/fsusage.c (open, close): Undefine.
63768         * lib/gc-gnulib.c (open, close): Undefine.
63769         * lib/getcwd.c (opendir, closedir): Undefine.
63770         * lib/glob.c (opendir, closedir): Undefine.
63771         * lib/javacomp.c (open, close): Undefine.
63772         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63773         * lib/openat-proc.c (open, close): Undefine.
63774         * lib/pagealign_alloc.c (open, close): Undefine.
63775         * lib/pipe.c (open, close): Undefine.
63776         * lib/progreloc.c (open, close): Undefine.
63777         * lib/savedir.c (opendir, closedir): Undefine.
63778         * lib/utime.c (open, close): Undefine.
63779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63780
63781 2007-01-10  Bruno Haible  <bruno@clisp.org>
63782
63783         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63784
63785 2007-01-12  Eric Blake  <ebb9@byu.net>
63786
63787         Provide a robust <wchar.h>.  Further simplifications are now
63788         possible in other modules, but not included here.
63789         * modules/wchar: New module.
63790         * m4/wchar.m4: New file.
63791         * lib/wchar_.h: Likewise.
63792         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63793         of the new module.
63794         * MODULES.html.sh (Extended multibyte and wide character utilities):
63795         New section.
63796
63797 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63800         to a reasonable default for memory allocation.
63801         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63802         file system that reports garbage st_size values for symlinks.
63803         Problem reported by Liyang Hu.
63804
63805 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63806
63807         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63808         Emacs .#* auto-save files).
63809
63810 2007-01-11  Bruno Haible  <bruno@clisp.org>
63811
63812         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63813         directory.
63814
63815 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         Use @...@ consistently in lib/wctype_.h.
63818         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63819         on it being set to 1 or 0.
63820         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63821         go back to AC_SUBSTing it.
63822         * modules/wctype (Makefile.am): Undo previous change.
63823
63824 2007-01-10  Eric Blake  <ebb9@byu.net>
63825
63826         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63827         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63828         * modules/wctype (Makefile.am): Likewise.
63829         Reported by Chris McGuire.
63830
63831 2007-01-10  Jim Meyering  <jim@meyering.net>
63832
63833         fts.c: a small readability/maintainability improvement
63834         * lib/fts.c (fts_read): Make this code slightly more readable and
63835         maintainable by hoisting the "sp->fts_cur = p" assignments to
63836         immediately follow the statements that set P.  Derived from
63837         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63838
63839 2007-01-10  Eric Blake  <ebb9@byu.net>
63840
63841         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63842         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63844         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63845         Reported by Chris McGuire.
63846
63847 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63848
63849         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63850         in sed script.
63851
63852 2007-01-09  Bruno Haible  <bruno@clisp.org>
63853
63854         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63855         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63856         variables.
63857         (func_module): Use them.
63858
63859 2007-01-09  Bruno Haible  <bruno@clisp.org>
63860
63861         * modules/unistr/base: New file.
63862         * lib/unistr.h: New file.
63863
63864         * modules/unistr/u8-to-u16: New file.
63865         * lib/unistr/u8-to-u16.c: New file.
63866
63867         * modules/unistr/u8-to-u32: New file.
63868         * lib/unistr/u8-to-u32.c: New file.
63869
63870         * modules/unistr/u16-to-u8: New file.
63871         * lib/unistr/u16-to-u8.c: New file.
63872
63873         * modules/unistr/u16-to-u32: New file.
63874         * lib/unistr/u16-to-u32.c: New file.
63875
63876         * modules/unistr/u32-to-u8: New file.
63877         * lib/unistr/u32-to-u8.c: New file.
63878
63879         * modules/unistr/u32-to-u16: New file.
63880         * lib/unistr/u32-to-u16.c: New file.
63881
63882         * modules/unistr/u8-check: New file.
63883         * modules/unistr/u16-check: New file.
63884         * modules/unistr/u32-check: New file.
63885         * lib/unistr/u8-check.c: New file.
63886         * lib/unistr/u16-check.c: New file.
63887         * lib/unistr/u32-check.c: New file.
63888
63889         * modules/unistr/u8-chr: New file.
63890         * modules/unistr/u16-chr: New file.
63891         * modules/unistr/u32-chr: New file.
63892         * lib/unistr/u8-chr.c: New file.
63893         * lib/unistr/u16-chr.c: New file.
63894         * lib/unistr/u32-chr.c: New file.
63895
63896         * modules/unistr/u8-cmp: New file.
63897         * modules/unistr/u16-cmp: New file.
63898         * modules/unistr/u32-cmp: New file.
63899         * lib/unistr/u8-cmp.c: New file.
63900         * lib/unistr/u16-cmp.c: New file.
63901         * lib/unistr/u32-cmp.c: New file.
63902
63903         * modules/unistr/u8-cpy: New file.
63904         * modules/unistr/u16-cpy: New file.
63905         * modules/unistr/u32-cpy: New file.
63906         * lib/unistr/u8-cpy.c: New file.
63907         * lib/unistr/u16-cpy.c: New file.
63908         * lib/unistr/u32-cpy.c: New file.
63909         * lib/unistr/u-cpy.h: New file.
63910
63911         * modules/unistr/u8-cpy-alloc: New file.
63912         * modules/unistr/u16-cpy-alloc: New file.
63913         * modules/unistr/u32-cpy-alloc: New file.
63914         * lib/unistr/u8-cpy-alloc.c: New file.
63915         * lib/unistr/u16-cpy-alloc.c: New file.
63916         * lib/unistr/u32-cpy-alloc.c: New file.
63917         * lib/unistr/u-cpy-alloc.h: New file.
63918
63919         * modules/unistr/u8-endswith: New file.
63920         * modules/unistr/u16-endswith: New file.
63921         * modules/unistr/u32-endswith: New file.
63922         * lib/unistr/u8-endswith.c: New file.
63923         * lib/unistr/u16-endswith.c: New file.
63924         * lib/unistr/u32-endswith.c: New file.
63925         * lib/unistr/u-endswith.h: New file.
63926
63927         * modules/unistr/u8-mblen: New file.
63928         * modules/unistr/u16-mblen: New file.
63929         * modules/unistr/u32-mblen: New file.
63930         * lib/unistr/u8-mblen.c: New file.
63931         * lib/unistr/u16-mblen.c: New file.
63932         * lib/unistr/u32-mblen.c: New file.
63933
63934         * modules/unistr/u8-mbtouc: New file.
63935         * modules/unistr/u16-mbtouc: New file.
63936         * modules/unistr/u32-mbtouc: New file.
63937         * lib/unistr/u8-mbtouc.c: New file.
63938         * lib/unistr/u16-mbtouc.c: New file.
63939         * lib/unistr/u32-mbtouc.c: New file.
63940
63941         * modules/unistr/u8-mbtouc-safe: New file.
63942         * modules/unistr/u16-mbtouc-safe: New file.
63943         * modules/unistr/u32-mbtouc-safe: New file.
63944         * lib/unistr/u8-mbtouc-safe.c: New file.
63945         * lib/unistr/u16-mbtouc-safe.c: New file.
63946         * lib/unistr/u32-mbtouc-safe.c: New file.
63947
63948         * modules/unistr/u8-move: New file.
63949         * modules/unistr/u16-move: New file.
63950         * modules/unistr/u32-move: New file.
63951         * lib/unistr/u8-move.c: New file.
63952         * lib/unistr/u16-move.c: New file.
63953         * lib/unistr/u32-move.c: New file.
63954         * lib/unistr/u-move.h: New file.
63955
63956         * modules/unistr/u8-next: New file.
63957         * modules/unistr/u16-next: New file.
63958         * modules/unistr/u32-next: New file.
63959         * lib/unistr/u8-next.c: New file.
63960         * lib/unistr/u16-next.c: New file.
63961         * lib/unistr/u32-next.c: New file.
63962
63963         * modules/unistr/u8-prev: New file.
63964         * modules/unistr/u16-prev: New file.
63965         * modules/unistr/u32-prev: New file.
63966         * lib/unistr/u8-prev.c: New file.
63967         * lib/unistr/u16-prev.c: New file.
63968         * lib/unistr/u32-prev.c: New file.
63969
63970         * modules/unistr/u8-set: New file.
63971         * modules/unistr/u16-set: New file.
63972         * modules/unistr/u32-set: New file.
63973         * lib/unistr/u8-set.c: New file.
63974         * lib/unistr/u16-set.c: New file.
63975         * lib/unistr/u32-set.c: New file.
63976         * lib/unistr/u-set.h: New file.
63977
63978         * modules/unistr/u8-startswith: New file.
63979         * modules/unistr/u16-startswith: New file.
63980         * modules/unistr/u32-startswith: New file.
63981         * lib/unistr/u8-startswith.c: New file.
63982         * lib/unistr/u16-startswith.c: New file.
63983         * lib/unistr/u32-startswith.c: New file.
63984         * lib/unistr/u-startswith.h: New file.
63985
63986         * modules/unistr/u8-stpcpy: New file.
63987         * modules/unistr/u16-stpcpy: New file.
63988         * modules/unistr/u32-stpcpy: New file.
63989         * lib/unistr/u8-stpcpy.c: New file.
63990         * lib/unistr/u16-stpcpy.c: New file.
63991         * lib/unistr/u32-stpcpy.c: New file.
63992         * lib/unistr/u-stpcpy.h: New file.
63993
63994         * modules/unistr/u8-stpncpy: New file.
63995         * modules/unistr/u16-stpncpy: New file.
63996         * modules/unistr/u32-stpncpy: New file.
63997         * lib/unistr/u8-stpncpy.c: New file.
63998         * lib/unistr/u16-stpncpy.c: New file.
63999         * lib/unistr/u32-stpncpy.c: New file.
64000         * lib/unistr/u-stpncpy.h: New file.
64001
64002         * modules/unistr/u8-strcat: New file.
64003         * modules/unistr/u16-strcat: New file.
64004         * modules/unistr/u32-strcat: New file.
64005         * lib/unistr/u8-strcat.c: New file.
64006         * lib/unistr/u16-strcat.c: New file.
64007         * lib/unistr/u32-strcat.c: New file.
64008         * lib/unistr/u-strcat.h: New file.
64009
64010         * modules/unistr/u8-strchr: New file.
64011         * modules/unistr/u16-strchr: New file.
64012         * modules/unistr/u32-strchr: New file.
64013         * lib/unistr/u8-strchr.c: New file.
64014         * lib/unistr/u16-strchr.c: New file.
64015         * lib/unistr/u32-strchr.c: New file.
64016
64017         * modules/unistr/u8-strcmp: New file.
64018         * modules/unistr/u16-strcmp: New file.
64019         * modules/unistr/u32-strcmp: New file.
64020         * lib/unistr/u8-strcmp.c: New file.
64021         * lib/unistr/u16-strcmp.c: New file.
64022         * lib/unistr/u32-strcmp.c: New file.
64023
64024         * modules/unistr/u8-strcpy: New file.
64025         * modules/unistr/u16-strcpy: New file.
64026         * modules/unistr/u32-strcpy: New file.
64027         * lib/unistr/u8-strcpy.c: New file.
64028         * lib/unistr/u16-strcpy.c: New file.
64029         * lib/unistr/u32-strcpy.c: New file.
64030         * lib/unistr/u-strcpy.h: New file.
64031
64032         * modules/unistr/u8-strcspn: New file.
64033         * modules/unistr/u16-strcspn: New file.
64034         * modules/unistr/u32-strcspn: New file.
64035         * lib/unistr/u8-strcspn.c: New file.
64036         * lib/unistr/u16-strcspn.c: New file.
64037         * lib/unistr/u32-strcspn.c: New file.
64038         * lib/unistr/u-strcspn.h: New file.
64039
64040         * modules/unistr/u8-strdup: New file.
64041         * modules/unistr/u16-strdup: New file.
64042         * modules/unistr/u32-strdup: New file.
64043         * lib/unistr/u8-strdup.c: New file.
64044         * lib/unistr/u16-strdup.c: New file.
64045         * lib/unistr/u32-strdup.c: New file.
64046         * lib/unistr/u-strdup.h: New file.
64047
64048         * modules/unistr/u8-strlen: New file.
64049         * modules/unistr/u16-strlen: New file.
64050         * modules/unistr/u32-strlen: New file.
64051         * lib/unistr/u8-strlen.c: New file.
64052         * lib/unistr/u16-strlen.c: New file.
64053         * lib/unistr/u32-strlen.c: New file.
64054         * lib/unistr/u-strlen.h: New file.
64055
64056         * modules/unistr/u8-strmblen: New file.
64057         * modules/unistr/u16-strmblen: New file.
64058         * modules/unistr/u32-strmblen: New file.
64059         * lib/unistr/u8-strmblen.c: New file.
64060         * lib/unistr/u16-strmblen.c: New file.
64061         * lib/unistr/u32-strmblen.c: New file.
64062
64063         * modules/unistr/u8-strmbtouc: New file.
64064         * modules/unistr/u16-strmbtouc: New file.
64065         * modules/unistr/u32-strmbtouc: New file.
64066         * lib/unistr/u8-strmbtouc.c: New file.
64067         * lib/unistr/u16-strmbtouc.c: New file.
64068         * lib/unistr/u32-strmbtouc.c: New file.
64069
64070         * modules/unistr/u8-strncat: New file.
64071         * modules/unistr/u16-strncat: New file.
64072         * modules/unistr/u32-strncat: New file.
64073         * lib/unistr/u8-strncat.c: New file.
64074         * lib/unistr/u16-strncat.c: New file.
64075         * lib/unistr/u32-strncat.c: New file.
64076         * lib/unistr/u-strncat.h: New file.
64077
64078         * modules/unistr/u8-strncmp: New file.
64079         * modules/unistr/u16-strncmp: New file.
64080         * modules/unistr/u32-strncmp: New file.
64081         * lib/unistr/u8-strncmp.c: New file.
64082         * lib/unistr/u16-strncmp.c: New file.
64083         * lib/unistr/u32-strncmp.c: New file.
64084
64085         * modules/unistr/u8-strncpy: New file.
64086         * modules/unistr/u16-strncpy: New file.
64087         * modules/unistr/u32-strncpy: New file.
64088         * lib/unistr/u8-strncpy.c: New file.
64089         * lib/unistr/u16-strncpy.c: New file.
64090         * lib/unistr/u32-strncpy.c: New file.
64091         * lib/unistr/u-strncpy.h: New file.
64092
64093         * modules/unistr/u8-strnlen: New file.
64094         * modules/unistr/u16-strnlen: New file.
64095         * modules/unistr/u32-strnlen: New file.
64096         * lib/unistr/u8-strnlen.c: New file.
64097         * lib/unistr/u16-strnlen.c: New file.
64098         * lib/unistr/u32-strnlen.c: New file.
64099         * lib/unistr/u-strnlen.h: New file.
64100
64101         * modules/unistr/u8-strpbrk: New file.
64102         * modules/unistr/u16-strpbrk: New file.
64103         * modules/unistr/u32-strpbrk: New file.
64104         * lib/unistr/u8-strpbrk.c: New file.
64105         * lib/unistr/u16-strpbrk.c: New file.
64106         * lib/unistr/u32-strpbrk.c: New file.
64107         * lib/unistr/u-strpbrk.h: New file.
64108
64109         * modules/unistr/u8-strrchr: New file.
64110         * modules/unistr/u16-strrchr: New file.
64111         * modules/unistr/u32-strrchr: New file.
64112         * lib/unistr/u8-strrchr.c: New file.
64113         * lib/unistr/u16-strrchr.c: New file.
64114         * lib/unistr/u32-strrchr.c: New file.
64115
64116         * modules/unistr/u8-strspn: New file.
64117         * modules/unistr/u16-strspn: New file.
64118         * modules/unistr/u32-strspn: New file.
64119         * lib/unistr/u8-strspn.c: New file.
64120         * lib/unistr/u16-strspn.c: New file.
64121         * lib/unistr/u32-strspn.c: New file.
64122         * lib/unistr/u-strspn.h: New file.
64123
64124         * modules/unistr/u8-strstr: New file.
64125         * modules/unistr/u16-strstr: New file.
64126         * modules/unistr/u32-strstr: New file.
64127         * lib/unistr/u8-strstr.c: New file.
64128         * lib/unistr/u16-strstr.c: New file.
64129         * lib/unistr/u32-strstr.c: New file.
64130         * lib/unistr/u-strstr.h: New file.
64131
64132         * modules/unistr/u8-strtok: New file.
64133         * modules/unistr/u16-strtok: New file.
64134         * modules/unistr/u32-strtok: New file.
64135         * lib/unistr/u8-strtok.c: New file.
64136         * lib/unistr/u16-strtok.c: New file.
64137         * lib/unistr/u32-strtok.c: New file.
64138         * lib/unistr/u-strtok.h: New file.
64139
64140         * modules/unistr/u8-uctomb: New file.
64141         * modules/unistr/u16-uctomb: New file.
64142         * modules/unistr/u32-uctomb: New file.
64143         * lib/unistr/u8-uctomb.c: New file.
64144         * lib/unistr/u16-uctomb.c: New file.
64145         * lib/unistr/u32-uctomb.c: New file.
64146
64147         * MODULES.html.sh (Unicode string functions): Add the new modules.
64148
64149 2007-01-08  Bruno Haible  <bruno@clisp.org>
64150
64151         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64152         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64153         subdirectories.
64154
64155 2007-01-08  Karl Berry  <karl@gnu.org>
64156
64157         * doc/error.texi: mention that main() fns must set program_name
64158         when progname is used.
64159
64160 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64161
64162         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64163         WCTYPE_H is empty, for the benefit of builds from non-distclean
64164         directories.  Problem reported by Eric Blake in
64165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64166
64167 2007-01-08  Bruno Haible  <bruno@clisp.org>
64168
64169         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64170         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64171         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64172         PROVIDE_CANONICALIZE_FILENAME_MODE.
64173         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64174
64175 2007-01-08  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64178         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64179         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64180         * lib/fts.c: Likewise.
64181         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64182
64183 2006-12-25  Bruno Haible  <bruno@clisp.org>
64184
64185         * modules/utf8-ucs4-safe: New file.
64186         * lib/utf8-ucs4-safe.h: New file.
64187         * lib/unistr/utf8-ucs4-safe.c: New file.
64188
64189         * modules/utf16-ucs4-safe: New file.
64190         * lib/utf16-ucs4-safe.h: New file.
64191         * lib/unistr/utf16-ucs4-safe.c: New file.
64192
64193         * MODULES.html.sh (Unicode string functions): Add the new modules.
64194
64195 2007-01-08  Bruno Haible  <bruno@clisp.org>
64196
64197         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64198         (Depends-on): Add unitypes.
64199         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64200         (u8_mbtouc_aux): Move out to separate file.
64201         (u8_mbtouc): Use ucs4_t, uint8_t types.
64202         * lib/unistr/utf8-ucs4.c: New file.
64203
64204         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64205         (Depends-on): Add unitypes.
64206         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64207         (u16_mbtouc_aux): Move out to separate file.
64208         (u16_mbtouc): Use ucs4_t, uint16_t types.
64209         * lib/unistr/utf16-ucs4.c: New file.
64210
64211         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64212         (Depends-on): Add unitypes.
64213         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64214         (u8_uctomb_aux): Move out to separate file.
64215         (u8_uctomb): Use ucs4_t, uint8_t types.
64216         * lib/unistr/ucs4-utf8.c: New file.
64217
64218         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64219         (Depends-on): Add unitypes.
64220         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64221         (u16_uctomb_aux): Move out to separate file.
64222         (u16_uctomb): Use ucs4_t, uint16_t types.
64223         * lib/unistr/ucs4-utf16.c: New file.
64224
64225 2006-12-25  Bruno Haible  <bruno@clisp.org>
64226
64227         * modules/unitypes: New file.
64228         * lib/unitypes.h: New file.
64229         * MODULES.html.sh (func_all_modules): New section "Unicode string
64230         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64231         this section. Add unitypes.
64232
64233 2007-01-08  Bruno Haible  <bruno@clisp.org>
64234
64235         Avoid variable names that conflict with those from libtool.
64236         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64237         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64238         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64239         library_names_spec to acl_library_names_spec, hardcode_* to
64240         acl_hardcode_*.
64241         Reported by Ralf Wildenhues.
64242
64243 2007-01-08  Bruno Haible  <bruno@clisp.org>
64244
64245         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64246         definition.
64247         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64248         definition.
64249         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64250         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64251         definition.
64252         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64253         definition.
64254         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64255         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64256         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64257         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64258         definition.
64259         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64260         definition.
64261         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64262         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64263         GC_USE_<algorithm>.
64264         * lib/gc-libgcrypt.c: Likewise.
64265         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64266         * modules/gc-arctwo (configure.ac): Likewise.
64267         * modules/gc-des (configure.ac): Likewise.
64268         * modules/gc-hmac-md5 (configure.ac): Likewise.
64269         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64270         * modules/gc-md2 (configure.ac): Likewise.
64271         * modules/gc-md4 (configure.ac): Likewise.
64272         * modules/gc-md5 (configure.ac): Likewise.
64273         * modules/gc-random (configure.ac): Likewise.
64274         * modules/gc-rijndael (configure.ac): Likewise.
64275         * modules/gc-sha1 (configure.ac): Likewise.
64276
64277 2007-01-08  Bruno Haible  <bruno@clisp.org>
64278
64279         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64280         macro definition.
64281         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64282         definition.
64283         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64284         definition.
64285         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64286         * modules/fcntl-safer (configure.ac): Likewise.
64287         * modules/fopen-safer (configure.ac): Likewise.
64288         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64289         GNULIB_FWRITEERROR macro definition.
64290
64291 2007-01-08  Bruno Haible  <bruno@clisp.org>
64292
64293         * m4/gnulib-common.m4: New file.
64294         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64295         (func_get_filelist): Add m4/gnulib-common.m4.
64296
64297 2007-01-08  Bruno Haible  <bruno@clisp.org>
64298
64299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64300         command.
64301
64302 2007-01-08  Jim Meyering  <jim@meyering.net>
64303
64304         Use a more robust test for a "can't happen" condition.
64305         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64306         narrowed the st_size value.  Presuming the "can't happen" condition
64307         is true, that narrowing could conceivably convert an invalid st_size
64308         value into a valid one.  Instead, use a change based on Matthew
64309         Woehlke's original patch.
64310
64311         Slight readability improvement: use an assert-like macro
64312         in place of literal "abort ()" uses.
64313         * lib/fts.c (fts_assert): Define.
64314         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64315         Use this macro instead of a bare 'abort'.
64316
64317 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64320         simply work around them.
64321         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64322         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64323         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64324         declaring.
64325         Don't bother to define as macros, since the standard doesn't require it.
64326         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64327         longer worry about IRIX 5.3.
64328         (HAVE_WCTYPE_CTMP_BUG): Remove.
64329
64330 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64333         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64334         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64335         Problems reported by Georg Schwarz for IRIX 5.3.
64336
64337         * gnulib-tool (autoconf_minversion): Take the maximum version number
64338         found, not the minimum.  Problem reported by James Youngman.
64339
64340 2007-01-03  Karl Berry  <karl@gnu.org>
64341
64342         * doc/error.texi: new file, explaining interaction with progname.
64343         * doc/gnulib.texi: include it.  Update copyright.
64344
64345 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64346
64347         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64348         AC_CANONICAL_HOST, to improve autobuild outputs.
64349
64350 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64351             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64352
64353         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64354         sockets, server sockets, and other file descriptors.  Count errors
64355         to compute the return value.  Reorder the code a bit to be easier
64356         to follow.  Don't set event bits that were not requested (except
64357         POLLERR and POLLHUP).
64358
64359 2007-01-01  Bruno Haible  <bruno@clisp.org>
64360
64361         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64362
64363 2007-01-03  Jim Meyering  <jim@meyering.net>
64364
64365         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64366
64367 2007-01-02  Bruno Haible  <bruno@clisp.org>
64368
64369         * modules/settime (Include): Require timespec.h.
64370         * modules/nanosleep (Include): Likewise.
64371
64372 2007-01-01  Bruno Haible  <bruno@clisp.org>
64373
64374         * gnulib-tool (func_emit_copyright_notice): Bump year.
64375         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64376
64377 2007-01-01  Bruno Haible  <bruno@clisp.org>
64378
64379         Improve support for OpenBSD.
64380         * build-aux/config.rpath (libname_spec): Export.
64381         (library_names_spec): New variable. Export.
64382         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64383         library_names_spec from the config.rpath output. Locate shared library
64384         through the name pattern in library_names_spec.
64385
64386 2007-01-01  Eric Blake  <ebb9@byu.net>
64387
64388         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64389
64390 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64391
64392         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64393         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64394         assume the C locale, and avoid an "eval" that could cause trouble.
64395         Problem with SORT reported by Bob Proulx.
64396
64397         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64398         Define.  Trivial patch from Henning Nielsen Lund, originally
64399         sent to bug-grep@gnu.org today.
64400
64401 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64404         struct stat.  Problem reported by Henning Nielsen Lund.
64405         * lib/acl.c: Include acl.h first, to check interface.  Don't
64406         bother to include sys/types.h and sys/stat.h again.
64407
64408 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64409
64410         Import the following change from libc; problem reported by
64411         Sven Verdoolaege.
64412
64413         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64414
64415         [BZ #1373]
64416         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64417
64418 2006-12-28  Jim Meyering  <jim@meyering.net>
64419
64420         * build-aux/announce-gen: Do not assume that the package
64421         builds any of tar.gz, tar.bz2, and .xdelta files.
64422         Suggestion from Simon Josefsson.
64423
64424 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64425
64426         * modules/announce-gen: New file.
64427
64428 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64431         handles its gotchas now.
64432         * lib/mbswidth.c: Likewise.
64433         * lib/wcwidth.h: Likewise.
64434         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64435         and iswcntrl; the wctype module does this stuff now.
64436         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64438         * modules/mbchar (Depends-on): Add wctype.
64439         * modules/mbswidth (Depends-on): Likewise.
64440         * modules/wcwidth (Depends-on): Likewise.
64441
64442 2006-12-27  Eric Blake  <ebb9@byu.net>
64443
64444         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64445         module uses more than what <wctype.h> is required to provide.
64446
64447 2006-12-26  Eric Blake  <ebb9@byu.net>
64448
64449         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64450
64451 2006-12-26  Eric Blake  <ebb9@byu.net>
64452
64453         * modules/absolute-header: New module.
64454         * modules/fcntl (Depends-on): Depend on it.
64455         * modules/inttypes (Depends-on): Likewise.
64456         * modules/stdint (Depends-on): Likewise.
64457         * modules/sys_stat (Depends-on): Likewise.
64458         * modules/wctype (Depends-on): Likewise.
64459         * MODULES.html.sh (Support for building libraries and
64460         executables): Document it.
64461
64462 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * gnulib-tool (SED): Remove, undoing previous change.
64465         The problem was that it broke coreutils on Solaris, because
64466         "sed --posix" leaked into a makefile.
64467         (sed): New alias, if 'alias' and GNU sed.
64468
64469 2006-12-24  Jim Meyering  <jim@meyering.net>
64470
64471         Work around an fchownat bug in glibc-2.4:
64472         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64473         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64474         in spite of the -P option.
64475         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64476         New macros.
64477         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64478         * modules/openat (Files): Add lib/fchownat.c.
64479         * lib/openat.c (fchownat): Don't define here.  Move to...
64480         * lib/fchownat.c: ...this new file.
64481
64482 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         Fix bug reported by Bruno Haible in
64485         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64486         where quotearg.c didn't compile on Mac OS X 10.2 because it
64487         lacks <wchar.h> and wint_t.
64488         * lib/wctype_.h (__wctype_wint_t): New type.
64489         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64490         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64491         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64492         Arg is now of type __wctype_wint_t, not wint_t.
64493         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64494         substitute HAVE_WINT_T.
64495         * modules/wctype (Files): Add m4/wint_t.m4.
64496         (wctype.h): Substitute HAVE_WINT_T.
64497
64498 2006-12-23  Bruno Haible  <bruno@clisp.org>
64499
64500         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64501
64502 2006-12-23  Bruno Haible  <bruno@clisp.org>
64503
64504         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64505         S_ISLNK.
64506         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64507         mingw.
64508
64509 2006-12-22  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/copy-file.c: Include acl.h.
64512         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64513         Close the file descriptors only after being done with copy_acl.
64514         * modules/copy-file (Depends-on): Add acl.
64515
64516 2006-12-22  Bruno Haible  <bruno@clisp.org>
64517
64518         * gnulib-tool (SED): New variable.
64519         Use $SED instead of sed everywhere.
64520
64521 2006-12-22  Bruno Haible  <bruno@clisp.org>
64522
64523         * modules/no-c++: New file.
64524         * m4/no-c++.m4: New file.
64525         * MODULES.html.sh (Support for building libraries and executables):
64526         Add no-c++.
64527
64528 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64531         Include <limits.h>, and use its INT_MAX to rewrite the
64532         j loop so that it does not overflow 'int'.  Problem reported by
64533         Ralf Wildenhues in
64534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64535         Play it safe by shifting left by 1 rather than multiplying by 2,
64536         as GCC is less likely to optimize this away when the value
64537         is signed (when it assumes overflow leads to undefined behavior).
64538         Also, don't assume time_t uses two's complement.
64539
64540 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64541
64542         * MODULES.html.sh: New module wctype.
64543         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64544         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64545         <wctype.h>, since the new wctype module should fix this.
64546         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64547         the wctype module should arrange for it.
64548         * lib/regex_internal.h: Likewise.
64549         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64550         since the wctype module should handle this now.
64551         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64552         * modules/fnmatch (Depends-on): Add wctype.
64553         * modules/quotearg (Depends-on): Likewise.
64554         * modules/regex (Depends-on): Likewise.
64555
64556 2006-12-19  Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64559         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64560
64561 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64562
64563         * modules/savewd (Depends-on): Fix dependency on fcntl.
64564
64565 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64568         conforms to C99, rather than relying on the user's environment
64569         setting of STDINT_H.
64570
64571 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64572         and Eric Blake  <ebb9@byu.net>
64573
64574         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64575         This is more consistent with the other defines here.
64576         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64577         Port to z/OS.  Problem reported by Paul Gilmartin.
64578         Change local vars to use gl_ prefix rather than ac_.
64579         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64580         with other defines.
64581         * modules/double-slash-root: New module.
64582         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64583         (Depends-on): Add double-slash-root.
64584         * MODULES.html.sh (File system functions): Mention new module.
64585
64586 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64589         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64590         This is for the benefit of gzip, which doesn't do i18n.
64591
64592 2006-12-12  Jim Meyering  <jim@meyering.net>
64593
64594         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64595         Reported by Andreas Schwab <schwab@suse.de>.
64596
64597 2006-12-12  Bruno Haible  <bruno@clisp.org>
64598
64599         Merge these changes.
64600         2006-09-05  Bruno Haible  <bruno@clisp.org>
64601         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64602         iconv_alloc succeeded.
64603         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64604         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64605         test for " && dest " at the end - dest is always != NULL there. Call
64606         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64607         with 2xNULL arguments, also to flush the state storage. Handle the
64608         IRIX iconv behaviour. Realloc the final result, to throw away unused
64609         memory.
64610
64611 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64614         and fchmodat unconditionally, since glibc 2.4 has them.
64615         Problem reported by Arkadiusz Miskiewicz.
64616
64617 2006-12-10  Bruno Haible  <bruno@clisp.org>
64618
64619         * gnulib-tool (func_import): Show the include files only for those
64620         modules that are copied and specified.
64621         Reported by Karl Berry.
64622
64623 2006-12-08  Jim Meyering  <jim@meyering.net>
64624
64625         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64626         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64627
64628         * build-aux/announce-gen: Add two new options, both optional:
64629         --bootstrap-tools=TOOL_LIST
64630               a comma-separated list of tools, e.g.,
64631               autoconf,automake,bison,gnulib
64632         --gnulib-snapshot-date=DATE
64633               if gnulib is in the bootstrap tool list,
64634               then report this as the snapshot date.
64635               If not specified, use the current date/time.
64636               If you specify a date here, be sure it's UTC.
64637
64638 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64639
64640         * tests/test-argp-2.sh: Fix test to match actual output.
64641         (func_compare): Fix sed script to be portable.
64642
64643 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64646         workaround for this case.  It is not autoconfigured now; offhand
64647         it's hard to see how to autoconfigure it.
64648
64649 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64652         a directory that is about to be chowned.  Such a directory's
64653         initial file permissions should permit the owner only and this
64654         should not be changed until after the chown, since the group and
64655         other bits would be incorrect if they granted permission before
64656         the chown.
64657
64658         Fix porting problem for iswctype reported by Georg Schwarz in:
64659         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64660         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64661         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64662         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64663         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64664
64665 2006-12-03  Jim Meyering  <jim@meyering.net>
64666
64667         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64668         p->fts_statp may not yet be defined.
64669         (fts_read): Instead, set it in the caller, once p->fts_statp is
64670         sure to be defined, and corresponds to a top-level directory.
64671         This bug made du -x fail.  Here's the coreutils test case:
64672         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64673         Reported by Mike Frysinger.
64674
64675 2006-12-01  Jim Meyering  <jim@meyering.net>
64676
64677         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64678         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64679         Reported by Simon Josefsson.
64680
64681 2006-11-30  Jim Meyering  <jim@meyering.net>
64682
64683         * m4/warning.m4: Use the all-permissive copyright notice
64684         recommended by RMS (rather than LGPL).
64685         * m4/vararrays.m4: Likewise.
64686         * m4/flexmember.m4: Likewise.
64687
64688 2006-11-29  Bruno Haible  <bruno@clisp.org>
64689
64690         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64691         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64692         using +=.
64693         Reported by Simon Josefsson <simon@josefsson.org>.
64694
64695 2006-11-28  James Youngman <jay@gnu.org>
64696
64697         * README: Advise users that they might find the bug-gnulib@gnu.org
64698         and autotools-announce@gnu.org mailing lists useful.
64699
64700 2006-11-28  Bruno Haible  <bruno@clisp.org>
64701
64702         * m4/ptrdiff_max.m4: Remove file.
64703
64704 2006-11-21  Bruno Haible  <bruno@clisp.org>
64705
64706         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64707         _AC_COMPUTE_INT.
64708         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64709         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64710         _AC_COMPUTE_INT.
64711         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64712         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64713         _AC_COMPUTE_INT.
64714         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64715
64716 2006-11-28  Jim Meyering  <jim@meyering.net>
64717
64718         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64719         warning from "gcc -Wshadow" about shadowing the builtin.
64720
64721 2006-11-27  Bruno Haible  <bruno@clisp.org>
64722
64723         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64724         _AC_COMPUTE_INT.
64725         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64726
64727 2006-11-27  Bruno Haible  <bruno@clisp.org>
64728             Paul Eggert  <eggert@cs.ucla.edu>
64729
64730         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64731
64732 2006-11-26  Bruno Haible  <bruno@clisp.org>
64733
64734         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64735         noinst_LTLIBRARIES.
64736
64737 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64738             Bruno Haible  <bruno@clisp.org>
64739
64740         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64741         if compiling with "gcc -ansi".
64742
64743 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64744
64745         Fix some incompatibilities with gcc -ansi -pedantic.
64746         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64747         if compiling pedantically with GCC, unless it's C99 or later.
64748         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64749         it mishandles gcc -ansi -pedantic as well.
64750         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64751         if gcc -pedantic.
64752         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64753         initializers for struct if -pedantic, unless it's C99 or later.
64754
64755 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64756
64757         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64758         Don't close an fd more than once. Identical atimes indicate
64759         success, not failure.
64760
64761 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64762
64763         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64764
64765 2006-11-23  Jim Meyering  <jim@meyering.net>
64766
64767         * build-aux/announce-gen: New file.  From coreutils.
64768
64769 2006-11-22  Jim Meyering  <jim@meyering.net>
64770
64771         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64772         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64773         (fts_read): Use a temporary to narrow the overused st_size member
64774         before using it in a switch statement.  Reported by Matthew Woehlke.
64775
64776         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64777         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64778
64779 2006-11-20  Bruno Haible  <bruno@clisp.org>
64780
64781         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64782         changequote instead of pairs of brackets.
64783         Reported by Andreas Schwab <schwab@suse.de>.
64784
64785 2006-11-21  Jim Meyering  <jim@meyering.net>
64786
64787         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64788         so as to remain compatible with older compilers.
64789         Patch from Michael Deutschmann.
64790
64791 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64792
64793         * MODULES.html.sh (File system functions): Add openat.
64794
64795         * lib/openat.h (rpl_fstatat): New macro, if
64796         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64797         (fstatat): Define to rpl_fstatat under the same conditions,
64798         unless COMPILING_FSTATAT.
64799         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64800         seems to have the bug.
64801         * lib/fstatat.c: New file.
64802         * modules/openat (Files): Add it.
64803
64804 2006-11-20  Bruno Haible  <bruno@clisp.org>
64805
64806         * Makefile: New file.
64807
64808 2006-11-20  Jim Meyering  <jim@meyering.net>
64809
64810         The beginnings of syntax-related checks for gnulib.
64811         * lib/Makefile: New file.
64812         * lib/t-idcache: New script.  Ensure that the two halves of
64813         idcache.c stay in sync.
64814
64815         * lib/idcache.c: Adjust comments in user- and group- portions to
64816         be more accurate, and to be consistent with one another.
64817
64818 2006-11-20  Jim Meyering  <jim@meyering.net>
64819
64820         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64821         continue using the flexible array member (thus, this module performs
64822         half as many malloc calls), with the addition that...
64823         (getgroup, getuser): Consistently record a non-match via an empty
64824         "name" string, and map an empty string match to a NULL return value.
64825         * modules/idcache (Depends-on): Re-add flexmember.
64826
64827         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64828         (getuidbyname, getgroup, getgidbyname): Likewise.
64829
64830         Use cleaner syntax: NULL rather than 0.
64831         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64832
64833 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64834
64835         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64836         It mishandled the case where the group was missing.
64837         Problem reported by Greg Schafer.
64838         * modules/idcache: Likewise.
64839
64840 2006-11-18  Jim Meyering  <jim@meyering.net>
64841
64842         * check-module (%exempt_header): Add exception for some
64843         conditionally-included headers.
64844
64845         * modules/i-ring (Depends-on): Add verify.
64846         (License): Change to LGPL.
64847
64848 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64851         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64852         and inttostr.h.  Use snprintf rather than uinttostr, so that
64853         LGPLed code doesn't depend on GPLed.
64854
64855 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         * modules/inline (License): Change from GPL to LGPL.
64858
64859 2006-11-17  Jim Meyering  <jim@meyering.net>
64860
64861         * modules/d-type (License): Switch to LGPL.
64862
64863 2006-11-15  Bruno Haible  <bruno@clisp.org>
64864
64865         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64866
64867 2006-11-15  Eric Blake  <ebb9@byu.net>
64868
64869         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64870         the module dependency.
64871
64872 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64873             Bruno Haible  <bruno@clisp.org>
64874
64875         * gnulib-tool (func_create_testdir): Add license consistency check.
64876
64877 2006-11-15  Eric Blake  <ebb9@byu.net>
64878
64879         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64880         random "(cached)" in configure output.
64881
64882 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64883
64884         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64885         test for conforming inttypes.h is both announced and cached.
64886
64887         * MODULES.html.sh (seen_modules, seen_files): New variables.
64888         (func_module): Rewrite to use a few less gnulib-tool and sed
64889         invocations.  Avoid a couple of quadratic algorithms for ...
64890         (missed_modules, missed_files): ... these, with ...
64891         (func_append, func_tmpdir): ... these new functions, from
64892         gnulib-tool.  Analogously, install traps for cleanup.
64893
64894         * tests/test-gc.c (main): Remove unused variables.
64895         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64896
64897 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64898
64899         * modules/inttostr (License): Change to LGPL.
64900
64901 2006-11-14  Eric Blake  <ebb9@byu.net>
64902
64903         * modules/tempname (License): Change to LGPL.
64904
64905 2006-11-14  Eric Blake  <ebb9@byu.net>
64906
64907         * doc/functions.texi (Function Portability): *printf functions on
64908         Cygwin now understand all POSIX size specifiers.
64909
64910 2006-11-14  Bruno Haible  <bruno@clisp.org>
64911
64912         * modules/c-ctype (License): Change to LGPL.
64913
64914 2006-11-12  Bruno Haible  <bruno@clisp.org>
64915
64916         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64917         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64918         for GNOME libraries, for which the include files are installed in
64919         subdirectories of $prefix/include.
64920
64921 2006-11-12  Bruno Haible  <bruno@clisp.org>
64922
64923         * m4/lib-link.m4: Require at least autoconf-2.54.
64924         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64925         name to underscores for the --with option.
64926
64927 2006-11-13  Bruno Haible  <bruno@clisp.org>
64928
64929         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64930         the tests directory.
64931         Reported by Ralf Wildenhues.
64932
64933 2006-11-13  Bruno Haible  <bruno@clisp.org>
64934
64935         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64936         (func_emit_initmacro_end): Undo the override here.
64937         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64938         Works around the famous automake error in coreutils.
64939
64940 2006-11-13  Eric Blake  <ebb9@byu.net>
64941
64942         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64943         element, not its node.
64944
64945 2006-11-12  Bruno Haible  <bruno@clisp.org>
64946
64947         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64948         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64949
64950 2006-11-12  Bruno Haible  <bruno@clisp.org>
64951
64952         * gnulib-tool: New option --local-symlink.
64953         (func_usage): Document it.
64954         (lsymbolic): New variable.
64955         (func_import, func_create_testdir): If --symlink was not specified,
64956         test whether --local-symlink was specified and the file comes from
64957         the local_gnulib_dir.
64958
64959 2006-11-12  Bruno Haible  <bruno@clisp.org>
64960
64961         * gnulib-tool (func_ln): New function.
64962         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64963
64964 2006-11-12  Bruno Haible  <bruno@clisp.org>
64965
64966         Finish support for source files in subdirectories.
64967         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64968         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64969         AUTOMAKE_OPTIONS.
64970         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64971
64972 2006-11-12  Bruno Haible  <bruno@clisp.org>
64973
64974         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64975         EXTRA_lib_SOURCES augmentation.
64976         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64977
64978 2006-11-12  Jim Meyering  <jim@meyering.net>
64979
64980         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64981         file descriptors.  This also averts a failure on systems with
64982         native openat support when a traversed directory lacks "x" access.
64983         * lib/fts_.h: Include "i-ring.h"
64984         (struct FTS) [fts_fd_ring]: New member.
64985         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64986         (FCHDIR): Add parentheses.
64987         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64988         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64989         When descending, rather than simply closing the previous
64990         fts_cwd_fd value, push that file descriptor onto the ring.
64991         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64992         (fts_open): Initialize the new fd_ring member.
64993         (fts_close): Clear the ring.
64994         (fts_safe_changedir): When possible, use our new fd_ring to skip
64995         the diropen and fstat and dev/ino comparison that would normally
64996         accompany a virtual `chdir ("..")'.
64997
64998         * modules/fts (Depends-on): Add i-ring.
64999         * modules/i-ring: New module.
65000         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65001         * m4/i-ring.m4: New file.
65002
65003 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65004
65005         * gnulib-tool (func_create_testdir): Fix replacement of
65006         `build-aux' in configure.ac.  Run autotools in gltests
65007         subdirectory.
65008         (func_create_testdir, func_create_megatestdir, test): There is
65009         no need for '--force' in most autotool invocations in a new
65010         tree.  Actually fail the whole test if any of the tools, or the
65011         configure or make stages fail.
65012
65013         Sync from Automake.
65014         * build-aux/gnupload: Revert last change.  Add pointer to upload
65015         instructions of the GNU Maintenance Instructions.
65016         Suggestion by Karl Berry.
65017
65018 2006-11-10  Jim Meyering  <jim@meyering.net>
65019
65020         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65021
65022 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65025         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65026         (bind_textdomain_codeset) [! ENABLE_NLS]:
65027         Evaluate all the arguments.  That way, callers get compatible behavior
65028         if the arguments have side effects.  Also, it avoids some GCC
65029         diagnostics in some cases; Joel E. Denny reported problems when Bison
65030         was configured with --enable-gcc-warnigs.
65031
65032 2006-11-10  Jim Meyering  <jim@meyering.net>
65033
65034         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65035         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65036         account.
65037
65038 2006-11-10  Jim Meyering  <jim@meyering.net>
65039
65040         * modules/inline: New file/module.
65041         * modules/xalloc (Files): Remove m4/inline.m4.
65042         (Depends-on): Add inline, instead.
65043         * modules/oset: Likewise.
65044         * modules/list: Likewise.
65045
65046 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65047
65048         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65049         Problem reported by Matthew Woehlke.
65050
65051 2006-11-09  Bruno Haible  <bruno@clisp.org>
65052
65053         * lib/tempname.c (gen_tempname): Remove variant that invokes
65054         __gen_tempname.
65055         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65056         __gen_tempname.
65057
65058 2006-11-08  Bruno Haible  <bruno@clisp.org>
65059
65060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65061         to 'yes' instead of 'cross-compiling'.
65062
65063 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65064
65065         * lib/quotearg.h (quotearg_free): New decl.
65066         * lib/quotearg.c (quotearg_free): New function.
65067         (slot0, nslots, slotvec0, slotvec):
65068         Now file-scope so that quotearg_free can get at them.
65069
65070 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65071
65072         Sync from Automake.
65073         * build-aux/gnupload: Add missing 'gnu' to example URL.
65074         Report by Karl Berry.
65075
65076 2006-11-08  Bruno Haible  <bruno@clisp.org>
65077
65078         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65079         Suggested by Paul Eggert.
65080
65081 2006-11-08  Jim Meyering  <jim@meyering.net>
65082
65083         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65084         It's already included if !_LIBC.
65085         (fts_safe_changedir): Add a comment.
65086
65087 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65088
65089         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65090         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65091         Matthew Woehlke.
65092
65093         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65094         definitions up, to avoid colliding with change below.
65095         (static_inline) [HAVE_INLINE]: New macro.
65096         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65097         Provide extern decls when !HAVE_INLINE.  Do not define unless
65098         static_inline is defined, either by us or by xmalloc.c.  Use
65099         static_inline rather than static inline.
65100         (XCALLOC): Optimize sizeof(T) = 1 case.
65101         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65102
65103 2006-11-07  Bruno Haible  <bruno@clisp.org>
65104
65105         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65106         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65107         AC_C_INLINE.
65108         * modules/xalloc (Files): Add m4/inline.m4.
65109
65110 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65111
65112         * README: Fix typo.
65113         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65114         (Miscellanous Notes): ...from this.
65115
65116 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65119         Mention that offsetof should be used instead of sizeof.
65120         From Bruno Haible.
65121
65122 2006-11-07  Bruno Haible  <bruno@clisp.org>
65123
65124         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65125
65126 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65127
65128         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65129         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65130         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65131         (gl_tree_add_before, gl_tree_add_after):
65132         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65133         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65134         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65135         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65136         (gl_linked_add_after, gl_linked_add_at): Likewise.
65137         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65138         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65139         (gl_tree_add_before, gl_tree_add_after): Likewise.
65140         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65141         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65142         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65143
65144 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65145
65146         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65147
65148 2006-11-06  Bruno Haible  <bruno@clisp.org>
65149
65150         * m4/inline.m4: New file.
65151         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65152         * modules/list (Files): Add m4/inline.m4.
65153         * modules/oset (Files): Likewise.
65154
65155 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * lib/idcache.c: Include <stddef.h>, for offsetof.
65158         (struct userid.name): Change from char * to a flexible array member.
65159         All uses changed.
65160         * modules/idcache (Depends-on): Add flexmember.
65161
65162         * MODULES.html.sh (Core language properties): New module flexmember.
65163         * modules/flexmember, m4/flexmember.m4: New files.
65164
65165         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65166         inline functions that are identical with the old xnmalloc_inline,
65167         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65168         that we can avoid some unnecessary integer multiplications and
65169         divisions in the common case where the element size is known at
65170         compile time.
65171         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65172         needed.
65173         (xnboundedmalloc): Remove.
65174         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65175         arguments, for consistency with rest of this header.
65176         (xcharalloc): Rewrite using XNMALLOC.
65177         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65178         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65179         versions have been moved to lib/xalloc.h and renamed to be the
65180         non-*_inline versions.
65181         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65182         and xnrealloc functions, since those functions are now inline and
65183         now call us.
65184         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65185         renaming described above.
65186         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65187         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65188         captures the dependency in AC_C_INLINE.
65189
65190         New module canonicalize-lgpl, proposed by Charles Wilson in
65191         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65192         with a few small changes afterwards.
65193         * MODULES.html.sh (File system functions): New module
65194         canonicalize-lgpl.
65195         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65196         and canonicalize_file_name.
65197         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65198         * modules/canonicalize-lgpl: New files.
65199
65200 2006-11-05  Bruno Haible  <bruno@clisp.org>
65201
65202         * gnulib-tool (func_import, func_create_testdir): Create directories
65203         also for files in subdirectories of lib/.
65204
65205 2006-11-05  Bruno Haible  <bruno@clisp.org>
65206
65207         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65208         ANSI C compliant.
65209
65210 2006-11-03  Bruno Haible  <bruno@clisp.org>
65211
65212         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65213         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65214         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65215         (xnboundedmalloc): New inline function.
65216         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65217         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65218         xmalloc.
65219         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65220         xmalloc.
65221         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65222         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65223         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65224         xmalloc.
65225         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65226         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65227         xmalloc.
65228         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65229         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65230         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65231         xmalloc.
65232         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65233         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65234         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65235         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65236         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65237         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65238         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65239
65240 2006-11-03  Bruno Haible  <bruno@clisp.org>
65241
65242         * lib/c-ctype.h [C++]: Define functions without name mangling.
65243         * lib/fwriteerror.h [C++]: Likewise.
65244         * lib/gcd.h [C++]: Likewise.
65245         * lib/linebreak.h [C++]: Likewise.
65246
65247 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65248
65249         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65250         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65251         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65252         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65253         Check for functions and headers just once.
65254         Check for declaration of canonicalize_file_name.
65255         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65256
65257 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65258
65259         * gnulib-tool (func_import): Fix typo in actioncmd.
65260
65261 2006-11-02  Bruno Haible  <bruno@clisp.org>
65262
65263         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65264         newline sequence in the Makefile.am snippet as a space, like "make"
65265         does.
65266         Reported by Roger Persson <perrog@gmail.com>.
65267
65268 2006-11-01  Bruno Haible  <bruno@clisp.org>
65269
65270         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65271         already declared in <string.h>.
65272         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65273
65274 2006-11-01  Bruno Haible  <bruno@clisp.org>
65275
65276         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65277         * lib/strcase.h: Include <string.h>.
65278         (strcasecmp): Define to rpl_strcasecmp here.
65279
65280 2006-11-01  Bruno Haible  <bruno@clisp.org>
65281
65282         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65283
65284 2006-11-01  Eric Blake  <ebb9@byu.net>
65285
65286         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65287
65288         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65289
65290 2006-10-29  Bruno Haible  <bruno@clisp.org>
65291
65292         Make it compile in C++ mode.
65293         * lib/full-write.c (full_rw): Add a cast.
65294
65295 2006-11-01  Bruno Haible  <bruno@clisp.org>
65296
65297         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65298         be POSIX compliant.
65299         Reported by Roger Persson <perrog@gmail.com>.
65300
65301 2006-11-01  Eric Blake  <ebb9@byu.net>
65302
65303         * lib/getopt_.h: Fix comments.
65304
65305 2006-10-31  Eric Blake  <ebb9@byu.net>
65306
65307         * modules/tmpdir (Depends-on): Add sys_stat.
65308         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65309         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65310         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65311         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65312         tempname.
65313
65314 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         Avoid some C++ diagnostics reported by Bruno Haible.
65317         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65318         xmalloc.
65319         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65320         (struct slotvec): Move to top level.
65321         (quotearg_n_options): Rewrite to avoid xmalloc.
65322         * lib/xalloc.h (xcharalloc): New function.
65323         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65324         [defined __cplusplus]: Add function template that provides result
65325         type propagation.  This part of the change is from Bruno Haible.
65326
65327 2006-10-29  Bruno Haible  <bruno@clisp.org>
65328
65329         Make it compile in C++ mode.
65330         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65331         * lib/strnlen1.c (strnlen1): Cast memchr result.
65332         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65333         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65334         (create_temp_dir): Rename local variable 'template'.
65335         (compile_csharp_using_sscli): Add cast.
65336         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65337         * lib/findprog.c (find_in_path): Likewise.
65338         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65339         * lib/wait-process.c (register_slave_subprocess): Likewise.
65340
65341 2006-10-22  Bruno Haible  <bruno@clisp.org>
65342
65343         * modules/tsearch: New file.
65344         * lib/tsearch.h: New file.
65345         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65346         * m4/tsearch.m4: New file.
65347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65348
65349 2006-10-29  Eric Blake  <ebb9@byu.net>
65350
65351         * lib/arcfour.c: Assume config.h.
65352         * lib/arctwo.c: Likewise.
65353         * lib/base64.c: Likewise.
65354         * lib/check-version.c: Likewise.
65355         * lib/crc.c: Likewise.
65356         * lib/des.c: Likewise.
65357         * lib/gc-gnulib.c: Likewise.
65358         * lib/gc-libgcrypt.c: Likewise.
65359         * lib/gc-pbkdf2-sha1.c: Likewise.
65360         * lib/getaddrinfo.c: Likewise.
65361         * lib/getdelim.c: Likewise.
65362         * lib/getline.c: Likewise.
65363         * lib/hmac-md5.c: Likewise.
65364         * lib/hmac-sha1.c: Likewise.
65365         * lib/iconvme.c: Likewise.
65366         * lib/md2.c: Likewise.
65367         * lib/md4.c: Likewise.
65368         * lib/memxor.c: Likewise.
65369         * lib/read-file.c: Likewise.
65370         * lib/readline.c: Likewise.
65371         * lib/rijndael-alg-fst.c: Likewise.
65372         * lib/rijndael-api-fst.c: Likewise.
65373         * lib/xgetdomainname.c: Likewise.
65374
65375 2006-10-28  Eric Blake  <ebb9@byu.net>
65376
65377         * lib/xstrndup.c: Assume config.h.
65378
65379 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65380
65381         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65382         stat-macros.h is now for our own macros, whereas stat_h is for
65383         macros in the <sys/stat.h> name space.
65384         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65385         (STAT_MACROS_H): Remove.
65386         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65387         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65388         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65389         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65390         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65391         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65392         Move these macros to ...
65393         * lib/stat_.h: here.  Don't include stat-macros.h.
65394         * lib/canonicalize.c: Don't include stat-macros.h.
65395         * lib/chown.c: Likewise.
65396         * lib/euidaccess.c: Likewise.
65397         * lib/file-type.c: Likewise.
65398         * lib/filemode.c: Likewise.
65399         * lib/glob.c: Likewise.
65400         * lib/isapipe.c: Likewise.
65401         * lib/lchown.c: Likewise.
65402         * lib/lstat.c: Likewise.
65403         * lib/mkdir-p.c: Likewise.
65404         * lib/rmdir.c: Likewise.
65405         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65407         unless mkdir isn't declared, to speed up 'configure'.
65408         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65409         would define all the S_* symbols.
65410         * modules/canonicalize (Depends-on):
65411         Depend on sys_stat, not stat-macros.
65412         * modules/chown: Likewise.
65413         * modules/euidaccess: Likewise.
65414         * modules/filemode: Likewise.
65415         * modules/file-type: Likewise.
65416         * modules/glob: Likewise.
65417         * modules/isapipe: Likewise.
65418         * modules/lchown: Likewise.
65419         * modules/lstat: Likewise.
65420         * modules/mkancesdirs: Likewise.
65421         * modules/rmdir: Likewise.
65422         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65423         * modules/modechange: Likewise.
65424         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65425         (configure.ac): Remove gl_STAT_MACROS.
65426         * modules/sys_stat (Depends-on): Remove stat-macros.
65427
65428 2006-10-27  Bruno Haible  <bruno@clisp.org>
65429
65430         * m4/signed.m4: Remove file.
65431         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65432         invocation.
65433         * modules/vasnprintf (Files): Remove m4/signed.m4.
65434
65435 2006-10-27  Bruno Haible  <bruno@clisp.org>
65436
65437         Update to GNU gettext 0.16.
65438         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65439         m4/inttypes-h.m4, m4/signed.m4.
65440         * m4/gettext.m4: Update to GNU gettext 0.16.
65441         * m4/intl.m4: New file, from GNU gettext.
65442         * m4/intldir.m4: New file, from GNU gettext.
65443         * config/srclist.txt: Update
65444
65445 2006-10-27  Eric Blake  <ebb9@byu.net>
65446
65447         * MODULES.html.sh: Document tempname.
65448         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65449         dependencies.
65450         (Files): Move lib/tempname.c...
65451         * modules/tempname: ...to this new module.
65452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65453         (gl_PREREQ_TEMPNAME): Move...
65454         * m4/tempname.m4: ...to this new file.
65455         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65456         * modules/sys_stat (Depends-on): Add stat-macros.
65457         * lib/stat_.h (includes): Pick up stat macros.
65458         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65459         if stat macros are broken.
65460         * lib/tempname.c (includes): No need to include "stat-macros.h".
65461         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65462         (direxists, __path_search) [!_LIBC]: Don't compile these in
65463         gnulib; the tmpdir module covers that.
65464         * lib/tempname.h: New file.
65465
65466 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * COPYING: Explain how gnulib-tool converts licence headers.
65469         Almost all wording by Eric Blake.
65470
65471 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65472
65473         * lib/mbchar.h (is_basic_table): Make read-only.
65474         * lib/mbchar.c (is_basic_table): Likewise.
65475         Reported by John Darrington.
65476
65477 2006-10-25  Bruno Haible  <bruno@clisp.org>
65478
65479         * lib/progname.h (set_program_name): Undefine before defining.
65480
65481 2006-10-25  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65484         false for non-gcc C++ compilers.
65485         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65486
65487 2006-10-24  Bruno Haible  <bruno@clisp.org>
65488
65489         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65490         iconv implementations like Irix iconv.
65491
65492 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65493
65494         * modules/vararrays: New file.
65495         * m4/vararrays.m4: New file, taken from diffutils.
65496         * MODULES.html.sh: New module vararrays.
65497
65498 2006-10-24  Karl Berry  <karl@gnu.org>
65499
65500         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65501         Don't call GNU Unix.
65502
65503 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65504
65505         * users.txt: Add Libtool.
65506
65507         Sync from Libtool:
65508
65509         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65512         to gnulib's policy of including config.h unconditionally.
65513
65514 2006-10-24  Bruno Haible  <bruno@clisp.org>
65515
65516         * modules/wcwidth (Files): Add m4/wint_t.m4.
65517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65518         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65519
65520 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65523         to pacify GCC with some -W flags enabled.  Problem reported by
65524         Bruno Haible.
65525
65526 2006-10-24  Jim Meyering  <jim@meyering.net>
65527
65528         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65529         Reported by Karl Berry.
65530
65531 2006-10-23  Bruno Haible  <bruno@clisp.org>
65532
65533         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65534
65535 2006-10-24  Bruno Haible  <bruno@clisp.org>
65536
65537         * lib/gl_list.h: Use C comment style, not C++ comment style.
65538
65539 2006-10-23  Eric Blake  <ebb9@byu.net>
65540
65541         * lib/getaddrinfo.c (includes): Add missing include.
65542
65543 2006-10-23  Bruno Haible  <bruno@clisp.org>
65544             Paul Eggert  <eggert@cs.ucla.edu>
65545
65546         Ability to rename obstack_free.
65547         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65548         obstack_free.
65549         (obstack_free): Invoke the __obstack_free macro.
65550         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65551
65552 2006-10-23  Bruno Haible  <bruno@clisp.org>
65553             Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65556         __argc, __argv from the declaration. (They are defined as macros on
65557         mingw.)
65558
65559 2006-10-22  Bruno Haible  <bruno@clisp.org>
65560
65561         * doc/gnulib-intro.texi: New file.
65562         * doc/gnulib.texi: Include it.
65563
65564 2006-10-21  Bruno Haible  <bruno@clisp.org>
65565
65566         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65567         "Introduction", "Miscellanous Notes", "Particular Modules".
65568
65569 2006-10-21  Bruno Haible  <bruno@clisp.org>
65570
65571         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65572         Change mostlyclean-local rule to avoid sh syntax error from bash
65573         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65574
65575 2006-10-23  Jim Meyering  <jim@meyering.net>
65576
65577         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65578         in place of snprintf.
65579
65580         * modules/inttostr (Files): Add lib/uinttostr.c.
65581         * lib/uinttostr.c (inttostr): New file/function.
65582         * lib/inttostr.h (uinttostr): Declare.
65583         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65584         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65585         Add uinttostr.
65586         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65587
65588 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         * lib/canonicalize.c (ELOOP): Define if not already defined.
65591         Problem reported by Bruno Haible in
65592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65593
65594 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65597         Problem reported by Perry Smith and Ville Laurikari.
65598
65599         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65600         uses.
65601
65602 2006-10-19  Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65605         for mingw.
65606
65607 2006-10-19  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65610         Needed for mingw.
65611
65612 2006-10-19  Bruno Haible  <bruno@clisp.org>
65613
65614         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65615
65616 2006-10-19  Bruno Haible  <bruno@clisp.org>
65617
65618         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65619         it.
65620
65621 2006-10-19  Bruno Haible  <bruno@clisp.org>
65622
65623         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65624         invocation.
65625
65626 2006-10-19  Bruno Haible  <bruno@clisp.org>
65627
65628         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65629         mountlist by default.
65630
65631 2006-10-16  Bruno Haible  <bruno@clisp.org>
65632
65633         * lib/c-strstr.c: Include c-strstr.h.
65634
65635 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65636
65637         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65638         in a slash.
65639
65640 2006-10-18  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/lock.h [C++]: Wrap definitions in extern "C".
65643
65644 2006-10-18  Bruno Haible  <bruno@clisp.org>
65645
65646         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65647         gl_LIBOBJS list.
65648
65649 2006-10-18  Bruno Haible  <bruno@clisp.org>
65650
65651         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65652
65653 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * lib/xstrtol.h: Include gettext.h.
65656         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65657         Problem reported by Eric Blake.
65658         * modules/xstrtol (Depends-on): Add gettext-h.
65659
65660 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65661
65662         * lib/strftime.c (advance): New macro.
65663         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65664         incomplete type, so you can't add 0 to it.  Problem and patch
65665         reported by Eelco Dolstra for dietlibc.
65666
65667 2006-10-18  Jim Meyering  <jim@meyering.net>
65668
65669         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65670         type for a local, and rename it: s/up/user_proc/.
65671
65672 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65673
65674         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65675         READ_UTMP_USER_PROCESS.
65676         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65677
65678 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65681         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65682
65683 2006-10-17  Eric Blake  <ebb9@byu.net>
65684
65685         * lib/sigprocmask.c (sigprocmask): Fix typo.
65686
65687         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65688
65689         * modules/clean-temp (Makefile.am): Don't add to make output...
65690         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65691         config.h.
65692
65693 2006-10-17  Bruno Haible  <bruno@clisp.org>
65694
65695         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65696         differently if DEFAULT_TEXT_DOMAIN is set.
65697
65698 2006-10-16  Bruno Haible  <bruno@clisp.org>
65699
65700         * lib/clean-temp.c: Include fwriteerror.h.
65701
65702 2006-10-16  Bruno Haible  <bruno@clisp.org>
65703
65704         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65705
65706 2006-10-16  Bruno Haible  <bruno@clisp.org>
65707
65708         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65709         * lib/sigprocmask.h: Include <sys/types.h>.
65710         (sigset_t): Use the system's definition if present.
65711
65712 2006-10-17  Eric Blake  <ebb9@byu.net>
65713
65714         * lib/xvasprintf.c (includes): Assume config.h.
65715         * lib/xasprintf.c (includes): Likewise.
65716
65717 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65720         at least as wide as intmax_t.
65721
65722 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65723
65724         (Imported from Automake.)
65725         * build-aux/gnupload: Update to version 1.1 of directive file.
65726
65727 2006-10-16  Eric Blake  <ebb9@byu.net>
65728
65729         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65730         match Automake 1.10a.
65731
65732 2006-10-14  Bruno Haible  <bruno@clisp.org>
65733
65734         * modules/sigprocmask: New file.
65735         * lib/sigprocmask.h: New file.
65736         * lib/sigprocmask.c: New file.
65737         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65738         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65739         request sigprocmask.o.
65740         (gl_PREREQ_SIGPROCMASK): New macro.
65741         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65742         (Depends-on): Add sigprocmask.
65743         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65744         gt_SIGNALBLOCKING. Test for 'raise' only once.
65745         * lib/fatal-signal.c: Include sigprocmask.h.
65746         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65747         unblock_fatal_signals): Define always.
65748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65749         sigprocmask.
65750
65751 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         Sync from Automake.
65754         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65755         which incorrectly sets the mode of an existing destination
65756         directory.  In some cases the unpatched install-sh could do the
65757         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65758         system.  We hope this is rare in practice, but it's clearly worth
65759         fixing.  Problem reported by Alex Unleashed in
65760         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65761         Also, don't bother to check for -m bugs unless we're using -m;
65762         suggested by Stepan Kasal.
65763
65764 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65765
65766         Sync from Automake.
65767         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65768         `-c' flag, so they appear at the same position as in %FASTDEP%
65769         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65770         which ignores unknown options only after the first non-option.
65771         Bug report against M4 by Nelson H. F. Beebe.
65772
65773 2006-10-13  Jim Meyering  <jim@meyering.net>
65774
65775         Fix a bug in yesterday's change.
65776         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65777         p->fts_statp->st_dev would be used uninitialized.
65778         Ensures that we always call fts_stat on the very first entry.
65779         Miklos Szeredi reported that find -xdev stopped working.
65780
65781 2006-10-12  Bruno Haible  <bruno@clisp.org>
65782
65783         * gnulib-tool (func_get_automake_snippet): Append an automatically
65784         computed EXTRA_DIST augmentation.
65785         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65786         * modules/alloca-opt (Makefile.am): Likewise.
65787         * modules/allocsa (Makefile.am): Likewise.
65788         * modules/arcfour (Makefile.am): Likewise.
65789         * modules/arctwo (Makefile.am): Likewise.
65790         * modules/argmatch (Makefile.am): Likewise.
65791         * modules/argz (Makefile.am): Likewise.
65792         * modules/atexit (Makefile.am): Likewise.
65793         * modules/backupfile (Makefile.am): Likewise.
65794         * modules/byteswap (Makefile.am): Likewise.
65795         * modules/c-strtod (Makefile.am): Likewise.
65796         * modules/c-strtold (Makefile.am): Likewise.
65797         * modules/calloc (Makefile.am): Likewise.
65798         * modules/canon-host (Makefile.am): Likewise.
65799         * modules/canonicalize (Makefile.am): Likewise.
65800         * modules/chdir-long (Makefile.am): Likewise.
65801         * modules/chdir-safer (Makefile.am): Likewise.
65802         * modules/check-version (Makefile.am): Likewise.
65803         * modules/chown (Makefile.am): Likewise.
65804         * modules/cloexec (Makefile.am): Likewise.
65805         * modules/close-stream (Makefile.am): Likewise.
65806         * modules/closeout (Makefile.am): Likewise.
65807         * modules/crc (Makefile.am): Likewise.
65808         * modules/csharpexec (Makefile.am): Likewise.
65809         * modules/cycle-check (Makefile.am): Likewise.
65810         * modules/des (Makefile.am): Likewise.
65811         * modules/dev-ino (Makefile.am): Likewise.
65812         * modules/dirfd (Makefile.am): Likewise.
65813         * modules/dirname (Makefile.am): Likewise.
65814         * modules/dup2 (Makefile.am): Likewise.
65815         * modules/eealloc (Makefile.am): Likewise.
65816         * modules/error (Makefile.am): Likewise.
65817         * modules/euidaccess (Makefile.am): Likewise.
65818         * modules/exclude (Makefile.am): Likewise.
65819         * modules/exitfail (Makefile.am): Likewise.
65820         * modules/fcntl-safer (Makefile.am): Likewise.
65821         * modules/fcntl (Makefile.am): Likewise.
65822         * modules/file-type (Makefile.am): Likewise.
65823         * modules/fileblocks (Makefile.am): Likewise.
65824         * modules/filemode (Makefile.am): Likewise.
65825         * modules/filenamecat (Makefile.am): Likewise.
65826         * modules/fnmatch (Makefile.am): Likewise.
65827         * modules/fopen-safer (Makefile.am): Likewise.
65828         * modules/fpending (Makefile.am): Likewise.
65829         * modules/fprintftime (Makefile.am): Likewise.
65830         * modules/free (Makefile.am): Likewise.
65831         * modules/fsusage (Makefile.am): Likewise.
65832         * modules/ftruncate (Makefile.am): Likewise.
65833         * modules/fts (Makefile.am): Likewise.
65834         * modules/gc-arcfour (Makefile.am): Likewise.
65835         * modules/gc-des (Makefile.am): Likewise.
65836         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65837         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65838         * modules/gc-md4 (Makefile.am): Likewise.
65839         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65840         * modules/gc-sha1 (Makefile.am): Likewise.
65841         * modules/gc (Makefile.am): Likewise.
65842         * modules/getaddrinfo (Makefile.am): Likewise.
65843         * modules/getcwd (Makefile.am): Likewise.
65844         * modules/getdelim (Makefile.am): Likewise.
65845         * modules/getdomainname (Makefile.am): Likewise.
65846         * modules/getgroups (Makefile.am): Likewise.
65847         * modules/gethostname (Makefile.am): Likewise.
65848         * modules/gethrxtime (Makefile.am): Likewise.
65849         * modules/getline (Makefile.am): Likewise.
65850         * modules/getloadavg (Makefile.am): Likewise.
65851         * modules/getlogin_r (Makefile.am): Likewise.
65852         * modules/getndelim2 (Makefile.am): Likewise.
65853         * modules/getopt (Makefile.am): Likewise.
65854         * modules/getpagesize (Makefile.am): Likewise.
65855         * modules/getpass-gnu (Makefile.am): Likewise.
65856         * modules/getpass (Makefile.am): Likewise.
65857         * modules/getsubopt (Makefile.am): Likewise.
65858         * modules/gettime (Makefile.am): Likewise.
65859         * modules/gettimeofday (Makefile.am): Likewise.
65860         * modules/getugroups (Makefile.am): Likewise.
65861         * modules/getusershell (Makefile.am): Likewise.
65862         * modules/glob (Makefile.am): Likewise.
65863         * modules/group-member (Makefile.am): Likewise.
65864         * modules/hard-locale (Makefile.am): Likewise.
65865         * modules/hash (Makefile.am): Likewise.
65866         * modules/hmac-md5 (Makefile.am): Likewise.
65867         * modules/hmac-sha1 (Makefile.am): Likewise.
65868         * modules/human (Makefile.am): Likewise.
65869         * modules/idcache (Makefile.am): Likewise.
65870         * modules/imaxabs (Makefile.am): Likewise.
65871         * modules/imaxdiv (Makefile.am): Likewise.
65872         * modules/inet_ntop (Makefile.am): Likewise.
65873         * modules/inet_pton (Makefile.am): Likewise.
65874         * modules/intprops (Makefile.am): Likewise.
65875         * modules/inttostr (Makefile.am): Likewise.
65876         * modules/inttypes (Makefile.am): Likewise.
65877         * modules/isapipe (Makefile.am): Likewise.
65878         * modules/javaversion (Makefile.am): Likewise.
65879         * modules/lchmod (Makefile.am): Likewise.
65880         * modules/lchown (Makefile.am): Likewise.
65881         * modules/localcharset (Makefile.am): Likewise.
65882         * modules/long-options (Makefile.am): Likewise.
65883         * modules/lstat (Makefile.am): Likewise.
65884         * modules/malloc (Makefile.am): Likewise.
65885         * modules/mathl (Makefile.am): Likewise.
65886         * modules/mbchar (Makefile.am): Likewise.
65887         * modules/md2 (Makefile.am): Likewise.
65888         * modules/md4 (Makefile.am): Likewise.
65889         * modules/md5 (Makefile.am): Likewise.
65890         * modules/memcasecmp (Makefile.am): Likewise.
65891         * modules/memchr (Makefile.am): Likewise.
65892         * modules/memcmp (Makefile.am): Likewise.
65893         * modules/memcoll (Makefile.am): Likewise.
65894         * modules/memcpy (Makefile.am): Likewise.
65895         * modules/memmem (Makefile.am): Likewise.
65896         * modules/memmove (Makefile.am): Likewise.
65897         * modules/mempcpy (Makefile.am): Likewise.
65898         * modules/memrchr (Makefile.am): Likewise.
65899         * modules/memset (Makefile.am): Likewise.
65900         * modules/memxor (Makefile.am): Likewise.
65901         * modules/mkancesdirs (Makefile.am): Likewise.
65902         * modules/mkdir-p (Makefile.am): Likewise.
65903         * modules/mkdir (Makefile.am): Likewise.
65904         * modules/mkdtemp (Makefile.am): Likewise.
65905         * modules/mkstemp (Makefile.am): Likewise.
65906         * modules/mktime (Makefile.am): Likewise.
65907         * modules/modechange (Makefile.am): Likewise.
65908         * modules/mountlist (Makefile.am): Likewise.
65909         * modules/nanosleep (Makefile.am): Likewise.
65910         * modules/obstack (Makefile.am): Likewise.
65911         * modules/openat (Makefile.am): Likewise.
65912         * modules/pagealign_alloc (Makefile.am): Likewise.
65913         * modules/pathmax (Makefile.am): Likewise.
65914         * modules/physmem (Makefile.am): Likewise.
65915         * modules/poll (Makefile.am): Likewise.
65916         * modules/posixtm (Makefile.am): Likewise.
65917         * modules/posixver (Makefile.am): Likewise.
65918         * modules/putenv (Makefile.am): Likewise.
65919         * modules/quote (Makefile.am): Likewise.
65920         * modules/quotearg (Makefile.am): Likewise.
65921         * modules/raise (Makefile.am): Likewise.
65922         * modules/read-file (Makefile.am): Likewise.
65923         * modules/readline (Makefile.am): Likewise.
65924         * modules/readlink (Makefile.am): Likewise.
65925         * modules/readtokens (Makefile.am): Likewise.
65926         * modules/readutmp (Makefile.am): Likewise.
65927         * modules/realloc (Makefile.am): Likewise.
65928         * modules/regex (Makefile.am): Likewise.
65929         * modules/rename-dest-slash (Makefile.am): Likewise.
65930         * modules/rename (Makefile.am): Likewise.
65931         * modules/rijndael (Makefile.am): Likewise.
65932         * modules/rmdir (Makefile.am): Likewise.
65933         * modules/rpmatch (Makefile.am): Likewise.
65934         * modules/safe-read (Makefile.am): Likewise.
65935         * modules/safe-write (Makefile.am): Likewise.
65936         * modules/same-inode (Makefile.am): Likewise.
65937         * modules/same (Makefile.am): Likewise.
65938         * modules/save-cwd (Makefile.am): Likewise.
65939         * modules/savedir (Makefile.am): Likewise.
65940         * modules/setenv (Makefile.am): Likewise.
65941         * modules/settime (Makefile.am): Likewise.
65942         * modules/sha1 (Makefile.am): Likewise.
65943         * modules/sig2str (Makefile.am): Likewise.
65944         * modules/snprintf (Makefile.am): Likewise.
65945         * modules/stat-macros (Makefile.am): Likewise.
65946         * modules/stat-time (Makefile.am): Likewise.
65947         * modules/stdbool (Makefile.am): Likewise.
65948         * modules/stdint (Makefile.am): Likewise.
65949         * modules/stdlib-safer (Makefile.am): Likewise.
65950         * modules/stpcpy (Makefile.am): Likewise.
65951         * modules/stpncpy (Makefile.am): Likewise.
65952         * modules/strcase (Makefile.am): Likewise.
65953         * modules/strcasestr (Makefile.am): Likewise.
65954         * modules/strchrnul (Makefile.am): Likewise.
65955         * modules/strcspn (Makefile.am): Likewise.
65956         * modules/strdup (Makefile.am): Likewise.
65957         * modules/strerror (Makefile.am): Likewise.
65958         * modules/strftime (Makefile.am): Likewise.
65959         * modules/strndup (Makefile.am): Likewise.
65960         * modules/strnlen (Makefile.am): Likewise.
65961         * modules/strpbrk (Makefile.am): Likewise.
65962         * modules/strsep (Makefile.am): Likewise.
65963         * modules/strstr (Makefile.am): Likewise.
65964         * modules/strtod (Makefile.am): Likewise.
65965         * modules/strtoimax (Makefile.am): Likewise.
65966         * modules/strtok_r (Makefile.am): Likewise.
65967         * modules/strtol (Makefile.am): Likewise.
65968         * modules/strtoll (Makefile.am): Likewise.
65969         * modules/strtoul (Makefile.am): Likewise.
65970         * modules/strtoull (Makefile.am): Likewise.
65971         * modules/strtoumax (Makefile.am): Likewise.
65972         * modules/strverscmp (Makefile.am): Likewise.
65973         * modules/sys_socket (Makefile.am): Likewise.
65974         * modules/sys_stat (Makefile.am): Likewise.
65975         * modules/sysexits (Makefile.am): Likewise.
65976         * modules/time_r (Makefile.am): Likewise.
65977         * modules/timegm (Makefile.am): Likewise.
65978         * modules/timespec (Makefile.am): Likewise.
65979         * modules/tmpfile-safer (Makefile.am): Likewise.
65980         * modules/trim (Makefile.am): Likewise.
65981         * modules/unistd-safer (Makefile.am): Likewise.
65982         * modules/unlinkdir (Makefile.am): Likewise.
65983         * modules/unlocked-io (Makefile.am): Likewise.
65984         * modules/userspec (Makefile.am): Likewise.
65985         * modules/utime (Makefile.am): Likewise.
65986         * modules/utimecmp (Makefile.am): Likewise.
65987         * modules/utimens (Makefile.am): Likewise.
65988         * modules/vasnprintf (Makefile.am): Likewise.
65989         * modules/vasprintf (Makefile.am): Likewise.
65990         * modules/vsnprintf (Makefile.am): Likewise.
65991         * modules/xalloc (Makefile.am): Likewise.
65992         * modules/xgetcwd (Makefile.am): Likewise.
65993         * modules/xnanosleep (Makefile.am): Likewise.
65994         * modules/xreadlink (Makefile.am): Likewise.
65995         * modules/xstrtod (Makefile.am): Likewise.
65996         * modules/xstrtol (Makefile.am): Likewise.
65997         * modules/xstrtold (Makefile.am): Likewise.
65998         * modules/yesno (Makefile.am): Likewise.
65999         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66000
66001 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66002
66003         * modules/error (Makefile.am): Distribute files through
66004         EXTRA_DIST, not lib_SOURCES.
66005
66006 2006-10-12  Eric Blake  <ebb9@byu.net>
66007
66008         * modules/error (Makefile.am): Distribute files in /lib.
66009         * modules/obstack (Makefile.am): Likewise.
66010
66011 2006-10-12  Bruno Haible  <bruno@clisp.org>
66012
66013         * modules/acl (Makefile.am): Distribute all files in lib/ through
66014         EXTRA_DIST.
66015         * modules/arcfour (Makefile.am): Likewise.
66016         * modules/arctwo (Makefile.am): Likewise.
66017         * modules/argmatch (Makefile.am): Likewise.
66018         * modules/argz (Makefile.am): Likewise.
66019         * modules/atexit (Makefile.am): Likewise.
66020         * modules/backupfile (Makefile.am): Likewise.
66021         * modules/c-strtod (Makefile.am): Likewise.
66022         * modules/c-strtold (Makefile.am): Likewise.
66023         * modules/calloc (Makefile.am): Likewise.
66024         * modules/canon-host (Makefile.am): Likewise.
66025         * modules/canonicalize (Makefile.am): Likewise.
66026         * modules/chdir-long (Makefile.am): Likewise.
66027         * modules/chdir-safer (Makefile.am): Likewise.
66028         * modules/check-version (Makefile.am): Likewise.
66029         * modules/chown (Makefile.am): Likewise.
66030         * modules/cloexec (Makefile.am): Likewise.
66031         * modules/close-stream (Makefile.am): Likewise.
66032         * modules/closeout (Makefile.am): Likewise.
66033         * modules/crc (Makefile.am): Likewise.
66034         * modules/cycle-check (Makefile.am): Likewise.
66035         * modules/des (Makefile.am): Likewise.
66036         * modules/dirfd (Makefile.am): Likewise.
66037         * modules/dirname (Makefile.am): Likewise.
66038         * modules/dup2 (Makefile.am): Likewise.
66039         * modules/euidaccess (Makefile.am): Likewise.
66040         * modules/exclude (Makefile.am): Likewise.
66041         * modules/exitfail (Makefile.am): Likewise.
66042         * modules/fcntl-safer (Makefile.am): Likewise.
66043         * modules/file-type (Makefile.am): Likewise.
66044         * modules/fileblocks (Makefile.am): Likewise.
66045         * modules/filemode (Makefile.am): Likewise.
66046         * modules/filenamecat (Makefile.am): Likewise.
66047         * modules/fnmatch (Makefile.am): Likewise.
66048         * modules/fopen-safer (Makefile.am): Likewise.
66049         * modules/fpending (Makefile.am): Likewise.
66050         * modules/fprintftime (Makefile.am): Likewise.
66051         * modules/free (Makefile.am): Likewise.
66052         * modules/fsusage (Makefile.am): Likewise.
66053         * modules/ftruncate (Makefile.am): Likewise.
66054         * modules/fts (Makefile.am): Likewise.
66055         * modules/gc (Makefile.am): Likewise.
66056         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66057         * modules/getaddrinfo (Makefile.am): Likewise.
66058         * modules/getcwd (Makefile.am): Likewise.
66059         * modules/getdelim (Makefile.am): Likewise.
66060         * modules/getdomainname (Makefile.am): Likewise.
66061         * modules/getgroups (Makefile.am): Likewise.
66062         * modules/gethostname (Makefile.am): Likewise.
66063         * modules/gethrxtime (Makefile.am): Likewise.
66064         * modules/getline (Makefile.am): Likewise.
66065         * modules/getloadavg (Makefile.am): Likewise.
66066         * modules/getlogin_r (Makefile.am): Likewise.
66067         * modules/getopt (Makefile.am): Likewise.
66068         * modules/getpass (Makefile.am): Likewise.
66069         * modules/getpass-gnu (Makefile.am): Likewise.
66070         * modules/getsubopt (Makefile.am): Likewise.
66071         * modules/gettime (Makefile.am): Likewise.
66072         * modules/gettimeofday (Makefile.am): Likewise.
66073         * modules/getugroups (Makefile.am): Likewise.
66074         * modules/getusershell (Makefile.am): Likewise.
66075         * modules/glob (Makefile.am): Likewise.
66076         * modules/group-member (Makefile.am): Likewise.
66077         * modules/hard-locale (Makefile.am): Likewise.
66078         * modules/hash (Makefile.am): Likewise.
66079         * modules/hmac-md5 (Makefile.am): Likewise.
66080         * modules/hmac-sha1 (Makefile.am): Likewise.
66081         * modules/human (Makefile.am): Likewise.
66082         * modules/idcache (Makefile.am): Likewise.
66083         * modules/imaxabs (Makefile.am): Likewise.
66084         * modules/imaxdiv (Makefile.am): Likewise.
66085         * modules/inet_ntop (Makefile.am): Likewise.
66086         * modules/inet_pton (Makefile.am): Likewise.
66087         * modules/inttostr (Makefile.am): Likewise.
66088         * modules/isapipe (Makefile.am): Likewise.
66089         * modules/lchown (Makefile.am): Likewise.
66090         * modules/long-options (Makefile.am): Likewise.
66091         * modules/lstat (Makefile.am): Likewise.
66092         * modules/malloc (Makefile.am): Likewise.
66093         * modules/mathl (Makefile.am): Likewise.
66094         * modules/mbchar (Makefile.am): Likewise.
66095         * modules/md2 (Makefile.am): Likewise.
66096         * modules/md4 (Makefile.am): Likewise.
66097         * modules/md5 (Makefile.am): Likewise.
66098         * modules/memcasecmp (Makefile.am): Likewise.
66099         * modules/memchr (Makefile.am): Likewise.
66100         * modules/memcmp (Makefile.am): Likewise.
66101         * modules/memcoll (Makefile.am): Likewise.
66102         * modules/memcpy (Makefile.am): Likewise.
66103         * modules/memmem (Makefile.am): Likewise.
66104         * modules/memmove (Makefile.am): Likewise.
66105         * modules/mempcpy (Makefile.am): Likewise.
66106         * modules/memrchr (Makefile.am): Likewise.
66107         * modules/memset (Makefile.am): Likewise.
66108         * modules/memxor (Makefile.am): Likewise.
66109         * modules/mkancesdirs (Makefile.am): Likewise.
66110         * modules/mkdir (Makefile.am): Likewise.
66111         * modules/mkdir-p (Makefile.am): Likewise.
66112         * modules/mkdtemp (Makefile.am): Likewise.
66113         * modules/mkstemp (Makefile.am): Likewise.
66114         * modules/mktime (Makefile.am): Likewise.
66115         * modules/modechange (Makefile.am): Likewise.
66116         * modules/mountlist (Makefile.am): Likewise.
66117         * modules/nanosleep (Makefile.am): Likewise.
66118         * modules/openat (Makefile.am): Likewise.
66119         * modules/pagealign_alloc (Makefile.am): Likewise.
66120         * modules/physmem (Makefile.am): Likewise.
66121         * modules/poll (Makefile.am): Likewise.
66122         * modules/posixtm (Makefile.am): Likewise.
66123         * modules/posixver (Makefile.am): Likewise.
66124         * modules/putenv (Makefile.am): Likewise.
66125         * modules/quote (Makefile.am): Likewise.
66126         * modules/quotearg (Makefile.am): Likewise.
66127         * modules/raise (Makefile.am): Likewise.
66128         * modules/read-file (Makefile.am): Likewise.
66129         * modules/readline (Makefile.am): Likewise.
66130         * modules/readlink (Makefile.am): Likewise.
66131         * modules/readtokens (Makefile.am): Likewise.
66132         * modules/readutmp (Makefile.am): Likewise.
66133         * modules/realloc (Makefile.am): Likewise.
66134         * modules/regex (Makefile.am): Likewise.
66135         * modules/rename (Makefile.am): Likewise.
66136         * modules/rename-dest-slash (Makefile.am): Likewise.
66137         * modules/rijndael (Makefile.am): Likewise.
66138         * modules/rmdir (Makefile.am): Likewise.
66139         * modules/rpmatch (Makefile.am): Likewise.
66140         * modules/safe-read (Makefile.am): Likewise.
66141         * modules/safe-write (Makefile.am): Likewise.
66142         * modules/same (Makefile.am): Likewise.
66143         * modules/save-cwd (Makefile.am): Likewise.
66144         * modules/savedir (Makefile.am): Likewise.
66145         * modules/setenv (Makefile.am): Likewise.
66146         * modules/settime (Makefile.am): Likewise.
66147         * modules/sha1 (Makefile.am): Likewise.
66148         * modules/sig2str (Makefile.am): Likewise.
66149         * modules/snprintf (Makefile.am): Likewise.
66150         * modules/stdlib-safer (Makefile.am): Likewise.
66151         * modules/stpcpy (Makefile.am): Likewise.
66152         * modules/stpncpy (Makefile.am): Likewise.
66153         * modules/strcase (Makefile.am): Likewise.
66154         * modules/strcasestr (Makefile.am): Likewise.
66155         * modules/strchrnul (Makefile.am): Likewise.
66156         * modules/strcspn (Makefile.am): Likewise.
66157         * modules/strdup (Makefile.am): Likewise.
66158         * modules/strerror (Makefile.am): Likewise.
66159         * modules/strftime (Makefile.am): Likewise.
66160         * modules/strndup (Makefile.am): Likewise.
66161         * modules/strnlen (Makefile.am): Likewise.
66162         * modules/strpbrk (Makefile.am): Likewise.
66163         * modules/strsep (Makefile.am): Likewise.
66164         * modules/strstr (Makefile.am): Likewise.
66165         * modules/strtod (Makefile.am): Likewise.
66166         * modules/strtoimax (Makefile.am): Likewise.
66167         * modules/strtok_r (Makefile.am): Likewise.
66168         * modules/strtol (Makefile.am): Likewise.
66169         * modules/strtoll (Makefile.am): Likewise.
66170         * modules/strtoul (Makefile.am): Likewise.
66171         * modules/strtoull (Makefile.am): Likewise.
66172         * modules/strtoumax (Makefile.am): Likewise.
66173         * modules/strverscmp (Makefile.am): Likewise.
66174         * modules/time_r (Makefile.am): Likewise.
66175         * modules/timegm (Makefile.am): Likewise.
66176         * modules/tmpfile-safer (Makefile.am): Likewise.
66177         * modules/unistd-safer (Makefile.am): Likewise.
66178         * modules/unlinkdir (Makefile.am): Likewise.
66179         * modules/userspec (Makefile.am): Likewise.
66180         * modules/utime (Makefile.am): Likewise.
66181         * modules/utimecmp (Makefile.am): Likewise.
66182         * modules/utimens (Makefile.am): Likewise.
66183         * modules/vasnprintf (Makefile.am): Likewise.
66184         * modules/vasprintf (Makefile.am): Likewise.
66185         * modules/vsnprintf (Makefile.am): Likewise.
66186         * modules/xalloc (Makefile.am): Likewise.
66187         * modules/xgetcwd (Makefile.am): Likewise.
66188         * modules/xnanosleep (Makefile.am): Likewise.
66189         * modules/xreadlink (Makefile.am): Likewise.
66190         * modules/xstrtod (Makefile.am): Likewise.
66191         * modules/xstrtol (Makefile.am): Likewise.
66192         * modules/xstrtold (Makefile.am): Likewise.
66193         * modules/yesno (Makefile.am): Likewise.
66194
66195 2006-10-12  Jim Meyering  <jim@meyering.net>
66196
66197         * m4/getloadavg.m4: Revert the change below.
66198
66199         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66200         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66201         fail with a symlink, which is what coreutils' ./bootstrap now
66202         creates by default.
66203
66204 2006-10-12  Bruno Haible  <bruno@clisp.org>
66205
66206         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66207         mingw.
66208         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66209         MSVC and mingw explicitly.
66210
66211 2006-10-11  Simon Josefsson  <jas@extundo.com>
66212             Bruno Haible  <bruno@clisp.org>
66213
66214         Add support for multiple gnulib-tool invocations in the scope of a
66215         single configure.ac file.
66216         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66217         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66218         with the same contents as the _LIBADD variable.
66219         (func_emit_initmacro_start, func_emit_initmacro_end,
66220         func_emit_initmacro_done): New functions.
66221         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66222         gl_LIBOBJS and gl_LTLIBOBJS.
66223
66224 2006-10-11  Bruno Haible  <bruno@clisp.org>
66225
66226         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66227         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66228         autoreconf. Instead, invoke autopoint explicitly but move back the
66229         *.m4 files from gnulib.
66230
66231 2006-10-11  Bruno Haible  <bruno@clisp.org>
66232
66233         * gnulib-tool (func_usage): Make module names after --create-testdir
66234         optional.
66235         (func_create_testdir): If no module was specified, use nearly all
66236         modules.
66237
66238 2006-10-12  Jim Meyering  <jim@meyering.net>
66239
66240         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66241         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66242         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66243         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66244         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66245         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66246         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66247         (fts_set_stat_required): New function.
66248         (fts_open): Defer the calls to fts_stat, if possible or requested.
66249         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66250         into fts_stat itself.
66251         (fts_read): Perform any required (deferred) fts_stat call.
66252         (fts_build): Likewise, for the directory we're about to open and read.
66253         In the readdir loop, carefully decide whether each entry will require
66254         an eventual call to fts_stat, using dirent.d_type info if available.
66255         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66256         a command line argument into this function.  Update all callers.
66257         Map a return value of FTS_DOT to FTS_D for a command line argument.
66258         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66259         Thanks to Miklos Szeredi for his tenacity and for the initial
66260         bug report about "find" failing on a FUSE-based file system.
66261
66262         * lib/fts.c (fts_open): Use consistent indentation.
66263
66264 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66265
66266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66267         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66268         reported by Jim Meyering.  All uses of cache variables renamed
66269         to match Autoconf's.
66270         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66271         the other one.
66272
66273         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66274         Fix misspelling in diagnostic.
66275
66276 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66277
66278         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66279         defined.  Problem reported by Matthew Woehlke.
66280
66281         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66282         Add support for Tandem NonStop R series.
66283         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66284         Use new macro.
66285
66286         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66287         (has_trailing_slash): Omit size arg; all callers changed.
66288         Omit 'inline', since it doesn't help performance and we'd
66289         need to configure it.
66290         Don't count //, ///, etc. as having a trailing slash.
66291         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66292         (rpl_rename_dest_slash): On failure, use rename's errno rather
66293         than (in some cases) an incorrect or junk errno.
66294         Simplify code by removing need to compute length; this does
66295         cause it to make two passes instead of one over the file name,
66296         but it's worth it.
66297
66298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66299         change, since Autoconf's version may no longer be appropriate now
66300         that we are using CVS Autoconf's version.  Add support for Tandem.
66301
66302 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66303             Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66306         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66307         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66308         gl_AC_TYPE_LONG_LONG.
66309
66310         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66311         instead of HAVE_LONG_LONG.
66312         * lib/printf-args.c (printf_fetchargs): Likewise.
66313         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66314         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66315         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66316         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66317         gl_AC_TYPE_LONG_LONG.
66318
66319 2006-10-11  Bruno Haible  <bruno@clisp.org>
66320
66321         * m4/longlong.m4: Add comments.
66322         * m4/ulonglong.m4: Likewise.
66323
66324 2006-10-10  Bruno Haible  <bruno@clisp.org>
66325
66326         Make it possible to #define stpcpy, strdup to aliases.
66327         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66328         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66329
66330 2006-10-10  Bruno Haible  <bruno@clisp.org>
66331
66332         Make it possible to #define gcd to an alias.
66333         * lib/gcd.c: Include config.h.
66334
66335 2006-10-10  Bruno Haible  <bruno@clisp.org>
66336
66337         Make it possible to #define c_isascii to an alias.
66338         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66339         defined. Undefine the macros before defining them, to avoid gcc
66340         warnings.
66341         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66342         define NO_C_CTYPE_MACROS early.
66343
66344 2006-10-10  Bruno Haible  <bruno@clisp.org>
66345
66346         Make it possible to #define set_program_name to an alias.
66347         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66348         ENABLE_RELOCATABLE early.
66349
66350 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66353         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66354         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66355         More generally, don't assume that 64-bit signed int is available
66356         if unsigned int is, and vice versa.
66357         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66358         unsigned symbols, not on their signed counterparts.
66359         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66360         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66361         (UINT64_C, UINTMAX_C):
66362         Likewise.
66363         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66364         unsigned counterparts.
66365         (Have_long_long, Unsigned): New macros.
66366         (Int): Renamed from INT.
66367         (strtoimax): Use the new macros.
66368         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66369         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66370         * modules/inttypes (inttypes.h): Substitute
66371         HAVE_UNSIGNED_LONG_LONG_INT.
66372         * modules/stdint (stdint.h): Likewise.
66373         (Files): Add m4/ulonglong.m4.
66374
66375 2006-10-10  Bruno Haible  <bruno@clisp.org>
66376
66377         Fix a gcc -Wshadow warning.
66378         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66379         to 'bucket'.
66380         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66381         gl_linked_indexof_from_to): Likewise.
66382         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66383         Likewise.
66384         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66385         Likewise.
66386         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66387         Reported by Eric Blake.
66388
66389 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66390
66391         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66392         for NetBSD.  Problem reported by Bruno Haible.
66393
66394 2006-10-09  Jim Meyering  <jim@meyering.net>
66395
66396         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66397         Patch from Bruno Haible.
66398
66399 2006-10-09  Jim Meyering  <jim@meyering.net>
66400
66401         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66402         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66403         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66404
66405 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66406
66407         Don't include <config.h> twice; this doesn't work in some cases,
66408         e.g., when config.h has "#define intmax_t long long int" and
66409         we include <config.h>, <inttypes.h>, <config.h> in that order.
66410         Problem reported by Matthew Woehlke in:
66411         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66412         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66413         * lib/fts-cycle.c: Don't include config.h.
66414         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66415         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66416         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66417         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66418         inttypes.h.
66419         * lib/xstrtoumax.c: Likewise.
66420         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66421         __strtol and the like, so that this module is more like its siblings.
66422         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66423         Remove; no longer needed now that we assume gnulib inttypes.h.
66424
66425 2006-10-08  Bruno Haible  <bruno@clisp.org>
66426
66427         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66428         option.
66429
66430 2006-10-07  Jim Meyering  <jim@meyering.net>
66431
66432         * modules/inttypes (inttypes.h): Revert what seems to have been
66433         an inadvertent part of today's change: use "|", not "/" in the
66434         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66435
66436 2006-10-07  Bruno Haible  <bruno@clisp.org>
66437
66438         * modules/sublist: New file.
66439
66440 2006-10-07  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66443         * modules/argz (argz.h): Likewise.
66444         * modules/arpa_inet (arpa/inet.h): Likewise.
66445         * modules/byteswap (byteswap.h): Likewise.
66446         * modules/configmake (configmake.h): Likewise.
66447         * modules/fcntl (fcntl.h): Likewise.
66448         * modules/fnmatch (fnmatch.h): Likewise.
66449         * modules/getopt (getopt.h): Likewise.
66450         * modules/glob (glob.h): Likewise.
66451         * modules/inttypes (inttypes.h): Likewise.
66452         * modules/netinet_in (netinet/in.h): Likewise.
66453         * modules/poll (poll.h): Likewise.
66454         * modules/stdbool (stdbool.h): Likewise.
66455         * modules/stdint (stdint.h): Likewise.
66456         * modules/sys_select (sys/select.h): Likewise.
66457         * modules/sys_socket (sys/socket.h): Likewise.
66458         * modules/sys_stat (sys/stat.h): Likewise.
66459         * modules/sysexits (sysexits.h): Likewise.
66460         * modules/unistd (unistd.h): Likewise.
66461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66462         Add a "DO NOT EDIT" comment to the generated file.
66463         (func_import): Likewise for gnulib-comp.m4.
66464
66465 2006-10-07  Bruno Haible  <bruno@clisp.org>
66466
66467         * lib/gl_sublist.h: New file.
66468         * lib/gl_sublist.c: New file.
66469
66470 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66471
66472         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66473         name (relative to the original working directory) and the file
66474         name component (relative to the temporary working directory).  All
66475         callers changed.
66476         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66477         * lib/mkdir-p.c (make_dir_parents): Likewise.
66478         * lib/mkdir-p.h (make_dir_parents): Likewise.
66479
66480 2006-10-06  Eric Blake  <ebb9@byu.net>
66481
66482         Define several macros for use by the clean-temp module.
66483         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66484         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66485         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66486
66487         * lib/clean-temp.h (close_stream_temp): New declaration.
66488         * lib/clean-temp.c (includes): Pull in headers according to what
66489         other modules are in use.
66490         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66491
66492 2006-10-06  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66495         instead of fopen, fwriteerror.
66496
66497 2006-10-06  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66500         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66501         int.
66502         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66503         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66504         Return an error indicator.
66505         Suggested by Eric Blake.
66506
66507 2006-10-06  Bruno Haible  <bruno@clisp.org>
66508
66509         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66510         Reported by Eric Blake.
66511
66512 2006-10-06  Bruno Haible  <bruno@clisp.org>
66513
66514         * modules/closeout (Description): Mention stderr too.
66515
66516 2006-10-06  Bruno Haible  <bruno@clisp.org>
66517         and Paul Eggert  <eggert@cs.ucla.edu>
66518
66519         * lib/closeout.c (close_stdout): Also close stderr.
66520         * lib/closeout.h: Update comment.
66521
66522 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66525         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66526         * lib/dirchownmod.c: Include lchown.h.
66527         * lib/lchown.c: Don't include files that lchown.h now includes.
66528         Don't declare chown, since lchown.h now does that.
66529         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66530         (lchown): Define to rpl_chown if lchown is declared but
66531         does not exist.  Declare using a prototype if lchown is not
66532         declared.  Add a copyright notice.
66533         * lib/mkstemp.h: Include <unistd.h>.
66534         * lib/openat.c: Include lchown.h.
66535
66536         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66537         we now test for that separately.
66538         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66539         rather than O_NOFOLLOW, when testing whether it's possible to
66540         avoid a race condition reliably.
66541         * lib/savewd.c (savewd_chdir): Likewise.
66542
66543         Remove macros that are no longer needed now that stdint.h is
66544         reliable.
66545         * lib/fsusage.c (UINTMAX_MAX): Remove.
66546         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66547         * lib/utimecmp.c (SIZE_MAX): Remove.
66548
66549         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66550
66551         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66552         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66553         O_NOATIME works.
66554
66555 2006-10-05  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/gl_list.h (gl_sortedlist_search_from_to,
66558         gl_sortedlist_indexof_from_to): New declarations.
66559         (gl_list_implementation): New fields sortedlist_search_from_to,
66560         sortedlist_indexof_from_to.
66561         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66562         inline functions.
66563         * lib/gl_list.c (gl_sortedlist_search_from_to,
66564         gl_sortedlist_indexof_from_to): New functions.
66565         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66566         function.
66567         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66568         (gl_array_sortedlist_search_from_to): New function.
66569         (gl_array_list_implementation): Update.
66570         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66571         function.
66572         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66573         (gl_carray_sortedlist_search_from_to): New function.
66574         (gl_carray_list_implementation): Update.
66575         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66576         gl_linked_sortedlist_indexof_from_to): New functions.
66577         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66578         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66579         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66580         gl_tree_sortedlist_indexof_from_to): New functions.
66581         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66582         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66583         Update.
66584         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66585         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66586         Update.
66587
66588 2006-10-05  Bruno Haible  <bruno@clisp.org>
66589
66590         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66591         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66592         (struct gl_list_implementation): Add fields search_from_to,
66593         indexof_from_to. Remove fields search, indexof.
66594         (gl_list_search): Use the search_from_to method.
66595         (gl_list_search_from, gl_list_search_from_to): New functions.
66596         (gl_list_indexof): Use the indexof_from_to method.
66597         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66598         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66599         (gl_list_search_from, gl_list_search_from_to): New functions.
66600         (gl_list_indexof): Use the indexof_from_to method.
66601         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66602         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66603         gl_array_indexof. Add start_index, end_index arguments.
66604         (gl_array_search_from_to): Renamed from gl_array_search. Add
66605         start_index, end_index arguments.
66606         (gl_array_remove, gl_array_list_implementation): Update.
66607         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66608         gl_carray_indexof. Add start_index, end_index arguments.
66609         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66610         start_index, end_index arguments.
66611         (gl_carray_remove, gl_carray_list_implementation): Update.
66612         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66613         gl_linked_search. Add start_index, end_index arguments.
66614         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66615         start_index, end_index arguments.
66616         (gl_linked_remove): Update.
66617         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66618         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66619         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66620         field to 'size_t'.
66621         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66622         gl_tree_search. Add start_index, end_index arguments.
66623         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66624         start_index, end_index arguments.
66625         (gl_tree_remove): Update.
66626         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66627         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66628         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66629         function.
66630         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66631         gl_tree_search. Add start_index, end_index arguments.
66632         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66633         start_index, end_index arguments.
66634         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66635         Update.
66636         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66637
66638 2006-10-05  Bruno Haible  <bruno@clisp.org>
66639
66640         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66641
66642         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66643         fwriteerror_temp): New declarations.
66644         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66645         (descriptors): New variable.
66646         (cleanup): First, close the descriptors.
66647         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66648         fclose_temp, fwriteerror_temp): New functions.
66649
66650 2006-10-04  Jim Meyering  <jim@meyering.net>
66651
66652         * lib/fts.c (fts_open): Tiny comment change.
66653
66654 2006-10-04  Bruno Haible  <bruno@clisp.org>
66655
66656         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66657         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66658         gl_LOCK_BODY.
66659         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66660         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66661         gl_LOCK_EARLY_BODY.
66662         (gl_LOCK): Require gl_LOCK_BODY.
66663
66664 2006-10-04  Bruno Haible  <bruno@clisp.org>
66665
66666         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66667         (gl_oset_search_atleast): New declaration.
66668         (struct gl_oset_implementation): Add field 'search_atleast'.
66669         (gl_oset_search_atleast): New inline function.
66670         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66671         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66672         (gl_array_oset_implementation): Update.
66673         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66674         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66675         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66676
66677 2006-10-04  Bruno Haible  <bruno@clisp.org>
66678
66679         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66680
66681 2006-10-03  Bruno Haible  <bruno@clisp.org>
66682
66683         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66684         from gl_avltreehash_list_implementation.
66685
66686 2006-10-03  Bruno Haible  <bruno@clisp.org>
66687
66688         * lib/gl_oset.c (gl_oset_add): Fix return type.
66689
66690 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66691
66692         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66693
66694 2006-10-02  Eric Blake  <ebb9@byu.net>
66695
66696         * modules/strnlen (Depends-on): Add extensions.
66697
66698 2006-10-02  Eric Blake  <ebb9@byu.net>
66699
66700         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66701         definition in 2.60+.
66702
66703 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66704
66705         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66706         checks.
66707
66708 2006-10-02  Bruno Haible  <bruno@clisp.org>
66709
66710         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66711         to the AUTOMAKE_OPTIONS.
66712         Reported by Jim Meyering.
66713
66714 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66715
66716         Work around bug in Solaris 10 /proc file system:
66717         /proc/self/fd/NNN/.. isn't the parent directory of
66718         the directory whose file descriptor is NNN.  This needs to
66719         be worked around at run time, not compile time, since a
66720         program might be built on Solaris 8, where things work, and
66721         run on Solaris 10.
66722         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66723         to use the following interface instead:
66724         (OPENAT_BUFFER_SIZE): New macro.
66725         (openat_proc_name): New function.
66726         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66727         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66728         Likewise.
66729         * lib/openat-proc.c: New file.
66730         * modules/openat (Files): Add lib/openat-proc.c.
66731         (Depends-on): Add same-inode, stdbool.
66732         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66733
66734 2006-09-29  Bruno Haible  <bruno@clisp.org>
66735
66736         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66737         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66738         argument. Set stdout_closed before testing for ferror, not after.
66739         (fwriteerror, fwriteerror_no_ebadf): New functions.
66740
66741 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66742
66743         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66744
66745 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66746
66747         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66748         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66749
66750 2006-09-28  Jim Meyering  <jim@meyering.net>
66751
66752         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66753         Include <unistd.h>.
66754
66755 2006-09-28  Bruno Haible  <bruno@clisp.org>
66756
66757         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66758         * modules/linkedhash-list (Depends-on): Likewise.
66759         * modules/rbtreehash-list (Depends-on): Likewise.
66760
66761 2006-09-28  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/strndup.h: Simplify the redefinition of strndup.
66764         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66766
66767 2006-09-28  Bruno Haible  <bruno@clisp.org>
66768
66769         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66770         * lib/gl_linkedhash_list.c: Likewise.
66771         * lib/gl_rbtreehash_list.c: Likewise.
66772
66773 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66774
66775         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66776         getaddrinfo.
66777
66778         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66779         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66780         it causes <stdio_ext.h> to cause a compile-time error.
66781         Problem reported by Nelson H. F. Beebe.
66782         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66783         of HAVE_DECL___PENDING.
66784
66785         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66786         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66787         declaration.
66788
66789 2006-09-27  Jim Meyering  <jim@meyering.net>
66790
66791         This file could end up with a definition for a function
66792         named __strndup, rather than rpl_strndup on a system with
66793         incomplete weak_alias support.
66794         * lib/strndup.c (strndup): Rename from __strndup.
66795         Remove #defines that used to map __strndup to strndup.
66796         Don't use K&R prototypes.
66797         Remove LIBC-related code, since this file is not sync'd with glibc.
66798         * lib/strndup.h: Revamp, accordingly.
66799         * m4/strndup.m4: Modernize.
66800
66801 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66802
66803         * modules/savewd (Depends-on): Add 'raise'.
66804         * lib/savewd.c: Include <signal.h>, for 'raise'.
66805
66806 2006-09-26  Jim Meyering  <jim@meyering.net>
66807
66808         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66809         when we detect Darwin 8.7.0's acl_get_file bug.
66810         Rearrange to perform the new (below) run-test while $LIBS
66811         contains any acl-related library.  Set USE_ACL at the end.
66812         (gl_ACL_GET_FILE): New function.
66813
66814 2006-09-26  Eric Blake  <ebb9@byu.net>
66815
66816         * lib/verror.c: Include <config.h> unconditionally.
66817
66818 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * modules/clock-time (Maintainer): Add self.
66821         * modules/getlogin_r (Depends-on): Add extensions.
66822
66823 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66824
66825         * modules/clock-time: New module.
66826         * modules/nanosleep (Depends-on): Add clock-time.
66827         * modules/gethrxtime (Depends-on): Likewise.
66828         * modules/gettime (Depends-on): Likewise.
66829         * modules/settime (Depends-on): Likewise.
66830
66831         * modules/fts-lgpl: Depend on openat.
66832         * modules/mkancesdirs: Depend on savewd.
66833         * modules/mkdir-p: Likewise.
66834
66835 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66836
66837         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66838
66839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66840         `gl_have_arbitrary_file_name_length_limit' to
66841         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66842         actually works between configure runs.
66843
66844 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66845             Bruno Haible  <bruno@clisp.org>
66846
66847         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66848
66849 2006-09-25  Jim Meyering  <jim@meyering.net>
66850
66851         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66852         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66853
66854 2006-09-25  Eric Blake  <ebb9@byu.net>
66855
66856         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66857         exec's in 2006-09-18 patch when shuffling fds.
66858
66859 2006-09-25  Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66862         Reported by Jim Meyering.
66863
66864 2006-09-24  Jim Meyering  <jim@meyering.net>
66865
66866         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66867         compare a pointer against a literal "0".  That caused failures with
66868         at least HP-UX's hpcc.
66869
66870 2006-09-22  Simon Josefsson  <jas@extundo.com>
66871
66872         * modules/gc-sha1:
66873         * modules/gc-md4:
66874         * modules/gc-hmac-sha1:
66875         * modules/gc-hmac-md5:
66876         * modules/gc-des:
66877         * modules/gc-arcfour: Distribute more files.
66878
66879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66880
66881         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66882         (gl_linked_iterator_from_to): Initialize struct completely.
66883         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66884         (gl_tree_iterator_from_to): Likewise
66885         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66886         * lib/gl_array_list.c [lint] (gl_array_iterator)
66887         (gl_array_iterator_from_to): Likewise.
66888         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66889         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66890         (gl_carray_iterator_from_to): Likewise.
66891
66892         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66893         * lib/md4.c (md4_process_block): Remove unused variable.
66894         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66895         parentheses for clarity.
66896
66897 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66898
66899         * modules/bison-i18n (Depends-on): Add gettext.
66900
66901 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66902
66903         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66904         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66905         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66906         also add missing comma that caused broken test.
66907         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66908         stdlib.h, for `abort'.
66909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66910         variables.
66911         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66912         include unistd.h if present, for `rmdir'.
66913         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66914         variables.
66915         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66916         in the process include standard headers for prototypes.
66917         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66918         gets declared on GNU/Linux.
66919         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66920         unistd.h, for `rmdir'.
66921         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66922
66923         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66924         always true.
66925         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66926
66927         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66928
66929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66930
66931         * gnulib-tool (func_version): Create output all at once.  This
66932         may help avoid triggering unnecessary SIGPIPEs, and at any
66933         rate it doesn't hurt.
66934
66935 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66936             Bruno Haible  <bruno@clisp.org>
66937
66938         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66939         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66940         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66941
66942         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66943         (gl_FUNC_VASPRINTF): Invoke it.
66944
66945 2006-09-22  Bruno Haible  <bruno@clisp.org>
66946
66947         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66948         getloadavg.c as first argument.
66949
66950 2006-09-22  Bruno Haible  <bruno@clisp.org>
66951
66952         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66953         at the beginning of the gl_INIT macro.
66954         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66955         gl_GETLOADAVG.
66956
66957 2006-09-22  Bruno Haible  <bruno@clisp.org>
66958
66959         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66960         module.
66961         Suggested by Ralf Wildenhues.
66962
66963 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66964
66965         Import this patch from libc:
66966
66967         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66968
66969         * lib/regex_internal.c (re_string_reconstruct): Handle
66970         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66971         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66972         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66973         re_string_context_at.
66974
66975         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66976         now requires it.
66977         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66978         gl_REGEX now does it for us.
66979         (gl_REGEX): Add test taken from
66980         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66981
66982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66983         Check that large offsets work.  Modernize Autoconf usages.
66984         Prefer "yes" to mean a good thing rather than a bad.
66985         Don't put "#define mkstemp" in config.h, as this might interfere
66986         with standard system headers that "#define mkstemp mkstemp64".
66987
66988         * modules/mkstemp (Depends-on): Add extensions, so that
66989         mkstemp is visible on some platforms.
66990         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66991         (Include): Change to "mkstemp.h" from <stdlib.h>.
66992         (Files): Add mkstemp.h.
66993
66994         * lib/mkstemp.h: New file, since some standard headers
66995         #define mkstemp.
66996         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66997         Include "mkstemp.h".
66998         Make the _LIBC code resemble glibc original more,
66999         e.g., use K&R style.
67000         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67001         (mkstemp): Remove, since mkstemp.h does this for us.
67002         * lib/stdlib--.h: Include mkstemp.h.
67003
67004         Import this patch from libc:
67005
67006         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67007
67008         * lib/tempname.c (__gen_tempname): Change attempts_min
67009         into a macro.  Use preprocessor to decide how to initialize
67010         attempts [Coverity CID 67].
67011
67012 2006-09-20  Bruno Haible  <bruno@clisp.org>
67013
67014         * lib/mkdtemp.c: Import from libc.
67015         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67016                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67017                 attempts_min into a macro.  Use preprocessor to decide how to
67018                 initialize attempts [Coverity CID 67].
67019         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67020                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67021                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67022
67023 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67024
67025         * gnulib-tool (func_exit): New function, to allow to pass the
67026         exit status portably through the trap.  Use everywhere.
67027         (--help, --version): Signal a write error.
67028         (trap): catch SIGPIPE, for write errors.
67029         Exit at the end of the trap, with the correct exit status.
67030
67031 2006-09-19  Karl Berry  <karl@gnu.org>
67032
67033         * doc/gnulib.texi: note about the license texinfo files.
67034
67035 2006-09-19  Eric Blake  <ebb9@byu.net>
67036
67037         * gnulib-tool: Avoid space-tab.
67038
67039 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67040
67041         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67042         that prevented coreutils 6.1 from building.  Problem reported
67043         by Petter Reinholdtsen.
67044
67045 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         * gnulib-tool (avoidlist): Fix typo that broke options like
67048         --avoid=lock that are used by coreutils bootstrap.
67049
67050 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67051
67052         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67053         more systematically.
67054
67055 2006-09-18  Jim Meyering  <jim@meyering.net>
67056
67057         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67058
67059 2006-09-18  Bruno Haible  <bruno@clisp.org>
67060
67061         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67062
67063 2006-09-18  Bruno Haible  <bruno@clisp.org>
67064
67065         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67066         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67067         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67068         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67069         * m4/gettext.m4: Require autoconf >= 2.52.
67070         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67071         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67072         of gl_cv_header_inttypes_h.
67073
67074 2006-09-18  Bruno Haible  <bruno@clisp.org>
67075
67076         * lib/javaversion.c: Include configmake.h.
67077
67078 2006-09-18  Bruno Haible  <bruno@clisp.org>
67079
67080         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67081         avoid that the while loops be executed in a subshell.
67082
67083 2006-09-18  Bruno Haible  <bruno@clisp.org>
67084
67085         * MODULES.html.sh (func_module): Break long lines.
67086         Suggested by Bruce Korb <bkorb@gnu.org>.
67087
67088 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67089
67090         Speed up by a factor of 1.12.
67091         * gnulib-tool (nl): New variable.
67092         (func_import): Rewrite include directive extraction to only read each
67093         directive once.
67094
67095 2006-09-17  Bruno Haible  <bruno@clisp.org>
67096
67097         * modules/javaversion (Makefile.am): Remove DEFS setting.
67098         (Depends-on): Add configmake, for PKGDATADIR definition.
67099
67100 2006-09-17  Bruno Haible  <bruno@clisp.org>
67101
67102         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67103
67104 2006-09-17  Bruno Haible  <bruno@clisp.org>
67105
67106         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67107         (func_modules_transitive_closure, func_modules_add_dummy,
67108         func_modules_to_filelist, func_import, func_create_testdir,
67109         func_create_megatestdir, ...): Use it wherever possible.
67110         Suggested by Ralf Wildenhues.
67111
67112 2006-09-16  Karl Berry  <karl@gnu.org>
67113
67114         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67115         to avoid sectioning errors.
67116         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67117         [ifinfo]: blank line after @center-ed titles.
67118         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67119         Spell FSF address consistently with others.
67120         (These changes approved by rms.)
67121
67122 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67123
67124         Speed up by a factor of 1.61.
67125         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67126         already checked module names again.
67127
67128 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67129
67130         Speed up by a factor of 1.13.
67131         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67132         for new_files, and the input to func_add_or_update.
67133
67134 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67135
67136         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67137         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67138
67139 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         * modules/mkancesdirs (Depends-on): Add fcntl.
67142         * modules/savewd: New file.
67143         * MODULES.html.sh (File system functions): Add savewd.
67144
67145         * modules/configmake (Makefile.am): Add support for the
67146         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67147
67148 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * m4/savewd.m4: New file.
67151
67152 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67153
67154         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67155         (dirchownmod): New arg FD.  All callers changed.
67156         Use FD rather than opening the directory ourself, as opening is
67157         now the caller's responsibility.
67158         * lib/dirchownmod.h: Likewise.
67159         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67160         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67161         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67162         (test_dir): Remove.
67163         (mkancesdirs): Return length of prefix of FILE that has already
67164         been made, or -2 if there is a child doing the work.  Redo
67165         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67166         ".", and treat ".." specially since it might stray back into
67167         already-created areas.  Use a subprocess if necessary.  New arg
67168         WD; all users changed.  MAKE_DIR function should now return 1
67169         if it creates a directory that is not readable.  Return -2 if
67170         a child process is spun off.
67171         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67172         Adjust signature to match code.
67173         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67174         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67175         all users changed.
67176         * lib/savewd.c, lib/savewd.h: New files.
67177
67178 2006-09-15  Jim Meyering  <jim@meyering.net>
67179
67180         * modules/rename-dest-slash: New module.
67181         * MODULES.html.sh (posix_compat): Add it here.
67182
67183         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67184
67185 2006-09-15  Jim Meyering  <jim@meyering.net>
67186
67187         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67188         file.
67189
67190         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67191
67192 2006-09-15  Jim Meyering  <jim@meyering.net>
67193
67194         * lib/rename-dest-slash.c (has_trailing_slash): Use
67195         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67196         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67197         test before testing whether SRC is a directory.
67198         Suggestions from Bruno Haible.
67199
67200         Avoid a warning about an unused variable.
67201         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67202         into the #ifdef block where it's used.
67203
67204         * lib/rename-dest-slash.c: New file.
67205
67206 2006-09-14  Bruno Haible  <bruno@clisp.org>
67207
67208         * lib/allocsa.c: Include <config.h> unconditionally.
67209         * lib/asnprintf.c: Likewise.
67210         * lib/asprintf.c: Likewise.
67211         * lib/c-strcasecmp.c: Likewise.
67212         * lib/c-strcasestr.c: Likewise.
67213         * lib/c-strncasecmp.c: Likewise.
67214         * lib/c-strstr.c: Likewise.
67215         * lib/classpath.c: Likewise.
67216         * lib/clean-temp.c: Likewise.
67217         * lib/concatpath.c: Likewise.
67218         * lib/copy-file.c: Likewise.
67219         * lib/csharpcomp.c: Likewise.
67220         * lib/csharpexec.c: Likewise.
67221         * lib/execute.c: Likewise.
67222         * lib/fatal-signal.c: Likewise.
67223         * lib/findprog.c: Likewise.
67224         * lib/fwriteerror.c: Likewise.
67225         * lib/gl_array_list.c: Likewise.
67226         * lib/gl_array_oset.c: Likewise.
67227         * lib/gl_avltree_list.c: Likewise.
67228         * lib/gl_avltree_oset.c: Likewise.
67229         * lib/gl_avltreehash_list.c: Likewise.
67230         * lib/gl_carray_list.c: Likewise.
67231         * lib/gl_linked_list.c: Likewise.
67232         * lib/gl_linkedhash_list.c: Likewise.
67233         * lib/gl_list.c: Likewise.
67234         * lib/gl_oset.c: Likewise.
67235         * lib/gl_rbtree_list.c: Likewise.
67236         * lib/gl_rbtree_oset.c: Likewise.
67237         * lib/gl_rbtreehash_list.c: Likewise.
67238         * lib/imaxabs.c: Likewise.
67239         * lib/imaxdiv.c: Likewise.
67240         * lib/javacomp.c: Likewise.
67241         * lib/javaexec.c: Likewise.
67242         * lib/javaversion.c: Likewise.
67243         * lib/linebreak.c: Likewise.
67244         * lib/localcharset.c: Likewise.
67245         * lib/lock.c: Likewise.
67246         * lib/mbchar.c: Likewise.
67247         * lib/mbswidth.c: Likewise.
67248         * lib/mkdtemp.c: Likewise.
67249         * lib/pipe.c: Likewise.
67250         * lib/printf-args.c: Likewise.
67251         * lib/printf-parse.c: Likewise.
67252         * lib/progname.c: Likewise.
67253         * lib/progreloc.c: Likewise.
67254         * lib/readlink.c: Likewise.
67255         * lib/sh-quote.c: Likewise.
67256         * lib/stpcpy.c: Likewise.
67257         * lib/stpncpy.c: Likewise.
67258         * lib/strcasecmp.c: Likewise.
67259         * lib/strcasestr.c: Likewise.
67260         * lib/strcspn.c: Likewise.
67261         * lib/striconv.c: Likewise.
67262         * lib/strncasecmp.c: Likewise.
67263         * lib/strnlen1.c: Likewise.
67264         * lib/strstr.c: Likewise.
67265         * lib/strtok_r.c: Likewise.
67266         * lib/tls.c: Likewise.
67267         * lib/tmpdir.c: Likewise.
67268         * lib/unicodeio.c: Likewise.
67269         * lib/unsetenv.c: Likewise.
67270         * lib/vasnprintf.c: Likewise.
67271         * lib/vasprintf.c: Likewise.
67272         * lib/wait-process.c: Likewise.
67273         * lib/xallocsa.c: Likewise.
67274         * lib/xsetenv.c: Likewise.
67275         * lib/xstriconv.c: Likewise.
67276
67277 2006-09-13  Simon Josefsson  <jas@extundo.com>
67278
67279         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67280         that internally, suggested by Ralf Wildenhues
67281         <Ralf.Wildenhues@gmx.de>.
67282
67283 2006-09-13  Simon Josefsson  <jas@extundo.com>
67284
67285         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67286         @LIBOBJS@.
67287         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67288
67289 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67290
67291         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67292         longer worry about uses that don't define HAVE_CONFIG_H.
67293         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67294         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67295         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67296         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67297         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67298         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67299         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67300         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67301         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67302         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67303         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67304         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67305         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67306         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67307         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67308         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67309         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67310         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67311         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67312         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67313         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67314         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67315         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67316         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67317         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67318         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67319         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67320         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67321         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67322         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67323         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67324         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67325         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67326         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67327         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67328         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67329         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67330         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67331         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67332         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67333         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67334         Likewise.
67335
67336 2006-09-13  Eric Blake  <ebb9@byu.net>
67337
67338         * lib/getopt.c: Fix typo in last commit.
67339
67340 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67341
67342         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67343         dgettext.
67344
67345 2006-09-12  Jim Meyering  <jim@meyering.net>
67346
67347         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67348         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67349         Reported by Nelson H. F. Beebe.
67350
67351 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67352
67353         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67354         program_invocation_name and program_invocation_short_name are
67355         initialized.
67356         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67357         and program_invocation_short_name to argp.h, so they are visible
67358         to user programs.
67359         * lib/argp.h: Likewise
67360
67361 2006-09-10  Bruno Haible  <bruno@clisp.org>
67362
67363         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67364         m4/inttypes_h.m4, m4/uintmax_t.m4.
67365
67366 2006-09-10  Bruno Haible  <bruno@clisp.org>
67367
67368         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67369         gl_AC_TYPE_UINTMAX_T.
67370
67371 2006-09-10  Bruno Haible  <bruno@clisp.org>
67372
67373         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67374
67375 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67376
67377         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67378         convention.  Text proposed by Bruno Haible.
67379         (struct argp_option): Document the use of N_() wrappers.
67380
67381         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67382         '\v', and translate the two parts separately, instead of feeding
67383         the whole string to gettext.  This allows to exclude
67384         '\v' from the strings visible to the translator by writing doc
67385         strings as N_("..") "\v" N_("..").
67386
67387 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67388
67389         * config/srclist.txt: Undo latest change; the bug was fixed.
67390
67391 2006-09-09  Bruno Haible  <bruno@clisp.org>
67392
67393         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67394         assignments if building a library without libtool.
67395         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67396         in func_emit_lib_Makefile_am.
67397         (func_import): When building a static library libfoo.a, arrange to
67398         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67399         (func_create_testdir): Likewise.
67400         * modules/gc (configure.ac, Makefile.am): If building statically,
67401         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67402         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67403         * modules/striconv (configure.ac, Makefile.am): Likewise.
67404         Based on a suggestion by Ralf Wildenhues.
67405
67406 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67407
67408         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67409         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67410         Also:
67411
67412         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67413         Add year_2050_test to catch glibc bug 2821
67414         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67415
67416         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67417         Prefer #ifdef to #if.
67418
67419         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67420         Return from 'main' instead of calling 'exit'.
67421
67422 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67423
67424         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67425         returned the maximum time_t value rather than (time_t) -1.
67426         Problem originally reported by William Bardwell
67427         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67428
67429         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67430         Moved to here ...
67431         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67432         ... from here.
67433
67434 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67435
67436         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67437         2821 is fixed.
67438
67439 2006-09-08  Jim Meyering  <jim@meyering.net>
67440
67441         Don't make generated files read-only.  That would bother too many
67442         people.  However, do retain the ability to work when targets are
67443         read-only: remove the destination and temporary files before writing
67444         them (when generated via sed or echo), or by using the -f option for
67445         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67446         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67447         * modules/byteswap, modules/configmake, modules/fcntl:
67448         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67449         * modules/localcharset, modules/netinet_in, modules/poll:
67450         * modules/stdbool, modules/stdint, modules/sys_select:
67451         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67452
67453 2006-09-08  Jim Meyering  <jim@meyering.net>
67454
67455         Avoid new build failure on FreeBSD 6.0.
67456         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67457         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67458         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67459
67460 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67461
67462         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67463
67464 2006-09-07  Jim Meyering  <jim@meyering.net>
67465
67466         Fix global typo in last change: use chmod u-w, not chmod u-x.
67467         Spotted by Paul Eggert and Bruce Korb.
67468         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67469         * modules/byteswap, modules/configmake, modules/fcntl:
67470         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67471         * modules/localcharset, modules/netinet_in, modules/poll:
67472         * modules/stdbool, modules/stdint, modules/sys_select:
67473         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67474
67475 2006-09-06  Jim Meyering  <jim@meyering.net>
67476
67477         Make generated files be read-only.
67478         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67479         Ensure that each generated file is now read-only.
67480         * modules/argz: Likewise.
67481         * modules/arpa_inet: Likewise.
67482         * modules/byteswap: Likewise.
67483         * modules/configmake: Likewise.
67484         * modules/fcntl: Likewise.
67485         * modules/fnmatch: Likewise.
67486         * modules/getopt: Likewise.
67487         * modules/glob: Likewise.
67488         * modules/inttypes: Likewise.
67489         * modules/netinet_in: Likewise.
67490         * modules/poll: Likewise.
67491         * modules/stdbool: Likewise.
67492         * modules/stdint: Likewise.
67493         * modules/sys_select: Likewise.
67494         * modules/sys_socket: Likewise.
67495         * modules/sys_stat: Likewise.
67496         * modules/sysexits: Likewise.
67497         * modules/localcharset: Same as above, but continue using temporary
67498         file named "t-$@" (why different?) rather than the "$@-t" used
67499         everywhere else.
67500
67501         * modules/sysexits (Makefile.am): Replace literal occurrences
67502         of "sysexit.h" more readable, and more consistent, "$@".
67503
67504 2006-09-06  Bruno Haible  <bruno@clisp.org>
67505
67506         * modules/striconv: New file.
67507         * modules/xstriconv: New file.
67508         * MODULES.html.sh (Internationalization functions): Add striconv,
67509         xstriconv.
67510
67511 2006-09-06  Bruno Haible  <bruno@clisp.org>
67512
67513         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67514         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67515         not using libtool correctly.
67516
67517 2006-09-06  Bruno Haible  <bruno@clisp.org>
67518
67519         * lib/striconv.h: New file.
67520         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67521         iconvstring.c.
67522         * lib/xstriconv.h: New file.
67523         * lib/xstriconv.c: New file.
67524
67525 2006-09-06  Bruno Haible  <bruno@clisp.org>
67526
67527         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67528         lib_..._LDFLAGS.
67529
67530 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67531
67532         * lib/argz_.h: Sync from Libtool.
67533
67534         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67535                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67536
67537         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67538
67539 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67540
67541         * modules/trim: New file.
67542
67543 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67544
67545         * lib/trim.h: New file.
67546         * lib/trim.c: New file.
67547
67548 2006-09-05  Bruno Haible  <bruno@clisp.org>
67549
67550         * MODULES.html.sh (String handling): Add trim.
67551
67552 2006-09-04  Karl Berry  <karl@gnu.org>
67553
67554         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67555         until next release.
67556
67557 2006-09-03  Bruno Haible  <bruno@clisp.org>
67558
67559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67560         correctly.
67561
67562 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67565         not gl_GETLOADAVG.  Omit unneeded semicolons.
67566         Problems reported by Ralf Wildenhues in
67567         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67568         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67569         at the end, which is the usual gnulib style.
67570
67571         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67572         of doing all the work ourselves.
67573         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67574         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67575
67576 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67579         Problem reported by Ralf Wildenhues in
67580         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67581
67582         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67583         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67584
67585 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67588         yesterday's patch by changing test -n to test -z.
67589
67590 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67591
67592         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67593         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67594         the former is now obsolescent.
67595
67596         * modules/chdir-long (Depends-on): Add fcntl.
67597
67598 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67601         obsolescent, and programs should use gnulib instead.
67602         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67603         but with prefixes changed.
67604
67605 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67606
67607         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67608         or stdbool.h, because they might not exist while configuring.
67609
67610         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67611         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67612         does that for us.
67613         (O_DIRECTORY): Remove.
67614
67615 2006-08-31  Eric Blake  <ebb9@byu.net>
67616
67617         * gnulib-tool: Don't let emacs change spaces to TAB.
67618
67619 2006-08-31  Bruno Haible  <bruno@clisp.org>
67620
67621         * gnulib-tool: When calling func_import more than once, do it in a
67622         subshell.
67623         Reported by Eric Blake <ebb9@byu.net>.
67624
67625 2006-08-31  Bruno Haible  <bruno@clisp.org>
67626
67627         * gnulib-tool (nl): Remove variable.
67628         (sed_transform_lib_file): Use more robust test for config-h module.
67629         (func_import): Fix typo in 2006-08-25 patch.
67630
67631 2006-08-31  Bruno Haible  <bruno@clisp.org>
67632
67633         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67634         specified, augment Makefile.am variables instead of assigning them.
67635
67636 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67637
67638         Work around a bug in both the Linux and SunOS 64-bit kernels:
67639         nanosleep mishandles sleeps for longer than 2**31 seconds.
67640         Problem reported by Frank v Waveren in
67641         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67643         Check for nanosleep bug.
67644         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67645
67646 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67647
67648         Work around a bug in both the Linux and SunOS 64-bit kernels:
67649         nanosleep mishandles sleeps for longer than 2**31 seconds.
67650         Problem reported by Frank v Waveren in
67651         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67652         * lib/nanosleep.c (BILLION): New constant.
67653         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67654         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67655         implementation.
67656
67657 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         * modules/nanosleep (Depends-on): Add gettime.
67660
67661 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67662         and Simon Josefsson  <jas@extundo.com>
67663         and Oskar Liljeblad  <oskar@osk.mine.nu>
67664
67665         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67666         * gnulib-tool (func_import): New license type 'unmodifiable license
67667         text'.
67668         * modules/fdl: Use it.  Longer description.
67669         * module/gpl, module/lgpl: New files.
67670
67671 2006-08-30  Jim Meyering  <jim@meyering.net>
67672
67673         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67674         shadowing the parameter.
67675
67676 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67677
67678         Sync from Libtool:
67679
67680         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67681
67682         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67683         sharing with gnulib.  Report by Eric Blake.
67684
67685 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * modules/isapipe: New file.
67688         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67689
67690 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * modules/configmake (Makefile.am): Add a comment, and omit
67693         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67694         by Bruno Haible.
67695
67696 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67697
67698         * m4/isapipe.m4: New file.
67699
67700 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * lib/isapipe.c, lib/isapipe.h: New files.
67703
67704 2006-08-29  Jim Meyering  <jim@meyering.net>
67705
67706         * modules/configmake (Makefile.am): Make configmake.h depend on
67707         Makefile.  Otherwise, a stale configmake.h could hang around.
67708
67709 2006-08-29  Eric Blake  <ebb9@byu.net>
67710
67711         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67712         resolution of upstream bug 3044.
67713
67714 2006-08-29  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/localcharset (Depends-on): Add configmake.
67717         (Makefile.am): Remove setting of LIBDIR through DEFS.
67718
67719 2006-08-29  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67722         defined.
67723
67724 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         * modules/fcntl: New file.
67727         * modules/chdir-safer (Depends-on): Add fcntl.
67728         * modules/fts: Likewise.
67729         * modules/mkdir-p: Likewise.
67730
67731         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67732         This undoes the most recent change, since we're now addressing the
67733         problem in a different way.
67734
67735         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67736         into output, since the output might be called Makefile.am even
67737         if $makefile_name is something different.
67738         (func_import): Use $makefile_am rather than
67739         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67740         empty.
67741
67742         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67743
67744 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67747         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67748         recent change to stdint.m4, since we're now addressing the problem in a
67749         different way.
67750
67751 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         * m4/fcntl_h.m4: New file.
67754
67755 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * lib/fcntl_.h: New file.
67758         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67759         the fcntl module.
67760         * lib/dirchownmod.c: Likewise.
67761         * lib/fts.c: Likewise.
67762
67763         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67764         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67765         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67766         just before including <inttypes.h>, to avoid circular inclusion.
67767
67768 2006-08-28  Jim Meyering  <jim@meyering.net>
67769
67770         * doc/visibility.texi: Actually read and correct the grammar of the
67771         sentence affected by yesterday's change.
67772
67773 2006-08-28  Eric Blake  <ebb9@byu.net>
67774
67775         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67776         needs wrapper.
67777
67778 2006-08-28  Eric Blake  <ebb9@byu.net>
67779
67780         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67781
67782 2006-08-28  Eric Blake  <ebb9@byu.net>
67783
67784         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67785
67786 2006-08-28  Bruno Haible  <bruno@clisp.org>
67787
67788         * modules/c-strstr: New file, from GNU gettext.
67789         * MODULES.html.sh (String handling): Add c-strstr.
67790
67791 2006-08-28  Bruno Haible  <bruno@clisp.org>
67792
67793         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67794         macros.
67795         Reported by Eric Blake.
67796
67797 2006-08-28  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67800         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67801         * lib/vasprintf.c: Include errno.h, limits.h.
67802         (EOVERFLOW): New fallback definition.
67803         (vasprintf): Test here whether the string length is > INT_MAX.
67804         * lib/vsnprintf.c: Include errno.h, limits.h.
67805         (EOVERFLOW): New fallback definition.
67806         (vsnprintf): Fix bug when generated string was too long for the buffer.
67807         Test here whether the string length is > INT_MAX.
67808
67809 2006-08-28  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/inttypes_.h (SCNX*): Remove definitions.
67812         Reported by Eric Blake.
67813
67814 2006-08-28  Bruno Haible  <bruno@clisp.org>
67815
67816         * lib/c-strstr.h: New file, from GNU gettext.
67817         * lib/c-strstr.c: New file, from GNU gettext.
67818
67819 2006-08-28  Bruno Haible  <bruno@clisp.org>
67820
67821         * gnulib-tool: Reorder some statements.
67822
67823 2006-08-28  Bruno Haible  <bruno@clisp.org>
67824
67825         * gnulib-tool: New option --makefile-name.
67826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67827         $makefile_name.
67828         (func_import): Write $makefile_name to the cache file, and read it from
67829         there unless explicitly specified. Use $makefile_name as file name
67830         instead of Makefile.am. Adjust the recommendations accordingly.
67831
67832 2006-08-28  Bruno Haible  <bruno@clisp.org>
67833
67834         * gnulib-tool (func_verify_module): Check against misapplying patch.
67835
67836 2006-08-28  Bruno Haible  <bruno@clisp.org>
67837
67838         * gnulib-tool (func_relativize, func_relconcat): New functions.
67839         Give an error if --local-dir is given with --update.
67840         Remove trailing slashes from $local_gnulib_dir.
67841         (func_import): Store the relativized $local_gnulib_dir in
67842         gnulib-cache.m4, and read it from there if not specified explicitly.
67843
67844 2006-08-28  Bruno Haible  <bruno@clisp.org>
67845
67846         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67847         is the current directory. Respect also $local_gnulib_dir.
67848
67849 2006-08-28  Bruno Haible  <bruno@clisp.org>
67850             Simon Josefsson  <jas@extundo.com>
67851
67852         BeOS portability.
67853         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67854
67855 2006-08-27  Jim Meyering  <jim@meyering.net>
67856
67857         * doc/visibility.texi: Remove duplicate word: "pointer".
67858
67859 2006-08-26  Bruno Haible  <bruno@clisp.org>
67860
67861         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67862         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67863         (Makefile.am): Create inttypes.h from inttypes_.h.
67864         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67865
67866         * modules/imaxabs: New file.
67867
67868         * modules/imaxdiv: New file.
67869
67870 2006-08-26  Bruno Haible  <bruno@clisp.org>
67871
67872         * m4/inttypes.m4: New file.
67873         * m4/_inttypes_h.m4: Remove file.
67874         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67875         PRI_MACROS_BROKEN.
67876         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67877
67878         * m4/imaxabs.m4: New file.
67879
67880         * m4/imaxdiv.m4: New file.
67881
67882 2006-08-26  Bruno Haible  <bruno@clisp.org>
67883
67884         * lib/inttypes_.h: New file.
67885         * lib/inttypes.h: Remove file.
67886         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67887
67888         * lib/imaxabs.c: New file.
67889
67890         * lib/imaxdiv.c: New file.
67891
67892 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         New config-h module, so that "make" output needn't be cluttered
67895         by -DHAVE_CONFIG_H.
67896         * MODULES.html.sh (Support for building libraries and executables):
67897         Add config-h.
67898         * modules/config-h: New file.
67899         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67900         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67901         the config-h module is used.
67902
67903         New configmake module, so that "make" output needn't be cluttered
67904         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67905         * MODULES.html.sh (Support for building libraries and executables):
67906         Add configmake.
67907         * modules/configmake: New file.
67908
67909 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * m4/config-h.m4: New file.
67912
67913 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * config/srclist.txt: Add elisp-comp.
67916
67917 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67918
67919         * MODULES.html.sh (Support for building libraries and executables):
67920         Add elisp-comp.
67921         * build-aux/elisp-comp: New file.
67922         * modules/elisp-comp: New file.
67923
67924 2006-08-24  Bruno Haible  <bruno@clisp.org>
67925
67926         * gnulib-tool (func_create_testdir): Use non-default values of
67927         sourcebase and m4base.
67928
67929 2006-08-24  Bruno Haible  <bruno@clisp.org>
67930
67931         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67932         HTML structure.
67933
67934 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         * modules/openat (Depends-on): Add lchown.
67937
67938 2006-08-23  Bruno Haible  <bruno@clisp.org>
67939
67940         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67941         of gl_LOCK_EARLY instead of gl_LOCK.
67942
67943 2006-08-23  Bruno Haible  <bruno@clisp.org>
67944
67945         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67946         on OSF/1 to no.
67947         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67948
67949 2006-08-23  Bruno Haible  <bruno@clisp.org>
67950
67951         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67952         as unusable.
67953
67954         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67955         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67956         (gl_LOCK): New macro.
67957
67958 2006-08-22  Simon Josefsson  <jas@extundo.com>
67959
67960         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67961         to md5 module.
67962
67963 2006-08-22  Simon Josefsson  <jas@extundo.com>
67964
67965         * MODULES.html.sh: Add "Support for maintaining and release
67966         projects".
67967
67968         * build-aux/gnupload: New file, from coreutils.
67969
67970 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         Avoid the need for AC_LIBSOURCES in m4 macros.
67973         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67974         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67975         * modules/check-version (EXTRA_DIST): Add check-version.h.
67976         * modules/crc (EXTRA_DIST): Add crc.h.
67977         * modules/des (EXTRA_DIST): Add des.h.
67978         * modules/gc (EXTRA_DIST): Add gc.h.
67979         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67980         * modules/getline (EXTRA_DIST): Add getline.h.
67981         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67982         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67983         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67984         * modules/md2 (EXTRA_DIST): Add md2.h.
67985         * modules/md4 (EXTRA_DIST): Add md4.h.
67986         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67987         * modules/read-file (EXTRA_DIST): Add read-file.h.
67988         * modules/readline (EXTRA_DIST): Add readline.h.
67989         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67990         rijndael-api-fst.h.
67991
67992 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67993
67994         * m4/rijndael.m4 (gl_ARCFOUR):
67995         * m4/arctwo.m4 (gl_ARCTWO):
67996         * m4/check-version.m4 (gl_CHECK_VERSION):
67997         * m4/crc.m4 (gl_CRC):
67998         * m4/des.m4 (gl_DES):
67999         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68000         * m4/gc.m4 (gl_GC):
68001         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68002         * m4/getline.m4 (gl_FUNC_GETLINE):
68003         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68004         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68005         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68006         * m4/md2.m4 (gl_MD2):
68007         * m4/md4.m4 (gl_MD4):
68008         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68009         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68010         * m4/readline.m4 (gl_FUNC_READLINE):
68011         * m4/rijndael.m4 (gl_RIJNDAEL):
68012         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68013         to get the necessary .h files and whatnot.
68014
68015 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68018         gnulib rather than the other way around.
68019         * config/srclistvars.sh (COREUTILS): Remove.
68020
68021 2006-08-22  Jim Meyering  <jim@meyering.net>
68022
68023         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68024
68025         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68026
68027 2006-08-22  Eric Blake  <ebb9@byu.net>
68028
68029         * modules/regexprops-generic: New file.
68030         * MODULES.html.sh (Support for building documentation): List it.
68031
68032 2006-08-22  Eric Blake  <ebb9@byu.net>
68033
68034         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68035         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68036         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68037         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68038
68039 2006-08-22  Bruno Haible  <bruno@clisp.org>
68040
68041         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68042         and lib_LTLIBRARIES like the other lib_* variables.
68043
68044 2006-08-22  Bruno Haible  <bruno@clisp.org>
68045
68046         * build-aux/x-to-1.in: New file, from GNU gettext.
68047
68048 2006-08-22  Bruno Haible  <bruno@clisp.org>
68049
68050         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68051         <utmpx.h> exists.
68052
68053 2006-08-22  Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68056         <utmpx.h> exists.
68057
68058 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68059
68060         BeOS portability.
68061         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68062         exist.
68063         Problem reported by Bruno Haible.
68064
68065 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68066
68067         Avoid the need for AC_LIBSOURCES in m4 macros.
68068         * modules/acl (EXTRA_DIST): Add acl.h.
68069         * modules/argmatch (Files): Add m4/argmatch.m4.
68070         (configure.ac): Add gl_ARGMATCH.
68071         (EXTRA_DIST): Renamed from lib_SOURCES, for
68072         consistency with the other modules.  Remove argmatch.c.
68073         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68074         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68075         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68076         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68077         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68078         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68079         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68080         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68081         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68082         * modules/closeout (EXTRA_DIST): Add closeout.h.
68083         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68084         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68085         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68086         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68087         dirname.h; remove basename.c and stripslash.c.
68088         * modules/exclude (EXTRA_DIST): Add exclude.h.
68089         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68090         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68091         * modules/file-type (EXTRA_DIST): Add file-type.h.
68092         * modules/filemode (EXTRA_DIST): Add filemode.h.
68093         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68094         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68095         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68096         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68097         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68098         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68099         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68100         * modules/getdate (EXTRA_DIST): Add getdate.c.
68101         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68102         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68103         * modules/getpass (EXTRA_DIST): Add getpass.h.
68104         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68105         * modules/group-member (EXTRA_DIST): Add group-member.h.
68106         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68107         * modules/hash (EXTRA_DIST): Add hash.h.
68108         * modules/human (EXTRA_DIST): Add human.h.
68109         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68110         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68111         * modules/lchown (EXTRA_DIST): Add lchown.h.
68112         * modules/long-options (EXTRA_DIST): Add long-options.h.
68113         * modules/lstat (EXTRA_DIST): Add lstat.h.
68114         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68115         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68116         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68117         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68118         * modules/memxor (EXTRA_DIST): Add memxor.h.
68119         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68120         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68121         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68122         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68123         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68124         * modules/physmem (EXTRA_DIST): Add physmem.h.
68125         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68126         * modules/posixver (EXTRA_DIST): Add posixver.h.
68127         * modules/quote (EXTRA_DIST): Add quote.h.
68128         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68129         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68130         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68131         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68132         regex_internal.h regexec.c.
68133         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68134         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68135         * modules/same (EXTRA_DIST): Add same.h.
68136         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68137         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68138         * modules/savedir (EXTRA_DIST): Add savedir.h.
68139         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68140         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68141         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68142         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68143         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68144         * modules/strdup (EXTRA_DIST): Add strdup.h.
68145         * modules/strftime (EXTRA_DIST): Add strftime.h.
68146         * modules/strndup (EXTRA_DIST): Add strndup.h.
68147         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68148         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68149         * modules/time_r (EXTRA_DIST): Add time_r.h.
68150         * modules/timespec (EXTRA_DIST): Add timespec.h.
68151         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68152         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68153         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68154         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68155         * modules/userspec (EXTRA_DIST): Add userspec.h.
68156         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68157         * modules/utimens (EXTRA_DIST): Add utimens.h.
68158         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68159         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68160         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68161         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68162         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68163         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68164         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68165         * modules/yesno (EXTRA_DIST): Add yesno.h.
68166
68167 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68170
68171         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68172         * m4/dev-ino.m4, same-inode.m4: Remove.
68173
68174         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68175         * m4/acl.m4 (AC_FUNC_ACL):
68176         * m4/backupfile.m4 (gl_BACKUPFILE):
68177         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68178         * m4/canon-host.m4 (gl_CANON_HOST):
68179         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68180         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68181         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68182         * m4/cloexec.m4 (gl_CLOEXEC):
68183         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68184         * m4/closeout.m4 (gl_CLOSEOUT):
68185         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68186         * m4/dirname.m4 (gl_DIRNAME):
68187         * m4/exclude.m4 (gl_EXCLUDE):
68188         * m4/exitfail.m4 (gl_EXITFAIL):
68189         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68190         * m4/file-type.m4 (gl_FILE_TYPE):
68191         * m4/filemode.m4 (gl_FILEMODE):
68192         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68193         * m4/fpending.m4 (gl_FUNC_FPENDING):
68194         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68195         * m4/fts.m4 (gl_FUNC_FTS):
68196         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68197         * m4/getdate.m4 (gl_GETDATE):
68198         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68199         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68200         * m4/getpass.m4 (gl_FUNC_GETPASS):
68201         * m4/gettime.m4 (gl_GETTIME):
68202         * m4/getugroups.m4 (gl_GETUGROUPS):
68203         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68204         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68205         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68206         * m4/hash.m4 (gl_HASH):
68207         * m4/idcache.m4 (gl_IDCACHE):
68208         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68209         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68210         * m4/long-options.m4 (gl_LONG_OPTIONS):
68211         * m4/lstat.m4 (gl_FUNC_LSTAT):
68212         * m4/md5.m4 (gl_MD5):
68213         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68214         * m4/memcoll.m4 (gl_MEMCOLL):
68215         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68216         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68217         * m4/memxor.m4 (gl_MEMXOR):
68218         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68219         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68220         * m4/modechange.m4 (gl_MODECHANGE):
68221         * m4/mountlist.m4 (gl_MOUNTLIST):
68222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68223         * m4/openat.m4 (gl_FUNC_OPENAT):
68224         * m4/pathmax.m4 (gl_PATHMAX):
68225         * m4/physmem.m4 (gl_PHYSMEM):
68226         * m4/posixtm.m4 (gl_POSIXTM):
68227         * m4/posixver.m4 (gl_POSIXVER):
68228         * m4/quote.m4 (gl_QUOTE):
68229         * m4/quotearg.m4 (gl_QUOTEARG):
68230         * m4/readtokens.m4 (gl_READTOKENS):
68231         * m4/readutmp.m4 (gl_READUTMP):
68232         * m4/regex.m4 (gl_REGEX):
68233         * m4/safe-read.m4 (gl_SAFE_READ):
68234         * m4/safe-write.m4 (gl_SAFE_WRITE):
68235         * m4/same.m4 (gl_SAME):
68236         * m4/save-cwd.m4 (gl_SAVE_CWD):
68237         * m4/savedir.m4 (gl_SAVEDIR):
68238         * m4/settime.m4 (gl_SETTIME):
68239         * m4/sha1.m4 (gl_SHA1):
68240         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68241         * m4/stat-macros.m4 (gl_STAT_MACROS):
68242         * m4/stat-time.m4 (gl_STAT_TIME):
68243         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68244         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68245         * m4/strdup.m4 (gl_FUNC_STRDUP):
68246         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68247         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68248         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68249         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68250         * m4/time_r.m4 (gl_TIME_R):
68251         * m4/timespec.m4 (gl_TIMESPEC):
68252         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68253         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68254         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68255         * m4/userspec.m4 (gl_USERSPEC):
68256         * m4/utimecmp.m4 (gl_UTIMECMP):
68257         * m4/utimens.m4 (gl_UTIMENS):
68258         * m4/xalloc.m4 (gl_XALLOC):
68259         * m4/xgetcwd.m4 (gl_XGETCWD):
68260         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68261         * m4/xreadlink.m4 (gl_XREADLINK):
68262         * m4/xstrtod.m4 (gl_XSTRTOD):
68263         * m4/yesno.m4 (gl_YESNO):
68264         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68265         to get the necessary .h files and whatnot.
68266
68267 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68268             Bruno Haible  <bruno@clisp.org>
68269
68270         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68271         /bin/sh understanding of '!' conditional negation.
68272
68273 2006-08-21  Jim Meyering  <jim@meyering.net>
68274
68275         * modules/openat (Depends-on): Really alphabetize.
68276
68277         * modules/acl (Depends-on): Add error and quote.
68278
68279         * check-module (find_included_lib_files): Add at-func.c to the
68280         ok-to-include-more-than-once white list.
68281
68282         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68283
68284 2006-08-21  Bruno Haible  <bruno@clisp.org>
68285
68286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68287         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68288         Reported by Martin Lambers <marlam@marlam.de>.
68289
68290 2006-08-21  Bruno Haible  <bruno@clisp.org>
68291
68292         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68293         specify an installation location, don't emit a noinst_LIBRARIES or
68294         noinst_LTLIBRARIES assignment.
68295
68296 2006-08-21  Bruno Haible  <bruno@clisp.org>
68297
68298         BeOS portability.
68299         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68300         BeOS has mbrtowc() but no <wctype.h>.
68301
68302 2006-08-21  Bruno Haible  <bruno@clisp.org>
68303
68304         BeOS portability.
68305         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68306         exist.
68307
68308 2006-08-21  Bruno Haible  <bruno@clisp.org>
68309
68310         BeOS portability.
68311         * lib/mbchar.h: Include <wctype.h> only if it exists.
68312
68313 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68314
68315         Remove files that are no longer needed by their respective modules.
68316         * m4/obstack.m4: Remove.
68317         * m4/strerror_r.m4: Remove.
68318         * m4/uint32_t.m4: Remove.
68319         * m4/uintptr_t.m4: Remove.
68320         * m4/ullong_max.m4: Remove.
68321         * m4/xstrtoimax.m4: Remove.
68322         * m4/xstrtoumax.m4: Remove.
68323
68324         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68325         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68326         dependencies now capture this.
68327
68328         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68329         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68330         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68331         * m4/human.m4 (gl_HUMAN): Likewise.
68332         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68333         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68334
68335         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68336
68337         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68338         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68339         stdint.
68340         * m4/human.m4 (gl_HUMAN): Likewise.
68341         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68342         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68343         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68344         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68345         * m4/xstrtol (gl_XSTRTOL): Likewise.
68346
68347         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68348         AC_TYPE_LONG_LONG_INT.
68349         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68350         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68351         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68352         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68353
68354         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68355         on stdbool.
68356
68357         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68358         (gl_PREREQ_XSTRTOUL): Remove.
68359
68360         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68361
68362         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68363         mode.
68364
68365 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         Add and change modules to make it easier for coreutils to use
68368         gnulib-tool.
68369         * modules/backupfile (Files): Remove m4/d-ino.m4.
68370         (Depends-on): Add d-ino.
68371         * modules/cycle-check (Depends-on): Add stdint.
68372         (lib_SOURCES): Add cycle-check.h.
68373         * modules/d-ino: New module.
68374         * modules/d-type: New module.
68375         * modules/error (Files): Remove m4/strerror_r.m4.
68376         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68377         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68378         m4/inttypes_h.m4, m4/uintmax_t.m4.
68379         (Depends-on): Add stdint.
68380         (lib_SOURCES): Add fsusage.h.
68381         * modules/getcwd (Files): Remove d-ino.m4.
68382         (Depends-on): Add d-ino.
68383         * modules/getndelim2 (Depends-on): Add stdint.
68384         * modules/glob (Files): Remove m4/d-type.m4.
68385         (Depends-on): Add d-type.
68386         * modules/host-os: New module.
68387         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68388         m4/inttypes_h.m4, m4/uintmax_t.m4.
68389         * Depends-on: Add stdint.
68390         (lib_SOURCES): Add human.h.
68391         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68392         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68393         m4/uintmax_t.m4, m4/ulonglong.m4.
68394         (Depends-on): Add stdint.
68395         (EXTRA_DIST): Add inttostr.h.
68396         * modules/lchmod: New module.
68397         * modules/link-follow: New module.
68398         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68399         (Depends-on): Add lchmod.
68400         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68401         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68402         (Depends-on): Add stdint.
68403         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68404         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68405         (Depends-on): Add stdint.
68406         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68407         * modules/perl: New module.
68408         * modules/regex (Depends-on): Add stdint.
68409         * modules/rmdir-errno: New module.
68410         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68411         m4/intmax_t.m4.
68412         (Depends-on): Add stdint.
68413         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68414         m4/uintmax_t.m4.
68415         (Depends-on): Add stdint.
68416         * modules/unlink-busy: New module.
68417         * modules/utimecmp (Depends-on): Add stdint.
68418         * modules/uptime: New module.
68419         * modules/winsz-ioctl: New module.
68420         * modules/winsz-termios: New module.
68421         * modules/xnanosleep (Depends-on): Add nanosleep.
68422         * modules/ullong_max: Remove.
68423         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68424         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68425         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68426         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68427         (Depends-on): Add inttypes.
68428         (lib_SOURCES): Add xstrtol.h.
68429         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68430         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68431         * MODULES.html.sh: Move 'assert' into the assert section.
68432         Move 'dummy' into the linking section.
68433         Remove ullong_max.
68434         Add section for compatibility checks for POSIX:2001 functions,
68435         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68436         winsz-ioctl, and winsz-termios into it.
68437         Add lchmod.
68438         Add top-level Misc section and put host-os, perl, and uptime
68439         into it.
68440
68441 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68442
68443         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68444         now assume the stdint module.  Do not include inttypes.h.
68445         * lib/fsusage.h: Likewise.
68446         * lib/getndelim2.c: Likewise.
68447         * lib/human.h: Likewise.
68448         * lib/inttostr.h: Likewise.
68449         * lib/obstack.c: Likewise.
68450         * lib/regex_internal.h: Likewise.
68451         * lib/tempname.c: Likewise.
68452         * lib/utimecmp.c: Likewise.
68453         * lib/xstrtol.h: Likewise.
68454
68455         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68456
68457         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68458         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68459         * lib/xtime.h: Likewise.
68460
68461 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68462
68463         * modules/openat (Files): Add lib/fchmodat.c.
68464         Fixes problem reported by Jay Youngman.
68465
68466 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68469         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68470
68471 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68472             Bruno Haible  <bruno@clisp.org>
68473
68474         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68475         and is a script that invokes bison. Tighten the code. Add comments.
68476
68477 2006-08-18  Jim Meyering  <jim@meyering.net>
68478
68479         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68480         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68481         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68482         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68483
68484 2006-08-18  Bruno Haible  <bruno@clisp.org>
68485
68486         * modules/bison-i18n: New file.
68487         * MODULES.html.sh (Internationalization functions): Add it.
68488
68489 2006-08-18  Bruno Haible  <bruno@clisp.org>
68490
68491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68492         sys/statvfs.h. When getmntinfo was found, check its declaration and
68493         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68494
68495 2006-08-18  Bruno Haible  <bruno@clisp.org>
68496
68497         * m4/bison-i18n.m4: New file, from bison.
68498
68499 2006-08-18  Bruno Haible  <bruno@clisp.org>
68500
68501         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68502         (ME_DUMMY): Treat "kernfs" as a dummy.
68503         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68504
68505 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         Update from coreutils.
68508
68509         2006-08-15  Jim Meyering  <jim@meyering.net>
68510
68511         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68512
68513         2006-01-17  Jim Meyering  <jim@meyering.net>
68514
68515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68516
68517         2006-01-11  Jim Meyering  <jim@meyering.net>
68518
68519         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68520         Check for the lchmod function.
68521
68522 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         Update from coreutils.
68525
68526         * lib/__fpending.h: Add copyright notice.
68527         * lib/fprintftime.h: Likewise.
68528         * lib/savedir.c: Use (C) in copyright notice.
68529         * lib/savedir.h: Likewise.
68530
68531         2006-08-15  Jim Meyering  <jim@meyering.net>
68532
68533         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68534         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68535         in support of the EXPECTED_ERRNO macro.
68536         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68537         definitions.  Instead, define the appropriate symbols and include
68538         "at-func.c".
68539         * lib/mkdirat.c (mkdirat): Likewise.
68540         * lib/fchmodat.c (fchmodat): Likewise.
68541         (ENOSYS): Remove definition.
68542         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68543         it.  Don't include "unistd--.h" -- it wasn't ever used.
68544
68545         2006-01-17  Jim Meyering  <jim@meyering.net>
68546
68547         Rewrite fts.c not to change the current working directory,
68548         by using openat, fstatat, fdopendir, etc..
68549
68550         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68551         (HAVE_OPENAT_SUPPORT): Define.
68552         [_LIBC] (fchdir): Don't undef or define; no longer used.
68553         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68554         Now, this `function' always succeeds, and consumes its file descriptor
68555         parameter -- so callers must not close such FDs.  Update callers.
68556         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68557         (diropen): Add parameter, SP.  Adjust all callers.
68558         Implement using diropen_fd, rather than open.
68559         (fts_open): Initialize new member, fts_cwd_fd.
68560         Remove fts_rft-setting code.
68561         (fts_close): Close fts_cwd_fd, if necessary.
68562         (__opendir2): Define in terms of opendir or opendirat,
68563         depending on whether the FST_NOCHDIR flag is set.
68564         (fts_build): Since fts_safe_changedir consumes its FD, and since
68565         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68566         and close the dup'd file descriptor upon failure.
68567         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68568         (fts_safe_changedir): Tweak semantics to reflect that this function
68569         now calls cwd_advance_fd and hence consumes its FD argument.
68570         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68571         [struct FTS] (fts_rft): Remove now-unused member.
68572         [struct FTS] (fts_cycle.state): Improve comment.
68573
68574         * lib/openat.c (openat_needs_fchdir): New function.
68575         * lib/openat.h (openat_needs_fchdir): Declare it.
68576
68577 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68580         Problem and fix reported by Pádraig Brady in
68581         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68582
68583 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68586
68587 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * lib/memcoll.c (memcoll): Optimize for the common case where the
68590         arguments are bytewise equal.
68591
68592 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * doc/regexprops-generic.texi: Add a copyright notice.
68595
68596 2006-08-15  Bruno Haible  <bruno@clisp.org>
68597
68598         * modules/tmpdir (License): Change to LGPL.
68599
68600 2006-08-15  Bruno Haible  <bruno@clisp.org>
68601
68602         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68603         module.
68604
68605 2006-08-14  Simon Josefsson  <jas@extundo.com>
68606
68607         * config/srclist.txt: Add gnupload.
68608
68609 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68610
68611         Change copyright notice from LGPL 2 to GPL 2, since that's the
68612         standard form used in the gnulib repository.
68613         * tests/test-lock.c: Likewise.
68614         * tests/test-stdint.c: Likewise.
68615         * tests/test-tls.c: Likewise.
68616
68617         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68618         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68619         Add copyright notice.
68620
68621         * check-module: Add copyright notice.  Output a copyright
68622         notice if "--version" is specified.
68623         * modules/COPYING: New file.
68624         * tests/test-getaddrinfo.c: Add copyright notice.
68625         * tests/test-verify.c: Likewise.
68626
68627 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         Change copyright notice from LGPL 2 to GPL 2, since that's the
68630         standard form used in the gnulib repository.
68631         * lib/lock.c: LGPL -> GPL.
68632         * lib/lock.h: Likewise.
68633         * lib/strnlen1.c: Likewise.
68634         * lib/strnlen1.h: Likewise.
68635         * lib/tls.c: Likewise.
68636         * lib/tls.h: Likewise.
68637         * lib/tmpdir.c: Likewise.
68638
68639         * lib/TODO: Remove; this belongs only in coreutils.
68640
68641 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         Add copyright notices to long-enough files that lack them, since
68644         otherwise the files aren't clearly free.  Use the same notice that
68645         getdate.texi already uses.
68646         * doc/alloca-opt.texi: Add copyright notice.
68647         * doc/alloca.texi: Likewise.
68648         * doc/ctime.texi: Likewise.
68649         * doc/functions.texi: Likewise.
68650         * doc/gcd.texi: Likewise.
68651         * doc/gnulib-tool.texi: Likewise.
68652         * doc/inet_ntoa.texi: Likewise.
68653         * doc/visibility.texi: Likewise.
68654
68655         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68656         * doc/quote.texi: Add copyright notice.
68657
68658         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68659         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68660         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68661         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68662         is now obsolete, and give a pointer to the Sun list.
68663         Add copyright notice.
68664
68665 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         * config/srclistvars.sh: Add copyright notice.
68668
68669 2006-08-14  Eric Blake  <ebb9@byu.net>
68670
68671         Import the following change from libc:
68672
68673         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68674
68675         Upstream bug 2997.
68676         * lib/misc/error.c: Add space between program name and message if file
68677         name is missing.
68678
68679 2006-08-12  Karl Berry  <karl@gnu.org>
68680
68681         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68682         remove, these originate in gnulib now.
68683
68684 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68685
68686         * doc/Makefile (standards.info standards.html standards.dvi):
68687         Also depend on make-stds.texi.
68688
68689 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68692         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68693
68694         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68695         in wchar_t.  Problem reported by Eric Blake.
68696
68697         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68698         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68699         Also, help the compiler to keep LEN in a register.
68700
68701 2006-08-11  Eric Blake  <ebb9@byu.net>
68702
68703         * users.txt: Sort.  Add tar.
68704
68705 2006-08-11  Bruno Haible  <bruno@clisp.org>
68706
68707         * users.txt: New file.
68708
68709 2006-08-11  Bruno Haible  <bruno@clisp.org>
68710
68711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68712         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68713
68714 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68715
68716         * modules/snprintf (Depends-on): Remove minmax.
68717         (Maintainer): Add self and Bruno.
68718
68719 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68722         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68723         (EOVERFLOW): Define if the system does not.
68724         Do not include "minmax.h"; it wasn't used.
68725         (snprintf): Don't assume size_t promotes to an unsigned type.
68726         Fix bug when generated string was too long for the buffer: the
68727         buffer's contents are supposed to be the initial prefix of the
68728         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68729         exceeds INT_MAX; do the check ourselves.
68730
68731         Import the following changes from libc:
68732
68733         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68734
68735         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68736         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68737         set wc to the byte which couldn't be converted.
68738         (re_string_reconstruct): Don't clear valid_raw_len before calling
68739         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68740         tip_context using re_string_context_at.
68741
68742         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68743
68744         * lib/posix/regex.h: g++ still cannot handled [restrict].
68745
68746         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68747
68748         * lib/posix/regex.h: Remove special handling for VMS.
68749
68750 2006-08-10  Jim Meyering  <jim@meyering.net>
68751
68752         * modules/same-inode: New module.
68753         * modules/dev-ino: New module.
68754         * modules/cycle-check: Depend on these modules, rather than simply
68755         including their .h files.
68756         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68757         required via m4/cycle-check.m4.
68758         * modules/same: Depend on new same-inode module, rather than
68759         including same-inode.h.
68760         * modules/chdir-safer: New file.
68761
68762         * modules/chown (Depends-on): Add stat-macros.
68763
68764 2006-08-10  Jim Meyering  <jim@meyering.net>
68765
68766         * m4/cycle-check.m4: New file.
68767         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68768         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68769
68770 2006-08-10  Eric Blake  <ebb9@byu.net>
68771
68772         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68773         in from original proposal.
68774
68775 2006-08-10  Eric Blake  <ebb9@byu.net>
68776         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68777
68778         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68779         namespace.
68780
68781 2006-08-10  Bruno Haible  <bruno@clisp.org>
68782
68783         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68784         as well.
68785
68786 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         Sync from coreutils.
68789
68790         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68791
68792         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68793         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68794
68795 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68796
68797         * modules/restrict: Remove; no longer needed now that we assume
68798         Autoconf 2.59 or later.
68799         * MODULES.html.sh: Remove 'restrict'.
68800         * modules/argp (Depends-on): Remove 'restrict'.
68801         * modules/base64 (Depends-on): Likewise.
68802         * modules/gc (Depends-on): Likewise.
68803         * modules/getaddrinfo (Depends-on): Likewise.
68804         * modules/glob (Depends-on): Likewise.
68805         * modules/inet_ntop (Depends-on): Likewise.
68806         * modules/inet_pton (Depends-on): Likewise.
68807         * modules/memxor (Depends-on): Likewise.
68808         * modules/regex (Depends-on): Likewise.
68809         * modules/strtok_r (Depends-on): Likewise.
68810         * modules/time_r (Depends-on): Likewise.
68811
68812 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68815         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68816         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68817         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68818         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68819         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68820         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68821         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68822
68823         Merge from coreutils.
68824         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68825         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68827         * m4/time_r.m4 (gl_TIME_R): Likewise.
68828
68829 2006-08-09  Karl Berry  <karl@gnu.org>
68830
68831         * config/srclist.txt: no more gettext-tools, per Bruno.
68832
68833 2006-08-08  Eric Blake  <ebb9@byu.net>
68834
68835         * modules/verror: New module.
68836         * MODULES.html.sh: Document it.
68837
68838 2006-08-08  Eric Blake  <ebb9@byu.net>
68839
68840         * lib/verror.h, lib/verror.c: New files.
68841
68842 2006-08-08  Eric Blake  <ebb9@byu.net>
68843
68844         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68845         verror_at_line output complies with GNU Coding Standards even when
68846         file is NULL.
68847
68848 2006-08-07  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68851         versions of AIX.
68852         Reported by Ralf Wildenhues.
68853
68854 2006-08-07  Bruno Haible  <bruno@clisp.org>
68855
68856         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68857         in an AC_DEFUN. Needed so that the autoconf snippets can use
68858         AC_REQUIRE.
68859
68860 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68861
68862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68863         Initialize pkgdata_DATA.
68864         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68865         overriding it.
68866
68867 2006-08-06  Eric Blake  <ebb9@byu.net>
68868
68869         * lib/error.h: Fold in some upstream changes from glibc.
68870         * lib/error.c: Likewise.
68871
68872 2006-08-04  Bruno Haible  <bruno@clisp.org>
68873
68874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68875         Make the mostlyclean-local rule depend on mostlyclean-generic.
68876         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68877
68878 2006-07-31  Bruno Haible  <bruno@clisp.org>
68879
68880         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68881         <stdlib.h>, <string.h>.
68882
68883 2006-07-30  Bruno Haible  <bruno@clisp.org>
68884
68885         * modules/readlink (License): Change to LGPL.
68886
68887 2006-07-30  Bruno Haible  <bruno@clisp.org>
68888
68889         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68890         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68891         set PKGDATADIR to point to it.
68892
68893 2006-07-30  Bruno Haible  <bruno@clisp.org>
68894
68895         * modules/csharpexec (configure.ac): Comment out macro invocation.
68896         * modules/javaexec (configure.ac): Likewise.
68897         * modules/javacomp-script (configure.ac): Likewise.
68898
68899         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68900
68901 2006-07-30  Bruno Haible  <bruno@clisp.org>
68902
68903         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68904         linked-list.
68905
68906 2006-07-30  Bruno Haible  <bruno@clisp.org>
68907
68908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68909
68910 2006-07-30  Bruno Haible  <bruno@clisp.org>
68911
68912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68913         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68914         get removed.
68915
68916 2006-07-29  Bruno Haible  <bruno@clisp.org>
68917
68918         Make it possible for gnulib-tool to work with locally modified or
68919         augmented gnulib repositories.
68920         * gnulib-tool (func_usage): Document --local-dir option.
68921         (local_gnulib_dir): New variable.
68922         Handle --local-dir option.
68923         (func_lookup_file): New function.
68924         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68925         (func_get_description, func_get_filelist, func_get_description,
68926         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68927         func_get_automake_snippet, func_get_include_directive,
68928         func_get_license, func_get_maintainer): Use func_lookup_file.
68929         (func_import, func_create_testdir): Use func_lookup_file.
68930
68931 2006-07-29  Bruno Haible  <bruno@clisp.org>
68932
68933         * modules/setenv (Depends-on): Add unistd.
68934
68935 2006-07-29  Bruno Haible  <bruno@clisp.org>
68936
68937         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68938
68939 2006-07-29  Bruno Haible  <bruno@clisp.org>
68940
68941         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68942
68943 2006-07-29  Bruno Haible  <bruno@clisp.org>
68944
68945         * gnulib-tool (import, update): If there is no Makefile.am, look at
68946         aclocal.m4, instead of bailing out.
68947
68948 2006-07-29  Bruno Haible  <bruno@clisp.org>
68949
68950         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68951         Categorize the options by when they are useful.
68952
68953 2006-07-29  Bruno Haible  <bruno@clisp.org>
68954
68955         * gnulib-tool (func_usage): Document option --no-libtool.
68956         Handle option --no-libtool.
68957         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68958         for changed semantics of $libtool variable.
68959         (func_import): Likewise. If libtool is not used, show this through
68960         an option --no-libtool.
68961         (func_create_testdir): Update.
68962
68963 2006-07-29  Bruno Haible  <bruno@clisp.org>
68964
68965         * gnulib-tool (func_import): Extend error message about missing
68966         --doc-base.
68967
68968 2006-07-29  Bruno Haible  <bruno@clisp.org>
68969
68970         * gnulib-tool (func_import): Don't create the $docbase directory if
68971         there is no file to store there.
68972
68973 2006-07-29  Bruno Haible  <bruno@clisp.org>
68974
68975         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68976         relevant, look for configure.ac there, not in the current directory.
68977         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68978
68979 2006-07-29  Bruno Haible  <bruno@clisp.org>
68980
68981         * gnulib-tool (SORT): New variable.
68982         (func_usage): Undocument --assume-autoconf option.
68983         Remove --assume-autoconf option handling.
68984         (autoconf_minversion): Determine from the contents of configure.ac.
68985         (func_import): Remove autoconf_minversion handling.
68986         Suggested by Eric Blake.
68987
68988 2006-07-29  Bruno Haible  <bruno@clisp.org>
68989
68990         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68991
68992 2006-07-29  Bruno Haible  <bruno@clisp.org>
68993
68994         * config/srclist.txt (*setenv.[ch]): Remove rules.
68995
68996 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68997
68998         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68999
69000 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69001
69002         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69003         arpa/inet.h.
69004
69005 2006-07-28  Simon Josefsson  <jas@extundo.com>
69006
69007         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69008         * modules/inet_pton (Depends-on): Likewise.
69009
69010 2006-07-28  Simon Josefsson  <jas@extundo.com>
69011
69012         * m4/netinet_in_h.m4: New file.
69013
69014 2006-07-28  Simon Josefsson  <jas@extundo.com>
69015
69016         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69017         #include's.
69018
69019 2006-07-28  Simon Josefsson  <jas@extundo.com>
69020
69021         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69022         #include's.
69023
69024 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69025
69026         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69027         setgid on directories only if they set these bits.
69028         * lib/modechange.h: Remove obsolete comment about masks.
69029
69030 2006-07-28  Eric Blake  <ebb9@byu.net>
69031
69032         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69033         macro expansion.
69034
69035 2006-07-28  Bruno Haible  <bruno@clisp.org>
69036
69037         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69038
69039 2006-07-28  Bruno Haible  <bruno@clisp.org>
69040
69041         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69042
69043 2006-07-28  Bruno Haible  <bruno@clisp.org>
69044
69045         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69046         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69047         Define fallbacks.
69048         Avoids link error on FreeBSD 4.x.
69049         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69050
69051         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69052         encoding.
69053         * lib/mbswidth.c (iswcntrl): Likewise.
69054
69055 2006-07-27  Bruno Haible  <bruno@clisp.org>
69056
69057         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69058         test.
69059
69060 2006-07-27  Bruno Haible  <bruno@clisp.org>
69061
69062         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69063         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69064         defined.
69065
69066 2006-07-26  Eric Blake  <ebb9@byu.net>
69067
69068         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69069
69070 2006-07-26  Eric Blake  <ebb9@byu.net>
69071
69072         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69073         like mingw that lack mkstemp.
69074         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69075         avoid compilation warning on mingw.
69076
69077 2006-07-26  Bruno Haible  <bruno@clisp.org>
69078
69079         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69080         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69081         INT_FAST*_MIN, INTPTR_MIN.
69082
69083 2006-07-25  Bruno Haible  <bruno@clisp.org>
69084
69085         * modules/version-etc (Depends-on): Add stdarg.
69086
69087 2006-07-25  Bruno Haible  <bruno@clisp.org>
69088
69089         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69090         complex commands.
69091
69092 2006-07-25  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69095         defined in <stdarg.h> or config.h.
69096
69097 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69100         (gl_STDIO_SAFER): Remove.
69101
69102 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * MODULES.html.sh (File stream based Input/Output):
69105         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69106         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69107         * modules/fopen-safer, modules/tmpfile-safer: New files.
69108         * modules/stdio-safer: Remove.
69109
69110 2006-07-24  Bruno Haible  <bruno@clisp.org>
69111
69112         * modules/tmpdir: New file.
69113         * MODULES.html.sh (File system functions): Add it.
69114
69115 2006-07-24  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69118         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69119
69120 2006-07-24  Bruno Haible  <bruno@clisp.org>
69121
69122         * modules/clean-temp: New file.
69123
69124 2006-07-24  Bruno Haible  <bruno@clisp.org>
69125
69126         * m4/tmpdir.m4: New file, from GNU gettext.
69127
69128 2006-07-24  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/tmpdir.h: New file, from GNU gettext.
69131         * lib/tmpdir.c: New file, from GNU gettext.
69132
69133 2006-07-24  Bruno Haible  <bruno@clisp.org>
69134
69135         * lib/clean-temp.h: New file, from GNU gettext.
69136         * lib/clean-temp.c: New file, from GNU gettext.
69137
69138 2006-07-23  Eric Blake  <ebb9@byu.net>
69139
69140         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69141         (Depends-on): Add binary-io.
69142
69143 2006-07-23  Eric Blake  <ebb9@byu.net>
69144
69145         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69146
69147 2006-07-23  Eric Blake  <ebb9@byu.net>
69148
69149         * lib/tmpfile-safer.c: New file.
69150         * lib/stdio-safer.h (fopen_safer): Add prototype.
69151         * lib/stdio--.h (tmpfile): Make safer.
69152
69153 2006-07-23  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69156         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69157         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69158         gl_linked_remove_at): Use it.
69159
69160 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69161         and Simon Josefsson <jas@extundo.com>
69162
69163         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69164
69165         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69166
69167 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * modules/close-stream: New file.
69170         * modules/closeout (Description): Make it clear that it exits
69171         with a diagnostic on error.
69172         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69173         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69174
69175 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * m4/close-stream.m4: New file.
69178
69179 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         * lib/close-stream.c, lib/close-stream.h: New files.
69182
69183 2006-07-22  Bruno Haible  <bruno@clisp.org>
69184
69185         Merge from GNU gettext 0.15.
69186
69187         2006-05-01  Bruno Haible  <bruno@clisp.org>
69188
69189                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69190
69191         2006-07-22  Bruno Haible  <bruno@clisp.org>
69192
69193                 * modules/javaversion: New file.
69194                 * MODULES.html.sh (Java): Add javaversion.
69195
69196         2006-03-12  Bruno Haible  <bruno@clisp.org>
69197
69198                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69199
69200         2005-12-04  Bruno Haible  <bruno@clisp.org>
69201
69202                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69203                 (untested).
69204
69205         2006-06-21  Bruno Haible  <bruno@clisp.org>
69206
69207                 Avoid warnings from recent versions of mcs.
69208                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69209                 -o, -L, -r any more. Use options documented since mcs-1.0
69210                 instead. Similarly for -g.
69211
69212         2005-12-04  Bruno Haible  <bruno@clisp.org>
69213
69214                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69215                 .resources, not .resource.
69216
69217         2005-07-09  Bruno Haible  <bruno@clisp.org>
69218
69219                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69220                 add a .dll suffix.
69221                 Reported by Mark Junker <mjscod@gmx.de>.
69222
69223         2006-07-22  Bruno Haible  <bruno@clisp.org>
69224
69225                 * modules/gettext: Upgrade to gettext-0.15.
69226                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69227                 m4/visibility.m4.
69228                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69229
69230 2006-07-22  Bruno Haible  <bruno@clisp.org>
69231
69232         Merge from GNU gettext 0.15.
69233
69234         2006-03-25  Bruno Haible  <bruno@clisp.org>
69235
69236                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69237
69238         2006-07-21  Bruno Haible  <bruno@clisp.org>
69239
69240                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69241                 "1.1".
69242
69243         2006-05-09  Bruno Haible  <bruno@clisp.org>
69244
69245                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69246                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69247                 for the conftestver execution.
69248
69249         2006-05-01  Bruno Haible  <bruno@clisp.org>
69250
69251                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69252                 optional target-version argument. Verify that the compiler
69253                 groks source of the specified source-version, or add -source
69254                 option as necessary. Verify that the compiler produces
69255                 bytecode in the specified target-version, or add -target and
69256                 -source options as necessary. Make the result of the test
69257                 available as variable CONF_JAVAC. Also log error output in
69258                 config.log.
69259
69260         2006-03-11  Bruno Haible  <bruno@clisp.org>
69261
69262                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69263
69264         2006-05-09  Bruno Haible  <bruno@clisp.org>
69265
69266                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69267                 CLASSPATH_SEPARATOR to a semicolon.
69268
69269         2006-03-12  Bruno Haible  <bruno@clisp.org>
69270
69271                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69272                 available as variable CONF_JAVA, for subsequent autoconf
69273                 tests. Also log error output in config.log.
69274
69275         2006-07-19  Bruno Haible  <bruno@clisp.org>
69276
69277                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69278                 that getline works on glibc2 systems. Needed to avoid trouble
69279                 in relocatable.c.
69280                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69281
69282         2005-12-04  Bruno Haible  <bruno@clisp.org>
69283
69284                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69285                 launcher (untested).
69286
69287         2005-12-04  Bruno Haible  <bruno@clisp.org>
69288
69289                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69290
69291         2006-07-22  Bruno Haible  <bruno@clisp.org>
69292
69293                 * gettext.m4: Update from GNU gettext-0.15.
69294                 * nls.m4: Likewise.
69295                 * po.m4: Likewise.
69296                 * inttypes-pri.m4: Likewise.
69297                 * inttypes-h.m4: Renamed from inttypes.m4.
69298                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69299
69300 2006-07-22  Bruno Haible  <bruno@clisp.org>
69301
69302         Merge from GNU gettext 0.15.
69303
69304         2005-07-05  Bruno Haible  <bruno@clisp.org>
69305
69306                 * printf-args.c (printf_fetchargs): Work around broken
69307                 definition of wint_t on mingw.
69308
69309         2005-02-12  Bruno Haible  <bruno@clisp.org>
69310
69311                 * xallocsa.h: Add extern "C" for C++.
69312
69313         2006-05-17  Bruno Haible  <bruno@clisp.org>
69314
69315                 Cygwin portability.
69316                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69317
69318         2006-04-30  Bruno Haible  <bruno@clisp.org>
69319
69320                 * progreloc.c: Include <mach-o/dyld.h> if available.
69321                 (find_executable): Use _NSGetExecutablePath when possible.
69322
69323         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69324
69325                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69326                 function.
69327
69328         2005-12-29  Bruno Haible  <bruno@clisp.org>
69329
69330                 * progreloc.c (set_program_name_and_installdir): Fix
69331                 compilation error.
69332
69333         2005-12-04  Bruno Haible  <bruno@clisp.org>
69334
69335                 Cygwin portability.
69336                 * progreloc.c: Include <windows.h> also on Cygwin.
69337                 (find_executable): Add support for Cygwin.
69338                 (set_program_name_and_installdir): Handle also platforms with
69339                 nonempty EXEEXT.
69340
69341         2006-07-11  Bruno Haible  <bruno@clisp.org>
69342
69343                 * javacomp.c: Fix a comment.
69344                 Reported by Jim Meyering.
69345
69346         2006-04-30  Bruno Haible  <bruno@clisp.org>
69347
69348                 * javacomp.h (compile_java_class): Add source_version,
69349                 target_version arguments.
69350                 * javacomp.c: Rewritten to choose only a compiler that
69351                 respects the specified source_version and target_version.
69352
69353         2006-06-27  Bruno Haible  <bruno@clisp.org>
69354
69355                 Assume correct S_ISDIR macro.
69356                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69357
69358         2006-07-22  Bruno Haible  <bruno@clisp.org>
69359
69360                 * javaversion.h: New file, from GNU gettext.
69361                 * javaversion.c: New file, from GNU gettext.
69362                 * javaversion.java: New file, from GNU gettext.
69363                 * javaversion.class: New file, from GNU gettext.
69364
69365         2006-05-17  Bruno Haible  <bruno@clisp.org>
69366
69367                 Cygwin portability.
69368                 * javaexec.c (execute_java_class): Test for jview program
69369                 also on Cygwin.
69370
69371         2006-04-09  Bruno Haible  <bruno@clisp.org>
69372
69373                 * fatal-signal.c: Don't include string.h.
69374                 (at_fatal_signal): Use a copying loop instead of memcpy.
69375
69376         2005-12-04  Bruno Haible  <bruno@clisp.org>
69377
69378                 * csharpexec.c: Add support for 'clix' launcher (untested).
69379                 (execute_csharp_using_sscli): New function.
69380                 (execute_csharp_program): Call it.
69381
69382         2006-06-21  Bruno Haible  <bruno@clisp.org>
69383
69384                 Avoid warnings from recent versions of mcs.
69385                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69386                 -o, -L, -r any more. Use options documented since mcs-1.0
69387                 instead. Similarly for -g.
69388
69389         2005-07-09  Bruno Haible  <bruno@clisp.org>
69390
69391                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69392                 add a .dll suffix.
69393                 Reported by Mark Junker <mjscod@gmx.de>.
69394
69395         2006-06-17  Bruno Haible  <bruno@clisp.org>
69396
69397                 * config.charset: Update for NetBSD 3.0.
69398
69399         2006-05-17  Bruno Haible  <bruno@clisp.org>
69400
69401                 Cygwin portability.
69402                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69403
69404         2006-05-16  Bruno Haible  <bruno@clisp.org>
69405
69406                 * localcharset.c [CYGWIN]: Include <windows.h>.
69407                 (get_charset_aliases): For Cygwin, return the same CPxxx
69408                 aliases list as under WIN32.
69409                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69410                 the environment variables. Fall back to GetACP().
69411
69412         2006-04-05  Bruno Haible  <bruno@clisp.org>
69413
69414                 * config.charset: Update Juan Manuel Guerrero's address.
69415
69416         2005-02-12  Bruno Haible  <bruno@clisp.org>
69417
69418                 * allocsa.h: Add extern "C" for C++.
69419
69420         2005-02-10  Bruno Haible  <bruno@clisp.org>
69421
69422                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69423                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69424
69425         2006-07-22  Bruno Haible  <bruno@clisp.org>
69426
69427                 * gettext.h: Update to GNU gettext-0.15.
69428
69429 2006-07-22  Bruno Haible  <bruno@clisp.org>
69430
69431         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69432         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69433         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69434
69435 2006-07-21  Eric Blake  <ebb9@byu.net>
69436
69437         * modules/stdlib-safer: New file.
69438         * MODULES.html.sh (File stream based Input/Output): Add
69439         stdlib-safer.
69440
69441 2006-07-21  Eric Blake  <ebb9@byu.net>
69442
69443         * lib/stdlib-safer.h: New file from coreutils, required by
69444         stdlib--.h.
69445
69446 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69447
69448         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69449
69450 2006-07-20  Bruno Haible  <bruno@clisp.org>
69451
69452         * gnulib-tool: Recognize new option --assume-autoconf.
69453         (autoconf_minversion): New variable.
69454         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69455
69456 2006-07-20  Bruno Haible  <bruno@clisp.org>
69457
69458         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69459
69460 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69461
69462         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69463         Reindent and repaginate.
69464
69465 2006-07-19  Derek Price  <derek@ximbiot.com>
69466
69467         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69468         Correct grammar.
69469
69470 2006-07-17  Bruno Haible  <bruno@clisp.org>
69471
69472         * modules/list: New file.
69473         * modules/array-list: New file.
69474         * modules/carray-list, modules/carray-list-tests: New files.
69475         * modules/linked-list, modules/linked-list-tests: New files.
69476         * modules/avltree-list, modules/avltree-list-tests: New files.
69477         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69478         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69479         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69480         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69481         * modules/oset: New file.
69482         * modules/array-oset: New file.
69483         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69484         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69485         * tests/test-carray_list.c: New file.
69486         * tests/test-linked_list.c: New file.
69487         * tests/test-avltree_list.c: New file.
69488         * tests/test-rbtree_list.c: New file.
69489         * tests/test-linkedhash_list.c: New file.
69490         * tests/test-avltreehash_list.c: New file.
69491         * tests/test-rbtreehash_list.c: New file.
69492         * tests/test-avltree_oset.c: New file.
69493         * tests/test-rbtree_oset.c: New file.
69494         * MODULES.html.sh (Container data structures): New section.
69495
69496 2006-07-17  Bruno Haible  <bruno@clisp.org>
69497
69498         * m4/gl_list.m4: New file.
69499
69500 2006-07-17  Bruno Haible  <bruno@clisp.org>
69501
69502         * lib/gl_list.h: New file.
69503         * lib/gl_list.c: New file.
69504         * lib/gl_array_list.h: New file.
69505         * lib/gl_array_list.c: New file.
69506         * lib/gl_carray_list.h: New file.
69507         * lib/gl_carray_list.c: New file.
69508         * lib/gl_linked_list.h: New file.
69509         * lib/gl_linked_list.c: New file.
69510         * lib/gl_anylinked_list1.h: New file.
69511         * lib/gl_anylinked_list2.h: New file.
69512         * lib/gl_avltree_list.h: New file.
69513         * lib/gl_avltree_list.c: New file.
69514         * lib/gl_anyavltree_list1.h: New file.
69515         * lib/gl_anyavltree_list2.h: New file.
69516         * lib/gl_rbtree_list.h: New file.
69517         * lib/gl_rbtree_list.c: New file.
69518         * lib/gl_anyrbtree_list1.h: New file.
69519         * lib/gl_anyrbtree_list2.h: New file.
69520         * lib/gl_anytree_list1.h: New file.
69521         * lib/gl_anytree_list2.h: New file.
69522         * lib/gl_linkedhash_list.h: New file.
69523         * lib/gl_linkedhash_list.c: New file.
69524         * lib/gl_anyhash_list1.h: New file.
69525         * lib/gl_anyhash_list2.h: New file.
69526         * lib/gl_avltreehash_list.h: New file.
69527         * lib/gl_avltreehash_list.c: New file.
69528         * lib/gl_rbtreehash_list.h: New file.
69529         * lib/gl_rbtreehash_list.c: New file.
69530         * lib/gl_anytreehash_list1.h: New file.
69531         * lib/gl_anytreehash_list2.h: New file.
69532
69533         * lib/gl_oset.h: New file.
69534         * lib/gl_oset.c: New file.
69535         * lib/gl_array_oset.h: New file.
69536         * lib/gl_array_oset.c: New file.
69537         * lib/gl_avltree_oset.h: New file.
69538         * lib/gl_avltree_oset.c: New file.
69539         * lib/gl_rbtree_oset.h: New file.
69540         * lib/gl_rbtree_oset.c: New file.
69541         * lib/gl_anytree_oset.h: New file.
69542
69543 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * m4/mkancesdirs.m4: New file.
69546         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69547         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69548         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69549         it.
69550
69551 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69554         * lib/mkancesdirs.h: New files.
69555         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69556         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69557         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69558         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69559         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69560         callers changed.  Revamp internals significantly, by not
69561         attempting to create directories that are temporarily more
69562         permissive than the final results.  Do not attempt to use
69563         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69564         This removes some race conditions, fixes some bugs, and simplifies
69565         things.  Use new dirchownmod function to do owner and mode changes.
69566         * lib/mkdir-p.h: Likewise.
69567         * lib/modechange.c (octal_to_mode): New function.
69568         (struct mode_change): New member mentioned.
69569         (make_node_op_equals): New arg mentioned.  All callers changed.
69570         (mode_compile): Keep track of which mode bits the user has explicitly
69571         mentioned.
69572         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69573         New arg PMODE_BITS, to keep track of which mode bits the user
69574         mentioned; it treats S_ISUID and S_ISGID speciall.
69575         All callers changed.
69576         * lib/modechange.h: Likewise.
69577
69578 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         * MODULES.html.sh: Add mkancestors.
69581         * modules/mkancesdirs: New module.
69582         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69583         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69584         The chdir-safer and afs files are now orphans; I'll remove them
69585         unless someone speaks up.
69586         Add lib/dirchownmod.c, lib/dirchownmod.h.
69587         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69588         Add lchown, mkancesdirs.
69589         (Maintainer): Add self.
69590
69591 2006-07-15  Karl Berry  <karl@gnu.org>
69592
69593         * gnulib-tool: help message wording/arrangement.
69594
69595 2006-07-14  Simon Josefsson  <jas@extundo.com>
69596
69597         * doc/gnulib.texi (Libtool and Windows): New section.
69598
69599 2006-07-12  Simon Josefsson  <jas@extundo.com>
69600
69601         * modules/gendocs (License): Fix license, approved by Karl.
69602
69603 2006-07-12  Eric Blake  <ebb9@byu.net>
69604
69605         * MODULES.html.sh: Add gendocs.
69606
69607 2006-07-11  Eric Blake  <ebb9@byu.net>
69608
69609         * modules/fdl: New module, to install doc/fdl.texi.
69610         * MODULES.html.sh: Add new section for documentation modules.
69611         * gnulib-tool: Avoid space-tab.
69612         (--doc-base): New option, to manage files from doc.
69613
69614 2006-07-11  Eric Blake  <ebb9@byu.net>
69615
69616         * m4/absolute-header.m4: Fix comments to match recent change.
69617
69618 2006-07-11  Eric Blake  <ebb9@byu.net>
69619
69620         * gnulib-tool: List --doc-base before --tests-base.
69621
69622 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69623
69624         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69625
69626 2006-07-11  Bruno Haible  <bruno@clisp.org>
69627
69628         * README: Mention where to put documentation.
69629
69630 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69631
69632         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69633
69634 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69637         to stdint.m4.
69638
69639 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69640
69641         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69642         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69643         "no/such/file/stdint.h" when there is no such file, so that
69644         the resulting C code can be parsed by dodgy compilers.
69645         Problems reported by Bob Proulx.
69646
69647 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69648
69649         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69650         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69651         macros into the GNU _D_EXACT_NAMLEN.
69652         * lib/savedir.c:  Likewise.
69653         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69654
69655 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69656         and Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69659         * m4/savedir.m4:
69660         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69661         macros into the GNU _D_EXACT_NAMLEN.
69662
69663 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69666         around the absolute name, to work around a problem with the HP-UX
69667         11.23 native C compiler, reported by Bob Proulx.
69668
69669 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * doc/maintain.texi, make-stds.texi: Sync from
69672         <http://savannah.gnu.org/projects/gnustandards>.
69673
69674 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69677
69678 2006-07-09  Jim Meyering  <jim@meyering.net>
69679
69680         * m4/glob.m4: Remove a doubled word in a comment.
69681
69682 2006-07-09  Jim Meyering  <jim@meyering.net>
69683
69684         * lib/argp-pv.c: Remove a doubled word in a comment.
69685         * lib/check-version.c (check_version): Likewise.
69686         * lib/javacomp.c (compile_java_class): Likewise.
69687
69688 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69691         for the benefit of people using Autoconf 2.60.  If you want to
69692         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69693         (or m4/onceonly.m4, if pre-2.57) manually.
69694
69695 2006-07-08  Jim Meyering  <jim@meyering.net>
69696
69697         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69698         comment.
69699         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69700         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69701         comment.
69702
69703 2006-07-08  Jim Meyering  <jim@meyering.net>
69704
69705         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69706
69707 2006-07-07  Simon Josefsson  <jas@extundo.com>
69708
69709         * tests/test-crc.c: Change expected crc value, the test vector
69710         were probably computed using the old broken crc.c?
69711
69712 2006-07-06  Simon Josefsson  <jas@extundo.com>
69713
69714         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69715         now the canonical place for the M4 file).
69716
69717         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69718         from the sys_socket dependency now.
69719
69720         * modules/inet_pton (Files): Ditto.
69721
69722         * modules/inet_ntop (Files): Ditto.
69723
69724 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69725
69726         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69727         not gl_PREREQ_GETUSERSHELL.
69728
69729 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69730
69731         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69732         with only one argument, for Autoconf 2.60.
69733         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69734         expand to nothing, so add a shell command to avoid syntax error.
69735         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69736
69737 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69738
69739         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69740
69741 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69742
69743         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69744         no longer needed.  Check for isblank decl.
69745         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69746         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69747         of existence.
69748
69749 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * lib/getloadavg.c: Use __VMS, not VMS.
69752         * lib/getopt.c: Likewise.
69753         * lib/getpagesize.h: Likewise.
69754         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69755         and probably does not work.
69756
69757 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         * lib/.cppi-disable: Add wcwidth.
69760         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69761         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69762         (ISGRAPH): Remove.  All uses changed to isgraph.
69763         (FOLD) [!defined _LIBC]: Remove special case.
69764         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69765         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69766         HAVE_ISBLANK.
69767         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69768         case.
69769
69770 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69771
69772         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69773         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69774         brackets.  Other minor changes to suppress some compiler
69775         warnings.
69776
69777 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69778         and Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69781         of invoking obsolescent AC_HEADER_DIRENT macro.
69782         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69783         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69785         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69786         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69787         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69788         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69789         * m4/readdir.m4: Remove; no longer needed.
69790
69791 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69792         and Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69795         Don't worry about this obsolete case any more.
69796         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69797         directories.
69798         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69799         worry about this obsolete case any more.
69800         * lib/fts.c: Likewise.
69801         * lib/getcwd.c: Likewise.
69802         * lib/glob.h: Likewise.
69803         * lib/savedir.c: Likewise.
69804
69805 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69806
69807         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69808         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69810         needed.
69811         All uses removed.
69812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69813         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69814         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69815         needed.
69816         * m4/getdate.m4 (gl_GETDATE): Likewise.
69817         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69818         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69819         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69820         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69821         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69823         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69824         needed.
69825
69826 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * lib/memcasecmp.c: Include <limits.h>.
69829         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69830         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69831         Don't assume isdigit succeeds only on '0' through '9'.
69832
69833 2006-07-05  Eric Blake  <ebb9@byu.net>
69834
69835         * modules/getaddrinfo (Depends-on): Add snprintf.
69836
69837 2006-07-05  Eric Blake  <ebb9@byu.net>
69838
69839         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69840         to avoid 'header present but could not be compiled' on cygwin.
69841
69842 2006-07-05  Eric Blake  <ebb9@byu.net>
69843
69844         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69845         missing from netdb.h.
69846         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69847
69848 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69849
69850         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69851         no longer needed.
69852         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69853         * m4/getdate.m4 (gl_GETDATE): Likewise.
69854         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69855         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69856         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69857         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69859
69860 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69861
69862         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69863         All uses of is_space replaced by isspace.
69864         * lib/exit.h: Don't talk about STDC_HEADERS.
69865         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69866         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69867         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69868         replaced by isprint etc.
69869         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69870         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69871         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69872         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69873         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69874         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69875
69876 2006-07-05  Bruno Haible  <bruno@clisp.org>
69877
69878         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69879         the function exists, before testing against AIX.
69880         Reported by Martin Lambers <marlam@marlam.de>.
69881
69882 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69885         From Mark D. Baushke.
69886
69887 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69890         to the absolute name, not just one, to bypass Sun C 5.8's
69891         "warning: #include of /usr/include/... may be non-portable".
69892
69893 2006-07-04  Eric Blake  <ebb9@byu.net>
69894
69895         * modules/dirname-tests: New test module.
69896         * tests/test-dirname.c: New file, replacing dirname.c
69897         TEST_DIRNAME section that was recently deleted.
69898
69899 2006-07-04  Bruno Haible  <bruno@clisp.org>
69900
69901         Assume ANSI C header files and <ctype.h> functions.
69902         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69903         (mbsnwidth): Use isprint, iscntrl instead.
69904
69905 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         Merge from coreutils.
69908         * MODULES.html.sh: Add xstrtold.
69909         * modules/xstrtold: New file.
69910         * modules/cycle-check (Files): Add lib/same-inode.h.
69911         * modules/dirname (Files): Add m4/double-slash-root.m4.
69912         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69913         * modules/mkdir-p (Files): Add lib/same-inode.h.
69914         * modules/same (Files): Add lib/same-inode.h.
69915
69916 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69919         This is to keep the terminology clean; POSIX talks about
69920         "absolute pathnames", not "full pathnames", but the GNU
69921         Coding Standards say to use "path" for something else;
69922         so use "absolute" to keep both sides happy.
69923         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69924         Set gl_absolute_header, not gl_full_header_path.
69925         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69926         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69927         All uses changed.
69928
69929         Merge from coreutils.
69930
69931         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69932
69933         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69934         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69935         want to require the building of c-strtod.o.
69936         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69937         needs -lm directly.
69938         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69939
69940         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69941
69942         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69943         --as-needed option if available.  Problem reported by Albert Chin in
69944         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69945         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69946         cc merely issues a bunch of annoying warnings for --as-needed
69947         (this problem was reported by Bob Proulx).  Also, try linking with
69948         -lm to detect a bug in binutils 2.16 (this problem was reported
69949         by Ralf Wildenhues).
69950
69951         2006-06-18  Jim Meyering  <jim@meyering.net>
69952
69953         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69954         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69955         macro.
69956         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69957         also check for glibc-2.4's abort-inducing bug.
69958
69959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69960         Low-probability clean-up should be to use rmdir to get rid of
69961         the just-created directory, not unlink.
69962
69963         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69964         configure fail, and request a bug report to inform us about it.
69965         Add a comment that, barring reports to the contrary, in 2007 we'll
69966         assume ftruncate is universally available.
69967
69968         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69971
69972         2006-03-12  Jim Meyering  <jim@meyering.net>
69973
69974         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69975         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69976         * m4/same.m4 (gl_SAME): Likewise.
69977         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69978
69979         2006-03-11  Eric Blake  <ebb9@byu.net>
69980
69981         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69982         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69983         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69984         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69985
69986 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69989         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69990         reported by Mark D. Baushke, one in
69991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69992
69993         Merge from coreutils.
69994
69995         * lib/.cppi-disable: Add stdint_.h.
69996         * lib/.cvsignore: Add stdint.h.
69997
69998         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70001         both double and long double versions.
70002         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70003         * lib/xstrtold.c: New file.
70004         * lib/xstrtod.h (xstrtold): New decl.
70005
70006         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70007
70008         * lib/filemode.c (setst): Remove.
70009         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70010         (arguably) clearer, and the generated code is a bit smaller on my
70011         Debian GNU/Linux stable x86 host.
70012
70013         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70016         Assume that filemode.h includes sys/types.h and sys/stat.h.
70017         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70018         (ftypelet): Reorder to put common cases first, for efficiency.
70019         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70020         to do 'M'.
70021         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70022         of 10, for compatibility with FreeBSD.  All callers changed.
70023         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70024         types that can't be deduced solely from st_mode.  First arg is now a
70025         const pointer.
70026         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70027         (strmode): Renamed from mode_string.
70028         (filemodestring): New decl.
70029         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70030         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70031         needed.
70032         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70033
70034         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70037         fsusage.h now does that.  Include fsusage.h first, to test interface.
70038         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70039         at most one method (the old code could have generated decls that
70040         didn't conform to C89, not that this was ever exercised).
70041         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70042
70043         2006-03-19  Jim Meyering  <jim@meyering.net>
70044
70045         Work even in a chroot where d_ino values for entries in "/"
70046         don't match the stat.st_ino values for the same names.
70047         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70048         number, iterate through all entries again, using lstat instead.
70049         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70050         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70051
70052         * lib/getcwd.c (__getcwd): Clarify a comment.
70053         Use memcpy in place of a call to strcpy.
70054
70055         2006-03-12  Jim Meyering  <jim@meyering.net>
70056
70057         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70058         matches that of the current directory (which we're about to chdir ".."
70059         out of), then save the dev-ino of the parent, instead.
70060
70061         * lib/same-inode.h (SAME_INODE): New file/macro.
70062         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70063         Include "same-inode.h", instead.
70064         * lib/same.c: Likewise.
70065         * lib/cycle-check.h: Include "same-inode.h".
70066         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70067         * lib/cycle-check.c (SAME_INODE): Remove definition.
70068         * lib/root-dev-ino.h: Include "same-inode.h".
70069
70070         2006-03-11  Eric Blake  <ebb9@byu.net>
70071
70072         * lib/same.c (same_name): s/base_name/last_component/
70073         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70074         * lib/filenamecat.c (file_name_concat): Likewise.
70075
70076         2006-03-11  Eric Blake  <ebb9@byu.net>,
70077                     Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70080         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70081         drive prefix.
70082         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70083         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70084         (last_component): New method.
70085         * lib/dirname.c (dir_len): Determine when drive letters need a
70086         subsequent slash.  Preserve // when it is special.
70087         (dir_name): Don't append dot when drive letter is absolute.
70088         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70089         * lib/basename.c (base_name): New semantics - malloc the result.
70090         Preserve // when it is special.  Preserve relative files that look
70091         like drive letters.
70092         (base_len): Preserve // when it is special.
70093         (last_component): New method, similar to old base_name semantics.
70094         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70095         base_name.  Strip redundant slashes from ///.
70096
70097 2006-07-03  Jim Meyering  <jim@meyering.net>
70098
70099         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70100         macro is used before the first cycle_check call.
70101
70102 2006-07-03  Eric Blake  <ebb9@byu.net>
70103
70104         * modules/dirname (Depends-on): Add xstrndup.
70105
70106 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70109         test cases, so that config.log is a bit easier to follow.
70110
70111 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70114         both are 64 bits, since this seems to be the tradition, and this
70115         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70116         we ever run into a host that prefers long long to long in this
70117         case, we'll need another configure-time test.  Problem reported by
70118         Jim Meyering.
70119
70120 2006-07-02  Eric Blake  <ebb9@byu.net>
70121
70122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70123
70124 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70125
70126         * modules/inttypes (Depends-on): No longer depends on stdint.
70127         * modules/stdint (Description): Say more about assumptions.
70128         Say that the fast types might differ.  Say macros are used.
70129         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70130         (Makefile.am): Revise list of substituted symbols to match
70131         new stdint.m4.
70132         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70133         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70134         * tests/test-stdint.c (verify_same_types)
70135         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70136         the code conforms to C99/C89.
70137         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70138         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70139
70140 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70143         but fix a bug, by requiring at least 64 bits.
70144         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70145         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70146         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70147         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70148
70149         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70150         changes.  Make 2.59 a prerequisite.  Check and substitute for
70151         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70152         inttypes.h.  Do not use special include files; just use the
70153         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70154         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70155         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70156         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70157         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70158         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70159         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70160         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70161         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70162         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70163         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70164         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70165         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70166         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70167         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70168         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70169         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70170         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70171         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70172         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70173         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70174         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70175         not check for things that C99 does not require, e.g., int8_t.  If
70176         a test isn't needed unless <stdint.h> isn't working, and is
70177         unlikely to be needed for any other reason, then don't do it
70178         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70179         size_t, since we assume C89 freestanding at least.  Do not check
70180         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70181         the right thing even if the types are not defined.  Instead use:
70182         (gl_STDINT_TYPE_PROPERTIES): New macro.
70183         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70184         testing whether <sys/types.h> clashes, as Autoconf does this for
70185         us now.  All uses removed.
70186         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70187         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70188         (gl_CHECK_TYPE_SAME):
70189         Remove; no longer needed.
70190         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70191         exists, since we'll return 0 anyway in that case.
70192         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70193
70194 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70195
70196         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70197         possible collision with system files.
70198         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70199         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70200         WCHAR_MIN and WCHAR_MAX in this case.
70201         (<stddef.h>): Do not include; no longer needed.
70202         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70203         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70204         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70205         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70206         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70207         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70208         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70209         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70210         !defined(__c99))]: Include in this case too, since it's harmless
70211         now.
70212         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70213         dangerous to do so.
70214         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70215         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70216         (_STDINT_MIN, _STDINT_MAX): New macros.
70217         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70218         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70219         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70220         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70221         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70222         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70223         macros, not typedefs; this simplifies things quite a bit.
70224         Use long int for all types narrower than int64_t.
70225         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70226         Define in terms of long long int or int64_t or long int,
70227         not int64_t or int32_t.  This saves some compile-time testing.
70228         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70229         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70230         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70231         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70232         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70233         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70234         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70235         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70236         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70237         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70238         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70239         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70240         undef any previous version and define our own version, for
70241         simplicity and consistency with the new macros for types.
70242         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70243         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70244         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70245         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70246         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70247         @WINT_T_SUFFIX@ to keep things simple here.
70248         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70249         Simplify by assuming typical 8/16/32/64 host, since we're
70250         already doing that elsewhere anyway.
70251         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70252         and assume long long int is 64 bits if available.  This
70253         speeds up 'configure'.
70254
70255 2006-07-01  Eric Blake  <ebb9@byu.net>
70256
70257         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70258         Reported by Andreas Buening.
70259
70260 2006-07-01  Eric Blake  <ebb9@byu.net>
70261
70262         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70263
70264 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70265
70266         * lib/getaddrinfo.c: fixed typo
70267
70268 2006-06-29  Jim Meyering  <jim@meyering.net>
70269
70270         * modules/strftime (Maintainer): Add my name, since with the
70271         FPRINTFTIME changes strftime.c has forked from glibc.
70272
70273 2006-06-29  Eric Blake  <ebb9@byu.net>
70274
70275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70276
70277 2006-06-29  Eric Blake  <ebb9@byu.net>
70278
70279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70280
70281 2006-06-29  Eric Blake  <ebb9@byu.net>
70282
70283         * lib/stat_.h: New file.
70284
70285 2006-06-29  Eric Blake  <ebb9@byu.net>
70286
70287         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70288         unused static function.
70289
70290 2006-06-29  Eric Blake  <ebb9@byu.net>
70291
70292         * doc/functions.texi (Function Portability): Document missing lstat
70293         on mingw.
70294
70295 2006-06-29  Eric Blake  <ebb9@byu.net>
70296
70297         * MODULES.html.sh: Add sys_stat.
70298         * modules/sys_stat: New module.
70299         * modules/mkstemp (Depends-on): Add sys_stat.
70300
70301 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70302
70303         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70304
70305 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70306
70307         * m4/c-bs-a.m4: Removed.
70308
70309 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70310
70311         * lib/strftime.c: Assume strftime() exists.
70312
70313 2006-06-29  Derek Price  <derek@ximbiot.com>
70314
70315         * modules/c-bs-a: Removed - \a is C89.
70316         * MODULES.html.sh: Remove c-bs-a.
70317
70318 2006-06-29  Bruno Haible  <bruno@clisp.org>
70319
70320         * modules/wcwidth (License): Change to LGPL.
70321
70322 2006-06-28  Simon Josefsson  <jas@extundo.com>
70323
70324         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70325         on _WIN32.
70326
70327         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70328         getnameinfo.
70329
70330 2006-06-28  Simon Josefsson  <jas@extundo.com>
70331
70332         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70333
70334 2006-06-28  Simon Josefsson  <jas@extundo.com>
70335
70336         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70337         functions there.  It will succeed on Windows XP, but on Windows
70338         2000 and (presumably) earlier, it will fail, and use the internal
70339         re-implementation.
70340         (use_win32_p): New function.
70341         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70342         Support AI_NUMERICSERV to disable getservbyname.
70343         (getnameinfo): New function, only supports
70344         NI_NUMERICHOST|NI_NUMERICSERV for now.
70345
70346         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70347         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70348         getnameinfo.
70349
70350 2006-06-28  Eric Blake  <ebb9@byu.net>
70351
70352         * modules/wcwidth: New file.
70353         * modules/mbchar (Depends-on): Add wcwidth.
70354         * modules/mbswidth (Depends-on): Add wcwidth.
70355         * MODULES.html.sh: Add wcwidth.
70356
70357 2006-06-28  Eric Blake  <ebb9@byu.net>
70358
70359         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70361
70362 2006-06-28  Eric Blake  <ebb9@byu.net>
70363
70364         * lib/xvasprintf.h: Fix comments.
70365
70366 2006-06-28  Eric Blake  <ebb9@byu.net>
70367
70368         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70369         * lib/mbswidth.c (wcwidth): Move from here...
70370         * lib/wcwidth.h: ...to this new file.
70371
70372 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70373
70374         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70375
70376         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70377         it's obsolete.
70378         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70379
70380 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70381
70382         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70383         Autoconf 2.60 says this stuff was obsolete.
70384
70385 2006-06-28  Bruno Haible  <bruno@clisp.org>
70386
70387         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70388
70389 2006-06-28  Bruno Haible  <bruno@clisp.org>
70390
70391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70392         gt_TYPE_WCHAR_T.
70393
70394 2006-06-28  Bruno Haible  <bruno@clisp.org>
70395
70396         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70397         declaration for wcwidth.
70398         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70399
70400 2006-06-28  Bruno Haible  <bruno@clisp.org>
70401
70402         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70403         (mkdir): Define using _mkdir.
70404
70405 2006-06-28  Bruno Haible  <bruno@clisp.org>
70406
70407         * lib/getaddrinfo.h: Fix POSIX URL.
70408         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70409         _WIN32.
70410         (use_win32_p): Make static.
70411         (getaddrinfo): Reject service name if it is empty or does not consist
70412         solely of decimal digits, or if its value is > 65535.
70413         (getnameinfo): Remove useless casts.
70414
70415 2006-06-27  Simon Josefsson  <jas@extundo.com>
70416
70417         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70418         Eggert and Martin Lambers.
70419
70420 2006-06-27  Simon Josefsson  <jas@extundo.com>
70421
70422         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70423         Eggert and Martin Lambers.
70424
70425 2006-06-27  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70428         result to 0, not to empty.
70429         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70430
70431 2006-06-27  Bruno Haible  <bruno@clisp.org>
70432
70433         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70434
70435 2006-06-26  Simon Josefsson  <jas@extundo.com>
70436
70437         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70438         present.
70439
70440 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70441
70442         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70443         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70445
70446 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70447
70448         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70449
70450 2006-06-26  Bruno Haible  <bruno@clisp.org>
70451
70452         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70453
70454 2006-06-26  Bruno Haible  <bruno@clisp.org>
70455
70456         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70457
70458 2006-06-26  Bruno Haible  <bruno@clisp.org>
70459
70460         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70461         SGI C compiler in pre-C99 mode.
70462         Suggested by Mark D. Baushke and Larry Jones.
70463
70464 2006-06-26  Bruno Haible  <bruno@clisp.org>
70465
70466         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70467         WCHAR_MAX.
70468         Reported by Mark D. Baushke and Larry Jones.
70469
70470 2006-06-26  Bruno Haible  <bruno@clisp.org>
70471
70472         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70473         in pre-C99 mode.
70474         Suggested by Mark D. Baushke and Larry Jones.
70475
70476 2006-06-23  Simon Josefsson  <jas@extundo.com>
70477             Bruno Haible  <bruno@clisp.org>
70478
70479         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70480         Emit mostlyclean-local rule.
70481         (func_emit_tests_Makefile_am): Likewise.
70482         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70483
70484 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70485
70486         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70487
70488 2006-06-23  Bruno Haible  <bruno@clisp.org>
70489
70490         * tests/test-stdint.c: Update to match ISO C 99 Technical
70491         Corrigendum 1.
70492
70493 2006-06-23  Bruno Haible  <bruno@clisp.org>
70494
70495         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70496
70497 2006-06-23  Bruno Haible  <bruno@clisp.org>
70498
70499         * lib/stdint_.h: Treat IRIX like OpenBSD.
70500
70501 2006-06-23  Bruno Haible  <bruno@clisp.org>
70502
70503         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70504         ISO C 99 Technical Corrigendum 1.
70505
70506 2006-06-22  Simon Josefsson  <jas@extundo.com>
70507
70508         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70509         MinGW.
70510
70511 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70514         needed.  Some compiler complained about some of them.  Problem reported
70515         by Larry Jones in
70516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70517
70518 2006-06-21  Simon Josefsson  <jas@extundo.com>
70519
70520         * tests/test-getaddrinfo.c: New file.
70521
70522         * modules/getaddrinfo-tests: New file.
70523
70524         * MODULES.html.sh: Add inet_pton.
70525
70526         * modules/inet_pton: New file.
70527
70528 2006-06-21  Simon Josefsson  <jas@extundo.com>
70529
70530         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70531         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70532         of using the (limited) gnulib implementation on Windows XP.
70533
70534         * m4/inet_pton.m4: New file.
70535
70536 2006-06-21  Simon Josefsson  <jas@extundo.com>
70537
70538         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70539         variable.
70540
70541         * lib/socket_.h: Don't define WINVER.
70542
70543         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70544         slightly modified to work in gnulib.
70545
70546 2006-06-21  Simon Josefsson  <jas@extundo.com>
70547
70548         * doc/gnulib.texi (Windows sockets): Add.
70549
70550 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * lib/read-file.c (fread_file): Start with buffer allocation of
70553         0 bytes rather than 1 byte; this simplifies the code.
70554         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70555         code to free buffer and save/restore errno.
70556         (internal_read_file): Remove unused local.
70557
70558 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70561         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70562         Problem reported by Denis Excoffier in
70563         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70564
70565 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70566
70567         * modules/sys_socket, modules/socklen: Include sys/types since
70568         FreeBSD 4.x's sys/socket.h needs it.
70569
70570 2006-06-19  Simon Josefsson  <jas@extundo.com>
70571
70572         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70573
70574 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70577
70578 2006-06-19  Bruno Haible  <bruno@clisp.org>
70579
70580         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70581         and FULL_PATH_INTTYPES_H in angle brackets.
70582         Reported by Mark D. Baushke <mdb@gnu.org>.
70583
70584 2006-06-17  Eric Blake  <ebb9@byu.net>
70585
70586         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70587         errno.
70588
70589 2006-06-17  Bruno Haible  <bruno@clisp.org>
70590
70591         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70592         <sys/inttypes.h>.
70593
70594 2006-06-17  Bruno Haible  <bruno@clisp.org>
70595
70596         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70597         whether errno is declared. Assume <errno.h> declares errno.
70598
70599 2006-06-17  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70602
70603 2006-06-17  Bruno Haible  <bruno@clisp.org>
70604
70605         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70606         problem on Solaris 2.5.1.
70607
70608 2006-06-16  Eric Blake  <ebb9@byu.net>
70609
70610         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70611         * lib/unicodeio.c [!defined errno]: Likewise.
70612         * lib/strtol.c [!defined errno]: Likewise.
70613         * lib/strtod.c [!defined errno]: Likewise.
70614
70615 2006-06-15  Eric Blake  <ebb9@byu.net>
70616
70617         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70618
70619 2006-06-15  Eric Blake  <ebb9@byu.net>
70620
70621         * config/srclist.txt (ssize_t.m4): Lose sync.
70622
70623 2006-06-15  Bruno Haible  <bruno@clisp.org>
70624
70625         * modules/stdint (Files): Include m4/full-header-path.m4,
70626         m4/size_max.m4, m4/wchar_t.m4.
70627         (Makefile.am): Many more substitutions.
70628         * modules/stdint-tests: New file.
70629         * tests/test-stdint.c: New file.
70630
70631 2006-06-15  Bruno Haible  <bruno@clisp.org>
70632
70633         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70634         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70635         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70636         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70637         gl_CHECK_TYPE_SAME): New macros.
70638
70639 2006-06-15  Bruno Haible  <bruno@clisp.org>
70640
70641         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70642
70643 2006-06-15  Bruno Haible  <bruno@clisp.org>
70644
70645         * lib/stdint_.h: Rewritten to be fully auto-configured.
70646         Fixes bug on HP-UX/IA64.
70647
70648 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * lib/getdate.y (__attribute__): Don't define if already defined.
70651         Problem reported by Larry Jones.
70652         * lib/utimens.c (__attribute__): Likewise.
70653
70654 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70657         reported by Andreas Schwab.
70658
70659 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70660             Bruno Haible  <bruno@clisp.org>
70661
70662         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70663         check for the declaration of strnlen and a run test that exposes the
70664         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70665         rpl_strndup.
70666
70667 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70668             Bruno Haible  <bruno@clisp.org>
70669
70670         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70671
70672 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70673
70674         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70675         compile test, for Tru64 4.0D.
70676
70677 2006-05-28  Karl Berry  <karl@gnu.org>
70678
70679         * config/srclist.txt (printf-args.c): lose sync.
70680
70681 2006-05-26  Martin Lambers  <marlam@marlam.de>
70682
70683         * lib/getpass.c: Updates the test for the native W32 API, and adds
70684         missing includes, thus fixing compilation warnings.
70685
70686 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70687
70688         * lib/exclude.c (exclude_fnmatch): New function.
70689         (excluded_file_name): Call exclude_fnmatch.
70690         * lib/exclude.h (excluded_file_name): New prototype
70691
70692 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70693
70694         * lib/tempname.c (small_open, large_open): New macros.
70695         (__open, __open64) [!_LIBC]: Remove.
70696         (__gen_tempname): Use small_open and large_open instead of __open
70697         and __open64.  This fixes a portability bug on HP-UX 11.11i
70698         reported by Simon Wing-Tang in
70699         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70700
70701 2006-05-24  Bruno Haible  <bruno@clisp.org>
70702
70703         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70704         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70705         Reported by Thorsten Maerz <torte@netztorte.de> via
70706         Aaron Stone <aaron@serendipity.cx>.
70707
70708 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70711         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70712         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70713         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70714         not really conditional on the cache.
70715         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70716
70717 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70720         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70721         (my_usleep): Don't mishandle maximum value.
70722
70723 2006-05-19  Jim Meyering  <jim@meyering.net>
70724
70725         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70726
70727 2006-05-17  Bruno Haible  <bruno@clisp.org>
70728
70729         Cygwin portability.
70730         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70731
70732 2006-05-17  Bruno Haible  <bruno@clisp.org>
70733
70734         * lib/stdint_.h: Fix recognition of Cygwin.
70735
70736 2006-05-15  Bruno Haible  <bruno@clisp.org>
70737
70738         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70739         on libtool patch by Ralf Wildenhues.
70740
70741 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70744         test for C99 conformance; (bool) 0.5 is an integer constant
70745         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70746         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70747
70748 2006-05-11  Simon Josefsson  <jas@extundo.com>
70749
70750         * m4/xvasprintf.m4: Fix obvious typo.
70751
70752 2006-05-11  Jim Meyering  <jim@meyering.net>
70753
70754         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70755         James Lemley.
70756
70757 2006-05-10  Simon Josefsson  <jas@extundo.com>
70758
70759         * lib/md4.c: Typo fix, update copyright years.
70760         (K1, K2): Don't use L because it turn computations into 64-bit on
70761         64-bit platforms.
70762
70763 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70766         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70767         unwanted sign propagation, e.g., on hosts with 64-bit int.
70768         There still are some problems with reeelly weird theoretical hosts
70769         (e.g., 33-bit int) but it's not worth worrying about now.
70770         * lib/sha1.c (rol): Likewise.
70771         (K1, K2, K3, K4): Remove unnecessary L suffix.
70772
70773 2006-05-10  Bruno Haible  <bruno@clisp.org>
70774
70775         * lib/des.c: Cast to avoid warnings.
70776
70777 2006-05-09  Bruno Haible  <bruno@clisp.org>
70778
70779         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70780         (Depends-on): Depend also on xsize, stdarg.
70781         (configure.ac): Add gl_XVASPRINTF.
70782
70783 2006-05-09  Bruno Haible  <bruno@clisp.org>
70784
70785         * m4/xvasprintf.m4: New file.
70786
70787 2006-05-09  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70790         (EOVERFLOW): Define fallback value.
70791         (xstrcat): New function.
70792         (xvasprintf): Recognize the special case of a string concatenation.
70793
70794 2006-05-08  Eric Blake  <ebb9@byu.net>
70795
70796         * gnulib-tool (func_version): Base copyright year on CVS date.
70797         (func_emit_copyright_notice): New function.
70798         (func_emit_lib_Makefile_am): Use it.
70799         (func_emit_tests_Makefile_am): Likewise.
70800         (func_import): Likewise.
70801
70802 2006-05-08  Bruno Haible  <bruno@clisp.org>
70803
70804         * modules/stdarg: New file.
70805         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70806
70807 2006-05-08  Bruno Haible  <bruno@clisp.org>
70808
70809         * m4/stdarg.m4: New file, from GNU gettext.
70810
70811 2006-05-08  Bruno Haible  <bruno@clisp.org>
70812
70813         * config/srclist.txt (build-aux/config.rpath): different from latest
70814         release.
70815
70816 2006-05-08  Bruno Haible  <bruno@clisp.org>
70817
70818         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70819
70820 2006-05-05  Jim Meyering  <jim@meyering.net>
70821
70822         * m4/warning.m4: New file, derived from bison's file by the same name.
70823
70824 2006-05-03  Bruno Haible  <bruno@clisp.org>
70825
70826         * lib/stdint_.h: Shorter URL.
70827         * lib/inttypes.h: Likewise.
70828
70829 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70832
70833 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70834
70835         * lib/verify.h: Document the internals better.  Most of this change
70836         was written by Bruno Haible.
70837
70838 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * doc/verify.texi: New file, partly based on a proposal by
70841         Bruno Haible.
70842
70843 2006-05-02  Bruno Haible  <bruno@clisp.org>
70844
70845         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70846         test from here...
70847         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70848
70849 2006-04-29  Bruno Haible  <bruno@clisp.org>
70850
70851         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70852         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70853
70854 2006-04-29  Bruno Haible  <bruno@clisp.org>
70855
70856         * gnulib-tool: Make --update option actually work.
70857
70858 2006-04-29  Bruno Haible  <bruno@clisp.org>
70859
70860         * doc/gcd.texi: New file.
70861         * doc/gnulib.texi: Include it.
70862
70863 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * lib/getdate.y (get_date): When adding relative date, start with the
70866         initial time, not with the result of the first mktime call.
70867
70868 2006-04-25  Bruno Haible  <bruno@clisp.org>
70869
70870         * gnulib-tool (func_import): Output the include directives in three
70871         blocks, sorted separately.
70872         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70873
70874 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70875
70876         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70877         to define main with arguments, for C++.  Reported by Eric Blake.
70878         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70879         Prefer 'int main ()' to 'int main (void)', for C++.
70880         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70881         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70882         for 'main', for C99 and C++.
70883
70884 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70887         Don't assume that exit status -1 is valid.
70888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70889         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70890         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70891         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70892         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70893         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70894         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70895         functions can be used without declaring them, or that you can
70896         exit with status -1.
70897         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70898
70899 2006-04-24  Karl Berry  <karl@gnu.org>
70900
70901         * config/srclist.txt (longdouble.m4): sync lost.
70902
70903 2006-04-24  Eric Blake  <ebb9@byu.net>
70904
70905         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70906
70907 2006-04-24  Bruno Haible  <bruno@clisp.org>
70908
70909         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70910         poll() implementation in AIX.
70911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70912
70913 2006-04-24  Bruno Haible  <bruno@clisp.org>
70914
70915         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70916         assigned exactly once.
70917
70918 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70919             Bruno Haible  <bruno@clisp.org>
70920
70921         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70922         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70923         for AM_CPPFLAGS.
70924
70925 2006-04-23  Bruno Haible  <bruno@clisp.org>
70926
70927         * modules/copy-file: Depend on unistd.
70928         * modules/execute: Likewise.
70929         * modules/fatal-signal: Likewise.
70930         * modules/findprog: Likewise.
70931         * modules/mkdtemp : Likewise.
70932         * modules/pipe: Likewise.
70933         * modules/wait-process: Likewise.
70934
70935 2006-04-23  Bruno Haible  <bruno@clisp.org>
70936
70937         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70938         condition was already detected.
70939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70940
70941 2006-04-23  Bruno Haible  <bruno@clisp.org>
70942
70943         * lib/copy-file.c: Include <unistd.h> unconditionally.
70944         * lib/execute.c: Likewise.
70945         * lib/fatal-signal.c: Likewise.
70946         * lib/findprog.c: Likewise.
70947         * lib/mkdtemp.c: Likewise.
70948         * lib/pipe.h: Likewise.
70949         * lib/pipe.c: Likewise.
70950         * lib/wait-process.h: Likewise.
70951
70952 2006-04-23  Bruno Haible  <bruno@clisp.org>
70953
70954         * gnulib-tool (func_usage): Fix --import description. Document
70955         --update.
70956         (func_import): Create temporary file in a temporary directory, if
70957         --dry-run is specified. Silence errors from 'grep' when there are no
70958         m4 files in $m4dir.
70959         (func_create_testdir): Silence errors from 'grep' when there are no
70960         m4 files in $m4dir.
70961         Reported by Karl Berry <karl@freefriends.org>.
70962
70963 2006-04-20  Bruno Haible  <bruno@clisp.org>
70964
70965         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70966         one argument, so that the code will be portable to Autoconf 2.60.
70967         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70968         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70969         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70970
70971 2006-04-19  Derek Price  <derek@ximbiot.com>
70972             Eric Blake  <ebb9@byu.net>
70973
70974         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70975         rather than "/full/path.h".  Update comment to match.  Shorten &
70976         generalize m4_translit call via AS_TR_CPP.
70977
70978 2006-04-19  Derek Price  <derek@ximbiot.com>
70979             Eric Blake  <ebb9@byu.net>
70980
70981         * lib/inttypes.h: Correct grammar in comment.
70982
70983 2006-04-18  Derek Price  <derek@ximbiot.com>
70984             Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         * modules/inttypes: New file.
70987         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70988
70989 2006-04-18  Derek Price  <derek@ximbiot.com>
70990             Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70993         New files.
70994
70995 2006-04-18  Derek Price  <derek@ximbiot.com>
70996             Paul Eggert  <eggert@cs.ucla.edu>
70997
70998         * lib/inttypes.h: New file.
70999         * lib/strtoimax.c: Assume <inttypes.h>.
71000
71001 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71004         isn't mounted.  Problem reported by Kir Kolyshkin.
71005
71006 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71009         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71010         Derek R. Price.
71011         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71012         implementation.
71013
71014 2006-04-12  Eric Blake  <ebb9@byu.net>
71015
71016         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71017         is now done automatically by the corresponding Autoconf macro.
71018
71019 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71022         time_r.h.
71023
71024 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         Merge regex changes from libc, removing some of our
71027         POSIX-conformance changes that were rejected and redoing them in a
71028         less-intrusive way.
71029
71030         * lib/regcomp.c (re_compile_internal, init_dfa):
71031         Length arg is now size_t, not Idx.  All uses changed.
71032         (peek_token): Forward decl now says internal_function.
71033         (__re_error_msgid, __re_error_msgid_idx):
71034         Now static rather than extern with attribute_hidden.
71035         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71036         For some reason libc prefers K&R style defns for external functions.
71037         (regerror) [!defined _LIBC]: Likewise.
71038         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71039         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71040         (build_range_exp, build_collating_symbol):
71041         Use K&R-style defn.
71042         (re_compile_fastmap): Use '\0' to memset, not 0.
71043         (utf8_sb_map): Make the calculations more obvious.
71044         (init_dfa, parse_bracket_exp, build_charclass_op):
71045         Call calloc and cast result, as glibc does.
71046         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71047         (build_range_exp, build_collating_symbol):
71048         Now internal functions.
71049
71050         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71051
71052         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71053         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71054         Don't depend on VMS; depend on __VMS instead, for POSIX
71055         namespace cleanness.
71056         (regoff_t): Define to ssize_t, not long int.
71057
71058         Remove the REG_ macros named below.  Instead, make the old names
71059         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71060         __USE_GNU_REGEX.
71061         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71062         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71063         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71064         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71065         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71066         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71067         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71068         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71069         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71070         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71071         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71072         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71073         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71074         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71075         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71076         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71077         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71078         (REG_NREGS):
71079         Remove.  All uses replaced by the old RE_* names.
71080         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71081         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71082         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71083         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71084         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71085         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71086         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71087         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71088         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71089         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71090         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71091         Don't bother having these macros be independent of each others'
71092         values, since they no longer exist in the POSIX name space.
71093
71094         Rename the following member names back to their old names,
71095         unless !__USE_GNU_REGEX.  All uses changed back.
71096         (buffer): Renamed from re_buffer.
71097         (allocated): Renamed from re_allocated.
71098         (used): Renamed from re_used.
71099         (syntax): Renamed from re_syntax.
71100         (fastmap): Renamed from re_fastmap.
71101         (translate): Renamed from re_translate.
71102         (can_be_null): Renamed from re_can_be_null.
71103         (regs_allocated): Renamed from re_regs_allocated.
71104         (fastmap_accurate): Renamed from re_fastmap_accurate.
71105         (no_sub): Renamed from re_no_sub.
71106         (not_bol): Renamed from re_not_bol.
71107         (not_eol): Renamed from re_not_eol.
71108         (newline_anchor): Renamed from re_newline_anchor.
71109         (num_regs): Renamed from rm_num_regs.
71110         (start): Renamed from rm_start.
71111         (end): Renamed from rm_end.
71112
71113         (free_state): Move up a bit.
71114
71115         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71116         #define to be empty.
71117         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71118         when that is what is intended.
71119         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71120         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71121         (MAX): New macro.
71122         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71123         All uses changed back to re_malloc, etc.  It's now the caller's
71124         responsibility to check for overflow; all callers changed.
71125         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71126         (re_x2nrealloc): Remove.
71127         (free_state): Remove decl.
71128
71129         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71130         (re_set_registers, re_exec):
71131         Use K&R-style defn.
71132
71133         2006-01-31  Roland McGrath  <roland@redhat.com>
71134
71135         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71136         Reported by Mike Frysinger <vapier@gentoo.org>.
71137
71138         2006-01-15  Andreas Jaeger  <aj@suse.de>
71139
71140         [BZ #1950]
71141         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71142         build_wcs_upper_buffer change.
71143         (build_wcs_upper_buffer): Change return type.
71144
71145         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71146
71147         * lib/regex_internal.h: Include <stdint.h> if available.
71148
71149         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71150
71151         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71152
71153         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71154
71155         * lib/regcomp.c: Adjust for changed secondary hash function.
71156
71157         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71158
71159         * lib/regex.h: Pretty printing.
71160         Clean up namespace a bit.
71161
71162         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71163
71164         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71165         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71166
71167         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71168                     Ulrich Drepper  <drepper@redhat.com>
71169
71170         [BZ #1302]
71171         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71172         changed.
71173         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71174
71175         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71176
71177         [BZ #281]
71178         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71179         * lib/regcomp.c: Remove unnecessary uses of
71180         unsigned RE_TRANSLATE_TYPE.
71181         * lib/regex_internal.h: Likewise.
71182         * lib/regex_internal.c: Likewise.
71183         * lib/regexec.c: Likewise.
71184         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71185
71186         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71187
71188         * lib/regexec.c (find_recover_state): Remove unnecessary
71189         initialization.
71190         (transit_state_bkref): Make DFA a const pointer.
71191         (get_subexp): Likewise.
71192         (check_arrival): Likewise.
71193         (update_cur_sifted_state): Likewise.
71194         (re_search_internal): Likewise.
71195         (prune_impossible_nodes): Likewise.
71196         (acquire_init_state_context): Likewise.
71197         (proceed_next_node): Likewise.
71198         (set_regs): Likewise.
71199         (free_fail_stack_return): Likewise.
71200         (check_arrival_expand_ecl): Mark DFA parameter as const.
71201         (check_arrival_expand_ecl_sub): Likewise.
71202         (check_subexp_limits): Likewise.
71203         (sub_epsilon_src_nodes):  Likewise.
71204         (add_epsilon_src_nodes):  Likewise.
71205         (merge_state_array): Likewise.
71206         (update_regs): Likewise.
71207         (build_trtable): Likewise.
71208         (sift_states_backward): Mark MCTX parameter as const.
71209         (build_sifted_states): Likewise.
71210         (update_cur_sifted_state): Likewise.
71211         (sift_states_mkref): Likewise.
71212         (check_arrival_expand_ecl): Mark eclosure as const.
71213         (check_dst_limits_calc_pos_1): Likewise.
71214         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71215         pointer.
71216
71217         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71218
71219         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71220         (transit_state_sb): Likewise.
71221         (transit_state_mb): Likewise.
71222         (sift_states_iter_mb): Likewise.
71223         (check_arrival_add_next_nodes): Likewise.
71224         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71225         [_LIBC] (re_search_2_stub): Use mempcpy.
71226
71227         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71228         mbrtowc for very simple UTF-8 case.
71229
71230         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71231         a pointer-to-const.
71232         (re_acquire_state_context): Likewise.
71233         * lib/regex_internal.h: Adjust prototypes.
71234
71235         * lib/regex.c: Prevent using C++ compilers.
71236
71237         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71238         (re_acquire_state_context): Likewise.
71239
71240 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * modules/regex (Depends-on): Add ssize_t.
71243
71244 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71247         translation table.
71248
71249 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71252
71253 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71254             Bruno Haible  <bruno@clisp.org>
71255
71256         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71257         <sys/types.h> and <inttypes.h>.
71258
71259 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71260
71261         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71262         `__error_t_defined', so argp.h will not typedef the former.
71263
71264 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71267         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71268         glibc names.  Even if glibc is changed to conform to POSIX, the
71269         traditional names will be available anyway, since regex depends on
71270         the extensions module.  Also, fix a longstanding typo in the
71271         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71272         reported by Emanuele Giaquinta.  Also, change sense of cached
71273         variable, so that the message makes sense.
71274
71275 2006-03-24  Simon Josefsson  <jas@extundo.com>
71276
71277         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71278         including some doc fixes.
71279         (base64_encode_alloc): Fix +1 bug on allocation failures.
71280
71281 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71282
71283         * lib/base64.c (base64_encode): Do not read past end of array with
71284         unsanitized input on systems with CHAR_BIT > 8.
71285
71286 2006-03-24  Eric Blake  <ebb9@byu.net>
71287
71288         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71289
71290 2006-03-22  Karl Berry  <karl@gnu.org>
71291
71292         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71293         * config/srclistvars.sh (COREUTILS): new var.
71294
71295 2006-03-17  Jim Meyering  <jim@meyering.net>
71296
71297         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71298         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71299
71300 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71303         no longer needs it.  Instead, check that regoff_t is as least
71304         as wide as ptrdiff_t.
71305
71306         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71307         so that our regex.h stays compatible with the installed regex.
71308         This is helpful for installers who configure --without-included-regex.
71309         Problem reported by Emanuele Giaquinta.
71310
71311 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71314         Typedef to long int, not to off_, as POSIX will likely change
71315         in that direction.
71316
71317 2006-03-15  Eric Blake  <ebb9@byu.net>
71318
71319         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71320
71321 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71322
71323         * lib/argp-help.c (validate_uparams): Fix typo
71324         * lib/argp-parse.c (argp_default_options): Consistently begin help
71325         messages with a lowercase letter.
71326
71327 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71330         overrun buffers and shouldn't be used (much as gets shouldn't be
71331         used).
71332         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71333
71334 2006-03-08  Simon Josefsson  <jas@extundo.com>
71335
71336         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71337         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71338
71339 2006-03-08  Simon Josefsson  <jas@extundo.com>
71340
71341         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71342         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71343
71344 2006-03-08  Simon Josefsson  <jas@extundo.com>
71345
71346         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71347         signal that configure disabled the device.
71348
71349 2006-03-08  Simon Josefsson  <jas@extundo.com>
71350
71351         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71352         languages.
71353
71354 2006-03-07  Simon Josefsson  <jas@extundo.com>
71355
71356         * modules/getopt (Depends-on): Add unistd.
71357
71358         * modules/unistd: New file.
71359
71360 2006-03-07  Simon Josefsson  <jas@extundo.com>
71361
71362         * modules/gc-random: New file.
71363
71364 2006-03-07  Simon Josefsson  <jas@extundo.com>
71365
71366         * m4/unistd_h.m4: New file.
71367
71368 2006-03-07  Simon Josefsson  <jas@extundo.com>
71369
71370         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71371         test to be side-effect free by storing the result in the cache
71372         variable gl_cv_lib_readline, and moving the assignment of
71373         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71374         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71375
71376 2006-03-07  Simon Josefsson  <jas@extundo.com>
71377
71378         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71379         error on missing devices (the functions will return an error).
71380
71381         * m4/gc.m4: Move random stuff to gc-random.m4
71382
71383 2006-03-07  Simon Josefsson  <jas@extundo.com>
71384
71385         * lib/unistd_.h: New file.
71386
71387 2006-03-07  Simon Josefsson  <jas@extundo.com>
71388
71389         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71390
71391 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71394         Problem reported by Juan Manuel Guerrero.
71395
71396 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71399         the unistd module.
71400         * lib/getlogin_r.c: Likewise.
71401         * lib/getlogin_r.h: Likewise.
71402         * lib/glob.c: Likewise.
71403         * lib/pagealign_alloc.c: Likewise.
71404         * lib/unistd_.h: Remove; no longer needed.
71405
71406 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71409         Add unistd.
71410         * modules/c-stack (Depends-on): Add unistd.
71411         * modules/getlogin_r: Likewise.
71412         * modules/glob: Likewise.
71413         * modules/pagealign_alloc: Likewise.
71414         * modules/unistd (Files): Remove lib/unistd_.h.
71415         (EXTRA_DIST): Remove.
71416         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71417         need unistd_.h.
71418         (MOSTLYCLEANFILES): Remove unistd.h-t.
71419
71420 2006-03-03  Simon Josefsson  <jas@extundo.com>
71421
71422         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71423
71424 2006-03-03  Simon Josefsson  <jas@extundo.com>
71425
71426         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71427         libidn and bison.
71428
71429 2006-03-03  Simon Josefsson  <jas@extundo.com>
71430
71431         * build-aux/maint.mk: Add indent target.
71432
71433 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71434
71435         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71436         our replacement poll.h in any case, to avoid a differing
71437         declaration from a system header.  Seen on AIX.
71438
71439 2006-03-01  Simon Josefsson  <jas@extundo.com>
71440
71441         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71442         <kasal@ucw.cz>.
71443
71444 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71445
71446         * modules/gettime (Depends-on): Add extensions module.
71447         * modules/nanosleep (Depends-on): Likewise.
71448         * modules/settime (Depends-on): Likewise.
71449
71450 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71451
71452         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71453         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71454         pedantically.
71455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71456         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71457
71458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71459         not "==".  Reported by Ralf Wildenhues.
71460
71461 2006-03-01  Karl Berry  <karl@gnu.org>
71462
71463         * doc/Copyright/request-*: new files, synced from gnuorg.
71464
71465 2006-03-01  Karl Berry  <karl@gnu.org>
71466
71467         * config/srclist.txt (Copyright/*): new entries.
71468
71469 2006-02-28  Simon Josefsson  <jas@extundo.com>
71470
71471         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71472
71473 2006-02-27  Simon Josefsson  <jas@extundo.com>
71474
71475         * lib/base64.h: Indent #define's.  From Jim Meyering
71476         <jim@meyering.net>.
71477
71478 2006-02-27  Jim Meyering  <jim@meyering.net>
71479
71480         Revert the change of 2006-02-24, so these files can continue
71481         to be sync'd from gettext.
71482         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71483         of `config.h'.
71484
71485 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * modules/intprops: New file.
71488         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71489         Add intprops.
71490         * modules/getloadavg (Files): Remove lib/intprops.h.
71491         (Depends-on): Add intprops.
71492         * modules/human: Likewise.
71493         * modules/inttostr: Likewise.
71494         * modules/openat: Likewise.
71495         * modules/sig2str: Likewise.
71496         * modules/userspec: Likewise.
71497         * modules/utimecmp: Likewise.
71498         * modules/xnanosleep: Likewise.
71499         * modules/xstrtol: Likewise.
71500
71501 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71502
71503         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71504         * modules/lock-tests (TESTS): Use $(EXEEXT).
71505         * modules/tls-tests: Likewise.
71506         * modules/argp-tests: Likewise.
71507         (check_PROGRAMS): New var, replacing...
71508         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71509
71510 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71511
71512         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71513         `config.h'.
71514
71515 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71518
71519 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71520
71521         Sync from coreutils.
71522         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71523         gl_CHDIR_SAFER.
71524
71525 2006-02-22  Jim Meyering  <jim@meyering.net>
71526
71527         Sync from coreutils.
71528         * m4/chdir-safer.m4: New file.
71529
71530 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71533         AT_FDCWD exceeds INT_MAX.
71534         * lib/openat.h (AT_FDCWD): Likewise.
71535
71536 2006-02-17  Eric Blake  <address@hidden>
71537
71538         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71539
71540 2006-02-16  Simon Josefsson  <jas@extundo.com>
71541
71542         * modules/getaddrinfo (Depends-on): Add sys_socket.
71543
71544 2006-02-15  Simon Josefsson  <jas@extundo.com>
71545
71546         * build-aux/maint.mk: Add dsyntax-check rule.
71547
71548 2006-02-15  Eric Blake  <ebb9@byu.net>
71549
71550         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71551         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71552         'present but cannot compile' warnings on cygwin.
71553         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71554         use ws2tcpip.h if sys/socket.h works.
71555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71556         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71557
71558 2006-02-14  Simon Josefsson  <jas@extundo.com>
71559
71560         * modules/maintainer-makefile (Files): Rename.
71561
71562         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71563         and (the local) Makefile.cfg to maint-cfg.mk.
71564
71565         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71566         to the latter.
71567
71568         * modules/maintainer-makefile: New module.
71569
71570         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71571         severaly stripped to make it possible to build it up from scratch
71572         with reliable tests.
71573
71574         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71575         fixes to permit overriding the default actions when configure and
71576         makefile are not available.
71577
71578 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         Sync from coreutils.
71581         * modules/lstat (Depends-on): Don't depend on xalloc.
71582         (License): Change from GPL to LGPL, since this is now simply a
71583         replacement for a libc function.
71584
71585 2006-02-14  Jim Meyering  <jim@meyering.net>
71586
71587         Sync from coreutils.
71588
71589         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71590         failure on deficient systems, and simplify gnulib lgpl dependencies.
71591         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71592         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71593
71594         * lib/xalloc-die.c: Remove unused definition of N_.
71595
71596 2006-02-14  Jim Meyering  <jim@meyering.net>
71597
71598         Sync from coreutils.
71599         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71600         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71601         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71602         double-quote uses of that variable, to accommodate the rare case in
71603         which getmntent is available in none of the libraries checked.  This
71604         happens at least on FreeBSD 5.0.
71605
71606 2006-02-13  Simon Josefsson  <jas@extundo.com>
71607
71608         * gnulib-tool (Usage): Fix --import, from
71609         karl@freefriends.org (Karl Berry).
71610
71611 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71612
71613         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71614
71615 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71616
71617         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71618         "autoupdate" on 2005-12-12.
71619
71620 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * modules/closeout (Depends-on): Remove atexit.
71623
71624 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71627         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71628
71629 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71630
71631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71632         __EXTENSIONS__ if this causes compilation to fail.  Problem
71633         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71634         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71635
71636 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71639         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71640         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71641         All uses changed.
71642
71643 2006-01-26  Simon Josefsson  <jas@extundo.com>
71644
71645         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71646         prototype is visible on mingw32.
71647
71648         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71649         for mingw32.
71650
71651         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71652         mingw32).
71653
71654 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71657         attempt to open for write; this always fails, at least on POSIX
71658         hosts.  This reinstates the 2006-01-09 change, which was
71659         inadvertently removed.
71660
71661 2006-01-26  Bruno Haible  <bruno@clisp.org>
71662
71663         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71664         Reported by Paul Eggert.
71665
71666 2006-01-26  Bruno Haible  <bruno@clisp.org>
71667             Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         * lib/stdbool_.h (_Bool)
71670         [(! (defined __cplusplus || defined __BEOS__)
71671           && !defined __GNUC__
71672           && !(defined __HP_cc || defined __xlc__
71673                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71674                || defined __sgi))]:
71675         #define to signed char in these cases too; this simplifies
71676         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71677         etc., separately) and makes it more conservative.
71678
71679 2006-01-25  Simon Josefsson  <jas@extundo.com>
71680
71681         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71682         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71683         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71684
71685 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71686
71687         * lib/argp-namefrob.h: Bugfix. Remove stray #
71688
71689 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71692         so that we test the test.
71693         Check for yet another HP-UX cc bug involving *bool |= bool.
71694
71695 2006-01-25  Karl Berry  <karl@gnu.org>
71696
71697         * config/srclist.txt (vasnprintf.c): sync lost.
71698
71699 2006-01-25  Jim Meyering  <jim@meyering.net>
71700
71701         Sync from the stable (b5) branch of coreutils:
71702
71703         * lib/fts.c (fts_children): Don't let close() clobber errno from
71704         failed fchdir().
71705
71706         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71707         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71708         a dangling symlink.  That can also happen at least for ELOOP.
71709         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71710         FYI, this bug predates the inclusion of fts.c in coreutils.
71711
71712         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71713         in their own block, so pre-c99 compilers don't object.
71714
71715         Avoid the double-free (first in fts_read, second in fts_close) that
71716         would occur when an `active' directory is made inaccessible (e.g.,
71717         via chmod a-x) during a traversal.
71718         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71719         before returning.  Reproduce this failure by
71720         mkdir -p a/b; cd a; chmod a-x . b
71721         Reported by Stavros Passas.
71722
71723 2006-01-25  Jim Meyering  <jim@meyering.net>
71724
71725         * lib/fileblocks.c: Remove more useless parentheses.
71726         * lib/readutmp.h: Likewise.
71727
71728 2006-01-25  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71731         warnings.
71732         Reported by Paul Eggert.
71733
71734 2006-01-25  Bruno Haible  <bruno@clisp.org>
71735
71736         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71737         rid of a trap command. For Solaris sh.
71738         Reported by Mark D. Baushke <mdb@gnu.org>.
71739
71740 2006-01-24  Simon Josefsson  <jas@extundo.com>
71741
71742         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71743         Bruno.
71744
71745 2006-01-24  Karl Berry  <karl@gnu.org>
71746
71747         * config/srclist.txt (argp-namefrob.h): sync lost.
71748
71749 2006-01-24  Jim Meyering  <jim@meyering.net>
71750
71751         * modules/openat (Files): Add lib/intprops.h.
71752         From Mark D. Baushke.
71753
71754 2006-01-24  Jim Meyering  <jim@meyering.net>
71755
71756         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71757         Reported by Mark D. Baushke.
71758
71759 2006-01-24  Jim Meyering  <jim@meyering.net>
71760
71761         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71762
71763 2006-01-24  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/strnlen (Maintainer): Change from glibc to all.
71766
71767 2006-01-24  Bruno Haible  <bruno@clisp.org>
71768
71769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71770         Patch by Paul Eggert.
71771
71772 2006-01-24  Bruno Haible  <bruno@clisp.org>
71773
71774         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71775         already has it.
71776         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71777         2005-11-26.
71778
71779         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71780         'signed char' to avoid problems with the built-in _Bool type.
71781         Reported by Paul Eggert on 2005-11-26.
71782
71783 2006-01-24  Bruno Haible  <bruno@clisp.org>
71784
71785         * gnulib-tool (func_import): Avoid constructing complicated sed
71786         expressions inside backquote.
71787         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71788
71789 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71790
71791         These changes imported from libc.
71792         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71793         test and two separate function calls.
71794         * lib/strndup.c (__strndup): Add libc_hidden_def.
71795
71796 2006-01-23  Simon Josefsson  <jas@extundo.com>
71797
71798         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71799         Remove the test_*_SOURCES variable: automake infers it by default.
71800         * modules/tls-tests: Likewise.
71801
71802 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         Work around porting bugs reported by Dieter in
71805         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71806         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71807         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71808         Include "getopt.h" first, to check interface.
71809         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71810         !HAVE_DECL_GETENV.
71811         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71812         (__strndup): Revert to K&R-style function dfns, the glibc style.
71813         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71814         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71815         Include strnlen.h first, to get prototype properly.
71816         (strnlen): Renamed from __strnlen.
71817         Remove weak alias.
71818
71819 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71822
71823 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71824
71825         * config/srclist.txt: Adjust to reflect glibc reorganization.
71826         This affects only comments.
71827
71828 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71829
71830          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71831          Reported by Bruce Korb <bkorb@gnu.org>.
71832
71833 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71836         to pacify gcc -Wswitch-default.
71837
71838 2006-01-22  Bruno Haible  <bruno@clisp.org>
71839
71840         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71841         temporary buffer for sprintf, take into account the precision also
71842         for 'd', 'i', 'u', 'o', 'x', 'X'.
71843
71844 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71845
71846         * modules/argp-tests: New module
71847         * tests/test-argp.c: New file
71848         * tests/test-argp-2.sh: New file
71849
71850 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71851
71852         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71853         (__argp_base_name): Removed
71854         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71855         typo.
71856         (__argp_base_name): Provide macro definition or extern declaration
71857         depending on the configuration
71858
71859 2006-01-20  Simon Josefsson  <jas@extundo.com>
71860
71861         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71862
71863 2006-01-20  Simon Josefsson  <jas@extundo.com>
71864
71865         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71866
71867 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71870         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71871         Suggested by Bruno Haible.
71872
71873 2006-01-20  Karl Berry  <karl@gnu.org>
71874
71875         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71876         until changes propagate, I guess.
71877
71878 2006-01-19  Simon Josefsson  <jas@extundo.com>
71879
71880         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71881
71882 2006-01-19  Simon Josefsson  <jas@extundo.com>
71883
71884         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71885
71886 2006-01-19  Simon Josefsson  <jas@extundo.com>
71887
71888         * gnulib-tool: Set check_PROGRAMS.
71889
71890         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71891         modules/des-tests, modules/gc-arcfour-tests,
71892         modules/gc-arctwo-tests, modules/gc-des-tests,
71893         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71894         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71895         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71896         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71897         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71898         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71899         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71900         test_*_SOURCES.
71901
71902 2006-01-18  Simon Josefsson  <jas@extundo.com>
71903
71904         * modules/socklen (Depends-on): Depend on sys_socket.
71905
71906 2006-01-18  Simon Josefsson  <jas@extundo.com>
71907
71908         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71909         modules/des-tests, modules/gc-arcfour-tests,
71910         modules/gc-arctwo-tests, modules/gc-des-tests,
71911         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71912         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71913         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71914         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71915         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71916         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71917         $(EXEEXT) to automake TESTS variable, for mingw32.
71918
71919 2006-01-17  Simon Josefsson  <jas@extundo.com>
71920
71921         * modules/socklen (Include): Need sys/socket.h.
71922
71923 2006-01-17  Bruno Haible  <bruno@clisp.org>
71924
71925         * modules/ssize_t (Include): Add <sys/types.h>.
71926
71927 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71928
71929         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71930         it's not portable and it doesn't work with cross-compiles.
71931         Problem reported by Bruno Haible.  Fix missing-$ typo in
71932         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71933         -zignore from being used with Sun's C compiler.
71934
71935 2006-01-12  Simon Josefsson  <jas@extundo.com>
71936
71937         * lib/base64.c: Fix warning, reported by Bruno Haible
71938         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71939
71940 2006-01-12  Bruno Haible  <bruno@clisp.org>
71941
71942         * modules/ldd: New file.
71943         * build-aux/ldd.sh.in: New file.
71944         * MODULES.html.sh (Support for building libraries and executables): Add
71945         ldd.
71946
71947 2006-01-12  Bruno Haible  <bruno@clisp.org>
71948
71949         * m4/ldd.m4: New file.
71950
71951 2006-01-12  Bruno Haible  <bruno@clisp.org>
71952
71953         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71954         endless loop while replacing $auxdir with build-aux.
71955
71956 2006-01-11  Simon Josefsson  <jas@extundo.com>
71957
71958         * lib/stdint_.h (SIZE_MAX): Add missing (.
71959
71960 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         Sync from coreutils.
71963         * lib/md5.c: Fix commentary typos.
71964         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71965         * lib/md5.h (__attribute__): Remove; unused.
71966         * lib/sha1.c: Fix commentary to match md5 better.
71967         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71968         so that we don't need to worry about alignment.  All uses changed.
71969         This merges the 2005-10-28 md5 change into sha1.
71970
71971 2006-01-11  Jim Meyering  <jim@meyering.net>
71972
71973         Sync from coreutils.
71974         * lib/md5.c (OP): Fix spacing.
71975
71976 2006-01-11  Bruno Haible  <bruno@clisp.org>
71977
71978         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71979         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71980         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71981
71982 2006-01-11  Bruno Haible  <bruno@clisp.org>
71983
71984         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71985         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71986         the "early" section as well.
71987
71988 2006-01-11  Bruno Haible  <bruno@clisp.org>
71989
71990         Avoid "ar: no archive members specified" error on MacOS X.
71991         * gnulib-tool (func_modules_add_dummy): New function.
71992         (func_import, func_create_testdir): Invoke it.
71993
71994 2006-01-11  Bruno Haible  <bruno@clisp.org>
71995
71996         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71997         with $auxdir in AC_CONFIG_FILES statements.
71998
71999 2006-01-11  Bruno Haible  <bruno@clisp.org>
72000
72001         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72002         Initialize also noinst_HEADERS to empty.
72003
72004 2006-01-11  Bruno Haible  <bruno@clisp.org>
72005
72006         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72007         variables.
72008         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72009         autoreconf.
72010
72011 2006-01-11  Bruno Haible  <bruno@clisp.org>
72012
72013         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72014         overridable by the user.
72015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72016
72017 2006-01-10  Simon Josefsson  <jas@extundo.com>
72018
72019         * modules/sys_socket: New file.
72020
72021 2006-01-10  Simon Josefsson  <jas@extundo.com>
72022
72023         * m4/sys_socket_h.m4: New file.
72024
72025 2006-01-10  Simon Josefsson  <jas@extundo.com>
72026
72027         * lib/socket_.h: New file.
72028
72029 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * modules/readutmp (Maintainer): Add myself.
72032
72033 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72036         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72037         People who are still concerned with buggy memcmp implementations
72038         can invoke gl_FUNC_MEMCMP themselves.
72039
72040 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72041
72042         * lib/regex_internal.h (BITSET_WORD_BITS):
72043         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72044         preprocessor mishandles large unsigned values as if they were signed.
72045         Problem reported by Claudio Fontana in
72046         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72047
72048 2006-01-10  Jim Meyering  <jim@meyering.net>
72049
72050         Avoid the double-free (first in fts_read, second in fts_close) that
72051         would occur when an `active' directory is made inaccessible (e.g.,
72052         via chmod a-x) during a traversal.
72053         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72054         before returning.  Reproduce this failure by
72055         mkdir -p a/b; cd a; chmod a-x . b
72056         Reported by Stavros Passas.
72057
72058         Sync from coreutils.
72059         * lib/sha1.c: Tweak grammar in a comment.
72060
72061 2006-01-10  Jim Meyering  <jim@meyering.net>
72062
72063         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72064         Patch by Joerg Sonnenberger.
72065
72066 2006-01-10  Bruno Haible  <bruno@clisp.org>
72067
72068         * modules/readutmp: Depend on module free.
72069         * modules/strtok_r: Depend on module restrict.
72070
72071 2006-01-10  Bruno Haible  <bruno@clisp.org>
72072
72073         * modules/gettext (configure.ac): Add an invocation of
72074         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72075
72076 2006-01-10  Bruno Haible  <bruno@clisp.org>
72077
72078         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72079         Reported by Werner Lemberg <wl@gnu.org>.
72080
72081 2006-01-10  Bruno Haible  <bruno@clisp.org>
72082
72083         * lib/localcharset.c: Update from GNU gettext.
72084
72085 2006-01-10  Bruno Haible  <bruno@clisp.org>
72086
72087         * lib/argp.h (__const): Remove macro. Use const instead.
72088         * lib/argp-fmtstream.h (__const): Likewise.
72089         * lib/glob_.h (__const): Remove macro.
72090         * lib/glob-libc.h: Use const instead of __const.
72091
72092 2006-01-10  Bruno Haible  <bruno@clisp.org>
72093
72094         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72095         variable.
72096         Needed to avoid an automake error regarding the 'gettext' module.
72097
72098 2006-01-09  Simon Josefsson  <jas@extundo.com>
72099
72100         * modules/inet_ntop (Depends-on): Add restrict.
72101
72102 2006-01-09  Simon Josefsson  <jas@extundo.com>
72103
72104         * modules/gc-rijndael-tests (License): Put under LGPL.
72105
72106         * modules/gc-des-tests (License): Likewise.
72107
72108         * modules/gc-arcfour-tests (License): Likewise.
72109
72110         * modules/gc-arctwo-tests (License): Likewise.
72111
72112         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72113
72114         * modules/gc-hmac-sha1-tests (Files): Likewise.
72115
72116         * modules/gc-hmac-md5-tests (License): Likewise.
72117
72118         * modules/gc-sha1-tests (License): Likewise.
72119
72120         * modules/gc-md5-tests (License): Likewise.
72121
72122         * modules/gc-md4-tests (License): Likewise.
72123
72124         * modules/gc-md2-tests (License): Likewise.
72125
72126         * modules/gc-tests (License): Likewise.
72127
72128         * modules/des-tests (License): Likewise.
72129
72130         * modules/md4-tests (License): Likewise.
72131
72132         * modules/md2-tests (License): Likewise.
72133
72134 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         Sync from coreutils:
72137
72138         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72139         * modules/lib-ignore: New file.
72140         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72141         chdir-safer.m4, lchmod.m4.
72142         * modules/openat: Add mkdirat.c, openat-priv.h.
72143
72144 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         Sync from coreutils.
72147         * m4/lib-ignore.m4: New file.
72148         * m4/lchmod.m4: New file.
72149
72150 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         Sync from coreutils.
72153         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72154         for write access: POSIX says that must fail.
72155         * lib/fts.c (diropen): Likewise.
72156         * lib/save-cwd.c (save_cwd): Likewise.
72157         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72158         well, for minor improvements on hosts that lack O_DIRECTORY.
72159         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72160         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72161         Fall back on chown if open failed with EACCES.
72162
72163         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72164         Report an error at compile-time if only a 1-second nominal clock
72165         resolution is found.
72166
72167         * lib/lchmod.h: New file.
72168         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72169         (make_dir_parents): Use lchown rather than chown, and
72170         lchmod rather than chmod.
72171
72172         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72173         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72174         "proc" reported by n0dalus.
72175
72176         * lib/mountlist.c: Include <limits.h>.
72177         (dev_from_mount_options)
72178         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72179         New function.  It no longer assumes "dev=" has the System V meaning
72180         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72181         (read_file_system_list)
72182         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72183         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72184         dev= in that case.
72185
72186         * lib/posixtm.h (PDS_PRE_2000): New macro.
72187         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72188         allow_century.  All usages changed.  Reject dates outside the range
72189         1969-1999 if PDS_PRE_2000 is used.
72190
72191 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         Sync from coreutils.
72194         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72195         (Time of day items): Mention the possibility of leap seconds.
72196         Problem reported by Dr. David Alan Gilbert.
72197
72198 2006-01-09  Jim Meyering  <jim@meyering.net>
72199
72200         Sync from coreutils.
72201
72202         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72203
72204         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72205
72206         * lib/modechange.c (mode_compile): Reject an invalid mode string
72207         that starts with an octal digit.  From Andreas Gruenbacher.
72208
72209         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72210         and dup to open_safer and dup_safer, respectively.
72211         (openat_permissive): Fix typo in comment.
72212
72213         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72214         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72215         (_): Remove; no longer needed.
72216         (openat): Renamed from rpl_openat; no need for rpl_openat
72217         since openat.h renames openat for us.
72218         Replace most of the body with a call to openat_permissive,
72219         to avoid duplicate code.
72220         Port to (probably hypothetical) environments were mode_t is
72221         wider than int.
72222         (openat_permissive): Require mode arg, so that we can check
72223         types better.  Put it just after flags.  Change cwd failure
72224         indicator from pointer-to-bool to pointer-to-errno-value.
72225         All callers changed.
72226         Invoke openat_save_fail and/or openat_restore_fail if
72227         cwd_errno is null, so that openat can call us.
72228         (openat_permissive, fdopendir, fstatat, unlinkat):
72229         Simplify errno handling to avoid some duplicate code,
72230         as it's OK to set errno on success.
72231         * lib/openat.h: Revamp code so that function macros depend on
72232         __OPENAT_PREFIX only, not also on AT_FDCWD.
72233         (openat_ro): Remove.  Caller changed to use openat_permissive.
72234         (openat_permissive): Now a macro, if not a function.
72235         (openat_restore_fail, openat_save_fail): Now always functions,
72236         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72237
72238         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72239         and openat.c.
72240         * lib/mkdirat.c: Include openat-priv.h.
72241         Remove definitions of macros defined therein.
72242         * lib/openat.c: Likewise.
72243
72244         * lib/mkdirat.c (mkdirat): New file and function.
72245         * lib/openat.h (mkdirat): Declare.
72246
72247         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72248
72249         * lib/openat.h (openat_permissive): Declare.
72250         (openat_ro): Define.
72251
72252         * lib/openat.c (EXPECTED_ERRNO): New macro.
72253         (openat_permissive): New function -- used in remove.c rewrite.
72254         (all functions): Set errno just before returning, only if there
72255         was an actual failure.
72256         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72257
72258         Emulate openat-family functions using Linux's procfs, if possible.
72259         Idea and some code based on Ulrich Drepper's glibc changes.
72260
72261         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72262         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72263         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72264         before falling back on save_cwd and restore_cwd.
72265         (fdopendir, fstatat, unlinkat): Likewise.
72266
72267         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72268         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72269
72270         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72271         as second argument to va_arg.  Otherwise, some versions of gcc
72272         warn that `if this code is reached, the program will abort'.
72273
72274 2006-01-09  Jim Meyering  <jim@meyering.net>
72275
72276         Sync from coreutils.
72277         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72278         Require openat-priv.h.
72279
72280 2006-01-09  Bruno Haible  <bruno@clisp.org>
72281
72282         * modules/strnlen (Include): Use strnlen.h.
72283
72284 2006-01-09  Bruno Haible  <bruno@clisp.org>
72285
72286         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72287
72288 2006-01-09  Bruno Haible  <bruno@clisp.org>
72289
72290         * lib/sysexit_.h (EX_OK): New macro.
72291         Suggested by Martin Lambers <marlam@marlam.de>.
72292
72293 2006-01-09  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72296         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72297
72298 2006-01-09  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72301         numbers.
72302
72303 2006-01-09  Bruno Haible  <bruno@clisp.org>
72304
72305         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72306         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72307         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72308         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72309
72310 2006-01-09  Bruno Haible  <bruno@clisp.org>
72311
72312         * build-aux/javacomp.sh.in: New file, moved from lib/.
72313         * modules/javacomp-script (Files): Update.
72314         (configure.ac): Add AC_CONFIG_FILES invocation.
72315         (EXTRA_DIST): Remove variable.
72316
72317         * build-aux/javaexec.sh.in: New file, moved from lib/.
72318         * modules/javaexec (Files): Update.
72319         (configure.ac): Add AC_CONFIG_FILES invocation.
72320         (EXTRA_DIST): Remove javaexec.sh.in.
72321
72322         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72323         * modules/csharpcomp-script (Files): Update.
72324         (configure.ac): Add AC_CONFIG_FILES invocation.
72325         (EXTRA_DIST): Remove variable.
72326
72327         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72328         * modules/csharpexec (Files): Update.
72329         (configure.ac): Add AC_CONFIG_FILES invocation.
72330         (EXTRA_DIST): Remove csharpexec.sh.in.
72331
72332 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72333
72334         Sync from coreutils.
72335
72336         Add POSIX ACL support
72337         * lib/acl.h (copy_acl, set_acl): Add declarations.
72338         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72339         systems other than Linux.
72340         (chmod_or_fchmod): New function: use fchmod when possible,
72341         and chmod otherwise.
72342         (file_has_acl): Add a POSIX ACL implementation, with a
72343         Linux-specific subcase.
72344         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72345         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72346         acls are unsupported.
72347         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72348         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72349         are unsupported.
72350
72351 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72352
72353         Sync from coreutils.
72354         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72355
72356 2006-01-07  Bruno Haible  <bruno@clisp.org>
72357
72358         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72359         gl_EARLY.
72360
72361 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72362
72363         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72364         Problem reported for Mingw by Mark Junker.
72365
72366 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * README: Gnulib normally doesn't generate a tarball.
72369
72370 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72371
72372         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72373         long int, not int, for nanosecond counts, so that people who are
72374         used to POSIX struct timespec won't be surprised.  Reported by Jim
72375         Meyering.
72376
72377 2005-12-28  Bruno Haible  <bruno@clisp.org>
72378
72379         * build-aux/config.rpath: Update from GNU gettext.
72380
72381 2005-12-16  Jim Meyering  <jim@meyering.net>
72382
72383         * modules/fprintftime: New module.
72384         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72385
72386 2005-12-16  Jim Meyering  <jim@meyering.net>
72387
72388         * m4/fprintftime.m4: New file.
72389
72390 2005-12-16  Jim Meyering  <jim@meyering.net>
72391
72392         * lib/fprintftime.c, lib/fprintftime.h: New files.
72393
72394 2005-12-15  Simon Josefsson  <jas@extundo.com>
72395
72396         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72397         new m4/socklen.m4.
72398
72399 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72400
72401         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72402         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72403
72404 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72405
72406         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72407         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72408         struct uparams is valid. Fall back to the default values if it is
72409         not.
72410
72411 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72412
72413         * modules/argp (Files): Add argp-pin.c
72414         (Depends-on): dirname
72415         (lib_SOURCES): Add argp-pin.c
72416
72417 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72418
72419         * m4/argp.m4:  Check if program_invocation_name and
72420         program_invocation_short_name are declared and define appropriate
72421         macros if they are not.
72422
72423 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72424
72425         * lib/argp-help.c (__argp_base_name): New function
72426         (__argp_short_program_name): Rewrite using __argp_base_name
72427         * lib/argp-namefrob.h: Define program_invocation_name and
72428         program_invocation_short_name if requested
72429         (__argp_base_name): Add prototype
72430         * lib/argp-parse.c (argp_def): Use gettext wrappers
72431         (argp_default_parser): Use __argp_base_name
72432         * lib/argp-pin.c: New file. Defines program_invocation_name and
72433         program_invocation_short_name on systems that lack them.
72434
72435 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72438         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72439         porting problem reported by Georg Schwarz in
72440         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72441
72442 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72445         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72446         porting problem reported by Georg Schwarz in
72447         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72448
72449 2005-12-05  Bruno Haible  <bruno@clisp.org>
72450
72451         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72452         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72453         Reported by Mark Junker <mjscod@gmx.de>.
72454
72455 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72458         Use implementation from Albert Chin, with some
72459         comments/corrections by Stepan Kasal and myself.
72460
72461 2005-12-02  Bruno Haible  <bruno@clisp.org>
72462
72463         * gnulib-tool (func_import): Accept GPLed build tool modules when
72464         --lgpl is given.
72465         * modules/csharpcomp-script: New file.
72466         * modules/csharpcomp: Depend on it.
72467         * modules/javacomp-script: New file.
72468         * modules/javacomp: Depend on it.
72469         Suggested by Simon Josefsson.
72470
72471 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72474         statement, to work around an HP-UX 10.20 compiler bug reported by
72475         Peter O'Gorman.
72476
72477 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72478
72479         * modules/savedir (Depends-on): Add openat.
72480
72481 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72484         (uintmax_t) [defined uintmax_t]: Do not declare.
72485         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72486         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72487         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72488         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72489         sake of portability to weird hosts that C allows (though we don't
72490         know of any practical examples).
72491
72492         * lib/savedir.h (fdsavedir): New decl.
72493         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72494         contains most of the former guts of savedir.
72495         (savedir): Use savedirstream.
72496         Include "openat.h".
72497
72498 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         * modules/obstack (Files): Add m4/ulonglong.m4.
72501         Problem reported by Davide Angelocola.
72502
72503 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72506         coreutils no longer futzes with rounding modes.
72507
72508 2005-11-14  Jim Meyering  <jim@meyering.net>
72509
72510         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72511         replacement of mkstemp.
72512
72513 2005-11-10  Simon Josefsson  <jas@extundo.com>
72514
72515         * lib/readline.c: Remove EOL.
72516
72517 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72518
72519         * modules/gethrxtime (Depends-on): Add gettime.
72520
72521 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72524         or gettimeofday; no longer needed.
72525
72526 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72529         time business.
72530         (gethrxtime) [! (HAVE_NANOUPTIME
72531         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72532         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72533         our own approximation.
72534
72535 2005-11-08  Eric Blake  <ebb9@byu.net>
72536
72537         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72538
72539 2005-11-08  Eric Blake  <ebb9@byu.net>
72540
72541         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72542
72543 2005-11-04  Bruno Haible  <bruno@clisp.org>
72544
72545         * gnulib-tool: Implement --update mode.
72546
72547 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72548
72549         Fix porting problem reported by Theodoros V. Kalamatianos.
72550         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72551         Don't assume that futimes failing means we must fail.
72552
72553 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72556         variables to suggest the intended function of the PATH_MAX check.
72557
72558 2005-10-30  Kean Johnston  <jkj@sco.com>
72559
72560         Trivial changes to support SCO systems.
72561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72562         as PATH_MAX.
72563         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72564         where __ptr is null when no I/O is pending.
72565
72566 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72569         leave errno alone.  Problem reported by Dmitry V. Levin.
72570
72571 2005-10-28  Simon Josefsson  <jas@extundo.com>
72572
72573         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72574         Test more.
72575
72576         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72577
72578         * modules/md2, modules/md2-tests: New files.
72579
72580 2005-10-28  Simon Josefsson  <jas@extundo.com>
72581
72582         * m4/inet_ntop.m4: More tests.
72583
72584         * m4/gc-md2.m4, md2.m4: New file.
72585
72586 2005-10-28  Simon Josefsson  <jas@extundo.com>
72587
72588         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72589         "restrict" keywords, as per POSIX.  Protect the function
72590         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72591         Don't use K&R prototypes.  Check the sprintf return values.
72592         Re-define EAFNOSUPPORT if not present.  Indent.
72593
72594         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72595         suggested by Bruno Haible <bruno@clisp.org>.
72596
72597         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72598
72599         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72600
72601         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72602         libgcrypt).
72603
72604         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72605
72606         * lib/md2.h, lib/md2.c: New files.
72607
72608 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72611         errno alone.  Problem reported by Frederic Jolliton.
72612
72613 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * modules/verify (License): Change from GPL to LGPL.  This is a
72616         tiny module and there are apparently near-equivalents that are
72617         under the BSD license.
72618
72619 2005-10-24  Simon Josefsson  <jas@extundo.com>
72620
72621         * modules/sha1: Relicense to LGPL.
72622
72623 2005-10-24  Simon Josefsson  <jas@extundo.com>
72624
72625         * lib/md4.h: Shrink buffer size, now that we changed the type.
72626
72627 2005-10-23  Simon Josefsson  <jas@extundo.com>
72628
72629         * gnulib-tool (func_import): Fix --tests-base.
72630
72631 2005-10-22  Simon Josefsson  <jas@extundo.com>
72632
72633         * modules/arcfour (Depends-on): Need stdint.
72634
72635 2005-10-22  Simon Josefsson  <jas@extundo.com>
72636
72637         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72638         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72639
72640 2005-10-22  Simon Josefsson  <jas@extundo.com>
72641
72642         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72643         suggested by Bruno Haible <bruno@clisp.org>.
72644
72645 2005-10-22  Simon Josefsson  <jas@extundo.com>
72646
72647         * lib/crc.h: Include stddef.h, for size_t.
72648
72649 2005-10-22  Simon Josefsson  <jas@extundo.com>
72650
72651         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72652         arcfour_context struct (simplify test vector testing in GNU
72653         Shishi).
72654
72655 2005-10-21  Simon Josefsson  <jas@extundo.com>
72656
72657         * modules/des, modules/des-tests: New files.
72658
72659         * modules/gc-des, modules/gc-des-tests: New files.
72660
72661         * tests/test-des.c, tests/test-gc-des.c: New file.
72662
72663 2005-10-21  Simon Josefsson  <jas@extundo.com>
72664
72665         * modules/arctwo, modules/arctwo-tests: New files.
72666
72667         * tests/test-arctwo.c: New file.
72668
72669         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72670
72671         * tests/test-gc-arctwo.c: New file.
72672
72673 2005-10-21  Simon Josefsson  <jas@extundo.com>
72674
72675         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72676         Bruno Haible <bruno@clisp.org>.
72677
72678         * m4/gc-des.m4: New file.
72679
72680 2005-10-21  Simon Josefsson  <jas@extundo.com>
72681
72682         * m4/arctwo.m4: New file.
72683
72684         * m4/gc-arctwo.m4: New file.
72685
72686 2005-10-21  Simon Josefsson  <jas@extundo.com>
72687
72688         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72689         block.
72690
72691 2005-10-21  Simon Josefsson  <jas@extundo.com>
72692
72693         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72694         <bruno@clisp.org>.
72695
72696         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72697
72698         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72699         Bruno Haible <bruno@clisp.org>.
72700
72701         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72702         <bruno@clisp.org>.
72703
72704 2005-10-21  Simon Josefsson  <jas@extundo.com>
72705
72706         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72707
72708 2005-10-21  Simon Josefsson  <jas@extundo.com>
72709
72710         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72711
72712 2005-10-21  Simon Josefsson  <jas@extundo.com>
72713
72714         * lib/des.h, lib/des.c: New files.
72715
72716         * lib/gc-gnulib.c: Support DES.c
72717
72718 2005-10-21  Simon Josefsson  <jas@extundo.com>
72719
72720         * lib/arctwo.h, lib/arctwo.c: New files.
72721
72722         * lib/gc-gnulib.c: Support ARCTWO.
72723
72724 2005-10-21  Simon Josefsson  <jas@extundo.com>
72725
72726         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72727         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72728
72729 2005-10-21  Simon Josefsson  <jas@extundo.com>
72730
72731         * gnulib-tool (func_import, func_create_testdir): Define automake
72732         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72733         Makefile.am snippet),
72734         suggested by Bruno Haible <bruno@clisp.org>.
72735
72736         * modules/gc (Makefile.am): Use it.
72737
72738 2005-10-21  Bruno Haible  <bruno@clisp.org>
72739
72740         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72741         patch.
72742
72743 2005-10-19  Simon Josefsson  <jas@extundo.com>
72744
72745         * tests/test-gc-rijndael.c: New file.
72746
72747         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72748
72749 2005-10-19  Simon Josefsson  <jas@extundo.com>
72750
72751         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72752         interface too.
72753
72754 2005-10-19  Simon Josefsson  <jas@extundo.com>
72755
72756         * tests/test-gc-arcfour.c: New file.
72757
72758         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72759
72760 2005-10-19  Simon Josefsson  <jas@extundo.com>
72761
72762         * modules/gc-md4, modules/gc-md4-tests: New file.
72763
72764         * tests/test-gc-md4.c: New file.
72765
72766 2005-10-19  Simon Josefsson  <jas@extundo.com>
72767
72768         * m4/gc-md4.m4: New file.
72769
72770 2005-10-19  Simon Josefsson  <jas@extundo.com>
72771
72772         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72773         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72774         <kasal@ucw.cz>.
72775
72776 2005-10-19  Simon Josefsson  <jas@extundo.com>
72777
72778         * m4/gc-arcfour.m4: New file.
72779
72780         * m4/gc-rijndael.m4: New file.
72781
72782 2005-10-19  Simon Josefsson  <jas@extundo.com>
72783
72784         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72785
72786 2005-10-19  Simon Josefsson  <jas@extundo.com>
72787
72788         * lib/gc-gnulib.c: Support ARCFOUR.
72789
72790 2005-10-19  Simon Josefsson  <jas@extundo.com>
72791
72792         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72793         support.
72794
72795         * lib/gc.h: Add ECB enum type.
72796
72797         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72798
72799 2005-10-18  Simon Josefsson  <jas@extundo.com>
72800
72801         * tests/test-md5.c: New file.
72802
72803         * modules/md5-tests: New file.
72804
72805 2005-10-18  Simon Josefsson  <jas@extundo.com>
72806
72807         * tests/test-md4.c: New file.
72808
72809         * modules/md4, modules/md4-tests: New files.
72810
72811 2005-10-18  Simon Josefsson  <jas@extundo.com>
72812
72813         * m4/md4.m4: New file.
72814
72815 2005-10-18  Simon Josefsson  <jas@extundo.com>
72816
72817         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72818
72819 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72820
72821         * gnulib-tool (func_create_testdir): Omit the second check whether
72822         BUILT_SOURCES in nonempty.
72823
72824 2005-10-17  Simon Josefsson  <jas@extundo.com>
72825
72826         * tests/test-rijndael.c: New file.
72827
72828 2005-10-17  Simon Josefsson  <jas@extundo.com>
72829
72830         * modules/sha1: Depend on stdint instead of md5.
72831
72832         * modules/md5: Depend on stdint, remove uint32_t.
72833
72834 2005-10-17  Simon Josefsson  <jas@extundo.com>
72835
72836         * modules/gc-sha1-tests: New file.
72837
72838         * tests/test-gc-sha1.c: New file.
72839
72840 2005-10-17  Simon Josefsson  <jas@extundo.com>
72841
72842         * m4/md5.m4: Remove call to uint32_t.m4.
72843
72844 2005-10-17  Simon Josefsson  <jas@extundo.com>
72845
72846         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72847
72848         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72849         md5.h.
72850
72851         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72852
72853         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72854
72855 2005-10-17  Simon Josefsson  <jas@extundo.com>
72856
72857         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72858
72859 2005-10-17  Simon Josefsson  <jas@extundo.com>
72860
72861         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72862
72863 2005-10-17  Simon Josefsson  <jas@extundo.com>
72864
72865         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72866
72867         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72868
72869 2005-10-17  Bruno Haible  <bruno@clisp.org>
72870
72871         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72872         that it can also be used in a test.
72873
72874 2005-10-16  Bruno Haible  <bruno@clisp.org>
72875
72876         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72877         TESTS_ENVIRONMENT, so that individual tests can augment it.
72878
72879         * gnulib-tool (func_create_testdir): Use an intermediate target for
72880         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72881         macros, like $(ALLOCA_H), which cannot be passed through the command
72882         line.
72883
72884 2005-10-15  Simon Josefsson  <jas@extundo.com>
72885
72886         * modules/rijndael-tests: New file.
72887
72888         * modules/rijndael: New file.
72889
72890 2005-10-15  Simon Josefsson  <jas@extundo.com>
72891
72892         * m4/rijndael.m4: New file.
72893
72894 2005-10-15  Simon Josefsson  <jas@extundo.com>
72895
72896         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72897
72898         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72899
72900 2005-10-14  Simon Josefsson  <jas@extundo.com>
72901
72902         * tests/test-arcfour.c: New file.
72903
72904         * modules/arcfour, modules/arcfour-tests: New files.
72905
72906 2005-10-14  Simon Josefsson  <jas@extundo.com>
72907
72908         * m4/arcfour.m4: New file.
72909
72910 2005-10-14  Simon Josefsson  <jas@extundo.com>
72911
72912         * lib/arcfour.h, lib/arcfour.c: New files.
72913
72914 2005-10-14  Roland McGrath  <roland@redhat.com>
72915
72916         Import from libc.  [BZ #1331]
72917         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72918         macro argument.
72919         Reported by Matej Vela <vela@debian.org>.
72920
72921 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72924         include <wchar.h>; no longer needed.
72925
72926 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72929
72930 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72931         and  Ulrich Drepper  <drepper@redhat.com>
72932
72933         Import from libc.
72934         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72935         instead of inline stream orientation test and two separate
72936         function calls.  Pay no attention to USE_IN_LIBIO.
72937
72938 2005-10-13  Simon Josefsson  <jas@extundo.com>
72939
72940         * modules/gc-hmac-md5-tests: New file.
72941
72942         * tests/test-gc-hmac-sha1.c: New file.
72943
72944         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72945
72946         * modules/gc-hmac-md5-tests: New file.
72947
72948         * tests/test-gc-md5.c: New file.
72949
72950         * modules/gc-md5-tests: New file.
72951
72952 2005-10-13  Simon Josefsson  <jas@extundo.com>
72953
72954         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72955         Move memory allocation outside of loop.
72956
72957 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72958
72959         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72960         intermediate directory is in a read-only file system.  Problem
72961         reported by Eric Blake.
72962
72963 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72964
72965         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72966
72967 2005-10-12  Simon Josefsson  <jas@extundo.com>
72968
72969         * tests/test-hmac-sha1.c: New file.
72970
72971         * modules/hmac-sha1-tests: New file.
72972
72973         * modules/hmac-sha1: New file.
72974
72975 2005-10-12  Simon Josefsson  <jas@extundo.com>
72976
72977         * modules/gc-sha1: New file.
72978
72979 2005-10-12  Simon Josefsson  <jas@extundo.com>
72980
72981         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72982
72983         * tests/test-gc-pbkdf2-sha1.c: New file.
72984
72985 2005-10-12  Simon Josefsson  <jas@extundo.com>
72986
72987         * modules/gc-md5, modules/gc-hmac-md5: New files.
72988
72989         * modules/gc (Files): Remove md5, memxor and hmac files.
72990
72991 2005-10-12  Simon Josefsson  <jas@extundo.com>
72992
72993         * m4/gc-pbkdf2-sha1.m4: New file.
72994
72995         * m4/gc-hmac-sha1.m4: New file.
72996
72997         * m4/gc-sha1: New file.
72998
72999         * m4/hmac-sha1.m4: New file.
73000
73001 2005-10-12  Simon Josefsson  <jas@extundo.com>
73002
73003         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73004
73005         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73006
73007 2005-10-12  Simon Josefsson  <jas@extundo.com>
73008
73009         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73010         suggested by Bruno Haible <bruno@clisp.org>.
73011
73012 2005-10-12  Simon Josefsson  <jas@extundo.com>
73013
73014         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73015
73016 2005-10-12  Simon Josefsson  <jas@extundo.com>
73017
73018         * lib/gc-pbkdf2-sha1.c: New file.
73019
73020         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73021
73022 2005-10-12  Simon Josefsson  <jas@extundo.com>
73023
73024         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73025
73026         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73027
73028 2005-10-12  Simon Josefsson  <jas@extundo.com>
73029
73030         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73031         GC_USE_HMAC_MD5, respectively.
73032
73033         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73034         (gc_md5): Fix typo.
73035
73036         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73037
73038         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73039
73040         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73041
73042 2005-10-12  Bruno Haible  <bruno@clisp.org>
73043
73044         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73045         Reported by Stepan Kasal <kasal@ucw.cz>.
73046
73047 2005-10-11  Simon Josefsson  <jas@extundo.com>
73048
73049         * tests/test-crc.c: New file.
73050
73051         * modules/crc, modules/crc-tests: New files.
73052
73053 2005-10-11  Simon Josefsson  <jas@extundo.com>
73054
73055         * m4/crc.m4: New file.
73056
73057 2005-10-11  Simon Josefsson  <jas@extundo.com>
73058
73059         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73060
73061         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73062
73063         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73064
73065 2005-10-11  Simon Josefsson  <jas@extundo.com>
73066
73067         * lib/crc.h, lib/crc.c: New files.
73068
73069         * lib/gc.h (gc_hash_buffer): Add doc.
73070
73071 2005-10-11  Bruno Haible  <bruno@clisp.org>
73072
73073         * modules/c-strcasestr: New file.
73074         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73075
73076 2005-10-11  Bruno Haible  <bruno@clisp.org>
73077
73078         * modules/c-strcase: New file.
73079         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73080
73081 2005-10-11  Bruno Haible  <bruno@clisp.org>
73082
73083         * lib/strcasecmp.c: Include limits.h.
73084         (strcasecmp): Avoid integer overflow on exotic platforms.
73085         * lib/strncasecmp.c: Include limits.h.
73086         (strncasecmp): Avoid integer overflow on exotic platforms.
73087         Reported by Paul Eggert.
73088
73089 2005-10-11  Bruno Haible  <bruno@clisp.org>
73090
73091         * lib/c-strcasestr.h: New file, from GNU gettext.
73092         * lib/c-strcasestr.c: New file, from GNU gettext.
73093
73094 2005-10-11  Bruno Haible  <bruno@clisp.org>
73095
73096         * lib/c-strcase.h: New file, from GNU gettext.
73097         * lib/c-strcasecmp.c: New file, from GNU gettext.
73098         * lib/c-strncasecmp.c: New file, from GNU gettext.
73099
73100 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         * modules/mempcpy (License): GPL -> LGPL.
73103         * modules/strchrnul (License): Likewise.
73104         * modules/sysexits (License): Likewise.
73105
73106 2005-10-08  Simon Josefsson  <jas@extundo.com>
73107
73108         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73109
73110 2005-10-07  Simon Josefsson  <jas@extundo.com>
73111
73112         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73113
73114 2005-10-06  Simon Josefsson  <jas@extundo.com>
73115
73116         * tests/test-hmac-md5.c: New file.
73117
73118         * modules/hmac-md5-tests: New file.
73119
73120         * modules/hmac-md5: New file.
73121
73122 2005-10-06  Simon Josefsson  <jas@extundo.com>
73123
73124         * m4/hmac-md5.m4: New file.
73125
73126         * m4/memxor.m4: Require gl_C_RESTRICT.
73127
73128 2005-10-06  Simon Josefsson  <jas@extundo.com>
73129
73130         * lib/memxor.c (memxor): Avoid casts and warnings.
73131
73132 2005-10-06  Simon Josefsson  <jas@extundo.com>
73133
73134         * lib/hmac-md5.c: New file.
73135
73136         * lib/hmac.h: New file.
73137
73138 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73139
73140         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73141         promotes to int, not unsigned int, to catch the AIX 5.3
73142         compiler bug.
73143
73144 2005-10-05  Simon Josefsson  <jas@extundo.com>
73145
73146         * modules/memxor: New file.
73147
73148         * modules/iconv (Files): Move config.rpath to havelib, it is used
73149         there.
73150
73151         * modules/havelib (Files): Add config.rpath.
73152
73153 2005-10-05  Simon Josefsson  <jas@extundo.com>
73154
73155         * m4/memxor.m4: New file.
73156
73157 2005-10-05  Simon Josefsson  <jas@extundo.com>
73158
73159         * lib/memxor.c (memxor): Fix compiler error.
73160
73161         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73162         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73163
73164         * lib/memxor.h, lib/memxor.c: New files.
73165
73166         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73167         we assume all systems have it, suggested by Jim Meyering
73168         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73169         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73170         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73171         same reasons.
73172
73173 2005-10-05  Simon Josefsson  <jas@extundo.com>
73174
73175         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73176
73177 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73178
73179         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73180         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73181         needed, since the source code now assumes these .h files.
73182
73183 2005-10-05  Derek Price  <derek@ximbiot.com>
73184
73185         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73186
73187 2005-10-05  Bruno Haible  <bruno@clisp.org>
73188
73189         * modules/stdint (License): Change to LGPL.
73190
73191 2005-10-04  Simon Josefsson  <jas@extundo.com>
73192
73193         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73194         D. Baushke" <mdb@gnu.org>.
73195
73196 2005-10-04  Bruno Haible  <bruno@clisp.org>
73197
73198         * lib/verify.h (verify_true): Provide alternative definition for C++.
73199
73200 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73203         (SSIZE_MAX): New macro, if not already defined.
73204         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73205         than 2 GiB.
73206
73207 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         Sync from coreutils.
73210         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73211         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73212         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73213         ULLONG_MAX doesn't work with 2.7.2.1.
73214
73215 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73218         From Ben Pfaff.
73219
73220         * modules/exclude (Depends-on): Depend on verify.
73221         * modules/strtoimax (Depends-on): Likewise.
73222         * modules/utimecmp (Depends-on): Likewise.
73223
73224 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * lib/exclude.c: Include verify.h.
73227         (verify): Remove.  All callers changed to use verify.h's version.
73228         * lib/strtoimax.c: Likewise.
73229         * lib/utimecmp.c: Likewis.e
73230
73231         Sync from coreutils.
73232         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73233         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73234         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73235         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73236         bother returning ENOSYS if settimeofday or stime fails; just let
73237         them return whatever errno they want to return.
73238         * lib/utimens.c: Include unistd.h, for dup2.
73239         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73240         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73241
73242 2005-10-02  Jim Meyering  <jim@meyering.net>
73243
73244         Sync from coreutils.
73245         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73246         from glibc-2.2.5 that fails for read-only files.
73247
73248 2005-10-02  Jim Meyering  <jim@meyering.net>
73249
73250         Sync from coreutils.
73251         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73252         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73253         `#if HAVE_CONFIG_H'.
73254         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73255         Remove AT_FDCWD test.
73256         Do not consume the fd unless successful.
73257         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73258         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73259         block, so that we don't even try to compile it if settimeofday is
73260         available.  This works around a compilation failure on OSF1 V5.1,
73261         due to stime requiring a `long int*' while tv_sec is `int'.
73262
73263 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73264
73265         Sync from coreutils.
73266         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73267         against `yes', rather than just testing for nonempty.
73268
73269 2005-10-01  Simon Josefsson  <jas@extundo.com>
73270
73271         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73272         and Darwin.
73273
73274         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73275         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73276         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73277         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73278         Check if struct addrinfo is declared.
73279
73280 2005-10-01  Simon Josefsson  <jas@extundo.com>
73281
73282         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73283         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73284         AI_* and EAI_* definitions.  Protect function declarations.
73285
73286 2005-10-01  Jim Meyering  <jim@meyering.net>
73287
73288         Sync from coreutils.
73289
73290         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73291         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73292         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73293         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73294         in the inet and nsl libraries.  Required on Solaris 5.7.
73295
73296 2005-10-01  Jim Meyering  <jim@meyering.net>
73297
73298         Sync from coreutils.
73299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73300         in the inet and nsl libraries.  Required on Solaris 5.7.
73301
73302 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73303
73304         * lib/getdelim.c (getdelim): Remove unused variables.
73305
73306 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73309         so that the code works even with ancient cpp.  Portability problem
73310         with GCC 2.7.2.1 reported by Thomas M.Ott.
73311
73312 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * modules/regex (Depends-on): Add strcase.
73315
73316         * modules/gethostname (Licence): Change from GPL to LGPL, since
73317         gethostname.c is a trivial implementation of a standard library
73318         function.
73319         * modules/poll (License): Change from GPL to LGPL, since it's
73320         derived from LGPL code.
73321
73322 2005-09-27  Jim Meyering  <jim@meyering.net>
73323
73324         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73325         HAVE_CONFIG_H.
73326
73327         * lib/intprops.h (signed_type_or_expr__): Define.
73328         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73329         for unsigned types.
73330
73331 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * lib/verify.h (verify_expr): Remove, replacing with:
73334         (verify_true): New macro that returns true instead of void.
73335         (verify_type__): Remove.
73336         (verify): Use verify_true rather than verify_type__.
73337
73338 2005-09-26  Bruno Haible  <bruno@clisp.org>
73339
73340         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73341         is necessary.
73342         (lib_SOURCES): Remove mbchar.c.
73343         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73344         (Files): Add m4/mbrtowc.m4.
73345         * modules/mbiter: Likewise.
73346         * modules/mbuiter: Likewise.
73347
73348 2005-09-26  Bruno Haible  <bruno@clisp.org>
73349
73350         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73351         compile mbchar.c if they are not both present.
73352         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73353         * m4/mbiter.m4 (gl_MBITER): Likewise.
73354         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73355         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73356         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73357
73358 2005-09-25  Jim Meyering  <jim@meyering.net>
73359
73360         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73361         also uses socklen_t.
73362
73363 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73364
73365         * lib/utimens.c (ENOSYS): Define if not already defined.
73366         (futimens): Support having a null PATH if the file descriptor
73367         is nonnegative.
73368
73369         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73370         Remove.
73371         (__attribute): Define to empty unless GCC 3.1 or later.
73372         This works around a core dump on OpenBSD 3.4, which has GCC
73373         2.95.3, which dumps core when given __attribute__(()).  It also
73374         simplifies other tests, since we really don't want to bother with
73375         worrying about which ancient version of GCC supported what.
73376         Original problem reported by Yoann Vandoorselaere, with part of
73377         the fix suggested by Derek Price.
73378
73379 2005-09-24  Jim Meyering  <jim@meyering.net>
73380
73381         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73382         so we can once again use a positive bitfield width of 1 -- now we
73383         don't have to explain why we were using a bitfield width of 2.
73384
73385 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73388         and similarly for the other external symbols.  Problem reported
73389         by James Gallager.
73390
73391         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73392         bug reported by Jim Meyering.
73393
73394         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73396         not needed, since socklen is a prerequisite module.
73397
73398 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73401         Problem reported by Eric Blake.
73402         (getaddrinfo): Initialize se so that it's not garbage.
73403         Redo internal storage allocation so that it doesn't make unportable
73404         assumptions about alignment.
73405         Fix a memory leak.
73406
73407         * lib/utimens.c (futimens): Use futimesat if available.
73408         Prefer it to futimes since it doesn't have the futimes bug.
73409
73410         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73411         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73412         Instead, declare a function that returns a pointer to an array,
73413         and use verify_type__ to declare the size of the array.
73414         Problem and germ of a solution reported by Bruno Haible.
73415         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73416         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73417
73418 2005-09-23  Jim Meyering  <jim@meyering.net>
73419
73420         Sync from coreutils.
73421         Correct build failure (socklen_t not defined) on at least
73422         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73424
73425 2005-09-23  Jim Meyering  <jim@meyering.net>
73426
73427         * modules/getaddrinfo (Depends-on): Add socklen.
73428
73429 2005-09-23  Bruno Haible  <bruno@clisp.org>
73430
73431         * tests/test-verify.c: New file.
73432
73433 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         Sync from coreutils.
73436
73437         * modules/argmatch (Depends-on): Add verify.
73438         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73439         unistd-safer.
73440         * modules/save-cwd (Depends-on): Likewise.
73441
73442         * modules/openat (Files): Add lib/openat-die.c.
73443         (Depends-on): Remove error, exitfail.
73444         Add dirname.
73445
73446         * modules/verify: New file.
73447         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73448         with "verify" module.
73449
73450 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         Sync from coreutils.
73453
73454         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73455         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73456         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73457         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73458         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73459         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73460         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73461         Don't bother checking for string.h, stdlib.h, unistd.h.
73462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73463         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73464         module's job.
73465         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73466         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73467
73468         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73469         (gl_GETDATE): Use it.
73470
73471         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73472
73473 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         Sync from coreutils.
73476
73477         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73478         stat-time.h.
73479         * lib/argmatch.h: Include verify.h
73480         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73481         (ARGMATCH_ASSERT): Remove; unused.
73482         * lib/canonicalize.c: Assume STDC_HEADERS.
73483         * lib/exclude.c: Include "strcase.h".
73484         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73485         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73486         and stdio-safer.h.
73487         (getusershell): Call fopen, not fopen_safer.
73488         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73489         Do not include unistd-safer.h.
73490         (save_cwd): Don't call fd_safer; no longer needed
73491         now that we include fcntl--.h.
73492
73493         * lib/getdate.y (relative_time): New type.
73494         (RELATIVE_TIME_0): New constant.
73495         (parser_control): Use relative_time instead of doing it ourselves.
73496         (%union): Add new relative_time rel member.
73497         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73498         Now typeless.
73499         (relunit, relunit_snumber): Now of type rel.
73500         (zone, rel, relunit, get_date): Adjust to above changes.
73501
73502         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73503         Do not include unistd-safer.h.
73504         (getloadavg): Don't call fd_safer; no longer needed
73505         now that we include fcntl--.h.
73506
73507         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73508         (make_dir_parents): Treat ENOSYS like EEXIST.
73509
73510         Improve quality of diagnostics on restore_cwd failure.
73511         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73512         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73513         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73514         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73515         each time through the loop.  Do not diagnose restore_cwd failure;
73516         that is the caller's job (and perhaps the caller does not care).
73517
73518         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73519         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73520         If the file already exists but is not a directory, don't bother
73521         to try to make its parents.
73522         Close potential file descriptor leak if we can't chdir("/") (!).
73523         Don't always return true if chdir($PWD) fails; return true only
73524         if the requested action was done successfully (except for the
73525         chdir($PWD)).
73526         Don't log final directory unless we actually made it.
73527         Refactor to avoid duplicate code to fix up permissions.
73528         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73529
73530         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73531         to make it a bit faster and (I hope) clearer.
73532         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73533         Fix bug in formats like %2N.
73534
73535         * lib/verify.h: New file.
73536
73537 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         Sync from coreutils.
73540         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73541
73542 2005-09-22  Jim Meyering  <jim@meyering.net>
73543
73544         Sync from coreutils.
73545
73546         * m4/lstat.m4 (gl_FUNC_LSTAT):
73547         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73548         Remove obsolete comment.
73549         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73550         * m4/xstrtod.m4: Likewise.
73551
73552         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73553
73554 2005-09-22  Jim Meyering  <jim@meyering.net>
73555
73556         Sync from coreutils.
73557
73558         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73559
73560         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73561         the .tm_year member, since otherwise gcc-4.0 would now warn about
73562         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73563
73564         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73565         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73566
73567         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73568         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73569         when run in a time zone for which daylight savings time is in effect
73570         for the starting date.
73571
73572         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73573         stop us from restricting permissions of just-created absolute-named
73574         directories.
73575         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73576         to restore initial working directory.
73577         * lib/mkdir-p.c (make_dir_parents): New parameter:
73578         different_working_dir, to tell caller if/when we change the working
73579         directory and are unable to return to the initial one.
73580         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73581         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73582         `return false'.  This fixes a bug introduced on 2004-07-30.
73583
73584         * lib/openat.c (fdopendir): Be sure to close the supplied
73585         file descriptor before returning.  This makes our replacement
73586         implementation a little closer to Solaris's, where fdopendir
73587         ties the file descriptor to the returned DIR* pointer.
73588         * lib/openat.c (unlinkat): New function.
73589         * lib/openat.h (unlinkat): Add prototype.
73590         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73591         (openat_restore_fail): Rename from openat_restore_die.
73592         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73593
73594         Provide an alternative to exiting immediately upon save_cwd or
73595         restore_cwd failure.  Now, an application can arrange e.g.,
73596         to perform a longjump in that case.
73597         * lib/openat.c: Include dirname.h.
73598         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73599         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73600         and openat_restore_die rather than calling error directly.
73601         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73602
73603         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73604         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73605         define.
73606
73607         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73608         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73609                             int utc, int nanoseconds);
73610         Background:
73611         date should not have to allocate a megabyte of virtual memory to
73612         handle a format argument like +%1048575T.  When implemented with
73613         strftime, it must allocate such a buffer, use strftime to fill it
73614         in, print it, then free it.
73615         With fprintftime, it simply prints everything and exits.
73616         With no need for memory allocation, that's one fewer way to fail.
73617         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73618         optional field width, not before, so we accept %9:z, not %:9z.
73619         (my_strftime): Be sure to use L_('x') for literals.
73620
73621         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73622         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73623         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73624         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73625         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73626         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73627         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73628         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73629         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73630         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73631         * lib/xgethostname.c, lib/xreadlink.c:
73632         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73633
73634         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73635         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73636         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73637         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73638         and don't include <sys/file.h>).
73639
73640 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73641
73642         Sync from coreutils.
73643
73644         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73645         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73646         [!LDAV_DONE]: Avoid unused variable warning.
73647
73648 2005-09-21  Bruno Haible  <bruno@clisp.org>
73649
73650         * lib/unicodeio.h (unicode_to_mb): New declaration.
73651
73652 2005-09-20  Derek Price  <derek@ximbiot.com>
73653
73654         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73655         getaddrinfo.h.
73656
73657 2005-09-20  Bruno Haible  <bruno@clisp.org>
73658
73659         * gnulib-tool: Remove trailing slashes from the values specified for
73660         --source-base, --m4-base, --tests-base, --aux-dir.
73661         Suggested by Simon Josefsson <jas@extundo.com>.
73662
73663 2005-09-20  Bruno Haible  <bruno@clisp.org>
73664
73665         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73666         func_modules_to_filelist, func_import, func_create_testdir): Make all
73667         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73668         change when gnulib-tool is invoked in a different locale.
73669
73670 2005-09-19  Simon Josefsson  <jas@extundo.com>
73671
73672         * m4/socklen.m4: Fix typo.
73673
73674 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73675
73676         Use a consistent style for including <config.h>.
73677         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73678         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73679         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73680         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73681         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73682         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73683         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73684         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73685         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73686         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73687         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73688         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73689         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73690         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73691         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73692         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73693         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73694         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73695         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73696         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73697         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73698         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73699         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73700         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73701         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73702         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73703         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73704         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73705         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73706         lib/xstrtoumax.c, lib/yesno.c:
73707         Standardize inclusion of config.h.
73708         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73709         lib/inttostr.h:  Removed inclusion of config.h from header files.
73710         * lib/inttostr.c:  Adjusted in-tree users.
73711         * lib/timespec.h: Remove superfluous warning to include config.h.
73712         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73713         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73714         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73715         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73716         config.h with HAVE_CONFIG_H.
73717
73718 2005-09-19  Jim Meyering  <jim@meyering.net>
73719
73720         * modules/pathmax (License): Change to LGPL.
73721
73722 2005-09-19  Derek Price  <derek@ximbiot.com>
73723
73724         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73725
73726 2005-09-19  Bruno Haible  <bruno@clisp.org>
73727
73728         * gnulib-tool (import): Provide default for --tests-base.
73729
73730 2005-09-19  Bruno Haible  <bruno@clisp.org>
73731
73732         * doc/quote.texi: New file, extracted from gnulib.texi.
73733         * doc/ctime.texi: New file, extracted from gnulib.texi.
73734         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73735         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73736         * doc/gnulib.texi: Include them.
73737
73738 2005-09-18  Bruno Haible  <bruno@clisp.org>
73739
73740         Portability fix.
73741         * gnulib-tool (func_readlink): New function.
73742         (func_ln_if_changed): Use it.
73743
73744 2005-09-18  Bruno Haible  <bruno@clisp.org>
73745
73746         * gnulib-tool: Support --with-tests also with --import.
73747         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73748         (func_import): Use variables $testsbase and $inctests. Emit a
73749         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73750         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73751         SUBDIRS += $testsdir.
73752         (func_create_testdir): Update.
73753
73754 2005-09-18  Bruno Haible  <bruno@clisp.org>
73755
73756         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73757         instead of $dry_run.
73758         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73759         (func_ln_if_changed): Don't handle dry-run here.
73760         (func_import): In dry-run mode, detect more precisely which actions
73761         would be performed, and don't use "...ing" verbs.
73762
73763 2005-09-18  Bruno Haible  <bruno@clisp.org>
73764
73765         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73766         (func_import): Use join on two temporary files instead of three nested
73767         loops, in order to determine which files are new or old.
73768
73769 2005-09-18  Bruno Haible  <bruno@clisp.org>
73770
73771         * gnulib-tool (func_import): Comment out code that spits out the
73772         new files with --dry-run.
73773
73774 2005-09-18  Bruno Haible  <bruno@clisp.org>
73775
73776         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73777
73778 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73779
73780         * lib/stat-time.h: New file.
73781         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73782         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73783         in a different way.
73784         (timespec_cmp): New function.
73785         * lib/utimecmp.c: Include stat-time.h.
73786         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73787         members exist, not on the obsolescent ST_MTIM_NSEC.
73788         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73789
73790 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73793
73794 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         * MODULES.html.sh (File system functions): Add stat-time.
73797         * modules/stat-time: New file.
73798         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73799         is now done in a different way, by the stat-time module.
73800         * modules/utimecmp (Depends-on): Add stat-time.
73801
73802 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * m4/st_mtim.m4: Remove.  Superseded by...
73805         * m4/stat-time.m4: New file.
73806         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73807         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73808
73809 2005-09-15  Derek Price  <derek@ximbiot.com>
73810
73811         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73812
73813 2005-09-15  Derek Price  <derek@ximbiot.com>
73814
73815         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73816         * lib/regex_internal.c: Ditto, using this...
73817         (__GNUC_PREREQ): ...new macro.
73818         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73819         using...
73820         (__GNUC_PREREQ): ...this new macro.
73821
73822         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73823
73824 2005-09-15  Derek Price  <derek@ximbiot.com>
73825             Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73828         changes, consolidating in...
73829         * lib/regex_internal.h: ...this file.
73830
73831 2005-09-13  Jim Meyering  <jim@meyering.net>
73832
73833         * lib/canon-host.c: Filter through gnu indent and reword comments
73834         slightly.
73835         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73836
73837 2005-09-13  Derek Price  <derek@ximbiot.com>
73838
73839         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73840         failure.
73841         Reported by Jim Meyering  <jim@meyering.net>.
73842
73843 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73844
73845         * lib/base64.c: Typo.
73846         (base64_encode): Put b64str in initialized data section.
73847
73848 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         Merge glibc and coreutils changes into gnulib, plus a few
73851         extra fixes.
73852         * lib/md5.c: Use #error rather than a string.
73853         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73854         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73855         (__attribute__): Define to empty for non recent-GCC.
73856         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73857         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73858         Renamed from their non-__ counterparts, with new macros replacing
73859         them if not _LIBC.  Add __THROW attribute.
73860         (rol): Remove.
73861         (struct md5_ctx): Align buffer if using GCC.
73862         * lib/sha1.h (struct sha1_ctx): Likewise.
73863         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73864         The old name was backwards.
73865         (NOTSWAP): Remove; not used.
73866         (rol): New macro, moved here from md5.h.
73867         (sha1_process_block): Remove a FIXME that doesn't make sense.
73868
73869 2005-09-12  Derek Price  <derek@ximbiot.com>
73870
73871         Return usable errors from canon-host.
73872         * lib/canon-host.h: New file.
73873         * lib/canon-host.c (canon_host): Wrap...
73874         (canon_host_r): ...this new function, which now relies exclusively on
73875         getaddrinfo.
73876         (ch_strerror): New function.
73877         (last_cherror): New global.
73878         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73879         interface.
73880         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73881         void *.
73882         (freeaddrinfo): Free ai->ai_canonname when set.
73883
73884 2005-09-12  Derek Price  <derek@ximbiot.com>
73885
73886         Make canon-host require getaddrinfo.
73887         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73888         AC_LIBSOURCE canon-host.h.  Call...
73889         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73890         gl_GETADDRINFO.
73891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73892
73893 2005-09-12  Derek Price  <derek@ximbiot.com>
73894
73895         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73896         LGPL.
73897         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73898
73899 2005-09-12  Derek Price  <derek@ximbiot.com>
73900
73901         * lib/gai_strerror.c: Include config.h when available.  Include
73902         getaddrinfo.h before other headers to test interface.
73903         Reported by Larry Jones <lawrence.jones@ugs.com>.
73904
73905 2005-09-12  Derek Price  <derek@ximbiot.com>
73906             Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * modules/glob (Files): Add glob-libc.h.
73909
73910 2005-09-12  Derek Price  <derek@ximbiot.com>
73911             Paul Eggert  <eggert@cs.ucla.edu>
73912
73913         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73914         glob_.h, glob-libc.h.
73915         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73916
73917 2005-09-12  Derek Price  <derek@ximbiot.com>
73918             Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73921         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73922         protecting things that should be done only in gnulib contexts.
73923         * lib/glob_.h: New file, containing only the glob things needed for
73924         gnulib.
73925         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73926         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73927         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73928         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73929         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73930         and to respect the namespace rules better.
73931
73932 2005-09-08  Simon Josefsson  <jas@extundo.com>
73933
73934         * modules/socklen: New file.
73935
73936 2005-09-08  Simon Josefsson  <jas@extundo.com>
73937
73938         * m4/socklen.m4: New file.
73939
73940 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73941
73942         * modules/utimens (Files): Add m4/utimbuf.m4, since
73943         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73944         Reported by Sergey Poznyakoff.
73945
73946 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73949         definitions, since that's the preferred style in glibc.
73950         Fix a minor spacing issue, and update copyright notice to match
73951         glibc's.
73952
73953 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73954
73955         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73956
73957 2005-09-06  Simon Josefsson  <jas@extundo.com>
73958
73959         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73960         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73961
73962 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73963
73964         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73965         warning.
73966
73967 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         * config/srclist.txt: Add glibc bug 1302.
73970
73971 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         Change bitset word type from unsigned int to unsigned long int,
73974         as this has better performance on typical 64-bit hosts.
73975         Port bitset code to hosts with unusual word sizes.
73976         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73977         (build_collating_symbol):
73978         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73979         argument is a bitset.  This is merely a style issue, but it makes
73980         it clearer that an entire array is expected.
73981         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73982         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73983         Port to the case where bitset_word is not the same as unsigned int.
73984         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73985         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73986         Likewise.
73987         * lib/regexec.c (check_dst_limits_calc_pos_1,
73988         check_subexp_matching_top):
73989         (build_trtable, group_nodes_into_DFAstates):
73990         Likewise.
73991         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73992         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73993         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73994         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73995         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73996         * lib/regcomp.c (optimize_subexps, lower_subexp):
73997         Work even if bitset_word has holes in its bitwise representation.
73998         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73999         * lib/regexec.c (check_dst_limits_calc_pos_1,
74000         check_subexp_matching_top):
74001         Likewise.
74002         * lib/regex_internal.c (re_string_reconstruct):
74003         Don't assume UCHAR_MAX == 255.
74004         * lib/regex_internal.h (bitset_set_all): Likewise.
74005         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74006         All uses changed.
74007         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74008         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74009         All uses changed.
74010         (BITSET_WORD_MAX): New macro.
74011         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74012         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74013         (bitset_empty, bitset_copy):
74014         Prefer sizeof (bitset) to multiplying it out ourselves.
74015         (bitset_not_merge): Remove; unused.
74016         (bitset_contain): Return bool, not unsigned int with one bit on.
74017         All callers changed.
74018         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74019         alignment than re_node_set; do this by defining a new internal
74020         type struct dests_alloc and using it to allocate memory.
74021
74022 2005-09-05  Bruno Haible  <bruno@clisp.org>
74023
74024         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74025         links.
74026
74027 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74028
74029         * modules/size_max (Makefile.am): Add size_max.h
74030
74031 2005-09-04  Derek Price  <derek@ximbiot.com>
74032
74033         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74034
74035 2005-09-03  Simon Josefsson  <jas@extundo.com>
74036
74037         * gnulib-tool: Fix typo.
74038
74039 2005-09-03  Simon Josefsson  <jas@extundo.com>
74040
74041         * config/srclist.txt: Add glibc bug 1293.
74042
74043 2005-09-03  Derek Price  <derek@ximbiot.com>
74044
74045         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74046         From Larry Jones <lawrence.jones@ugs.com>.
74047
74048 2005-09-02  Simon Josefsson  <jas@extundo.com>
74049
74050         * modules/socklen: New file.
74051
74052 2005-09-02  Simon Josefsson  <jas@extundo.com>
74053
74054         * modules/havelib: New module.
74055
74056         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74057         Use havelib.
74058
74059 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74060
74061         Check for arithmetic overflow when calculating sizes, to prevent
74062         some buffer-overflow issues.  These patches are conservative, in the
74063         sense that when I couldn't determine whether an overflow was possible,
74064         I inserted a run-time check.
74065         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74066         macros.
74067         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74068         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74069         (re_xnrealloc, re_x2nrealloc): New inline functions.
74070         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74071         parse_bracket_exp):
74072         (build_equiv_class, build_charclass): Check for arithmetic overflow
74073         in size expression calculations.
74074         * lib/regex_internal.c (re_string_realloc_buffers):
74075         (build_wcs_upper_buffer, re_node_set_add_intersect):
74076         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74077         (re_dfa_add_node, register_state): Likewise.
74078         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74079         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74080         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74081         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74082
74083 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74084
74085         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74086         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74087
74088 2005-09-02  Bruno Haible  <bruno@clisp.org>
74089
74090         Support for lib vs. lib64 distinction on biarch platforms.
74091         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74092         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74093         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74094
74095 2005-09-02  Bruno Haible  <bruno@clisp.org>
74096
74097         * gnulib-tool (import): In the other first-use case, provide defaults
74098         as well.
74099
74100 2005-09-02  Bruno Haible  <bruno@clisp.org>
74101
74102         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74103         patches not yet found in the latest gettext release.
74104
74105 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74108         to avoid a collision with bits/local_lim.h in glibc.
74109         All uses changed.  Problem reported by Dmitry V. Levin in
74110         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74111
74112         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74113         bugs in int versus size_t comparisons.
74114         (re_string_context_at): Fix bug where the code assumed that
74115         Idx is signed.
74116
74117         Use bool where appropriate.
74118         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74119         All callers changed.
74120         (calc_eclosure_iter): Likewise, for ROOT arg.
74121         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74122         (build_charclass_op): Likewise, for NON_MATCH arg.
74123         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74124         (re_string_construct_common): Likewise, for ICASE arg.
74125         * lib/regexec.c (re_search_2_stub, re_search_stub):
74126         Likewise, for RET_LEN arg.
74127         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74128         (set_regs): Likewise, for FL_BACKTRACK arg.
74129         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74130         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74131         (calc_eclosure_iter, parse_bracket_exp):
74132         Use bool for internal variables that are booleans.
74133         * lib/regexec.c (re_search_internal, check_matching,
74134         proceed_next_node):
74135         (set_regs, build_sifted_states, sift_states_bkref):
74136         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74137         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74138         (find_collation_sequence_value):
74139         Likewise.
74140         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74141         (re_node_set_compare):
74142         Return bool, not int. All callers changed.
74143         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74144         (build_trtable, check_node_accept): Likewise.
74145         * lib/regex_internal.h: Include stdbool.h.
74146
74147         Fix bugs uncovered when converting to bool.
74148         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74149         failure instead of charging ahead blindly.
74150         * lib/regex_internal.c (register_state): Likewise.
74151         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74152         for freeing internal storage.
74153         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74154         bitset pieces used as boolean, to avoid undefined behavior
74155         on hosts that do int overflow checking.
74156
74157 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74158
74159         * config/srclist.txt: Add glibc bugs 1285-1287.
74160
74161 2005-09-01  Jim Meyering  <jim@meyering.net>
74162
74163         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74164         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74165         Require gl_STAT_MACROS, too.
74166
74167 2005-09-01  Bruno Haible  <bruno@clisp.org>
74168
74169         * gnulib-tool (import): In the first-use case, provide defaults.
74170
74171 2005-09-01  Bruno Haible  <bruno@clisp.org>
74172
74173         * gnulib-tool (func_import): Remove the .tmp files.
74174
74175 2005-09-01  Bruno Haible  <bruno@clisp.org>
74176
74177         * gnulib-tool (func_import): Fix handling of symbolic links.
74178
74179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74180
74181         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74182         old glibc regex code mishandles strings longer than 2**31 bytes.
74183         This patch fixes this when the regex code is used in gnulib
74184         (i.e., outside glibc).
74185
74186         This patch should not affect the use of the regex code inside
74187         glibc.  No doubt this problem also needs to be handled for glibc
74188         as well, but the result will be an incompatible change to the
74189         glibc ABI, and the old ABI will have to be supported too.  That
74190         can be the the subject for another patch.
74191
74192         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74193         governing whether the rest of this patch is active.  By default,
74194         the macro is disabled and the patch has no effect.
74195         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74196         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74197         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74198         (re_match_2, re_set_registers): Use the new types.
74199         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74200         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74201         New macros.
74202         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74203         (re_string_context_at, bin_tree_t, re_dfastate_t):
74204         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74205         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74206         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74207         (re_string_char_size_at, re_string_wchar_at):
74208         (re_string_elem_size_at):
74209         Use the new types and macros to port to 64-bit hosts.
74210         Use unsigned types for internal values, so that the code
74211         mostly works even for arrays larger than SSIZE_MAX.
74212         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74213         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74214         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74215         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74216         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74217         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74218         (calc_inveclosure, parse_dup_op, build_range_exp):
74219         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74220         (fetch_number, create_token_tree, mark_opt_subexp):
74221         Likewise.
74222         * lib/regex_internal.c (re_string_construct_common,
74223         create_ci_newstate):
74224         (create_cd_newstate, re_string_allocate, re_string_construct):
74225         (re_string_realloc_buffers, build_wcs_upper_buffer):
74226         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74227         (re_string_reconstruct, re_string_peek_byte_case):
74228         (re_string_fetch_byte_case, re_string_context_at):
74229         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74230         (re_node_set_init_copy, re_node_set_add_intersect):
74231         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74232         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74233         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74234         (re_acquire_state, re_acquire_state_context, register_state):
74235         Likewise.
74236         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74237         search_cur_bkref_entry):
74238         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74239         (re_search_internal, re_search_2_stub, re_search_stub)
74240         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74241         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74242         (update_cur_sifted_state, check_dst_limits):
74243         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74244         (check_subexp_limits, sift_states_bkref, merge_state_array):
74245         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74246         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74247         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74248         (expand_bkref_cache, check_node_accept_bytes):
74249         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74250         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74251         (acquire_init_state_context, check_halt_node_context):
74252         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74253         (sift_states_backward, clean_state_log_if_needed):
74254         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74255         (find_recover_state, transit_state_sb, transit_state_mb):
74256         (transit_state_bkref, build_trtable, match_ctx_clean):
74257         Likewise.
74258         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74259         to work around an assumption that REG_MISSING is negative.
74260
74261         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74262         (seek_collating_symbol_entry) [defined _LIBC]:
74263         (lookup_collation_sequence_value) [defined _LIBC]:
74264         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74265         Use prototypes rather than old-style function definitions.
74266         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74267         (transit_state_sb) [0]:
74268         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74269
74270         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74271         rm_eo.
74272
74273         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74274         (optimize_subexps, lower_subexp):
74275         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74276         since the signed shift might overflow.  Use 1u<<31 instead.
74277         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74278         Likewise.
74279         * lib/regexec.c (check_dst_limits_calc_pos_1,
74280         check_subexp_matching_top): Likewise.
74281
74282         * lib/regcomp.c (optimize_subexps, lower_subexp):
74283         Use CHAR_BIT rather than 8, for clarity.
74284         * lib/regexec.c (check_dst_limits_calc_pos_1):
74285         (check_subexp_matching_top): Likewise.
74286         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74287         have to worry about portability issues when shifting it left.
74288         Remove no-longer-needed test for table_size > 0.
74289         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74290         in a word, as the resulting behavior is undefined.
74291         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74292         in one case, a <= should have been an <, and in another case the
74293         whole test was missing.
74294         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74295         the standard name CHAR_BIT.
74296         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74297         this is not true on one's complement and signed-magnitude hosts.
74298
74299         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74300         next_last_offset.
74301         (struct re_dfa_t): Remove unused member states_alloc.
74302         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74303
74304 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74307         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74308         and large-file glibc and in 32-bit large-file Solaris.
74309
74310 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74313         lengths fit in regoff_t; this isn't true if regoff_t is the same
74314         width as size_t.
74315         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74316         (= START + RANGE) instead of RANGE.  This avoids overflow
74317         problems when regoff_t is the same width as size_t.
74318         All callers changed.
74319         (re_search_2_stub): Check for overflow when adding the
74320         sizes of the two strings.
74321         (re_search_stub): Check for overflow when adding START
74322         to RANGE; if it occurs, substitute the extreme value.
74323
74324 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74325
74326         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74327
74328 2005-08-31  Jim Meyering  <jim@meyering.net>
74329
74330         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74331         a pointer-to-const.
74332         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74333         (register_state): Likewise.
74334         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74335         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74336         (group_nodes_into_DFAstates): Likewise.
74337
74338 2005-08-31  Jim Meyering  <jim@meyering.net>
74339
74340         * check-module: Add a FIXME comment.
74341
74342 2005-08-31  Eric Blake  <ebb9@byu.net>
74343
74344         * modules/unistd-safer (Files): Add unistd--.h.
74345         * modules/stdio-safer (Files): Add stdio--.h.
74346
74347 2005-08-31  Derek Price  <derek@ximbiot.com>
74348
74349         * lib/getdelim.c (getdelim): Return EOF on EOF.
74350         Reported by Larry Jones <lawrence.jones@ugs.com>.
74351
74352 2005-08-31  Bruno Haible  <bruno@clisp.org>
74353
74354         Avoid unnecessary diffs in the generated lib/Makefile.am.
74355         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74356         the generated files.
74357         (func_import): Don't set cmd.
74358
74359 2005-08-31  Bruno Haible  <bruno@clisp.org>
74360
74361         * lib/strstr.c: Include <stddef.h>, for NULL.
74362         * lib/strcasestr.c: Likewise.
74363         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74364
74365 2005-08-31  Bruno Haible  <bruno@clisp.org>
74366
74367         * gnulib-tool: New option --macro-prefix.
74368         (func_import): Use macro_prefix.
74369         (import): Handle option --macro-prefix.
74370
74371 2005-08-31  Bruno Haible  <bruno@clisp.org>
74372
74373         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74374         Also use new variables cached_lgpl, cached_libtool.
74375
74376 2005-08-31  Bruno Haible  <bruno@clisp.org>
74377
74378         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74379         always instantiating them.
74380
74381 2005-08-31  Bruno Haible  <bruno@clisp.org>
74382
74383         * gnulib-tool (func_import): Read the previous cached settings
74384         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74385         earlier added by gnulib but are now dropped. Warn when a gnulib file
74386         overwrites a non-gnulib file.
74387
74388 2005-08-31  Bruno Haible  <bruno@clisp.org>
74389
74390         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74391         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74392         projects that don't keep autogenerated files in CVS. Put into
74393         actioncmd only the specified modules, not the transitive closure.
74394
74395 2005-08-31  Bruno Haible  <bruno@clisp.org>
74396
74397         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74398         Create directories that shall be filled.
74399         (import): Don't look for gl_* macros in configure.ac. Recurse across
74400         all directories containing a gnulib-cache.m4 files, if meaningful.
74401
74402 2005-08-31  Bruno Haible  <bruno@clisp.org>
74403
74404         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74405         (import): Set seen_libtool when we see gl_LIBTOOL.
74406
74407 2005-08-31  Bruno Haible  <bruno@clisp.org>
74408
74409         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74410         declaration macro definitions from generated gnulib.m4.
74411
74412 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74413
74414         * lib/iconvme.h: Add prototype for iconv_alloc.
74415
74416 2005-08-29  Simon Josefsson  <jas@extundo.com>
74417
74418         * lib/iconvme.c: Fix errno.
74419
74420 2005-08-29  Bruno Haible  <bruno@clisp.org>
74421
74422         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74423         that it works when the directory contains spaces.
74424
74425 2005-08-29  Bruno Haible  <bruno@clisp.org>
74426
74427         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74428
74429 2005-08-29  Bruno Haible  <bruno@clisp.org>
74430
74431         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74432         Emit more advice.
74433
74434 2005-08-29  Bruno Haible  <bruno@clisp.org>
74435         and Stepan Kasal  <kasal@ucw.cz>
74436
74437         * check-module: If more parameters are given, check each of them
74438         separately; add more exceptions, as noted by Jim Meyering.
74439         (check_module): New procedure.
74440         (%exempt_header): Now contains all exceptions.
74441
74442 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74443
74444         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74445
74446 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74447
74448         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74449
74450 2005-08-28  Bruno Haible  <bruno@clisp.org>
74451
74452         * m4/gnulib-tool.m4: New file.
74453
74454 2005-08-27  Jim Meyering  <jim@meyering.net>
74455
74456         * modules/unistd-safer (Files): Add pipe-safer.c.
74457         * modules/fcntl-safer (Files): Add creat-safer.c.
74458
74459 2005-08-27  Jim Meyering  <jim@meyering.net>
74460
74461         * m4/stdlib-safer.m4: New file.  From coreutils.
74462         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74463         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74464         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74465         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74466         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74467
74468 2005-08-27  Jim Meyering  <jim@meyering.net>
74469
74470         * lib/fopen-safer.c: Merge minor changes from coreutils.
74471         * lib/dup-safer.c: Likewise.
74472         * lib/fd-safer.c: Likewise.
74473
74474         Merge from coreutils.
74475         * lib/stdio--.h: New file.
74476         * lib/stdlib--.h: New file.
74477         * lib/mkstemp-safer.c: New file.
74478
74479         GNU tar needs these.
74480         * lib/pipe-safer.c: New file.
74481         * lib/creat-safer.c: New file.
74482         * lib/fcntl--.h (creat): Define to creat_safer.
74483         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74484         * lib/unistd--.h (pipe): Define to pipe_safer.
74485         * lib/unistd-safer.h: Declare pipe_safer.
74486
74487 2005-08-26  Simon Josefsson  <jas@extundo.com>
74488
74489         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74490         Haible <bruno@clisp.org>.
74491
74492 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * lib/regex_internal.h: Remove all references to
74495         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74496         or better.
74497         (bitset_not, bitset_merge, bitset_not_merge):
74498         (bitset_mask, re_string_allocate, re_string_construct):
74499         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74500         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74501         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74502         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74503         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74504         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74505         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74506         (re_acquire_state_context):
74507         Remove unnecessary forward decls.
74508         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74509         Put __attribute at function definition,
74510         now that the function decl has been removed.
74511         * lib/regex_internal.c (re_string_peek_byte_case):
74512         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74513         Likewise.
74514
74515 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74516
74517         * m4/regex.m4: Add AC_PREREQ(2.50).
74518         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74519
74520 2005-08-25  Simon Josefsson  <jas@extundo.com>
74521
74522         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74523         __fsetlocking.
74524
74525 2005-08-25  Simon Josefsson  <jas@extundo.com>
74526
74527         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74528         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74529         GLIBC specific code.
74530
74531 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         Make regex safe for g++.  This fixes one real bug (an "err"
74534         that should have been "*err").  g++ problem reported by
74535         Sam Steingold.
74536         * lib/regex_internal.h (re_calloc): New macro, consistent with
74537         re_malloc etc.  All callers of calloc changed to use re_calloc.
74538         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74539         not int.  All callers changed.
74540         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74541         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74542         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74543         (find_recover_state): Change "err" to "*err"; this fixes what
74544         appears to be a real bug.
74545         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74546         versus int.
74547
74548 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * modules/regex (Depends-on): Add malloc, since the code
74551         assumes that !malloc(0) means failure.
74552
74553 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74554
74555         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74556
74557         alloca modernization/simplification for regex.
74558         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74559         needs to be at the start of the file, and can be moved into
74560         regex_internal.h and simplified.
74561         * lib/regex_internal.h: Include <alloca.h>.
74562         (__libc_use_alloca) [!defined _LIBC]: New macro.
74563         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74564         now works outside glibc.
74565
74566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * config/srclist.txt: Add glibc bugs 1241, 1245.
74569
74570 2005-08-25  Jim Meyering  <jim@meyering.net>
74571
74572         * lib/open-safer.c: Include <config.h>.
74573         Otherwise, we'd lose LARGEFILE support in any file using
74574         e.g. "fcntl--.h"
74575
74576 2005-08-25  Bruno Haible  <bruno@clisp.org>
74577
74578         * m4/minmax.m4: Require autoconf 2.52.
74579         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74580         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74581         alternatives of translit over the alphabet.
74582         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74583
74584 2005-08-24  Simon Josefsson  <jas@extundo.com>
74585
74586         * tests/test-getpass.c: New file.
74587
74588 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74591         for GNU regex features.
74592
74593 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74594
74595         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74596         * lib/regex.h (regerror): Likewise.
74597
74598         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74599         requires this.  (The code never needed it.)
74600
74601         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74602         All uses of recently-renamed identifiers changed to use the new,
74603         POSIX-compliant names.  The code will build and run just fine
74604         without these changes, but it's better to eat our own dog food
74605         and use the standard-conforming names.
74606
74607         * lib/regex.h: Fix a multitude of POSIX name space violations.
74608         These changes have an effect only for programs that define
74609         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74610         do not change anything for programs compiled in the normal way.
74611         Also, there is no effect on the ABI.
74612
74613         (_REGEX_SOURCE): New macro.
74614         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74615         defined and _GNU_SOURCE is not; this fixes a name space violation.
74616
74617         Rename the following macros to obey POSIX requirements.
74618         The old names are still visible as macros if _REGEX_SOURCE is defined.
74619         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74620         RE_BACKSLASH_ESCAPE_IN_LISTS.
74621         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74622         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74623         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74624         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74625         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74626         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74627         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74628         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74629         (REG_INTERVALS): renamed from RE_INTERVALS.
74630         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74631         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74632         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74633         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74634         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74635         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74636         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74637         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74638         RE_UNMATCHED_RIGHT_PAREN_ORD.
74639         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74640         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74641         (REG_DEBUG): renamed from RE_DEBUG.
74642         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74643         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74644         unusual, since we can't clash with the POSIX REG_ICASE.
74645         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74646         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74647         (REG_NO_SUB): renamed from RE_NO_SUB.
74648         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74649         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74650         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74651         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74652         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74653         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74654         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74655         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74656         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74657         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74658         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74659         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74660         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74661         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74662         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74663         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74664         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74665         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74666         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74667         (REG_FIXED): Renamed from REGS_FIXED.
74668         (REG_NREGS): Renamed from RE_NREGS.
74669
74670         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74671         of other REG_* macros, since POSIX says the user is allowed to
74672         #undef these macros selectively.
74673
74674         (reg_errcode_t): Update comment stating what other tables need
74675         to be consistent.
74676
74677         Rename the following enum values to obey POSIX requirements.
74678         The old names are still visible as macros.
74679         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74680         is not defined, since GNU is supposed to be a superset of POSIX as
74681         much as possible, and since we want reg_errcode_t to be a signed
74682         type for implementation consistency.
74683         (_REG_NOERROR): Renamed from REG_NOERROR.
74684         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74685         (_REG_BADPAT): Renamed from REG_BADPAT.
74686         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74687         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74688         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74689         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74690         (_REG_EBRACK): Renamed from REG_EBRACK.
74691         (_REG_EPAREN): Renamed from REG_EPAREN.
74692         (_REG_EBRACE): Renamed from REG_EBRACE.
74693         (_REG_BADBR): Renamed from REG_BADBR.
74694         (_REG_ERANGE): Renamed from REG_ERANGE.
74695         (_REG_ESPACE): Renamed from REG_ESPACE.
74696         (_REG_BADRPT): Renamed from REG_BADRPT.
74697         (_REG_EEND): Renamed from REG_EEND.
74698         (_REG_ESIZE): Renamed from REG_ESIZE.
74699         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74700         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74701         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74702         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74703         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74704
74705         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74706         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74707         changed.  But support the old name if the new one is not defined
74708         and if _REGEX_SOURCE.
74709
74710         Change the following member names in struct re_pattern_buffer.
74711         The old names are still supported if !_REGEX_SOURCE.
74712         The new names are always supported, regardless of _REGEX_SOURCE.
74713         (re_buffer): Renamed from buffer.
74714         (re_allocated): Renamed from allocated.
74715         (re_used): Renamed from used.
74716         (re_syntax): Renamed from syntax.
74717         (re_fastmap): Renamed from fastmap.
74718         (re_translate): Renamed from translate.
74719         (re_can_be_null): Renamed from can_be_null.
74720         (re_regs_allocated): Renamed from regs_allocated.
74721         (re_fastmap_accurate): Renamed from fastmap_accurate.
74722         (re_no_sub): Renamed from no_sub.
74723         (re_not_bol): Renamed from not_bol.
74724         (re_not_eol): Renamed from not_eol.
74725         (re_newline_anchor): Renamed from newline_anchor.
74726
74727         Change the following member names in struct re_registers.
74728         The old names are still supported if !_REGEX_SOURCE.
74729         The new names are always supported, regardless of _REGEX_SOURCE.
74730         (rm_num_regs): Renamed from num_regs.
74731         (rm_start): Renamed from start.
74732         (rm_end): Renamed from end.
74733
74734         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74735         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74736         Prepend __ to parameter names.
74737
74738         Undo yesterday's changes.
74739
74740 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74743         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74744         lib/regex.c.
74745
74746 2005-08-24  Jim Meyering  <jim@meyering.net>
74747
74748         Sync from coreutils.
74749         * m4/fcntl-safer.m4: New file.
74750
74751         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74752         and object files for this module.
74753
74754 2005-08-24  Jim Meyering  <jim@meyering.net>
74755
74756         Sync from coreutils.
74757         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74758
74759 2005-08-24  Jim Meyering  <jim@meyering.net>
74760
74761         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74762         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74763
74764 2005-08-24  Jim Meyering  <jim@meyering.net>
74765
74766         * modules/fcntl-safer: New module.
74767         * modules/fts (Depends-on): Add fcntl-safer.
74768         * MODULES.html.sh (File descriptor based Input/Output):
74769         Add fcntl-safer.
74770
74771 2005-08-24  Bruno Haible  <bruno@clisp.org>
74772
74773         Support for unit test modules.
74774         * modules/README: Mention tests modules.
74775         * modules/TEMPLATE-TESTS: New file.
74776         * gnulib-tool: New options --extract-tests-module, --with-tests and
74777         --tests-base (unused for the moment).
74778         (testsbase, inctests): New variables.
74779         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74780         (func_verify_module): Exclude TEMPLATE-TESTS.
74781         (func_verify_nontests_module, func_verify_tests_module): New functions.
74782         (func_get_dependencies): Add implicit dependency for tests modules.
74783         (func_get_tests_module): New function.
74784         (func_modules_transitive_closure): When --with-tests was specified,
74785         include the unit tests as well, unless explicitly avoided.
74786         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74787         (func_emit_tests_Makefile_am): New function.
74788         (func_create_testdir): When --with-tests was specified, emit a
74789         tests/ directory.
74790         * MODULES.html.sh (Future developments): Update.
74791
74792 2005-08-24  Bruno Haible  <bruno@clisp.org>
74793
74794         * modules/tls-tests: New file.
74795         * tests/test-tls.c: New file, from GNU gettext.
74796
74797 2005-08-24  Bruno Haible  <bruno@clisp.org>
74798
74799         * modules/lock-tests: New file.
74800         * tests/test-lock.c: New file, from GNU gettext.
74801
74802 2005-08-24  Bruno Haible  <bruno@clisp.org>
74803
74804         * lib/lock.h: Add multiple inclusion guard.
74805         * lib/tls.h: Add multiple inclusion guard.
74806
74807 2005-08-24  Bruno Haible  <bruno@clisp.org>
74808
74809         * gnulib-tool: Add support for the --aux-dir option to
74810         --create-testdir, --create-megatestdir, --test, --megatest.
74811         (func_create_testdir, func_create_megatestdir): Optionally emit a
74812         AC_CONFIG_AUX_DIR directive.
74813         (create-testdir, create-megatestdir, test, megatest): Provide a
74814         default value for $auxdir.
74815
74816 2005-08-24  Bruno Haible  <bruno@clisp.org>
74817
74818         * gnulib-tool (import): Use compound statement instead of subshell
74819         where possible.
74820
74821 2005-08-24  Bruno Haible  <bruno@clisp.org>
74822
74823         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74824
74825 2005-08-24  Bruno Haible  <bruno@clisp.org>
74826
74827         * gnulib-tool (func_version): Update.
74828
74829 2005-08-24  Bruno Haible  <bruno@clisp.org>
74830
74831         * gnulib-tool (func_import, func_create_testdir,
74832         func_create_megatestdir): Quote all autoconf macro arguments.
74833
74834 2005-08-24  Bruno Haible  <bruno@clisp.org>
74835
74836         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74837         option --force, because --force causes the aclocal.m4 of each
74838         subdirectory to be newer than the corresponding config.h.in.
74839
74840 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74841
74842         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74843         All contents moved to gl_REGEX.
74844         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74845         assume that it does.
74846
74847 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * lib/regex.h (REG_NOSYS)
74850         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74851         Define, since POSIX requires it as of 2001.
74852         (_REG_ENOSYS)
74853         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74854         New private symbol, used to keep the enum signed in all cases.
74855         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74856         Youngman in
74857         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74858
74859         * lib/regex_internal.c (re_string_skip_chars, register_state):
74860         (calc_state_hash):
74861         Remove forward decls; no longer needed now that we use prototypes.
74862         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74863         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74864         (clean_state_log_if_needed): Likewise.
74865
74866 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         * config/srclist.txt: Add glibc bugs 1231-1233.
74869
74870 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         Fix problems reported by Sam Steingold in
74873         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74874         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74875         assumed that reg_errcode_t is a signed type, which is not
74876         necessarily true if _XOPEN_SOURCE is not defined.
74877         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74878         since some compilers warn about it otherwise.
74879
74880 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74883         (init_word_char, create_initial_state, duplicate_node_closure):
74884         (fetch_token, peek_token_bracket, build_range_exp):
74885         (build_collating_symbol): Remove forward decls; no longer needed
74886         now that we use prototypes.
74887
74888         * lib/regcomp.c:
74889         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74890         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74891         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74892         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74893         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74894         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74895         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74896         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74897         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74898         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74899         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74900         (build_charclass, build_charclass_op, fetch_number, create_tree):
74901         (create_token_tree, mark_opt_subexp, duplicate_tree):
74902         Use prototypes rather than old-style definitions.
74903
74904         * lib/regex_internal.c:
74905         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74906         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74907         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74908         (re_string_reconstruct, re_string_peek_byte_case):
74909         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74910         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74911         (re_node_set_init_copy, re_node_set_add_intersect):
74912         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74913         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74914         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74915         (re_acquire_state, re_acquire_state_context, register_state):
74916         (create_ci_newstate, create_cd_newstate, free_state):
74917         Likewise.
74918         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74919         re_search_2):
74920         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74921         (re_search_internal, prune_impossible_nodes):
74922         (acquire_init_state_context, check_matching, static):
74923         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74924         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74925         (update_regs, sift_states_backward, build_sifted_states):
74926         (clean_state_log_if_needed, merge_state_array):
74927         (update_cur_sifted_state, add_epsilon_src_nodes):
74928         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74929         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74930         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74931         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74932         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74933         (check_arrival, check_arrival_add_next_nodes):
74934         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74935         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74936         (check_node_accept_bytes, check_node_accept, extend_buffers):
74937         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74938         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74939         (sift_ctx_init):
74940         Likewise.
74941
74942         * lib/regex_internal.h:
74943         (re_string_allocate, re_string_construct, re_string_reconstruct):
74944         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74945         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74946         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74947         (re_string_context_at, re_string_peek_byte_case):
74948         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74949         is defined, since we now use prototypes always.
74950
74951         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74952         C89 or better.  All uses removed.
74953
74954 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * config/srclist.txt: Add glibc bugs 1220-1227.
74957
74958 2005-08-20  Jim Meyering  <jim@meyering.net>
74959
74960         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74961         of unused local, dfa.
74962
74963 2005-08-20  Bruno Haible  <bruno@clisp.org>
74964
74965         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74966
74967 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74970         (re_node_set_insert_last, re_dfa_add_node):
74971         Rename local variables to avoid GCC shadowing warnings.
74972
74973 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74976         [defined lint]: Suppress bogus uninitialized-variable warnings.
74977
74978         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74979         and let the caller return REG_ESPACE if out of space.  This
74980         removes an uninitialied-variable warning with GCC 4.0.1, and also
74981         avoids taking the address of a local variable.  All callers
74982         changed.
74983
74984 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74987         $LIBCSRC/posix/regexec.c.
74988         Add glibc bug 1217 for regcomp.c.
74989
74990 2005-08-19  Jim Meyering  <jim@meyering.net>
74991
74992         * lib/regexec.c (proceed_next_node): Redo local variables to
74993         avoid GCC shadowing warnings.
74994
74995 2005-08-18  Bruno Haible  <bruno@clisp.org>
74996
74997         * lib/strstr.c (strstr): Fix return value in multibyte case.
74998         * lib/strcasestr.c (strcasestr): Likewise.
74999
75000 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75003
75004 2005-08-17  Jim Meyering  <jim@meyering.net>
75005
75006         Make the %s format (seconds since the epoch) work for a negative
75007         number and when used with a zero-padded field width, e.g. %015s.
75008
75009         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75010         label so that it precedes the code to set `digits'.  Otherwise,
75011         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75012         print `00-22'.  Now, it prints `-0022', as it should.
75013
75014 2005-08-17  Bruno Haible  <bruno@clisp.org>
75015
75016         * modules/strstr (Files): Add m4/mbrtowc.m4.
75017         (Depends-on): Add mbuiter.
75018
75019 2005-08-17  Bruno Haible  <bruno@clisp.org>
75020
75021         * modules/strcasestr: New file.
75022         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75023         strcasestr.
75024
75025 2005-08-17  Bruno Haible  <bruno@clisp.org>
75026
75027         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75028
75029 2005-08-17  Bruno Haible  <bruno@clisp.org>
75030
75031         * modules/mbuiter: New file.
75032         * MODULES.html.sh (Extended multibyte and wide character utilities):
75033         Add mbuiter.
75034
75035 2005-08-17  Bruno Haible  <bruno@clisp.org>
75036
75037         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75038         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75039
75040 2005-08-17  Bruno Haible  <bruno@clisp.org>
75041
75042         * m4/strcasestr.m4: New file.
75043
75044 2005-08-17  Bruno Haible  <bruno@clisp.org>
75045
75046         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75047         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75048
75049 2005-08-17  Bruno Haible  <bruno@clisp.org>
75050
75051         * lib/strcasestr.h: New file.
75052         * lib/strcasestr.c: New file.
75053
75054 2005-08-17  Bruno Haible  <bruno@clisp.org>
75055
75056         * lib/strcasecmp.c: Use mbuiter.h.
75057
75058 2005-08-17  Bruno Haible  <bruno@clisp.org>
75059
75060         * lib/mbuiter.h: New file.
75061
75062 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75063
75064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75065         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75066         and gl_GETOPT are both invoked via different paths (as happens
75067         with GNU tar CVS because it uses both argp and getopt), the former
75068         wins.
75069
75070 2005-08-16  Bruno Haible  <bruno@clisp.org>
75071
75072         * modules/tls: New file.
75073         * MODULES.html.sh (Multithreading): Add tls.
75074
75075 2005-08-16  Bruno Haible  <bruno@clisp.org>
75076
75077         * modules/strnlen1: New file.
75078         * MODULES.html.sh (String handling): Add strnlen1.
75079
75080 2005-08-16  Bruno Haible  <bruno@clisp.org>
75081
75082         * modules/strcase (Files): Add m4/mbrtowc.m4.
75083         (Depends-on): Add strnlen1, mbchar.
75084
75085 2005-08-16  Bruno Haible  <bruno@clisp.org>
75086
75087         * modules/mbiter: New file.
75088         * MODULES.html.sh (Extended multibyte and wide character utilities):
75089         Add mbiter.
75090
75091 2005-08-16  Bruno Haible  <bruno@clisp.org>
75092
75093         * modules/mbfile: New file.
75094         * MODULES.html.sh (Extended multibyte and wide character utilities):
75095         Add mbfile.
75096
75097 2005-08-16  Bruno Haible  <bruno@clisp.org>
75098
75099         * modules/mbchar: New file.
75100         * MODULES.html.sh (Extended multibyte and wide character utilities):
75101         New section.
75102
75103 2005-08-16  Bruno Haible  <bruno@clisp.org>
75104
75105         * m4/tls.m4: New file, from GNU gettext.
75106
75107 2005-08-16  Bruno Haible  <bruno@clisp.org>
75108
75109         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75110         always.
75111         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75112
75113 2005-08-16  Bruno Haible  <bruno@clisp.org>
75114
75115         * m4/mbiter.m4: New file.
75116
75117 2005-08-16  Bruno Haible  <bruno@clisp.org>
75118
75119         * m4/mbfile.m4: New file.
75120
75121 2005-08-16  Bruno Haible  <bruno@clisp.org>
75122
75123         * m4/mbchar.m4: New file.
75124
75125 2005-08-16  Bruno Haible  <bruno@clisp.org>
75126
75127         * lib/tls.h: New file, from GNU gettext.
75128         * lib/tls.c: New file, from GNU gettext.
75129
75130 2005-08-16  Bruno Haible  <bruno@clisp.org>
75131
75132         * lib/strnlen1.h: New file.
75133         * lib/strnlen1.c: New file.
75134
75135 2005-08-16  Bruno Haible  <bruno@clisp.org>
75136
75137         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75138         (mbi_init): Update.
75139         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75140         NUL byte, not after it.
75141
75142 2005-08-16  Bruno Haible  <bruno@clisp.org>
75143
75144         * lib/strcase.h (strcasecmp): Add note in comments.
75145         * lib/strncasecmp.c: Use code from strcasecmp.c.
75146         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75147         (strcasecmp): Work correctly in multibyte locales.
75148
75149 2005-08-16  Bruno Haible  <bruno@clisp.org>
75150
75151         * lib/mbiter.h: New file.
75152
75153 2005-08-16  Bruno Haible  <bruno@clisp.org>
75154
75155         * lib/mbfile.h: New file.
75156
75157 2005-08-16  Bruno Haible  <bruno@clisp.org>
75158
75159         * lib/mbchar.h: New file.
75160         * lib/mbchar.c: New file.
75161
75162 2005-08-16  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75165         the valid ones. Makes the comparison operations transitive:
75166         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75167         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75168
75169 2005-08-15  Simon Josefsson  <jas@extundo.com>
75170
75171         * modules/ssize_t (License): Change to 'unlimited'.
75172
75173         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75174
75175 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75178         Add comments for each pending glibc patch.
75179
75180 2005-08-15  Bruno Haible  <bruno@clisp.org>
75181
75182         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75183         __cplusplus is defined.
75184
75185 2005-08-14  Jim Meyering  <jim@meyering.net>
75186
75187         Sync from coreutils.
75188
75189         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75190         Use the hash-table-based cycle-detection code not just when
75191         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75192         Reported by James Youngman in
75193         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75194         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75195         FTS_TIGHT_CYCLE_CHECK.
75196         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75197         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75198         once again.
75199         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75200         * lib/fts.c (fd_safer): Remove decl.
75201         Include fcntl--.h rather than unistd-safer.h
75202         (fts_safe_changedir): Don't call fd_safer; no longer needed
75203         now that we include fcntl--.h.
75204
75205 2005-08-12  Simon Josefsson  <jas@extundo.com>
75206
75207         * modules/getndelim2: Use ssize_t module.
75208         * modules/getnline: Likewise.
75209         * modules/safe-read: Likewise.
75210         * modules/xreadlink: Likewise.
75211
75212         * modules/ssize_t: New file.
75213
75214 2005-08-12  Simon Josefsson  <jas@extundo.com>
75215
75216         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75217
75218 2005-08-12  Simon Josefsson  <jas@extundo.com>
75219
75220         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75221         ssize_t.
75222
75223 2005-08-12  Simon Josefsson  <jas@extundo.com>
75224
75225         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75226         readline, getdelim and check_version.
75227         (Support for systems lacking ISO C 99: Sizes of integer types):
75228         Add size_max.
75229
75230 2005-08-12  Bruno Haible  <bruno@clisp.org>
75231
75232         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75233
75234 2005-08-11  Simon Josefsson  <jas@extundo.com>
75235
75236         * modules/readline: New file.
75237
75238         * modules/strnlen (Files): Add strnlen.h.
75239
75240 2005-08-11  Simon Josefsson  <jas@extundo.com>
75241
75242         * m4/readline.m4: New file.
75243
75244 2005-08-11  Simon Josefsson  <jas@extundo.com>
75245
75246         * lib/readline.h, readline.c: New file.
75247
75248 2005-08-11  Simon Josefsson  <jas@extundo.com>
75249
75250         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75251         gl_AVOID.
75252
75253 2005-08-11  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75256
75257 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75258
75259         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75260
75261 2005-08-10  Simon Josefsson  <jas@extundo.com>
75262
75263         * tests/test-iconvme.c: New file.
75264
75265 2005-08-10  Simon Josefsson  <jas@extundo.com>
75266
75267         * m4/strnlen.m4: New file.
75268
75269         * m4/strndup.m4: Don't check for strnlen declaration, done in
75270         strnlen.m4.
75271
75272 2005-08-10  Simon Josefsson  <jas@extundo.com>
75273
75274         * lib/strndup.c: Use strnlen.h.
75275
75276         * lib/strnlen.h: New file.
75277
75278 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75279
75280         * README: Typos.
75281
75282 2005-08-02  Simon Josefsson  <jas@extundo.com>
75283
75284         * modules/readline: New file.
75285
75286 2005-08-02  Simon Josefsson  <jas@extundo.com>
75287
75288         * modules/getdelim: New file.
75289
75290         * modules/getline: Rewrite, don't use getndelim2.
75291
75292 2005-08-02  Simon Josefsson  <jas@extundo.com>
75293
75294         * m4/getline.m4: Separate out getdelim stuff into separate module.
75295
75296         * m4/getdelim.m4: New file.
75297
75298 2005-08-02  Simon Josefsson  <jas@extundo.com>
75299
75300         * lib/getline.h, getline.c: Rewrite.
75301
75302         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75303
75304 2005-07-31  Bruno Haible  <bruno@clisp.org>
75305
75306         * lib/lock.h (gl_lock_initializer): New macro.
75307         (gl_lock_define_initialized): Use it.
75308         (gl_rwlock_initializer): New macro.
75309         (gl_rwlock_define_initialized): Use it.
75310         (gl_recursive_lock_initializer): New macro.
75311         (gl_recursive_lock_define_initialized): Use it.
75312
75313 2005-07-30  Karl Berry  <karl@gnu.org>
75314
75315         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75316         Report from Ben Pfaff, regarding getopt.
75317
75318 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75321         normal way.
75322         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75323         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75324         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75325         (gl_GETOPT): Use the new macros.  Most of the implementation
75326         is moved to the new macros.  This is for programs like Emacs
75327         that don't want all the functionality of gl_GETOPT.
75328
75329 2005-07-26  Bruno Haible  <bruno@clisp.org>
75330
75331         * m4/lock.m4: Update from GNU gettext.
75332
75333 2005-07-26  Bruno Haible  <bruno@clisp.org>
75334
75335         * lib/lock.h: Update from GNU gettext.
75336         * lib/lock.c: Update from GNU gettext.
75337
75338 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75341         obsolescent AC_TRY_RUN.  Include the default includes files, for
75342         'exit'.
75343
75344 2005-07-24  Bruno Haible  <bruno@clisp.org>
75345
75346         * modules/visibility: New file.
75347         * MODULES.html.sh (Misc): Add visibility.
75348
75349 2005-07-24  Bruno Haible  <bruno@clisp.org>
75350
75351         * m4/visibility.m4: New file.
75352
75353 2005-07-24  Bruno Haible  <bruno@clisp.org>
75354
75355         * doc/visibility.texi: New file.
75356
75357 2005-07-22  Bruno Haible  <bruno@clisp.org>
75358
75359         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75360         $(ALLOCA_H), redundant through BUILT_SOURCES.
75361         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75362         redundant through BUILT_SOURCES.
75363         * modules/byteswap (Makefile.am): Remove explicit dependency on
75364         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75365         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75366         $(FNMATCH_H), redundant through BUILT_SOURCES.
75367         * modules/getopt (Makefile.am): Remove explicit dependency on
75368         $(GETOPT_H), redundant through BUILT_SOURCES.
75369         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75370         redundant through BUILT_SOURCES.
75371         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75372         redundant through BUILT_SOURCES.
75373         * modules/stdbool (Makefile.am): Remove explicit dependency on
75374         $(STDBOOL_H), redundant through BUILT_SOURCES.
75375         * modules/stdint (Makefile.am): Remove explicit dependency on
75376         $(STDINT_H), redundant through BUILT_SOURCES.
75377         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75378         Remove explicit dependency on $(SYSEXITS_H).
75379         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75380
75381 2005-07-18  Simon Josefsson  <jas@extundo.com>
75382
75383         * lib/check-version.c (check_version): Accept identical versions too.
75384
75385 2005-07-18  Bruno Haible  <bruno@clisp.org>
75386
75387         * modules/lock: New file.
75388         * MODULES.html.sh (Multithreading): New section.
75389
75390 2005-07-18  Bruno Haible  <bruno@clisp.org>
75391
75392         * m4/lock.m4: New file, from GNU gettext.
75393
75394 2005-07-18  Bruno Haible  <bruno@clisp.org>
75395
75396         * lib/lock.h: New file, from GNU gettext.
75397         * lib/lock.c: New file, from GNU gettext.
75398
75399 2005-07-18  Bruno Haible  <bruno@clisp.org>
75400
75401         * lib/lock.h (gl_once_t): New type.
75402         (gl_once_define, gl_once): New macros.
75403         * lib/lock.c (fresh_once): New variable.
75404         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75405         functions.
75406
75407 2005-07-16  Simon Josefsson  <jas@extundo.com>
75408
75409         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75410         workaround, suggested by Bruno.
75411
75412 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * modules/xalloc (Depends-on): Add xalloc-die.
75415         * modules/xvasprintf (Depends-on): Add xalloc-die.
75416
75417 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75420         with a minor change.
75421
75422 2005-07-15  Bruno Haible  <bruno@clisp.org>
75423
75424         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75425         When using lib/poll.c, define poll as rpl_poll.
75426
75427 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         * modules/argp (Depends-on): Remove unlocked-io.
75430
75431 2005-07-14  Derek Price  <derek@ximbiot.com>
75432
75433         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75434         for glob symlink bug.
75435
75436 2005-07-14  Bruno Haible  <bruno@clisp.org>
75437
75438         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75439         Instead, test for *_unlocked function declarations directly.
75440
75441 2005-07-11  Simon Josefsson  <jas@extundo.com>
75442
75443         * modules/size_max: New file.
75444
75445         * modules/xsize: Depend on size_max module for size_max.m4.
75446
75447 2005-07-11  Simon Josefsson  <jas@extundo.com>
75448
75449         * lib/size_max.h: New file.
75450
75451 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75454         copyright symbol and the year.
75455         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75456         (version_etc_va): Use parameterized copyright notice.
75457         Reword to conform to the current GNU coding standards.
75458
75459 2005-07-11  Karl Berry  <karl@gnu.org>
75460
75461         * doc/gnulib.texi (Quoting): new node.
75462         (Initial import): more info, from Patrice.
75463
75464 2005-07-11  Bruno Haible  <bruno@clisp.org>
75465
75466         * gnulib-tool (func_usage): Document option --avoid.
75467         (Command line options): Handle --avoid.
75468         (func_acceptable): New function.
75469         (func_modules_transitive_closure): Use it.
75470
75471 2005-07-11  Bruno Haible  <bruno@clisp.org>
75472
75473         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75474         Reported by Jim Meyering.
75475
75476 2005-07-10  Bruno Haible  <bruno@clisp.org>
75477
75478         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75479         Needed when size_t is smaller than 'unsigned int'.
75480         Reported by Paul Eggert.
75481
75482 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75483
75484         * modules/argp (Depends-on): Add unlocked-io
75485
75486 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75487
75488         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75489         block of defines.
75490
75491 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75494         fix now.
75495
75496 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75497         and Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75500         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75501
75502 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         * modules/regex (Files): Add lib/regex_internal.c,
75505         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75506         (Depends-on): Add extensions.
75507         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75508
75509 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75510
75511         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75512         pathconf.
75513         * m4/same.m4 (gl_SAME): Likewise.
75514         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75515
75516         * m4/regex.m4: Adjust to new libc regex implementation.
75517         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75518         all the .c and .h parts of (the new) regex.
75519         Quote the m4 stuff better.
75520         Check for RE_ICASE bug of old gnulib.
75521         Check for REG_STARTEND of recent libc.
75522         Rename local variables from jm_* to gl_*.
75523         Quote operand of "test -f".
75524         Say "recent enough" version of libc, not "version 2".
75525         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75526         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75527         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75528         Remove check for btowc, isascii.
75529         Require AM_LANGINFO_CODESET.
75530
75531 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * lib/regex.c, regex.h: Sync from libc.
75534         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75535         * lib/regexec.c:
75536         New files, synced from libc, except that regex_internal.h
75537         currently has a small porting fix.
75538
75539 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75542         regex_internal.c, regexec.c.
75543         Add regex_internal.h too, but as a comment, since the libc version
75544         is currently broken in gnulib mode.
75545
75546 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         Support programs like Emacs that use gnulib but not gettext.
75549         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75550         * modules/gettext-h: New file.
75551         * modules/gettext (Files): Remove lib/gettext.h.
75552         (Depends-on): Add gettext-h.
75553         (Makefile.am): Remove lib_SOURCES.
75554         * modules/argmatch, modules/c-stack, modules/closeout:
75555         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75556         * modules/execute, modules/file-type, modules/getaddrinfo:
75557         * modules/getopt, modules/human, modules/javacomp:
75558         * modules/javaexec, modules/mkdir-p, modules/obstack:
75559         * modules/openat, modules/pagealign_alloc, modules/pipe:
75560         * modules/quotearg, modules/regex, modules/rpmatch:
75561         * modules/unicodeio, modules/userspec, modules/version-etc:
75562         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75563         * modules/xsetenv:
75564         Depend on gettext-h, not gettext.
75565
75566 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * gnulib-tool (func_import): Add support for 'public domain' license.
75569         * modules/alloca, modules/atexit, modules/memmove:
75570         Now public domain, not GPL.
75571         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75572         * modules/realloc, modules/strerror, modules/strtod:
75573         Now LGPL, not GPL.
75574
75575 2005-07-05  Bruno Haible  <bruno@clisp.org>
75576
75577         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75578         autoconf CVS. Needed for mingw.
75579
75580 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         Remove the dependency of the strftime module on the tzset module.
75583         * modules/strftime (Depends-on): Remove dependency on tzset.
75584
75585 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         Remove the dependency of the strftime module on the tzset module.
75588         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75589         gl_FUNC_TZSET_CLOBBER.
75590
75591 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75592
75593         Remove the dependency of the strftime module on the tzset module.
75594         * lib/strftime.c (my_strftime)
75595         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75596         Copy the input structure, to work around some of the bug with
75597         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75598         Solaris releases, you should also use the tzset module, but we won't
75599         require it as a dependency any more since we don't want LGPLed code
75600         to depend on GPLed code.
75601
75602 2005-07-02  Jim Meyering  <jim@meyering.net>
75603
75604         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75605         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75606         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75607         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75608
75609 2005-07-02  Jim Meyering  <jim@meyering.net>
75610
75611         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75612
75613 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75616         declares only 'struct timespec;' (!).
75617
75618 2005-07-01  Jim Meyering  <jim@meyering.net>
75619
75620         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75621         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75622         * lib/save-cwd.c, tempname.c:
75623         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75624         and don't include <sys/file.h>).
75625
75626 2005-06-29  Jim Meyering  <jim@meyering.net>
75627
75628         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75629         type name.  Use the variable name instead.
75630         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75631         Likewise.
75632
75633 2005-06-28  Simon Josefsson  <jas@extundo.com>
75634
75635         * modules/check-version (Files): Add check-version.m4.
75636
75637 2005-06-28  Simon Josefsson  <jas@extundo.com>
75638
75639         * m4/check-version.m4: New file, suggested by Jim Meyering
75640         <jim@meyering.net>.
75641
75642 2005-06-28  Simon Josefsson  <jas@extundo.com>
75643
75644         * lib/check-version.h, lib/check-version.c: New files.
75645
75646 2005-06-28  Simon Josefsson  <jas@extundo.com>
75647
75648         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75649         collision with global variable.  Better indentation.  Don't
75650         increment buffer pointer beyond buffer end.  Based on comments
75651         from Paul Eggert <eggert@cs.ucla.edu>.
75652
75653         * lib/base64.h: Indent.
75654
75655 2005-06-28  Simon Josefsson  <jas@extundo.com>
75656
75657         * doc/gnulib.texi (Library version handling): New section.
75658
75659 2005-06-28  Jim Meyering  <jim@meyering.net>
75660
75661         * check-module (find_included_lib_files): Hard-code another
75662         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75663         but modules/fts-lgpl (correctly) does not list those files.
75664
75665         * modules/canonicalize (Files): Add lib/pathmax.h.
75666
75667 2005-06-25  Simon Josefsson  <jas@extundo.com>
75668
75669         * modules/check-version: New file.
75670
75671 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75674         initializer of struct addrinfo, as an indication that we don't
75675         care how many members the structure has.
75676
75677 2005-06-24  Derek Price  <derek@ximbiot.com>
75678         and Bruno Haible  <bruno@clisp.org>
75679
75680         Remove stat module & update lstat.
75681         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75682         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75683         * m4/stat.m4: Remove this file.
75684
75685 2005-06-24  Derek Price  <derek@ximbiot.com>
75686         and Bruno Haible  <bruno@clisp.org>
75687
75688         Remove stat module & update lstat.
75689         * lib/stat.c: Remove this file...
75690         (slash_aware_lstat): ...moving this content and its support...
75691         * lib/lstat.c (rpl_lstat): ...into here.
75692         * lib/lstat.h: New file.
75693
75694 2005-06-24  Derek Price  <derek@ximbiot.com>
75695         and Bruno Haible  <bruno@clisp.org>
75696
75697         Remove stat module & update lstat.
75698         * config/srclist.txt (libc sources): Remove stat.
75699
75700 2005-06-24  Derek Price  <derek@ximbiot.com>
75701         and Bruno Haible  <bruno@clisp.org>
75702
75703         Remove stat module & update lstat.
75704         * MODULES.html.sh (stat): Remove.
75705         * MODULES.html: Regenerated.
75706         * modules/lstat (Description): Correct function name.
75707         (Files): Add "lstat.h".
75708         (Depends-on): Remove stat, add xalloc, stat-macros.
75709         * modules/stat: Remove this file.
75710         (Include): Add "lstat.h", remove <sys/stat.h>.
75711
75712 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75713
75714         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75715         (ranged_convert): Don't save conversion in a temporary struct.
75716         This causes a warning with GCC 4.0.0, and anyway in the typical
75717         case it's not worth the extra 100 bytes or so of code.
75718         (ranged_convert, __mktime_internal): When calling a function via a
75719         pointer P, use P () rather than (*P) (), as we now assume C89 or
75720         better.
75721
75722 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75725         "who -r" failed to give output.  Problem reported by Tim Waugh.
75726
75727         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75728         (xcalloc): Use it to avoid needless tests.
75729         Problem reported by Jim Meyering.
75730
75731 2005-06-20  Derek Price  <derek@ximbiot.com>
75732
75733         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75734         unnecessary for Autoconfs > 2.59c.
75735
75736 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75737
75738         * lib/argp.h (__option_is_short): Check upper limit of
75739         __key. Isprint() requires its argument to have the value
75740         of an unsigned char or EOF.
75741
75742 2005-06-16  Jim Meyering  <jim@meyering.net>
75743
75744         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75745         when either N or S is zero.
75746
75747 2005-06-16  Derek Price  <derek@ximbiot.com>
75748
75749         * m4/bison.m4: Declare YACC & YFLAGS precious.
75750
75751 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75752
75753         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75754         multibyte string or pattern, fall back on unibyte matching.
75755         Problem reported by James Youngman.
75756
75757 2005-06-08  Bruno Haible  <bruno@clisp.org>
75758
75759         * modules/csharpcomp: New file.
75760         * MODULES.html.sh (C#): Add csharpcomp.
75761
75762 2005-06-08  Bruno Haible  <bruno@clisp.org>
75763
75764         * m4/csharpcomp.m4: New file, from GNU gettext.
75765
75766 2005-06-08  Bruno Haible  <bruno@clisp.org>
75767
75768         * lib/csharpcomp.h: New file, from GNU gettext.
75769         * lib/csharpcomp.c: New file, from GNU gettext.
75770         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75771
75772 2005-06-08  Bruno Haible  <bruno@clisp.org>
75773
75774         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75775         warning on mingw.
75776
75777 2005-06-07  Derek Price  <derek@ximbiot.com>
75778
75779         Sync from CVS.
75780         * lib/glob_.h: Indent nested #ifdef.
75781
75782 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         Sync from coreutils.
75785         Use "file name" when talking about file names, instead of "filename"
75786         or "path", as per the GNU coding standards.
75787         * lib/mkdir-p.c: Renamed from makepath.c.
75788         (make_dir_parents): Renamed from make_path.  All callers changed.
75789         * lib/mkdir-p.h: Likewise.  All includers changed.
75790         * lib/filenamecat.c: Renamed from path-concat.c.
75791         (file_name_concat): Renamed from path_concat.  All callers changed.
75792         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75793         * lib/filenamecat.h: Likewise.  All includers changed.
75794         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75795         in comments or local variable names.
75796         * lib/basename.c: Likewise.
75797         * lib/canonicalize.c, canonicalize.h: Likewise.
75798         * lib/dirname.c, dirname.h: Likewise.
75799         * lib/euidaccess.c: Likewise.
75800         * lib/exclude.c: Likewise
75801         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75802         * lib/fsusage.c, fsuage.h: Likewise.
75803         * lib/fts.c, fts_.h: Likewise.
75804         * lib/getcwd.c: Likewise.
75805         * lib/getloadavg.c: Likewise.
75806         * lib/mkstemp.c: Likewise.
75807         * lib/mountlist.c, mountlist.h: Likewise.
75808         * lib/openat.c, openat.h: Likewise.
75809         * lib/readlink-stub.c: Likewise.
75810         * lib/readutmp.c, readutmp.h: Likewise.
75811         * lib/rename.c: Likewise.
75812         * lib/rmdir.c: Likewise.
75813         * lib/same.c: Likewise.
75814         * lib/savedir.c: Likewise.
75815         * lib/stripslash.c: Likewise.
75816         * lib/tempname.c: Likewise.
75817         * lib/xreadlink.c: Likewise.
75818         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75819         All uses changed.
75820         * lib/exclude.h: Likewise.
75821
75822         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75823         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75824         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75825         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75826         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75827         files have been getting away with it for years (MORE/BSD 4.3
75828         is extinct now).
75829         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75830         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75831
75832         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75833         Define to 256, not 255, as per modern POSIX.
75834
75835 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         Sync from coreutils.
75838         Use "file name" when talking about file names, instead of "filename"
75839         or "path", as per the GNU coding standards.
75840         * MODULES.html.sh: mkdir-p renamed from makepath.
75841         filenamecat renamed from path-concat.
75842         * modules/filenamecat: Renamed from modules/path-concat.
75843         (Files): filenamecat.h and filenamecat.c renamed from
75844         path-concat.h and path-concat.c.
75845         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75846         (Include): filenamecat.h, not path-concat.h.
75847         * modules/mkdir-p: Renamed from modules/makepath.
75848         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75849         makepath.c.
75850         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75851         (Include): mkdir-p.h, not makepath.h.
75852
75853 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75854
75855         Sync from coreutils.
75856         * m4/mkdir-p.m4: Renamed from makepath.m4.
75857         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75858         Rename files from makepath.c to mkdir-p.c, and from
75859         makepath.h to mkdir-p.h.
75860         * m4/filenamecat.m4: Renamed from path-concat.m4.
75861         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75862         Rename files from path-concat.c to filenamecat.c,
75863         and from path-concat.h to filenamecat.h.
75864         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75865         "file name" in local variables or comments.
75866         * m4/rename.m4: Likewise.
75867
75868 2005-06-01  Bruno Haible  <bruno@clisp.org>
75869
75870         * modules/csharpexec: New file.
75871         * MODULES.html.sh (C#): New section.
75872
75873 2005-06-01  Bruno Haible  <bruno@clisp.org>
75874
75875         * m4/csharp.m4: New file, from GNU gettext.
75876         * m4/csharpexec.m4: New file, from GNU gettext.
75877
75878 2005-06-01  Bruno Haible  <bruno@clisp.org>
75879
75880         * lib/csharpexec.h: New file, from GNU gettext.
75881         * lib/csharpexec.c: New file, from GNU gettext.
75882         * lib/csharpexec.sh.in: New file, from GNU gettext.
75883
75884 2005-05-31  Derek Price  <derek@ximbiot.com>
75885             Paul Eggert  <eggert@cs.ucla.edu>
75886
75887         Sync from cvs.
75888         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75889
75890 2005-05-31  Derek Price  <derek@ximbiot.com>
75891             Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         Sync from cvs.
75894         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75895
75896 2005-05-29  Derek Price  <derek@ximbiot.com>
75897
75898         * config/srclist.txt (glob_.h, glob.c): Add these files.
75899
75900 2005-05-29  Derek Price  <derek@ximbiot.com>
75901
75902         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75903         * modules/glob: New file.
75904         * modules/getlogin_r: Add link to POSIX spec in description.
75905
75906 2005-05-29  Derek Price  <derek@ximbiot.com>
75907             Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * m4/glob.m4: New file.
75910
75911 2005-05-29  Derek Price  <derek@ximbiot.com>
75912             Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * lib/glob_.h, lib/glob.c: New files.
75915
75916 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75917
75918         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75919         * modules/fts-lgpl (Depends-on): Remove gettext.
75920
75921 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75924         and don't require gt_INTTYPES_PRI.
75925
75926 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75929
75930         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75931         the configuration hassle isn't worth it.
75932         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75933         (LONGEST_MODIFIER, PRIuMAX): Remove.
75934
75935 2005-05-27  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75938
75939 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75942         _POSIX_PTHREAD_SEMANTICS for Solaris.
75943
75944 2005-05-25  Derek Price  <derek@ximbiot.com>
75945
75946         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75947
75948 2005-05-25  Derek Price  <derek@ximbiot.com>
75949             Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75952         * lib/getlogin_r.c, getlogin_r.h: New files.
75953
75954 2005-05-25  Bruno Haible  <bruno@clisp.org>
75955             Derek Price  <derek@ximbiot.com>
75956
75957         * lib/getlogin_r.h: Simplify API documentation.
75958
75959 2005-05-23  Derek Price  <derek@ximbiot.com>
75960
75961         * modules/minmax (Files): Add m4/minmax.m4.
75962         (configure.ac): Add gl_MINMAX.
75963
75964 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75965
75966         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75967         so that unistd-safer.h (GPL'ed code) need not be included.
75968
75969 2005-05-22  Bruno Haible  <bruno@clisp.org>
75970
75971         * m4/minmax.m4: New file.
75972         Based on a patch by Derek Price <derek@ximbiot.com>.
75973
75974 2005-05-22  Bruno Haible  <bruno@clisp.org>
75975
75976         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75977         (INT64_MIN): Fix definition.
75978         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75979
75980         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75981         NEED_SIGNED_INT_TYPES.
75982
75983         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75984         HAVE_SYSTEM_INTTYPES.
75985
75986 2005-05-22  Bruno Haible  <bruno@clisp.org>
75987
75988         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75989         Also include <sys/param.h> if it defines MIN, MAX.
75990         Based on a patch by Derek Price <derek@ximbiot.com>.
75991
75992 2005-05-21  Jim Meyering  <jim@meyering.net>
75993
75994         * modules/fts (Files): Add m4/inttypes-pri.m4.
75995         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75996
75997 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         New fts module.
76000         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76001         (setup_dir, free_dir): New functions.
76002         (enter_dir, leave_dir): Define trivial
76003         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76004         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76005         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76006         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76007         Move to fts-cycle.c.
76008         (fts_open): Use setup_dir.
76009         (fts_close): Use free_dir.
76010         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76011         This adds a label and some gotos, but the alternatives were messier.
76012         Check for memory allocation failure when entering a dir.
76013         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76014         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76015         (FTS): New member fts_cycle, that is a union that contains the
76016         old active_dir_ht and cycle_state.  All uses changed to mention
76017         fts_cycle.ht and fts_cycle.state.
76018         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76019         fts.c, with the following changes:
76020         (setup_dir, free_dir): New functions.
76021         (enter_dir): Now returns bool.  Return true if successful, false
76022         if memory exhausted.  All callers changed.
76023         Do not bother partly cleaning up on
76024         memory allocation failure; that is free_dir's job.
76025         However, free ad if hash_insert fails, to avoid memory leak.
76026         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76027         fts->fts_options to see which union member to use.
76028
76029 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76032         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76033
76034 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76037
76038 2005-05-20  Jim Meyering  <jim@meyering.net>
76039
76040         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76041         Now a macro, to pacify GCC.
76042
76043 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76044
76045         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76046         of -1.
76047
76048 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76049
76050         * lib/chown.c (rpl_chown): Return -1 on failure.
76051
76052 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76055         Don't check for stddef.h.
76056         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76057         don't use its results.
76058         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76059         since we include them unconditionally.  Don't require
76060         AM_STDBOOL_H, since stdbool is a prerequisite.
76061         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76062         since we assume C89 or better.
76063         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76064         as we don't use their results.
76065         Don't check for fchdir, memmove, memset, strrchr, as we use
76066         them unconditionally.
76067         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76068         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76069
76070 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76071
76072         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76073         Include <stddef.h> unconditionally, since we assume C89 now.
76074         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76075         * lib/fts.c: Include fts_.h first, to check interface.
76076         Do not include intprops.h; no longer needed.
76077         Include cycle-check.h and hash.h, since fts_.h no longer does.
76078         Remove unnecessary casts of closedir to void.
76079         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76080         decide whether to decrement nlinks.
76081         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76082         (FTS): Use struct hash_table * instead of Hash_table, so that
76083         we no longer need to include hash.h here.
76084
76085 2005-05-18  Jim Meyering  <jim@meyering.net>
76086
76087         * modules/dirfd (License): Change to LGPL.  Most of the code
76088         is already in the public domain.
76089
76090 2005-05-18  Jim Meyering  <jim@meyering.net>
76091
76092         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76093         Reported by Yoann Vandoorselaere.
76094
76095 2005-05-17  Jim Meyering  <jim@meyering.net>
76096
76097         * m4/fts.m4: New file, from coreutils.
76098
76099 2005-05-17  Jim Meyering  <jim@meyering.net>
76100
76101         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76102
76103 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         Sync from coreutils.
76106         * m4/unlinkdir.m4: New file.
76107
76108 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         Sync from coreutils.
76111         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76112         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76113         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76114         White space changes only.
76115         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76116         special.
76117         * lib/yesno.c: Include getline.h, not ctype.h.
76118         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76119         Use getline to remove arbitrary restriction on response length.
76120
76121 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * config/srclist-update: Spell out "Street" in FSF postal
76124         mail address; this is the style the FSF seems to prefer.
76125
76126         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76127         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76128         this updates FSF postal mail address.
76129
76130         Sync from coreutils.
76131         * modules/unlinkdir: New file.
76132         * modules/yesno (Depends-on): Add getline.
76133         * MODULES.html.sh (File system functions): Add unlinkdir.
76134
76135 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76138         lib/strsep.h:
76139         Change the initial comment to refer to GPL, not LGPL.
76140         gnulib-tool will change it to LGPL as needed.
76141
76142         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76143         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76144         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76145         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76146         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76147         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76148         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76149         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76150         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76151         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76152         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76153         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76154         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76155         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76156         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76157         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76158         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76159         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76160         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76161         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76162         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76163         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76164         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76165         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76166         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76167         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76168         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76169         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76170         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76171         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76172         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76173         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76174         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76175         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76176         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76177         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76178         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76179         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76180         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76181         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76182         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76183         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76184         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76185         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76186         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76187         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76188         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76189         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76190         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76191         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76192         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76193         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76194         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76195         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76196         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76197         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76198         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76199         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76200         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76201         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76202         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76203         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76204         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76205         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76206         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76207         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76208         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76209         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76210         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76211         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76212         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76213         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76214         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76215         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76216         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76217         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76218         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76219         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76220         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76221         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76222         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76223         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76224         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76225         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76226         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76227         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76228         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76229         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76230         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76231         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76232         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76233         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76234         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76235         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76236         lib/yesno.c, lib/yesno.h:
76237         Update FSF postal mail address.
76238
76239 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76240
76241         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76242         tests/test-memmem.c, tests/test-stpncpy.c:
76243         Update FSF postal mail address.
76244
76245 2005-05-13  Bruno Haible  <bruno@clisp.org>
76246
76247         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76248         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76249         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76250         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76251         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76252         Add support for 64-bit integers in the MSVC compiler.
76253
76254 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76255
76256         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76257
76258 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76259
76260         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76261
76262 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * doc/getdate.texi (General date syntax): Don't say that date
76265         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76266         Problem reported by Nic Ferrier.
76267
76268 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76269
76270         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76271         specified in ai_socktype. Fix invalid ai_protocol
76272         check. ai_protocol is usually set to 0 or depending on
76273         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76274         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76275         ai_socktype / ai_protocol in the returned addrinfo structure.
76276
76277 2005-05-10  Simon Josefsson  <jas@extundo.com>
76278
76279         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76280         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76281
76282 2005-05-10  Karl Berry  <karl@gnu.org>
76283
76284         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76285         (from http://www.gnu.org/licenses).
76286         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76287         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76288         fdl.texi suffices.
76289
76290 2005-05-10  Karl Berry  <karl@gnu.org>
76291
76292         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76293         (COPYING.DOC): remove.
76294
76295         * config/srclist-update: new FSF address.
76296
76297 2005-05-10  Derek Price  <derek@ximbiot.com>
76298
76299         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76300         possible.
76301
76302 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76303             Bruno Haible  <bruno@clisp.org>
76304
76305         * modules/inet_ntop: New file.
76306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76307         inet_ntop.
76308
76309 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76310             Bruno Haible  <bruno@clisp.org>
76311
76312         * m4/inet_ntop.m4: New file.
76313
76314 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76315             Bruno Haible  <bruno@clisp.org>
76316
76317         * lib/inet_ntop.h: New file.
76318         * lib/inet_ntop.c: New file, from glibc with modifications.
76319
76320 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76321
76322         * modules/time_r (License): Change to LGPL.
76323         * modules/extensions (License): Change to LGPL.  Actually,
76324         the license is more permissive than that, but currently gnulib-tool
76325         doesn't know how to handle more-permissive licenses.
76326
76327         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76328         Problem reported by Dave Love.
76329
76330 2005-05-08  Jim Meyering  <jim@meyering.net>
76331
76332         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76333         blank.
76334
76335 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76336
76337         * modules/argmatch (Depends-on): Add stdbool.
76338         * modules/backupfile (Depends-on): Likewise.
76339         * modules/chdir-long (Depends-on): Likewise.
76340         * modules/closeout (Depends-on): Likewise.
76341         * modules/cycle-check (Depends-on): Likewise.
76342         * modules/dirname (Depends-on): Likewise.
76343         * modules/fnmatch (Depends-on): Likewise.
76344         * modules/fsusage (Depends-on): Likewise.
76345         * modules/fwriteerror (Depends-on): Likewise.
76346         * modules/getcwd (Depends-on): Likewise.
76347         * modules/getloadavg (Depends-on): Likewise.
76348         * modules/hard-locale (Depends-on): Likewise.
76349         * modules/makepath (Depends-on): Likewise.
76350         * modules/mountlist (Depends-on): Likewise.
76351         * modules/nanosleep (Depends-on): Likewise.
76352         * modules/posixtm (Depends-on): Likewise.
76353         * modules/quotearg (Depends-on): Likewise.
76354         * modules/readtokens (Depends-on): Likewise.
76355         * modules/readtokens0 (Depends-on): Likewise.
76356         * modules/readutmp (Depends-on): Likewise.
76357         * modules/save-cwd (Depends-on): Likewise.
76358         * modules/strftime (Depends-on): Likewise.
76359         * modules/userspec (Depends-on): Likewise.
76360         * modules/utimecmp (Depends-on): Likewise.
76361         * modules/xgetcwd (Depends-on): Likewise.
76362         * modules/xnanosleep (Depends-on): Likewise.
76363         * modules/xstrtod (Depends-on): Likewise.
76364         * modules/yesno (Depends-on): Likewise.
76365
76366 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76369         needless checks.
76370
76371 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         Merge from coreutils.  Among other things,
76374         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76375         * lib/fd-safer.c: New file.
76376         * lib/fcntl-safer.h, open-safer.c: Remove.
76377         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76378         * lib/dup-safer.c: Include unistd-safer.h first.
76379         Don't include errno.h.
76380         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76381         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76382         * lib/file-type.c: Rely on file-type.h change.
76383         * lib/getloadavg.c: Include unistd-safer.h.
76384         (getloadavg): Use safer open.
76385         * lib/getusershell.c: Include "stdio-safer.h".
76386         (getusershell): Use safer fopen.
76387         * lib/long-options.c (long_options): Use NULL rather than 0.
76388         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76389         'free'.
76390         * lib/modechange.c: Likewise.
76391         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76392         (MODE_DONE): New constant.
76393         (struct mode_change): Remove 'next' member.
76394         (make_node_op_equals): New function; like the old one of the
76395         same name, except it allocates an array.
76396         (mode_compile, mode_create_from_ref): Use it.
76397         (mode_compile): Allocate result as an array, not a linked list.
76398         Parse octal string ourself, so that we catch mistakes like "+0".
76399         (mode_adjust): Arg is an array, not a linked list.
76400         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76401         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76402         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76403         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76404         Remove.  This is now stat-macros.h's job.
76405         (talloc): Remove.  All callers replaced by xalloc, so that
76406         our invokers don't have to worry about reporting memory failures.
76407         (make_node_op_equals): Remove.
76408         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76409         New constants.
76410         (struct mode_change): Moved here from modechange.h.
76411         (mode_append_entry): Remove.
76412         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76413         apps to have incorrect behavior.  Use simpler algorithm for head
76414         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76415         Detect more invalid usages rather than having somewhat-random behavior.
76416         Don't insert an "a=" action, as that leads to incorrect behavior.
76417         (mode_compile, mode_create_from_ref): Return NULL on error instead
76418         of an enum, since now there's only one way to have an error.  All
76419         callers changed.
76420         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76421         at the correct time.  Simplify calculation of "+u" and its ilk.
76422         Don't mishandle "+X".
76423         (mode_free): Remove "register" and localize decls.
76424         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76425         (struct mode_change): Move to modechange.c; callers don't
76426         need to see this stuff.
76427         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76428         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76429         (mode_change, mode_adjust): Reflect the new signatures noted above.
76430         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76431         that might redefine system include files.
76432         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76433         (my_usleep): Use NULL rather than (void *) 0.
76434         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76435         Use siginterrupt to specify that system calls should be interrupted.
76436         (rpl_nanosleep): Move initialization of suspended closer to call of
76437         my_usleep.
76438         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76439         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76440         (desirable_utmp_entry): New function.
76441         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76442         using x2nrealloc, to simplify logic.
76443         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76444         size calculation.  Do not assume utmp file is a regular file.
76445         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76446         (READ_UTMP_CHECK_PIDS): New constant.
76447         * lib/save-cwd.c: Include unistd-safer.h.
76448         (save_cwd): Use fd_safer.
76449         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76450         [!_LIBC] Include "stat-macros.h" instead.
76451         * lib/unistd-safer.h (fd_safer): New decl.
76452
76453 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         * modules/getloadavg (Depends-on): Add unistd-safer.
76456         * modules/getusershell (Depends-on): Add stdio-safer.
76457         * modules/lstat (Depends-on): Remove xalloc.
76458         * modules/mkstemp (Depends-on): Add stat-macros.
76459         * modules/modechange (Depends-on): Remove xstrtol.
76460         Add stat-macros, xalloc.
76461         * modules/save-cwd (Depends-on): Add unistd-safer.
76462         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76463         * modules/unistd-safer (Files): Add lib/fd-safer.c
76464         (Makefile.am): Remove lib_SOURCES.
76465
76466         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76467         Remove fcntl-safer; unistd-safer supersedes it.
76468
76469 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76472         AC_HEADER_STAT.
76473         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76474         (gl_PREREQ_CHOWN): Remove.
76475         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76476         it.  Don't require AC_HEADER_STAT.
76477         (gl_PREREQ_LSTAT): Remove.
76478         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76479         Don't require AC_HEADER_STAT.
76480         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76481         (gl_PREREQ_RMDIR): Remove.
76482         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76483         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76484         the stat-macros module a prerequisite.
76485         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76486         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76487         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76488         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76489         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76490         variable names.
76491         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76492         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76493         variable prefixes.
76494         * m4/fcntl-safer.m4: Remove.
76495         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76496         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76497         Invoke gl_PREREQ_FD_SAFER.
76498         (gl_PREREQ_FD_SAFER): New macro.
76499         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76500         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76501         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76502         Remove duplicate call to AC_LIBOBJ(readutmp).
76503         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76504
76505         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76506         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76507
76508 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * MODULES.html.sh (Misc): Add byteswap.
76511
76512 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76513
76514         * modules/getcwd (Depends-on): Add extensions.
76515         * modules/openat (Depends-on): Likewise.
76516
76517 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76518
76519         * modules/byteswap: New file.
76520
76521 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76522
76523         * m4/byteswap.m4: New file.
76524
76525 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76526
76527         * lib/byteswap_.h: New file.
76528
76529 2005-04-25  Karl Berry  <karl@gnu.org>
76530
76531         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76532
76533 2005-04-25  Albert Chin  <china@thewrittenword.com>
76534
76535         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76536         Toolkit C bug.
76537
76538 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76539
76540         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76541         (func_ln_if_changed): Remove forcibly for no error message
76542         in case file does not exist.
76543
76544 2005-04-19  Simon Josefsson  <jas@extundo.com>
76545
76546         * gnulib-tool (Options): Make --symlink mean --symbolic.
76547
76548 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76549
76550         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76551
76552 2005-04-16  Simon Josefsson  <jas@extundo.com>
76553
76554         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76555
76556 2005-04-15  Simon Josefsson  <jas@extundo.com>
76557
76558         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76559
76560 2005-04-15  Simon Josefsson  <jas@extundo.com>
76561
76562         * gnulib-tool: Rename --symlink to --symbolic.
76563
76564 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76565
76566         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76567         symbolic links to files instead of copying/moving.  Add --aux-dir,
76568         specifying directory relative --dir where auxiliary build tools
76569         are placed.
76570
76571 2005-04-14  Bruno Haible  <bruno@clisp.org>
76572
76573         * modules/allocsa (License): Change to LGPL.
76574         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76575
76576 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76577
76578         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76579         that "UTC +1 second" continues to work.  Problem reported
76580         by Dmitry V. Levin.
76581         (relunit_snumber): New rule.
76582         (relunit): Use it.
76583
76584 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76585
76586         * lib/getdate.y (universal_time_zone_table): New constant.
76587         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76588         universal_time_zone_table.
76589         (lookup_zone): Prefer universal_time_zone_table to
76590         local_time_zone_table, so that "GMT" time stamps are allowed in
76591         London during the summer.  Problem reported by Ian Abbott.
76592
76593 2005-04-12  Jim Meyering  <jim@meyering.net>
76594
76595         * lib/human.c (humblock): Set *options even when returning due to
76596         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76597         warning from gcc-4.
76598
76599 2005-04-09  Jim Meyering  <jim@meyering.net>
76600
76601         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76602         -Wuninitialized: initialize tm0.tm_year.
76603
76604 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76605
76606         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76607         count, since there's no maximum.  All uses changed.
76608         Add member dsts_seen.
76609         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76610         not being INT_MAX.
76611         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76612         Use pc_rels_seen to decide whther a date is absolute.
76613
76614         * lib/getdate.y (number): Don't overwrite year.
76615         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76616         check.
76617
76618 2005-04-02  Simon Josefsson  <jas@extundo.com>
76619
76620         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76621         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76622
76623 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76624
76625         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76626         where no absolute path name can be longer than PATH_MAX.
76627
76628 2005-03-27  Jim Meyering  <jim@meyering.net>
76629
76630         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76631
76632 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76635         "one's complement" -> "ones' complement" in comment, as per Knuth.
76636         "value of type" -> "type or expression" in comment.
76637         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76638
76639 2005-03-26  Jim Meyering  <jim@meyering.net>
76640
76641         Comment nits.
76642         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76643         Correct typos: s/or/of/.
76644
76645 2005-03-26  Jim Meyering  <jim@meyering.net>
76646
76647         * modules/check-include-files: Move to ../ and rename to...
76648         * check-module: ...this.
76649
76650 2005-03-25  Jim Meyering  <jim@meyering.net>
76651
76652         * modules/xvasprintf (Files): Add xalloc.h.
76653
76654 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * modules/gettext (Files): config/config.rpath ->
76657         build-aux/config.rpath
76658         * modules/iconv (Files): Likewise.
76659         Problem reported by Oskar Liljeblad.
76660
76661 2005-03-23  Jim Meyering  <jim@meyering.net>
76662
76663         * modules/check-include-files: New script to check for
76664         missing dependencies, multiple includes, etc.
76665
76666         * modules/c-strtold (Depends-on): Add xalloc.
76667         * modules/c-strtod (Depends-on): Add xalloc.
76668         * modules/hash (Depends-on): Add xalloc.
76669         (Files): Remove lib/xalloc.h.
76670
76671         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76672         * modules/userspec (Files): Add lib/inttostr.h.
76673
76674 2005-03-23  Jim Meyering  <jim@meyering.net>
76675
76676         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76677
76678 2005-03-22  Jim Meyering  <jim@meyering.net>
76679
76680         * modules/stat-macros: New module.
76681         * modules/canonicalize, modules/euidaccess, modules/file-type,
76682         * modules/filemode, modules/lchown, modules/makepath,
76683         * modules/rmdir, modules/stat: Depend on new stat-macros module
76684         rather than listing lib/stat-macros.h manually.
76685         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76686
76687 2005-03-22  Jim Meyering  <jim@meyering.net>
76688
76689         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76690
76691 2005-03-22  Bruno Haible  <bruno@clisp.org>
76692
76693         * config/srclist.txt: Replace target directory 'config' with
76694         'build-aux'.
76695         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76696         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76697         ../build-aux/.
76698
76699 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         * modules/chdir-long (Depends-on): Add mempcpy.
76702
76703         * modules/acl, modules/backupfile, modules/c-strtod,
76704         modules/c-strtold, modules/canon-host, modules/canonicalize,
76705         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76706         modules/exclude, modules/exitfail, modules/file-type,
76707         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76708         modules/getdate, modules/getline, modules/getpagesize,
76709         modules/getpass, modules/getugroups, modules/group-member,
76710         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76711         modules/inttostr, modules/long-options, modules/makepath,
76712         modules/md5, modules/memcasecmp, modules/memcoll,
76713         modules/modechange, modules/mountlist, modules/path-concat,
76714         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76715         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76716         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76717         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76718         modules/strftime, modules/strndup, modules/strverscmp,
76719         modules/timespec, modules/unlocked-io, modules/userspec,
76720         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76721         modules/yesno:
76722         Remove lib_SOURCES line from Makefile.am section, as this is now
76723         done automatically by the corresponding Autoconf macro.
76724
76725 2005-03-21  Jim Meyering  <jim@meyering.net>
76726
76727         Changes imported from coreutils.
76728
76729         * lib/cycle-check.c: Don't include xalloc.h.
76730
76731         * lib/path-concat.c: Don't include assert.h.
76732         (path_concat): Remove assertion that would have triggered
76733         for ABASE starting with more than one slash.
76734         Reported by Andreas Schwab.
76735
76736         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76737         properly when ABASE is an absolute file name.
76738         Correct the description of this function.
76739         Include <assert.h>.
76740         Add an assertion and a test driver.
76741         This fixes a bug introduced on 2004-07-02.
76742         Andreas Schwab reported the resulting failure of cp --parents:
76743         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76744
76745 2005-03-21  Jim Meyering  <jim@meyering.net>
76746
76747         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76749
76750 2005-03-21  Jim Meyering  <jim@meyering.net>
76751         and  Paul Eggert  <eggert@cs.ucla.edu>
76752
76753         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76754         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76755         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76756         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76757         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76758         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76759         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76760         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76761         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76762         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76763         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76764         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76765         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76766         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76767         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76768         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76769         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76770         for these modules.
76771
76772 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76775         (which shouldn't happen), generate nothing instead of returning 0
76776         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76777
76778 2005-03-16  Bruno Haible  <bruno@clisp.org>
76779
76780         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76781         HAVE_LONGLONG_64BIT.
76782
76783 2005-03-16  Bruno Haible  <bruno@clisp.org>
76784
76785         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76786         HAVE_LONGLONG_64BIT.
76787
76788 2005-03-16  Bruno Haible  <bruno@clisp.org>
76789
76790         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76791         HAVE_LONGLONG_64BIT.
76792
76793 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76794
76795         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76796         reliably distinguish strftime failure from empty output on POSIX
76797         hosts.
76798
76799 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76800
76801         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76802         (iconv_string): Don't guess a size-zero buffer, as that might cause
76803         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76804         result would be 'too large', where 'too large' is (heuristically)
76805         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76806         overflow concerns.  This will prevent some unwanted malloc failures
76807         when the inputs are very large.
76808
76809 2005-03-15  Karl Berry  <karl@gnu.org>
76810
76811         * config/srclist.txt (config.rpath): from gettext.
76812         * config/config.rpath: update.
76813
76814 2005-03-15  Bruno Haible  <bruno@clisp.org>
76815
76816         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76817         to 'negate'.
76818
76819         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76820         variable.
76821
76822         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76823         results.
76824
76825 2005-03-14  Simon Josefsson  <jas@extundo.com>
76826
76827         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76828         <fx@gnu.org>.
76829
76830 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76833         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76834         intprops.h.
76835         * lib/strtol.c: Likewise.
76836
76837 2005-03-14  Jim Meyering  <jim@meyering.net>
76838
76839         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76840         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76841         to be nonzero so that we (and caller) can detect the difference
76842         between a valid zero-length expansion and an error return, even
76843         when the underlying strftime fails before writing anything into
76844         that location.
76845
76846 2005-03-14  Bruno Haible  <bruno@clisp.org>
76847
76848         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76849         Update from GNU gettext 0.14.3.
76850
76851 2005-03-10  Jim Meyering  <jim@meyering.net>
76852
76853         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76854
76855 2005-03-10  Jim Meyering  <jim@meyering.net>
76856
76857         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76858         so that this module works on systems without fchdir.
76859
76860 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         Factor int-properties macros into a single file, except for
76863         glibc-related files.
76864         * lib/intprops.h: New file.
76865         * lib/getloadavg.c: Include it instead of limits.h.
76866         (INT_STRLEN_BOUND): Remove.
76867         * lib/human.c: Include intprops.h.
76868         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76869         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76870         302/1000.
76871         * lib/inttostr.h: Include intprops.h instead of limits.h.
76872         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76873         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76874         for consistency with intprops.h.
76875         (time_t_is_integer, twos_complement_arithmetic): Use them.
76876         * lib/sig2str.h: Include <signal.h>, intprops.h.
76877         (INT_STRLEN_BOUND): Remove.
76878         * lib/strftime.c (TYPE_SIGNED): Remove.
76879         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76880         * lib/strtol.c: Adjust comments to match intprops.h.
76881         * lib/userspec.c: Include intprops.h.
76882         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76883         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76884         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76885         instead of rolling our own expressions.
76886         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76887
76888         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76889         instead of int.
76890         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76891         the right thing even if adding 1900 would overflow.  Similarly
76892         for tm_mon + 1 and tm_yday + 1.
76893         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76894         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76895         (DO_SIGNED_NUMBER): New macro.
76896         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76897
76898 2005-03-07  Bruno Haible  <bruno@clisp.org>
76899
76900         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76901
76902 2005-03-07  Bruno Haible  <bruno@clisp.org>
76903
76904         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76905
76906 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76907
76908         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76909         (func_import): Only replace files via --import when they have actually
76910         changed.
76911
76912 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76913
76914         * m4/mmap-anon.m4: New file.
76915         * m4/pagealign_alloc.m4: New file.
76916
76917 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76918             Bruno Haible  <bruno@clisp.org>
76919
76920         * modules/pagealign_alloc: New file.
76921         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76922
76923 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76924             Bruno Haible  <bruno@clisp.org>
76925
76926         * lib/pagealign_alloc.h: New file.
76927         * lib/pagealign_alloc.c: New file.
76928
76929 2005-03-03  Bruno Haible  <bruno@clisp.org>
76930
76931         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76932         Use an all-permissive copyright notice, recommended by RMS.
76933
76934 2005-03-02  Bruno Haible  <bruno@clisp.org>
76935
76936         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76937         of AIX, the replacement has to be done only after <string.h> is
76938         included, therefore not in config.h. stpncpy.h does the replacement,
76939         and stpncpy.c uses it.
76940
76941 2005-03-02  Bruno Haible  <bruno@clisp.org>
76942
76943         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76944         stpncpy.c uses it.
76945
76946 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76947
76948         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76949         The workaround isn't strictly needed for POSIX conformance, and
76950         it's too much of a pain to configure and maintain.  We'll ask
76951         people to fix their kernels instead.
76952         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76953         (NANOSLEEP_BUG_WORKAROUND): Remove.
76954         (xnanosleep): Remove the workaround.
76955
76956 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76957
76958         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76959         Reported by Derek Price.
76960         (Include): Add "timespec.h".
76961
76962         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76963
76964 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76967         to detect nanosleep bug.
76968
76969 2005-03-01  Bruno Haible  <bruno@clisp.org>
76970
76971         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76972
76973 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         * modules/gethrxtime: New file.
76976         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76977         (Depends-on): Add gethrxtime.
76978         (configure.ac): Add gl_XNANOSLEEP.
76979         (Makefile.am): Remove lib_SOURCES line.
76980
76981 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76984         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76985
76986 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76989         * lib/timespec.h (gettime): Return void, since it always
76990         succeeds now.  All uses changed.
76991         * lib/gettime.c (gettime): Likewise.
76992         [HAVE_NANOTIME]: Prefer nanotime.
76993         Assume gettimeofday succeeds, as POSIX requires.
76994         Assime time () succeeds, since other code already does.
76995         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76996         (timespec_subtract): Remove.
76997         (NANOSLEEP_BUG_WORKAROUND): New constant.
76998         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76999         things considerably.  Use it only on GNU/Linux hosts, since the
77000         workaround shouldn't be needed elsewhere.
77001
77002 2005-02-24  Bruno Haible  <bruno@clisp.org>
77003
77004         * modules/gettext (Files): Add m4/glibc2.m4.
77005
77006 2005-02-24  Bruno Haible  <bruno@clisp.org>
77007
77008         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77009         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77010         * m4/progtest.m4:
77011         Update from GNU gettext 0.14.2.
77012         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77013
77014 2005-02-24  Bruno Haible  <bruno@clisp.org>
77015
77016         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77017         * lib/config.charset: Update from GNU gettext 0.14.2.
77018
77019 2005-02-24  Bruno Haible  <bruno@clisp.org>
77020
77021         * lib/gettext.h: Update from GNU gettext 0.14.2.
77022
77023 2005-02-23  Simon Josefsson  <jas@extundo.com>
77024
77025         * m4/iconvme.m4: New file.
77026
77027 2005-02-23  Jim Meyering  <jim@meyering.net>
77028
77029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77030         change.
77031         Thanks to Bruno Haible for catching it.
77032
77033 2005-02-22  Simon Josefsson  <jas@extundo.com>
77034
77035         * modules/iconvme: New file.
77036
77037         * MODULES.html.sh: Add iconvme.
77038
77039 2005-02-22  Simon Josefsson  <jas@extundo.com>
77040
77041         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77042
77043 2005-02-22  Simon Josefsson  <jas@extundo.com>
77044
77045         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77046
77047 2005-02-22  Jim Meyering  <jim@meyering.net>
77048
77049         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77050         s/ifndef/ifdef/.
77051
77052 2005-02-20  Neil Conway  <neilc@samurai.com>
77053
77054         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77055         returned by OSX/Darwin if the specified buffer is not large
77056         enough for the hostname.
77057
77058 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77059
77060         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77061         pass it to _help, otherwise the latter coredumps trying to
77062         dereference state.root_argp.
77063
77064 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77065
77066         * modules/chdir-long (Depends-on): Add memrchr.
77067         * modules/memrchr (Files): Add lib/memrchr.h.
77068         (Include): "memrchr.h".
77069
77070 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77071
77072         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77073
77074 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77075
77076         * lib/memrchr.h: New file.
77077         * lib/chdir-long.c: Include it.
77078         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77079         Don't bother including stddef.h.
77080
77081 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77084         inclusion.
77085         Include <sys/types.h>, for dev_t.
77086         (ME_DUMMY, ME_REMOTE): Move from here....
77087         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77088         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77089         Dmitry V. Levin.
77090         Include mountlist.h first, to test the interface.
77091
77092 2005-01-29  Bruno Haible  <bruno@clisp.org>
77093
77094         * lib/progname.c (program_name): Initialize.
77095         Needed when linking statically on MacOS X.
77096
77097 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77098
77099         Sync from coreutils.
77100         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77101         (Depends-on): Add c-strtod.
77102         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77103
77104 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         Sync from coreutils.
77107         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77108
77109         Remove files that are specific to coreutils.
77110         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77111
77112 2005-01-28  Bruno Haible  <bruno@clisp.org>
77113
77114         * modules/javacomp: New file.
77115         * MODULES.html.sh (Java): Add javacomp.
77116
77117 2005-01-28  Bruno Haible  <bruno@clisp.org>
77118
77119         * m4/javacomp.m4: New file, from GNU gettext.
77120
77121 2005-01-28  Bruno Haible  <bruno@clisp.org>
77122
77123         * lib/javacomp.sh.in: New file, from GNU gettext.
77124         * lib/javacomp.h: New file, from GNU gettext.
77125         * lib/javacomp.c: New file, from GNU gettext.
77126
77127 2005-01-26  Simon Josefsson  <jas@extundo.com>
77128
77129         * lib/gai_strerror.c: Use GPL in header.
77130
77131 2005-01-26  Bruno Haible  <bruno@clisp.org>
77132
77133         * modules/javaexec: New file.
77134         * MODULES.html.sh (Java): Add javaexec.
77135
77136 2005-01-26  Bruno Haible  <bruno@clisp.org>
77137
77138         * m4/javaexec.m4: New file, from GNU gettext.
77139
77140 2005-01-26  Bruno Haible  <bruno@clisp.org>
77141
77142         * lib/javaexec.sh.in: New file, from GNU gettext.
77143         * lib/javaexec.h: New file, from GNU gettext.
77144         * lib/javaexec.c: New file, from GNU gettext.
77145
77146 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77147
77148         * modules/lchown (Depends-on): Remove lchown.h
77149
77150 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77151
77152         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77153         must be defined if the header file was not found, in order
77154         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77155
77156 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77157
77158         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77159         initializers for struct pentry_state.
77160         (__argp_error): Check return value of __asprintf
77161         (__argp_failure): Translate error message
77162
77163         * lib/argp-parse.c: Removed braces around the expansion of N_()
77164
77165 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77166
77167         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77168         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77169         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77170         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77171         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77172         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77173         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77174         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77175         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77176         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77177         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77178         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77179         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77180         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77181         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77182         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77183         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77184         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77185         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77186         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77187         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77188         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77189         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77190         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77191         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77192         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77193         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77194         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77195         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77196         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77197         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77198         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77199         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77200         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77201         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77202         Use an all-permissive copyright notice, recommended by RMS.
77203
77204 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77205
77206         * modules/chdir-long (Depends-on): Remove mempcpy.
77207
77208 2005-01-21  Jim Meyering  <jim@meyering.net>
77209
77210         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77211         same value as for Solaris 9.
77212
77213         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77214         component length.  This included changing the parameter to be
77215         of type `char *' rather than `char const *'.
77216         * lib/chdir-long.h (chdir_long): Update prototype.
77217
77218         * lib/openat.c (fdopendir, fstatat): New functions.
77219         * lib/openat.h: Include headers required for use of DIR and struct
77220         stat.
77221         [AT_SYMLINK_NOFOLLOW]: Define.
77222         (fdopendir, fstatat): Add prototypes.
77223
77224 2005-01-21  Bruno Haible  <bruno@clisp.org>
77225
77226         * modules/classpath: New file.
77227         * MODULES.html.sh (Java): Add classpath.
77228
77229 2005-01-21  Bruno Haible  <bruno@clisp.org>
77230
77231         * lib/classpath.h: New file, from GNU gettext.
77232         * lib/classpath.c: New file, from GNU gettext.
77233
77234 2005-01-20  Simon Josefsson  <jas@extundo.com>
77235
77236         * modules/version-etc-fsf: New file.
77237
77238 2005-01-20  Simon Josefsson  <jas@extundo.com>
77239
77240         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77241         * lib/version-etc.c: Remove version_etc_copyright.
77242         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77243         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77244
77245 2005-01-20  Simon Josefsson  <jas@extundo.com>
77246
77247         * lib/base64.h (isbase64): Add.
77248
77249         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77250         using a unsigned prototype, don't inline.
77251         (base64_decode): Use it.
77252
77253 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77254
77255         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77256         it.
77257
77258 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77259
77260         * lib/save-cwd.c (save_cwd): Remove code to support the case
77261         where fchdir is missing or flaky.
77262
77263 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77266
77267 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77270         AC_LIBSOURCES now does this.
77271         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77272         with new ullong_max module.
77273
77274 2005-01-19  Bruno Haible  <bruno@clisp.org>
77275
77276         * modules/sh-quote: New file.
77277         * MODULES.html.sh (Executing programs): Add sh-quote.
77278
77279 2005-01-19  Bruno Haible  <bruno@clisp.org>
77280
77281         * lib/sh-quote.h: New file, from GNU gettext.
77282         * lib/sh-quote.c: New file, from GNU gettext.
77283
77284 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         Merge from coreutils.
77287         * m4/ullong_max.m4: New file.
77288         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77289         (gl_MACROS): Assume localeconv exists.
77290
77291 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77292
77293         Merge changes from coreutils, as described below in several
77294         changelogs dated today.
77295
77296         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77297         (O_DIRECTORY): Remove; not needed here, since "." must be
77298         a directory.  All uses removed.
77299         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77300         universal on Suns, and we also need to test for IRIX.
77301         Revamp code to use 'if' rather than '#if'.
77302         Avoid unnecessary comparison of cwd->desc to 0.
77303
77304         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77305         for known valid error numbers rather than observed invalid ones.
77306
77307 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77308
77309         * modules/ullong_max: New file.
77310
77311         * modules/chdir-long, modules/openat: New files.
77312         * modules/save-cwd (Depends-on): Depend on chdir-long.
77313         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77314
77315 2005-01-18  Jim Meyering  <jim@meyering.net>
77316
77317         Merge from coreutils.
77318         * m4/chdir-long.m4, m4/openat.m4: New files.
77319         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77320         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77321         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77322         is sane and DOES follow symlinks.  Besides, testing 20 different
77323         systems found no broken chown implementations.
77324         Prompted by a change in rsync's copy of this macro.
77325         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77326
77327         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77328
77329         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77330         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77331         NULL-means-set-to-current-time semantics.
77332         Remove temporary file immediately, rather than waiting
77333         for configure's at-exit trap code to do it.
77334
77335 2005-01-18  Jim Meyering  <jim@meyering.net>
77336
77337         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77338
77339         * lib/utimens.c (futimens): Account for the fact that futimes
77340         can also fail with errno == ENOSYS or errno == ENOENT.
77341         Patch from Dmitry V. Levin.
77342
77343         Change the name of the robust chdir function from chdir to chdir_long.
77344         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77345         (restore_cwd): Use chdir_long, not chdir.
77346         * lib/chdir-long.c: Renamed from chdir.c.
77347         * lib/chdir-long.h: Renamed from chdir.h.
77348         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77349         Hurd.
77350
77351 2005-01-18  Bruno Haible  <bruno@clisp.org>
77352
77353         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77354         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77355         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77356         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77357         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77358         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77359         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77360         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77361         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77362         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77363         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77364         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77365         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77366         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77367         Use an all-permissive copyright notice, recommended by RMS.
77368
77369 2005-01-18  Bob Proulx  <bob@proulx.com>
77370
77371         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77372         simplify offsetof() macro construct to avoid compile failure with
77373         native HP-UX 11.0 ANSI C compiler.
77374
77375 2005-01-17  Bruno Haible  <bruno@clisp.org>
77376
77377         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77378         redundant because stpncpy.m4 takes care of it.
77379
77380 2005-01-17  Bruno Haible  <bruno@clisp.org>
77381
77382         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77383
77384 2005-01-17  Bruno Haible  <bruno@clisp.org>
77385
77386         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77387         used.
77388
77389 2005-01-17  Bruno Haible  <bruno@clisp.org>
77390
77391         * lib/fwriteerror.h (fwriteerror): Change specification to include
77392         fclose.
77393         * lib/fwriteerror.c: Include <stdbool.h>.
77394         (fwriteerror): At the end, close the file stream. Record whether
77395         stdout was already closed.
77396
77397 2005-01-17  Bruno Haible  <bruno@clisp.org>
77398
77399         * lib/execute.c (environ): Declare if needed.
77400         * lib/pipe.c (environ): Likewise.
77401         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77402
77403 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77404
77405         * modules/argp: Depend on vsnprintf
77406
77407 2005-01-10  Jim Meyering  <jim@meyering.net>
77408
77409         * modules/closeout (Depends-on): Add atexit.
77410
77411 2005-01-06  Bruno Haible  <bruno@clisp.org>
77412
77413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77414
77415 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77416
77417         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77418         definitions to be after all include files, to avoid collisions.
77419         Problem reported by Bob Proulx.
77420
77421 2005-01-04  Jim Meyering  <jim@meyering.net>
77422
77423         Changes imported from coreutils.
77424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77425         as the mkstemp template, use a temporary directory and an
77426         8.3-friendly template to avoid trouble on systems like DJGPP.
77427         Reported by Juan M. Guerrero via Stepan Kasal.
77428         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77429         close. Remove the temporary directory right away, rather than waiting
77430         for configure's at-exit trap code to do it.
77431         Suggestion from Stepan Kasal.
77432
77433 2005-01-01  Simon Josefsson  <jas@extundo.com>
77434
77435         * gnulib-tool: Print #include directives when --import'ing.
77436
77437 2004-12-28  Simon Josefsson  <jas@extundo.com>
77438
77439         * tests/test-base64.c: Include required header files.  Remove
77440         unused variables.
77441
77442 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77443
77444         * modules/error (Depends-on): Remove gettext.
77445
77446 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77447
77448         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77449         not needed.  This removes a dependency on the gettext module.
77450         [defined _LIBC]: Do not include <libintl.h>; not needed.
77451
77452 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77455         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77456
77457 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77460         HAVE_DECL_STRTOLD.
77461
77462 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77463
77464         * modules/getdate (Depends-on): Remove alloca-opt.
77465
77466 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77469
77470 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         * lib/argp-parse.c: Include <stddef.h>.
77473         (alignof, alignto): New macros.
77474         (parser_init): Don't assume that void * is aligned sufficiently
77475         for struct option.
77476
77477         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77478         need to extend the stack.
77479         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77480         large.
77481
77482 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77483
77484         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77485
77486 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77489         (2004-10-24) change.  Apparently this was a false alarm.
77490
77491         * modules/getdate: Depend on alloca-opt, not alloca.
77492
77493 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77494
77495         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77496         Remove now-obsolete comment about AIX.
77497         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77498         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77499         (YYMAXDEPTH): New macro.
77500
77501 2004-12-18  Simon Josefsson  <jas@extundo.com>
77502
77503         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77504
77505 2004-12-18  Bruno Haible  <bruno@clisp.org>
77506
77507         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77508
77509 2004-12-18  Bruno Haible  <bruno@clisp.org>
77510
77511         * lib/fatal-signal.c (fatal_signals): Make non-const.
77512         (init_fatal_signals): New function.
77513         (uninstall_handlers, install_handlers): Ignore signals that were set to
77514         SIG_IGN.
77515         (at_fatal_signal): Call init_fatal_signals.
77516         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77517         SIG_IGN.
77518         Reported by Paul Eggert.
77519
77520 2004-12-18  Bruno Haible  <bruno@clisp.org>
77521
77522         * doc/alloca.texi: New file.
77523         * doc/alloca-opt.texi: New file.
77524
77525 2004-12-17  Jim Meyering  <jim@meyering.net>
77526
77527         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77528         Otherwise, install-sh could exit with improper exit status when
77529         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77530
77531 2004-12-16  Simon Josefsson  <jas@extundo.com>
77532
77533         * tests/test-base64.c: Add license.
77534
77535 2004-12-15  Stepan Kasal  <address@hidden>
77536
77537         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77538
77539 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         * modules/getcwd (Files): Add m4/d-ino.m4.
77542         Suggested by Mark D. Baushke.
77543
77544 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * lib/getdate.y (textint): New member "negative".
77547         (time_zone_hhmm): New function.
77548         Expect 14 shift-reduce conflicts, not 13.
77549         (o_colon_minutes): New rule.
77550         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77551         (yylex): Set the "negative" member of signed numbers.
77552
77553 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77554
77555         * doc/getdate.texi (Time of day items, Time zone items):
77556         Describe new formats +00:00, UTC+00:00.
77557
77558 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77561         spurious "-l"s.  Problem reported by Stepan Kasal.
77562
77563 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77566         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77567
77568 2004-12-04  Simon Josefsson  <jas@extundo.com>
77569
77570         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77571         Vandoorselaere <yoann@prelude-ids.org>.
77572
77573 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         Changes imported from coreutils.
77576         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77577         exist.
77578         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77579
77580 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         Changes imported from coreutils.
77583         * lib/hard-locale.c: Assume <locale.h> exists.
77584         Include "strdup.h".
77585         (GLIBC_VERSION): New macro.
77586         (hard_locale): Assume setlocale exists.
77587         Rewrite to avoid #ifdef.
77588         Use strdup rather than malloc + strcpy.
77589         * lib/human.c: Assume <locale.h> exists.
77590         (human_readable): Assume localeconv exists.
77591
77592 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77593
77594         * modules/hard-locale (Depends-on): Add strdup.
77595
77596 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77597
77598         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77599         convert T2, not T.  (Imported from libc.)
77600
77601 2004-11-30  Simon Josefsson  <jas@extundo.com>
77602
77603         * modules/restrict (License): Change to LGPL.
77604
77605 2004-11-30  Simon Josefsson  <jas@extundo.com>
77606
77607         * m4/restrict.m4: Add copyright and copying conditions.
77608
77609 2004-11-30  Simon Josefsson  <jas@extundo.com>
77610
77611         * m4/base64.m4: New file.
77612
77613 2004-11-30  Simon Josefsson  <jas@extundo.com>
77614
77615         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77616         base64.
77617
77618         * tests/test-base64.c: New file.
77619
77620         * modules/base64: New file.
77621
77622 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77623
77624         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77625         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77626
77627         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77628
77629 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77632         (__getcwd.c): Don't restore errno; glibc doesn't.
77633         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77634         first, falling back to our code only if its results look suspicious.
77635         Ensure that the resulting buffer is only as large as necessary.
77636
77637         * lib/readutmp.c: Include readutmp.h first.
77638         Include <errno.h>, since readutmp.h no longer does that.
77639         * lib/readutmp.h: Don't include <errno.h>,
77640         <sys/param.h>, <time.h>; not needed to establish interface.
77641         (errno): Remove decl.
77642         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77643         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77644         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77645
77646 2004-11-28  Simon Josefsson  <jas@extundo.com>
77647
77648         * lib/base64.h, base64.c: New file.
77649
77650 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77653
77654 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77657         (Depends-on): Remove pathmax, same.  Add mempcpy.
77658         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77659         (Makefile.am): Append getcwd.h to lib_SOURCES.
77660         (Include): Add getcwd.h.
77661         (Maintainer): Change from Jim Meyering to "all, glibc",
77662         since getdate now uses intended-for-glibc code.
77663         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77664         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77665
77666 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77669         HP's ANSI C compiler.
77670         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77671         Declaring int functions causes warnings on some modern systems and
77672         shouldn't be needed to compile on ancient ones.
77673         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77674         defined.
77675
77676         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77677         with the following changes.
77678         (__set_errno): Parenthesize properly.
77679         Include <stdbool.h>.
77680         (MIN, MAX, MATCHING_INO): New macros.
77681         (__getcwd): Define with prototype, not K&R form.
77682         Use heuristics to allocate default buffer on stack if possible.
77683         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77684         behavior, and to avoid the PATH_MAX limit when computing
77685         ../../../../...
77686         Use MATCHING_INO to compare inode number to file.
77687         Check for arithmetic overflow in size calculations.
77688         Fix bug in reallocation of dot array that caused getcwd to fail
77689         on directories nested deeper than 75.
77690         Be more careful about saving errno on error.
77691         Do not use realloc; use only free+malloc, as this is a bit
77692         more flexible and avoids a needless copy operation.
77693         Do not inspect st_dev and st_ino for symbolic links; POSIX
77694         doesn't specify the latter.
77695         Check for closedir errors.
77696         Avoid needless casts.
77697         Use "#ifdef weak_alias" around weak_alias, to be like other
77698         glibc code.
77699         The following changes to getcwd.c have effect only when used in
77700         gnulib; they have no effect inside glibc proper.
77701         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77702         as alloca isn't used.
77703         (alloca, __alloca): Likewise.
77704         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77705         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77706         unconditionally, as gnulib assumes C89 or better.
77707         Do not include <sys/param.h>.
77708         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77709         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77710         better.
77711         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77712         Include <dirent.h> in a way that is compatible with modern Autoconf.
77713         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77714         New macros, if not already defined.
77715         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77716         Use "_LIBC", not "defined _LIBC", for consistency.
77717         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77718         a mempcpy module.
77719         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77720         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77721         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77722         credit only to Jim Meyering and adjust the copyright dates.
77723         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77724         <stdlib.h>, <unistd.h>, "pathmax.h".
77725         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77726         (INITIAL_BUFFER_SIZE): Remove.
77727         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77728
77729 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77732         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77733         Use the _ONCE methods, for efficiency.
77734         Check for fcntl.h.  In test program, include <errno.h>
77735         and <fcntl.h> if available.  Remove old K&R cruft from
77736         test program.  Check for common errors in GNU/Linux,
77737         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77738         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77739         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77740         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77741         name accordingly.
77742         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77743         accommodate new getcwd.c.
77744         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77745         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77746         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77747         that's all we need now.
77748
77749 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77750
77751         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77752         argp-parse.c depends on getopt internals, that means we should
77753         always use our getopt, to be on the safe side.
77754         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77755         order not to spoil the result of an eventual previous invocation
77756         of gl_GETOPT_SUBSTITUTE.
77757
77758 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77759
77760         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77761         redefinition warnings. To avoid them, include the defines
77762         in `#if !defined __need_getopt ... #endif'. The only place
77763         where __getopt_argv_const is used is in definitions
77764         of getopt_long and getopt_long_only below, which are as well
77765         protected by `#ifndef __need_getopt'.
77766         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77767         __need_getopt after including <stdio.h> and <unistd.h> These
77768         headers might have defined it.
77769
77770 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77771
77772         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77773
77774 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77775
77776         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77777         (futimens): New function, which uses futimes if available.
77778         (futimens, utimens): Support timespec==NULL, with same semantics
77779         as utime and utimens.
77780         * lib/utimens.h (futimens): New decl.
77781
77782 2004-11-23  Jim Meyering  <jim@meyering.net>
77783
77784         * lib/getopt_.h: Remove trailing blanks.
77785
77786 2004-11-23  Jim Meyering  <jim@meyering.net>
77787
77788         * lib/__fpending.c: Add comment.
77789
77790 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77791
77792         * modules/canonicalize (Depends-on): Add xreadlink.
77793         Problem reported by James Youngman.
77794
77795 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77798         New macros.
77799         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77800         optopt): Use them instead of invoking ## directly; otherwise, the
77801         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77802
77803 2004-11-19  Bruno Haible  <bruno@clisp.org>
77804
77805         * lib/strtok_r.c: Move comments from here...
77806         * lib/strtok_r.h: ... to here.
77807
77808 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77809
77810         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77811         implementations that mishandle size_t overflow.
77812
77813 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77814
77815         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77816         might fail.  Problem reported by Yoann Vandoorselaere.
77817         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77818         implementations that mishandle size_t overflow.
77819
77820 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * modules/canon-host (Depends-on): Add strdup.
77823
77824 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77825
77826         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77827
77828 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * lib/canon-host.c: Include "strdup.h".
77831         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77832         Use strdup instead of malloc/strcpy to duplicate strings.
77833
77834         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77835         (human_space_before_unit): New constant.
77836         * lib/human.c (human_readable): Support it.
77837
77838         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77839         (xgetcwd): Set errno correctly when failing.
77840         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77841         the failure is actually due to a PATH_MAX problem.
77842
77843         Further getopt changes to make it more likely that glibc will
77844         buy the changes back.
77845         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77846         (getopt): Use it, so to preserve glibc semantic
77847         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77848         when compiling for libc.
77849         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77850         (getopt_long, getopt_long_only): Use it.
77851
77852         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77853         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77854         (getopt): Argv is now char * const *, as per standard.
77855         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77856         not char *__getopt_argv_const *.
77857         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77858         _getopt_long_only_r): Likewise.
77859         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77860         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77861         _getopt_long_r, _getopt_long_only_r): Likewise.
77862         * lib/getopt_.h (__getopt_argv_const): Remove.
77863         (getopt): Argv is now char * const *, as per standard.
77864
77865         * lib/getdate.y (tORDINAL): New token.
77866         (day, relunit): Allow it for relative times.
77867         (relative_time_table): Use tORDINAL for ordinals.
77868
77869 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77870
77871         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77872         Document that "second" isn't allowed as an ordinal number.
77873
77874 2004-11-16  Jim Meyering  <jim@meyering.net>
77875
77876         * modules/closeout (Depends-on): Add fpending.
77877
77878 2004-11-15  Jim Meyering  <jim@meyering.net>
77879
77880         * lib/closeout.c: Include "__fpending.h" once again.
77881         Include <stdbool.h>.
77882         (close_stdout): Don't fail just because stdout was closed initially,
77883         since some programs don't write to stdout in the normal course of
77884         operation (other than --version and --help), and we don't want this
77885         function to make e.g. `touch file >&-' fail.
77886         But do fail if it was closed and someone has tried to write to it.
77887         E.g., `printf foo >&-' must fail.
77888
77889 2004-11-13  Jim Meyering  <jim@meyering.net>
77890
77891         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77892
77893 2004-11-12  Simon Josefsson  <jas@extundo.com>
77894
77895         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77896         small doc fix is still pending.
77897
77898 2004-11-11  Simon Josefsson  <jas@extundo.com>
77899
77900         * modules/strtok_r: New file.
77901
77902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77903         strtok_r.
77904
77905 2004-11-11  Simon Josefsson  <jas@extundo.com>
77906
77907         * m4/strtok_r.m4: New file.
77908
77909         * m4/getopt.m4: Replace opterr.
77910
77911 2004-11-11  Simon Josefsson  <jas@extundo.com>
77912
77913         * lib/strtok_r.h, strtok_r.c: New file.
77914
77915 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77916
77917         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77918         of replacing opterr, getopt, etc.  This should handle the
77919         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77920
77921 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77924         we can stop lying to compilers about the constness of argv when we
77925         are compiled outside glibc.
77926         (getopt, getopt_long, getopt_long_only): Use it.
77927         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77928         _getopt_internal, getopt): Likewise.
77929         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77930         _getopt_long_only_r): Likewise.
77931         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77932         _getopt_long_r, _getopt_long_only_r): Likewise.
77933
77934         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77935         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77936         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77937         the other external symbols.
77938         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77939         declaration, since the above renaming now works around collisions.
77940
77941 2004-11-11  Jim Meyering  <jim@meyering.net>
77942
77943         * lib/linebreak.c: Remove trailing blanks.
77944         * lib/alloca_.h: Likewise.
77945         * lib/acosl.c: Likewise.
77946         * lib/euidaccess.c: Likewise.
77947         * lib/allocsa.h: Likewise.
77948
77949 2004-11-10  Simon Josefsson  <jas@extundo.com>
77950
77951         * m4/getaddrinfo.m4: New file.
77952
77953 2004-11-10  Simon Josefsson  <jas@extundo.com>
77954
77955         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77956
77957 2004-11-10  Simon Josefsson  <jas@extundo.com>
77958
77959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77960         getaddrinfo.
77961
77962         * modules/getaddrinfo: New file.
77963
77964 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77965
77966         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77967
77968 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * lib/mktime.c (SHR): New macro, which is a portable
77971         substitute for >> that should work even on Crays.
77972         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77973         Problem reported by Mark D. Baushke in
77974         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77975         * lib/getdate.y (SHR): Likewise.
77976         (tm_diff): Use it.
77977         * lib/strftime.c (SHR): Likewise.
77978         (tm_diff): Use it.
77979         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77980         quote_these_too, so that right shifts are well defined.  All uses
77981         changed.
77982
77983 2004-11-10  Jim Meyering  <jim@meyering.net>
77984
77985         Ensure that no close failure goes unreported.
77986         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77987         return early when it seems there's nothing to flush.
77988         Don't include __fpending.h.
77989
77990 2004-11-10  Jim Meyering  <jim@meyering.net>
77991
77992         * modules/closeout (Depends-on): Remove fpending.
77993
77994 2004-11-10  Jim Meyering  <jim@meyering.net>
77995
77996         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77997
77998 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78001         gl_FUNC_STRFTIME.
78002         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78003         and AC_REQUIRE when possible, to avoid duplicate checks.
78004         Check for <wchar.h>.
78005
78006 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78009
78010 2004-11-09  Bruno Haible  <bruno@clisp.org>
78011
78012         * m4/sockpfaf.m4: New file.
78013
78014 2004-11-05  Bruno Haible  <bruno@clisp.org>
78015
78016         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78017         Reported by Mark D. Baushke <mdb@cvshome.org>.
78018
78019 2004-11-04  Bruno Haible  <bruno@clisp.org>
78020
78021         2004-09-11  Bruno Haible  <bruno@clisp.org>
78022                 * allocsa.valgrind: New file.
78023         2004-02-06  Bruno Haible  <bruno@clisp.org>
78024                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78025                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78026                 Reported by Christopher Seip <chris.seip@hp.com>.
78027
78028 2004-11-04  Bruno Haible  <bruno@clisp.org>
78029
78030         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78031         (Makefile.am): Distribute it.
78032
78033 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78036         with errno == ERANGE if the buffer is too small.
78037         Problem reported by Mark D. Baushke.
78038
78039 2004-11-03  Albert Chin  <china@thewrittenword.com>
78040             Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78043         equivalent, substitute $ac_type for equivalent type rather than
78044         blindly using uint32_t *always* which won't work if uint32_t is not
78045         available.  Define _UINT32_T to work around typedef of uint32_t if
78046         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78047         2.5.1.
78048
78049 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * m4/jm-macros.m4: Sync from coreutils.
78052         (gl_MACROS): Check for mbrlen, for pathchk.
78053         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78054
78055 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * lib/xreadlink.c (MAXSIZE): New macro.
78058         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78059         size does not exceed MAXSIZE.  Avoid cast.
78060         As suggested by Mark D. Baushke in
78061         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78062         if readlink fails with buffer size just under MAXSIZE, try again
78063         with MAXSIZE.
78064
78065 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78066
78067         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78068
78069 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78070         and  Paul Eggert  <eggert@cs.ucla.edu>
78071
78072         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78073         (get_date): Overparenthesize to avoid GCC warning.
78074
78075 2004-11-02  Bruno Haible  <bruno@clisp.org>
78076
78077         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78078         returns void.
78079
78080 2004-11-02  Bruno Haible  <bruno@clisp.org>
78081
78082         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78083         function returns void.
78084
78085 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78088         fflush_unlocked, flockfile, funlockfile, funlockfile,
78089         fputs_unlocked, putc_unlocked.
78090
78091 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78092
78093         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78094         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78095         already declared.
78096
78097 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         * modules/getdate (Files): Add doc/getdate.texi.
78100         (Depends-on): Add setenv, xalloc.
78101
78102 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         * lib/getdate.y: Add support for TZ="foo" within a date string.
78105         Fix some bugs near time_t boundaries.  Reject dates with
78106         out-of-range components, e.g., "Sept 31".
78107         Include <stdlib.h>, "setenv.h", "xalloc.h".
78108         (ISDIGIT_LOCALE): Remove; unused.
78109         Note that the TZ and time functions used here are not reentrant.
78110         (mktime_ok, get_tz): New functions.
78111         (TZBUFSIZE): New constant.
78112         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78113         This requires that we sometimes generate our own TZ="XXX..." setting.
78114
78115 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78116
78117         * doc/getdate.texi: New file, from coreutils with modifications for
78118         the new TZ parsing.
78119
78120 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78121
78122         * lib/mktime.c (not_equal_tm): Remove redundant check.
78123
78124 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * modules/regex (lib_SOURCES): Add regex.c.
78127         Reported by James Youngman in
78128         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78129
78130 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78131
78132         * lib/getdate.y: Use Bison 1.875 features, and some minor
78133         code cleanups.  This change does not affect semantics.
78134         Don't include <stdlib.h>; no longer needed.
78135         Don't include unlocked-io.h; only the "#if TEST" code uses
78136         stdio, and performance isn't crucial there.
78137         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78138         Bison 1.875 features as described below.
78139         All uses of "PC." replaced by "pc->".
78140         (YYSTYPE): Add a forward declaration.
78141         (yylex, yyerror): Use full prototypes in forward decls.
78142         Use "%pure-parser" rather than obsolescent "%pure_parser".
78143         Use %parse-param and %lex-param instead of obsolescent
78144         YYPARSE_PARAM and YYLEX_PARAM.
78145         (meridian_table, month_and_day_table, time_units_table,
78146         relative_time_table, time_zone_table, military_table,
78147         lookup_zone, lookup_word, get_date):
78148         Use NULL instead of 0 where appropriate.
78149         (to_hour): Avoid abort (), to avoid a dependency on
78150         stdlib.h.
78151         (yyerror, yylex): Now accepts parser_control * arg.
78152         (main) [TEST]: Use '\0' rather than 0 for char.
78153
78154 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78157
78158 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78161         It's now the caller's responsibility to handle the case where
78162         !HAVE_GETPAGESIZE && !defined getpagesize.
78163
78164         * lib/mktime.c (leapyear): Arg is long int, not int.
78165
78166 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78167
78168         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78169
78170 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78171
78172         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78173         missing.  Problem reported by James Youngman.
78174
78175 2004-10-16  Simon Josefsson  <jas@extundo.com>
78176
78177         * gnulib-tool: Fix comments.  Fix parse problem.
78178         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78179
78180 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78183         implementation of getopt_long.  Problem reported by Alexander Taler in:
78184         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78185
78186 2004-10-15  Bruno Haible  <bruno@clisp.org>
78187
78188         * gnulib-tool: Untabify. Initialize supplied_libname.
78189         (func_usage): More homogenous output.
78190         (func_modules_transitive_closure, func_modules_to_filelist,
78191         func_emit_lib_Makefile_am): New functions.
78192         (func_import): New function, extracted from big case statement. Use
78193         func_get_license, func_modules_transitive_closure,
78194         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78195         opt_lgpl. Don't use test -a, as it's not portable.
78196         (func_create_testdir): Use func_modules_transitive_closure,
78197         func_modules_to_filelist, func_emit_lib_Makefile_am.
78198
78199 2004-10-15  Bruno Haible  <bruno@clisp.org>
78200
78201         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78202
78203 2004-10-15  Bruno Haible  <bruno@clisp.org>
78204
78205         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78206         the portions belonging to each module.
78207         Suggested by Derek Robert Price <derek@ximbiot.com>.
78208
78209 2004-10-12  Simon Josefsson  <jas@extundo.com>
78210
78211         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78212         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78213         to real functions.
78214
78215 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78216
78217         * modules/vsnprintf: New file.
78218
78219 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78220
78221         * m4/vsnprintf.m4: New file.
78222
78223 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78224
78225         * lib/vsnprintf.h: New file.
78226         * lib/vsnprintf.c: New file.
78227
78228 2004-10-11  Bruno Haible  <bruno@clisp.org>
78229
78230         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78231         vsnprintf.
78232
78233 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78234
78235         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78236
78237 2004-10-07  Bruno Haible  <bruno@clisp.org>
78238
78239         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78240         fits into the provided buffer.
78241
78242 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         * lib/diacrit.c, diacrit.h: Add GPL notice.
78245
78246         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78247         notice.
78248         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78249         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78250         This avoids a potential constant-folding bug.
78251
78252 2004-10-05  Bruno Haible  <bruno@clisp.org>
78253
78254         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78255         for the declaration of strsep.
78256
78257 2004-10-05  Bruno Haible  <bruno@clisp.org>
78258
78259         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78260
78261 2004-10-04  Simon Josefsson  <jas@extundo.com>
78262
78263         * modules/memmem: New file.
78264         * tests/test-memmem.c: New file.
78265         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78266
78267 2004-10-04  Simon Josefsson  <jas@extundo.com>
78268
78269         * m4/memmem.m4: New file.
78270
78271 2004-10-04  Simon Josefsson  <jas@extundo.com>
78272
78273         * lib/memmem.h: New file.
78274         * lib/memmem.c: New file, taken from glibc.
78275
78276 2004-10-04  Simon Josefsson  <jas@extundo.com>
78277
78278         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78279         '#ifdef USE_UNLOCKED_IO'.
78280
78281 2004-10-04  Simon Josefsson  <jas@extundo.com>
78282
78283         * config/srclist.txt: Add memmem from glibc.
78284
78285 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78288
78289         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78290         modules/exclude, modules/getdate, modules/getline,
78291         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78292         modules/getusershell, modules/linebuffer, modules/md5,
78293         modules/mountlist, modules/posixtm, modules/readtokens,
78294         modules/readutmp, modules/regex, modules/sha1,
78295         modules/version-etc, modules/yesno:
78296         Remove dependency on unlocked-io.
78297
78298 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78299
78300         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78301
78302         * m4/unlocked-io.m4: Add copyright notice.
78303         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78304
78305 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78306
78307         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78308         * lib/xmalloc.c (xmemdup): Likewise.
78309         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78310         XFREE): Remove these long-obsolescent macros.
78311         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78312         * lib/xstrdup.c: Remove.
78313
78314         * lib/regex.c (re_comp): Cast gettext return value to char *,
78315         Problem reported by Martin Neitzel via Mark D. Baushke.
78316
78317 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78320         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78321         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78322         regex.c, sha1.c, version-etc.c, yesno.c:
78323         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78324         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78325         the includer's responsibility.
78326
78327         Sync from coreutils.
78328
78329         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78330         points to the start of a string, as the C Standard says the
78331         resulting behavior is undefined.
78332
78333         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78334         simple -> simple_backups, numbered_existing ->
78335         numbered_existing_backups, numbered -> numbered_backups
78336         to avoid shadowing problems.  All uses changed.
78337         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78338         * lib/backupfile.c (check_extension, numbered_backup):
78339         Rename locals to avoid shadowing 'basename'.
78340         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78341         once.
78342
78343         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78344         * lib/.cvsignore: Add getopt.h.
78345
78346 2004-10-04  Bruno Haible  <bruno@clisp.org>
78347
78348         * modules/README: New file.
78349         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78350         not a module.
78351
78352 2004-10-02  Jim Meyering  <jim@meyering.net>
78353
78354         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78355
78356 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78357
78358         * modules/strsep: New file.
78359
78360 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78361
78362         * m4/strsep.m4: New file.
78363
78364 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78365
78366         * lib/strsep.h: New file.
78367         * lib/strsep.c: New file.
78368
78369 2004-10-01  Simon Josefsson  <jas@extundo.com>
78370
78371         * lib/snprintf.c (snprintf): Handle size==0.
78372
78373 2004-10-01  Simon Josefsson  <jas@extundo.com>
78374             Bruno Haible  <bruno@clisp.org>
78375
78376         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78377         (snprintf): Declare 'args'.
78378
78379 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78380
78381         * lib/snprintf.c: Remove comments as to why each header is needed.
78382
78383 2004-10-01  Bruno Haible  <bruno@clisp.org>
78384
78385         * MODULES.html.sh: Add strsep.
78386
78387 2004-09-30  Simon Josefsson  <jas@extundo.com>
78388
78389         * modules/snprintf: New file.
78390
78391 2004-09-30  Simon Josefsson  <jas@extundo.com>
78392
78393         * m4/snprintf.m4: New file.
78394
78395 2004-09-30  Simon Josefsson  <jas@extundo.com>
78396
78397         * lib/snprintf.h, lib/snprintf.c: New files.
78398
78399 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78400
78401         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78402         (hol_entry_help): Never translate an empty string.
78403         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78404         * lib/argp.h (OPTION_NO_TRANS): New option.
78405
78406 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78407
78408         * modules/argp (Maintainer): Replace Simon Josefsson
78409         by Sergey Poznyakoff.
78410
78411 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78414         changes merged back into glibc.
78415
78416 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78417
78418         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78419
78420 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78421
78422         * lib/xvasprintf.c: Include xalloc.h.
78423         (xvasprintf): Use xalloc_die, not xmalloc_die.
78424
78425 2004-09-29  Bruno Haible  <bruno@clisp.org>
78426
78427         * modules/alloca-opt: New file, derived from modules/alloca.
78428         * modules/allocsa: Depend on alloca-opt instead of alloca.
78429         * modules/setenv: Likewise.
78430         * modules/vasnprintf: Likewise.
78431         * MODULES.html.sh: Add alloca-opt.
78432
78433 2004-09-28  Simon Josefsson  <jas@extundo.com>
78434
78435         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78436         LGPL, and to replace license template from GPL to LGPL.
78437
78438 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78439
78440         * modules/dummy: Change license to LGPL.
78441
78442 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78443
78444         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78445
78446 2004-09-24  Simon Josefsson  <jas@extundo.com>
78447
78448         * modules/minmax (License): Change from GPL to LGPL.
78449
78450 2004-09-23  Simon Josefsson  <jas@extundo.com>
78451
78452         * gnulib-tool (--import): Typo.
78453
78454 2004-09-23  Simon Josefsson  <jas@extundo.com>
78455
78456         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78457
78458 2004-09-22  Bruno Haible  <bruno@clisp.org>
78459
78460         * modules/*: Add 'License' field.
78461         * gnulib-tool: Accept --extract-license option.
78462         (func_get_license): New function.
78463
78464 2004-09-21  Bruno Haible  <bruno@clisp.org>
78465
78466         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78467         Reported by Simon Josefsson.
78468
78469 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78472         gl_AC_TYPE_LONG_LONG.
78473
78474 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78475
78476         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78477
78478 2004-09-18  Simon Josefsson  <jas@extundo.com>
78479         and  Paul Eggert  <eggert@cs.ucla.edu>
78480
78481         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78482         calls with autoreconf.  Define GL_LIB.
78483
78484 2004-09-14  Karl Berry  <karl@gnu.org>
78485
78486         * config/srclist.txt: unsync setenv.c, sigh.
78487
78488 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78491         Problem reported by Bruno Haible in:
78492         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78493
78494 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * config/srclist.txt: Comment out argp-pvh.c.
78497
78498 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78501         in case some system header has #define'd it.  Problem reported by
78502         Soeren D. Schulze in
78503         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78504
78505 2004-09-09  Karl Berry  <karl@gnu.org>
78506
78507         * regex.[ch]: delete from the root.  These were supposed to be
78508                 synced with emacs cvs, but this has not happened for about
78509                 a year, and anyway nothing else uses emacs regex.[ch].
78510                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78511                 lib/regex[.ch] is untouched.
78512
78513 2004-09-09  Bruno Haible  <bruno@clisp.org>
78514
78515         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78516
78517 2004-09-09  Bruno Haible  <bruno@clisp.org>
78518
78519         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78520         modifications.
78521         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78522
78523 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78524
78525         * modules/xvasprintf: New file.
78526         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78527
78528 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78529
78530         * lib/xvasprintf.h: New file.
78531         * lib/xvasprintf.c: New file.
78532         * lib/xasprintf.c: New file.
78533
78534 2004-09-08  Bruno Haible  <bruno@clisp.org>
78535
78536         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78537
78538 2004-09-08  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78541         length is > INT_MAX.
78542         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78543         more.
78544
78545 2004-09-08  Bruno Haible  <bruno@clisp.org>
78546
78547         * lib/stdint_.h: New file, taken from GNU clisp.
78548
78549 2004-09-08  Bruno Haible  <bruno@clisp.org>
78550             Oskar Liljeblad  <oskar@osk.mine.nu>
78551
78552         * modules/stdint: New file.
78553         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78554
78555 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         Import from coreutils.
78558         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78559         strings on unbounded length.  alloca's performance benefits aren't
78560         that important here.
78561         (V_STRDUP): Remove.
78562         (parse_with_separator): New function, with most of the internals
78563         of the old parse_user_spec.  Allow user to omit both user and group,
78564         for compatibility with FreeBSD.
78565         Clone only the user name, not the entire spec.
78566         Do not set *uid, *gid unless entirely successful.
78567         Avoid memory leak in some failing cases.
78568         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78569         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78570         (parse_user_spec): Rewrite to use parse_with_separator.
78571
78572 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         * modules/userspec: Don't depend on alloca.
78575
78576 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78579
78580 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78583         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78584         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78585
78586 2004-08-16  Simon Josefsson  <jas@extundo.com>
78587
78588         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78589         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78590         Add --dry-run for --import.
78591         Let user provided command line parameters override configure.ac
78592         settings.
78593
78594 2004-08-12  Simon Josefsson  <jas@extundo.com>
78595
78596         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78597         as discussed with Paul Eggert in threads rooted at
78598         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78599         and
78600         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78601         Before, the test was empty, and relied on ELIDE_CODE in source
78602         code.)
78603         (gl_PREREQ_GETOPT): New macro.
78604         (gl_GETOPT): Use them.
78605
78606 2004-08-12  Simon Josefsson  <jas@extundo.com>
78607
78608         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78609         * lib/getopt_.h: Renamed from getopt.h.
78610
78611 2004-08-12  Simon Josefsson  <jas@extundo.com>
78612
78613         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78614         Change default library name from libfoo to libgnu.
78615         Now, if you have a configure.ac that says:
78616                 gl_SOURCE_BASE(gl)
78617                 gl_M4_BASE(gl/m4)
78618                 gl_MODULES(error getopt etcetera)
78619                 gl_INIT
78620         you can import all you need by running:
78621                 ../gnulib/gnulib-tool --import
78622
78623         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78624         (Makefile.am): Rewrite, use logic from argz.
78625         (Include): Use <getopt.h> instead of "getopt.h".
78626
78627 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         * modules/argp (Files): Add m4/unlocked-io.m4.
78630         (Depends-on): Add extensions.
78631
78632 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78635         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78636         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78637         Check for program_invocation_name, program_invocation_short_name,
78638         flockfile, funlockfile, features.h, _getopt_long_only_r.
78639
78640 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78643         its complicated substitute.
78644         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78645         and program_invocation_name.
78646         (__argp_basename) [!_LIBC]: Remove; the only use was
78647         replaced by its body.
78648         (__argp_short_program_name): Change condition from
78649         !defined __argp_short_program_name to
78650         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78651         to match argp-namefrob.h.
78652         (__argp_failure): Don't assume strerror_r returns char *.
78653         * lib/argp-parse.c (N_): Define unconditionally.
78654         (argp_default_options): Fill out initializers with 0 to avoid
78655         gcc warnings.
78656
78657 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78660         getopt1.c.
78661
78662 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78663
78664         Merge from coreutils.
78665
78666         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78667
78668         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78669         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78670
78671 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         Merge from coreutils.
78674
78675         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78676         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78677         for Reliant Unix 5.43.
78678
78679         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78680         (union fooround): Use uintmax_t, not long int.
78681         The rest is a merge from libc:
78682         [defined _LIBC]: Include <shlib-compat.h>.
78683         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78684
78685         * lib/settime.c (settime): Recode to avoid warning with
78686         Sun Forte C 6U2.
78687
78688         * lib/strverscmp.c: Convert to UTF-8.
78689
78690 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78691
78692         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78693         m4/uintmax_t.m4.
78694
78695 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * modules/xalloc-die: New file.
78698         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78699
78700         * modules/md5 (Files): Add m4/uint32_t.m4.
78701         * modules/sha1: Renamed from modules/sha.
78702         (Files):
78703         Rename lib/sha.h to lib/sha1.h.
78704         Rename lib/sha.c to lib/sha1.c.
78705         Rename m4/sha.m4 to m4/sha1.m4.
78706         (lib_SOURCES): Likewise.
78707         (configure.ac): Rename gl_SHA to gl_SHA1.
78708         (Include): sha.h -> sha1.h.
78709
78710 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78713         * m4/sha1.m4: Renamed from sha.m4.
78714         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78715
78716 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78717
78718         * lib/obstack.h (obstack_empty_p):
78719         Don't assume that chunk->contents is suitably aligned.
78720         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78721         Likewise. Problem reported by Benno in
78722         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78723
78724         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78725         readable.  This could be improved further but it'd take some work.
78726
78727 2004-08-08  Simon Josefsson  <jas@extundo.com>
78728
78729         * modules/xgethostname (Depends-on): Remove exit and error (not
78730         used).
78731
78732         * modules/getpass-gnu: Add getpass.h.
78733         (Depends-on): Add stdbool.
78734         * modules/getpass: Add getpass.h.
78735
78736 2004-08-08  Simon Josefsson  <jas@extundo.com>
78737
78738         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78739         Check getpass declaration.
78740
78741 2004-08-08  Simon Josefsson  <jas@extundo.com>
78742
78743         * lib/xgethostname.c: Don't include error.h (not used).
78744
78745         * lib/getpass.h: Add.
78746         * lib/getpass.c: Include getpass.h first.
78747
78748 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         * lib/xalloc-die.c: New file.
78751         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78752         All uses removed.
78753         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78754         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78755         xalloc-die.c.
78756         (_, N_, xalloc_die): Move to xalloc-die.c.
78757         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78758         so that we needn't mess with xalloc_msg_memory_exhausted.
78759
78760         * lib/sha1.h: Renamed from sha.h.
78761         (SHA1_H): Renamed from _SHA_H.
78762         (sha1_ctx): Renamed from sha_ctx.
78763         (sha1_init_ctx): Renamed from sha_init_ctx.
78764         (sha1_process_block): Renamed from sha_process_block.
78765         (sha1_process_bytes): Renamed from sha_process_bytes.
78766         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78767         (sha1_read_ctx): Renamed from sha_read_ctx.
78768         (sha1_stream): Renamed from sha_stream.
78769         (sha1_buffer): Renamed from sha_buffer.
78770         * lib/sha1.c: Likewise; renamed from sha.c.
78771         Do not include <sys/types.h>.
78772         Include <stddef.h> rather than <stdlib.h>.
78773
78774 2004-08-08  Bruno Haible  <bruno@clisp.org>
78775
78776         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78777         FILESYSTEM_PREFIX_LEN.
78778         * lib/progreloc.c: Likewise.
78779         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78780
78781 2004-08-06  Simon Josefsson  <jas@extundo.com>
78782
78783         * modules/progname (Depends-on): Don't depend on stdbool.
78784
78785 2004-08-06  Simon Josefsson  <jas@extundo.com>
78786
78787         * modules/getsubopt: New file.
78788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78789         getsubopt.
78790
78791 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         More merge from coreutils.
78794
78795         * m4/utimens.m4, m4/utimecmp.m4: New files.
78796         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78797         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78798         prereq.m4, sha.m4: Import changes from coreutils.
78799
78800 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78801
78802         More merge from coreutils.
78803         * modules/raise, modules/readtokens0, modules/utimens:
78804         * modules/utimecmp, module/xnanosleep: New files.
78805         * modules/strftime: Add lib/strftime.h.
78806         Change include from <time.h> to "strftime.h".
78807         * modules/yesno: Add lib/yesno.h.
78808         * modules/backupfile: Remove lib/addext.c.
78809         * modules/euidaccess: Add stat-macros.h.
78810         * modules/canonicalize, modules/euidaccess,
78811         modules/filemode, modules/lchown, modules/makepath,
78812         modules/rmdir, modules/stat: Likewise.
78813
78814 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         Merge from tar.
78817         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78818         SIZE_MAX is a valid preprocessor constant.
78819         (__argp_basename): Change from "#ifndef _LIBC"
78820         to "#ifndef __argp_short_program_name", so that
78821         we don't compile these functions for tar.
78822
78823         More merges from coreutils.
78824         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78825         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78826         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78827         * lib/addext.c: Remove; no longer needed.
78828         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78829         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78830         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78831         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78832         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78833         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78834         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78835         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78836         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78837         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78838         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78839         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78840         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78841         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78842         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78843         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78844         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78845         Import changes from coreutils.
78846
78847 2004-08-05  Simon Josefsson  <jas@extundo.com>
78848
78849         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78850
78851 2004-08-05  Simon Josefsson  <jas@extundo.com>
78852
78853         * m4/getsubopt.m4: New file.
78854
78855 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         Merge from coreutils.
78858
78859         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78860         * m4/getcwd-path-max.m4: New files.
78861
78862         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78863         FILESYSTEM_PREFIX_LEN ->
78864         FILE_SYSTEM_PREFIX_LEN.
78865         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78866         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78867         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78868         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78869
78870         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78871         prerequisite modules now handle the DOS stuff.
78872         Don't check for unistd.h.
78873
78874 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         Merge from coreutils.
78877
78878         * lib/.gdb-history: Remove; this doesn't belong here.
78879
78880         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78881         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78882         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78883         * lib/getcwd.c: New files.
78884
78885         * lib/dirname.h: Include <stdbool.h>.
78886         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78887         for consistency with POSIX terminology.  All uses changed.
78888         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78889         (strip_trailing_slashes): Use bool for booleans.
78890         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78891
78892         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78893         sometimes returns a positive errno value even when it succeeds.
78894         (print_errno_message) [!LIBC]: Fall back on strerror if
78895         __strerror_r fails.
78896
78897         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78898         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78899         (longest_relative_suffix): New function.
78900         (path_concat): Use it.  Assume first argument is not NULL.
78901         Port to DOS.  Omit redundant separators.
78902         Report an error instead of returning NULL.
78903         Use mempcpy instead of memcpy.
78904         (xpath_concat): Remove: not declared or used.
78905
78906         * lib/same.h: Include <stdbool.h>
78907         (same_name): Return bool, not int.
78908         * lib/same.c (same_name): Likewise.
78909         (errno): Don't declare; we assume C89 or better now.
78910
78911         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78912         if not already defined.
78913
78914         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78915         * lib/dup-safer.c (errno): Likewise.
78916
78917 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78918
78919         Merge from coreutils.
78920         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78921         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78922         * modules/path-concat: Don't depend on strdup.
78923
78924 2004-08-03  Simon Josefsson  <jas@extundo.com>
78925
78926         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78927         * lib/progname.h: Don't include stdbool.h.
78928
78929 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78932         * MODULES.html.sh (func_all_modules): Remove fatal.
78933
78934 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78937
78938 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78941         working.
78942
78943 2004-08-02  Simon Josefsson  <jas@extundo.com>
78944
78945         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78946         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78947         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78948
78949 2004-08-01  Simon Josefsson  <jas@extundo.com>
78950
78951         * lib/xgetdomainname.c: Include stdlib.h, for free().
78952
78953 2004-07-19  Bruno Haible  <bruno@clisp.org>
78954
78955         * MODULES.html.sh (func_all_modules): Add dummy.
78956
78957 2004-07-16  Simon Josefsson  <jas@extundo.com>
78958
78959         * modules/dummy: New file.
78960
78961 2004-07-16  Simon Josefsson  <jas@extundo.com>
78962
78963         * lib/dummy.c: New file.
78964
78965 2004-07-16  Bruno Haible  <bruno@clisp.org>
78966
78967         * lib/backupfile.h: Add extern "C" for C++.
78968         * lib/closeout.h: Likewise.
78969         * lib/copy-file.h: Likewise.
78970         * lib/findprog.h: Likewise.
78971         * lib/full-write.h: Likewise.
78972         * lib/pathname.h: Likewise.
78973         * lib/progname.h: Likewise.
78974         * lib/stpcpy.h: Likewise.
78975         * lib/stpncpy.h: Likewise.
78976         * lib/strcase.h: Likewise.
78977         * lib/strstr.h: Likewise.
78978         * lib/xalloc.h: Likewise.
78979
78980         * lib/mbswidth.h: Add extern "C" for C++.
78981         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78982
78983 2004-07-13  Robert Millan  <robertmh@gnu.org>
78984
78985         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78986
78987 2004-07-09  Simon Josefsson  <jas@extundo.com>
78988
78989         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78990         failed without this.)
78991
78992 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         * modules/chown (Files): Add lib/fchown-stub.c, since
78995         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78996
78997 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78998
78999         * lib/fchown-stub.c: New file.
79000
79001 2004-06-24  Jim Meyering  <jim@meyering.net>
79002
79003         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79004
79005 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         * modules/argz: Omit "#include".
79008
79009         * MODULES.html.sh (func_all_modules): Add calloc, to match
79010         2004-06-01 addition of calloc module.
79011
79012 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * m4/argz.m4: New file, which is autoupdated from libtool.
79015
79016 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79019         libtool.
79020
79021 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * config/srclist-update: Don't insist on "USA." before the
79024         close-comment, as libtool omits the period and puts the */ on a
79025         separate line.
79026         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79027         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79028
79029 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79030
79031         * modules/argz: New file.
79032         * MODULES.html.sh (func_all_modules): Add argz.
79033
79034 2004-06-12  Jim Meyering  <jim@meyering.net>
79035         and  Paul Eggert  <eggert@cs.ucla.edu>
79036
79037         * modules/hash (Files): Add lib/xalloc.h.
79038         * modules/pipe (Depends-on): Add wait-process.
79039         * modules/stat (Depends-on): Add xalloc.
79040         * modules/userspec (Files): Add lib/userspec.h.
79041         * modules/xstrto
79042
79043         Upgrade from gettext-0.13.
79044         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79045         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79046         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79047
79048 2004-06-10  Jim Meyering  <jim@meyering.net>
79049
79050         * lib/calloc.c: New file.
79051
79052 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * lib/getdate.y (yylex): Allow space between sign and number.
79055         Problem reported by Dan Jacobson.
79056
79057 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79058
79059         Merge from coreutils CVS.
79060
79061         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79062         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79063         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79064         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79065         xstrtol.m4: Fix copyright date and/or serial number.
79066
79067         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79068         See if we need an fchown replacement.
79069         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79070         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79071         and use the replacement function if we detect either defect.
79072
79073         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79074         gl_UTIMECMP.
79075
79076 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79077         and  Jim Meyering  <jim@meyering.net>
79078
79079         Merge from coreutils CVS.
79080
79081         * lib/stat-macros.h: New file, with contents from file-type.h
79082         and coreutils' system.h.
79083         * lib/file-type.c: Include "stat-macros.h".
79084         * lib/file-type.h (file_type): Move all macro definitions to new file,
79085         stat-macros.h.
79086
79087         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79088         Wrap old code with this conditional.
79089         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79090         function that does not dereference symlinks.
79091         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79092
79093         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79094         dependency problems.
79095         (xreadlink): Accept new arg SIZE, for efficiency.
79096         All decls and uses changed.
79097         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79098
79099         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79100         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79101
79102         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79103         sysexits.h.
79104
79105 2004-06-01  Jim Meyering  <jim@meyering.net>
79106
79107         * m4/calloc.m4: New file.
79108
79109 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79110
79111         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79112         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79113         Also, fix a typo in a diagnostic.
79114
79115 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79116
79117         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79118         or AC_FUNC_REALLOC.
79119
79120 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79123         macros to be defined.
79124         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79125         the allocator returns NULL because the requested size is zero.
79126
79127 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79130         var.  Add comment explaining why libc still defines it.  This
79131         merges the following patch from glibc:
79132         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79133
79134 2004-05-20  Andreas Schwab  <schwab@suse.de>
79135
79136         * m4/free.m4: Replace free if it not known to work, not the other
79137         way round.
79138
79139 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79142         present in glibc since revision 1.1 of this file.
79143         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79144         obstack_alignment_mask, obstack_alloc, obstack_base,
79145         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79146         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79147         obstack_grow0, obstack_init, obstack_int_grow,
79148         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79149         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79150         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79151         nonexistent functions.
79152
79153 2004-05-18  Karl Berry  <karl@gnu.org>
79154
79155         * config/srclist.txt: break link for vasnprintf.c.
79156
79157 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79158
79159         Port obstack to the AS/400, where pointers are 16 bytes wide and
79160         you cannot cast an integer to a valid pointer.  This patch is
79161         currently waiting to be integrated into glibc; see
79162         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79163
79164         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79165         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79166         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79167         (struct obstack): temp member is now a union of a pointer and
79168         an integer, instead of an integer.  All integer uses changed.
79169         This does not affect the physical layout of struct obstack,
79170         except on hosts (like the AS/400) where the size or alignment of
79171         void * is greater than that of ptrdiff_t.
79172         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79173         __STDC__)]: Store temporary in pointer member of union, not
79174         integer member.
79175         * lib/obstack.c: Include <stddef.h>, for offsetof.
79176         (struct fooalign): Remove; it doesn't need a name.
79177         (union fooround): Change double to long double, and add void *.
79178         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79179         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79180         not a macro.  Hence the values are always int; so remove all
79181         casts-to-int in uses.
79182
79183 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79186         we can get this patch merged into glibc.
79187
79188 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79189             Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         * m4/argp: Depend on alloca.
79192
79193 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79194             Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79197         freecoding.
79198
79199 2004-05-17  Bruno Haible  <bruno@clisp.org>
79200
79201         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79202         precision that consists of a '.' followed by an empty digit string.
79203         Patch by Tor Lillqvist <tml@iki.fi>.
79204
79205 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79208         for backward compatibility with older code.  We need our own
79209         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79210         it under some other name, and our alloca.h will define it.
79211
79212 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79213             Derek Price  <derek@ximbiot.com>
79214
79215         * lib/alloca.c: Include <alloca.h>, to get our interface.
79216         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79217         include <alloca.h> first.  Use C89 prototype for alloca; this
79218         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79219         Use #elif for simplicity, since we can assume C89 now.
79220         Don't try to source the system alloca.h since it will not be found
79221         and to prevent recursively including its replacement.
79222         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79223         * lib/regex.c: Likewise.
79224
79225 2004-05-16  Derek Price  <derek@ximbiot.com>
79226             Paul Eggert  <eggert@cs.ucla.edu>
79227
79228         getline cleanup.  This changes the getndelim2 API: both order of
79229         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79230         no delimiter).
79231
79232         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79233         interface does that.
79234         (getline): Always use getdelim, so that we don't have two
79235         copies of this code.
79236         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79237         if available.
79238         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79239         (GETNDELIM2_MAXIMUM): New macro.
79240         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79241         instead of the old practice of delim2==0.  All callers changed.
79242         Return -1 on overflow, instead of returning junk.
79243         Do not set *linesize unless allocation succeeds.
79244         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79245         that we include sys/types.h.
79246         * lib/getnline.h: Likewise.
79247         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79248         (getndelim2): Reorder arguments.
79249         * lib/getnline.c (getnline, getndelim):
79250         Don't discard the NMAX argument.
79251         (getnline): Invoke getndelim, to avoid code duplication.
79252         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79253         of (size_t) -1 by callers of the getnline family.
79254
79255 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79256
79257         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79258         Check for gettimeofday.
79259         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79260         Check for settimeofday, stime.
79261
79262 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         * lib/nanosleep.c (suspended): Change its type from int to
79265         sig_atomic_t volatile.
79266         (first_call): Make it private to rpl_nanosleep, and have it
79267         be zero initially as that's a bit faster.
79268         (my_usleep): Round up fractional times instead of truncating them,
79269         as this is the usual meaning for 'sleep'.
79270
79271         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79272         doesn't work.
79273         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79274         (ENOSYS): Define if not defined.
79275         (settime): Fall back on stime if it exists and settimeofday fails.
79276         But don't bother with fallbacks if a method fails with errno == EPERM.
79277
79278 2004-05-11  Jim Meyering  <jim@meyering.net>
79279
79280         Prior to this change, the save_cwd caller required read access to the
79281         current directory on most systems (ones with the fchdir function).
79282
79283         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79284         fails, try write-only, and finally, resort to using xgetcwd.
79285
79286 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79287
79288         * lib/obstack.c, obstack.h: Import changes from libc.
79289
79290 2004-04-28  Bruno Haible  <bruno@clisp.org>
79291
79292         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79293         also implicitly appends .exe to executables.
79294         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79295         accepts Windows pathnames.
79296         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79297         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79298         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79299         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79300         Reported by Derek Robert Price <derek@ximbiot.com>.
79301
79302 2004-04-21  Karl Berry  <karl@gnu.org>
79303
79304         * config/srclist.txt (localcharset.c): break sync.
79305
79306 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79307
79308         * m4/host-os.m4: Add a copyright notice.
79309
79310 2004-04-20  Jim Meyering  <jim@meyering.net>
79311
79312         Change UTILS_ to gl_ in AC_DEFINE'd names.
79313         Change utils_- and jm_-prefixed variables, too.
79314         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79315         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79317
79318         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79319         Don't emit trailing blanks.
79320         Also rename jm_-prefixed variables to have gl_ prefix.
79321
79322         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79323         Also rename jm_-prefixed variables to have gl_ prefix.
79324
79325         * m4/jm-macros.m4: Reflect the renamings.
79326         * m4/prereq.m4: Likewise.
79327
79328 2004-04-20  Jim Meyering  <jim@meyering.net>
79329
79330         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79331         memory.
79332
79333 2004-04-20  Jim Meyering  <jim@meyering.net>
79334             Bruno Haible  <bruno@clisp.org>
79335
79336         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79337         memory when realloc fails.
79338
79339 2004-04-19  Jim Meyering  <jim@meyering.net>
79340
79341         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79342         now that readutmp.c may call `free (0)'.
79343
79344 2004-04-19  Bruno Haible  <bruno@clisp.org>
79345
79346         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79347         * m4/inttypes_h.m4: Likewise.
79348         * m4/stdint_h.m4: Likewise.
79349         * m4/intmax_t.m4: Likewise.
79350         * m4/uintmax_t.m4: Likewise.
79351
79352 2004-04-18  Jim Meyering  <jim@meyering.net>
79353
79354         * m4/prereq.m4: Don't forbid jm_ prefix.
79355
79356         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79357         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79358         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79359         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79360         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79361         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79362         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79363         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79364         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79365         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79366         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79367         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79368         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79369         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79370         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79371         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79372         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79373         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79374         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79375
79376 2004-04-18  Jim Meyering  <jim@meyering.net>
79377
79378         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79379         failure, don't leak memory and do call END_UTMP_ENT.
79380
79381 2004-04-16  Jim Meyering  <jim@meyering.net>
79382
79383         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79384         coreutils' stat program.
79385         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79386
79387 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79388
79389         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79390         C89.
79391         (CHAR_BIT): Remove, since we assume C89.
79392         Include <stdint.h> if available, as per current Autoconf CVS advice.
79393
79394 2004-03-31  Jim Meyering  <jim@meyering.net>
79395
79396         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79397         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79398         * m4/xalloc.m4: Likewise.
79399
79400 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79401
79402         Merge from coreutils.
79403
79404         * m4/inttostr.m4: New file.
79405         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79406         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79407         Require gl_CLOCK_TIME.
79408         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79409
79410 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79411
79412         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79413         not bool, to be more consistent with Unix conventions.
79414         Suggested by Bruno Haible.
79415
79416         Merge from coreutils.
79417
79418         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79419         * lib/umaxtostr.c: New files.
79420
79421         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79422         the usual <time.h> dance.
79423         (get_date): Change signature to support fractional time stamps.
79424         All callers changed.
79425         * lib/getdate.y: Include "getdate.h" first, as we can now
79426         assume C89 and don't need to worry about 'const'.
79427         Similarly, include "unlocked-io.h" near start, not in middle.
79428         Include <limits.h>.
79429         (textint.value): Use long int rather than int.
79430         (textint.digits): Use size_t rather than int.
79431         (BILLION, LOG10_BILLION): New constants.
79432         (parser_control): New member rel_ns.  Members day_ordinal,
79433         time_zone, month, day, hour, minutes, rel_year, rel_month,
79434         rel_day, rel_hour, rel_minutes, rel_seconds
79435         are now long int, not int.  Member seconds is now struct timespec,
79436         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79437         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79438         not int.
79439         (%union.intval): Now long int, not int.
79440         New member timespec.
79441         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79442         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79443         (spec): Now is a timespec or an item list.
79444         (timespec, items): New nonterminals.
79445         (time, rel, relunit, number, get_date):
79446         Add support for fractional seconds.
79447         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79448         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79449         (to_hour): First arg is now long int, not int.
79450         (to_year): Returns long int, not int.
79451         Don't treat year -70 like 70.
79452         (tm_diff): Returns long int, not int.
79453         (lookup_word): Use bool instead of int when appropriate.
79454         (yylex): Use size_t for count, not int.
79455         Detect overflow when parsing large integer constants.
79456         Add support for fractions.
79457         (get_date): Make pointers 'const' if possible.
79458         Use more-portable code to detect integer overflow.
79459         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79460         Don't use ctime; it's not reliable if the year has >4 digits.
79461
79462         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79463         This is for compatibility with BSD.
79464
79465         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79466         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79467         From coreutils' system.h.
79468
79469         * lib/userspec.c: Don't include "posixver.h".
79470         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79471         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79472         compatible extension.  Simplify code by removing a boolean int
79473         that was always nonzero if a string was nonnull.
79474
79475 2004-03-30  Jim Meyering  <jim@meyering.net>
79476
79477         Merge from coreutils.
79478
79479         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79480         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79481         on some systems one must include <grp.h> before it.
79482         Reported by Christian Krackowizer.
79483
79484 2004-03-30  Jim Meyering  <jim@meyering.net>
79485
79486         Merge from coreutils.
79487
79488         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79489
79490         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79491         an empty input stream.
79492
79493         * lib/readtokens.c: Include <stdbool.h>.
79494         (readtoken): Use `size_t' rather than int/long.
79495         All callers adjusted.
79496         Use `bool' rather than `int' where appropriate.
79497         Use memset rather than an explicit loop.
79498         Use x2nrealloc rather than xrealloc.
79499         Allow the use of `\0' as a delimiter.
79500         (readtokens): Likewise.
79501         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79502
79503 2004-03-30  Jim Meyering  <jim@meyering.net>
79504
79505         * m4/realloc.m4: Remove file, since now it does no more than
79506         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79507         the `configure.ac' section of module/realloc.
79508         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79509
79510 2004-03-30  Bruno Haible  <bruno@clisp.org>
79511
79512         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79513         nonnull.
79514
79515 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79516
79517         Merge changes to getloadavg.c from coreutils and Emacs.
79518
79519         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79520         Define to an expression, not to the empty string.
79521         Include cloexec.h and xalloc.h.
79522         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79523         Use set_cloexec_flag rather than rolling our own.
79524         * lib/cloexec.c, lib/cloexec.h: New files.
79525
79526 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79527
79528         * m4/cloexec.m4: New file.
79529
79530 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79531
79532         * lib/getopt.h: Sync with libc CVS.
79533
79534 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79535             Bruno Haible  <bruno@clisp.org>
79536
79537         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79538         mbswidth.
79539
79540 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79541             Bruno Haible  <bruno@clisp.org>
79542
79543         * lib/mbswidth.h: Include <wchar.h> only if
79544         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79545         <wchar.h>.
79546         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79547
79548 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79549
79550         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79551         Sync with libc CVS.
79552         * lib/getopt_int.h: New file, also synced from libc.
79553
79554 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79555
79556         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79557         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79558         Bring back getopt.c, getopt.h, getopt1.c.
79559
79560 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79561
79562         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79563         All uses changed.  Check for sa_sigaction member; this fixes
79564         a bug first reported by Jason Andrade in
79565         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79566
79567 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79568
79569         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79570         '#if' expressions.  Unlike the code it replaces, it does not
79571         depend on (defined _SC_PAGESIZE).  However, it does depend on
79572         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79573         first reported by Jason Andrade in
79574         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79575
79576 2004-02-25  Simon Josefsson  <jas@extundo.com>
79577
79578         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79579
79580 2004-02-25  Simon Josefsson  <jas@extundo.com>
79581
79582         * lib/strdup.h: New file.
79583         * lib/strdup.c: Include it.
79584         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79585         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79586
79587 2004-02-23  Karl Berry  <karl@gnu.org>
79588
79589         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79590         (from fencepost.gnu.org:/gd/gnuorg).
79591
79592 2004-02-23  Karl Berry  <karl@gnu.org>
79593
79594         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79595         * config/srclist.txt: add maintain/standards documents.
79596
79597 2004-02-18  Bruno Haible  <bruno@clisp.org>
79598
79599         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79600         Reported by Derek Robert Price <derek@ximbiot.com>.
79601
79602 2004-02-16  Karl Berry  <karl@gnu.org>
79603
79604         * config/mkinstalldirs, install-sh: update from automake.
79605
79606 2004-02-06  Karl Berry  <karl@gnu.org>
79607
79608         * m4/po.m4: update from gettext 0.14.1.
79609
79610 2004-02-06  Karl Berry  <karl@gnu.org>
79611
79612         * lib/config.charset: update from gettext 0.14.1.
79613
79614 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79615
79616         Add comments and code, prompted by suggestions from Bruno Haible
79617         for sh-quote.
79618         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79619         describing the enum quoting_style values.
79620         * lib/quotearg.c (quotearg_alloc): New function.
79621         (quotearg_buffer_restyled): Treat lone { and } as special.
79622         Treat = as special.  Work around bug with older shells
79623         that "see" a '\' that is really the 2nd byte of a multibyte char.
79624         Quote empty string with shell_quoting_style.
79625
79626 2004-02-03  Bruno Haible  <bruno@clisp.org>
79627
79628         * m4/pipe.m4: New file, from GNU gettext.
79629
79630 2004-02-03  Bruno Haible  <bruno@clisp.org>
79631
79632         * lib/pipe.h: New file, from GNU gettext.
79633         * lib/pipe.c: New file, from GNU gettext.
79634
79635 2004-01-27  Bruno Haible  <bruno@clisp.org>
79636
79637         * m4/execute.m4: New file, from GNU gettext.
79638
79639 2004-01-27  Bruno Haible  <bruno@clisp.org>
79640
79641         * lib/execute.h: New file, from GNU gettext.
79642         * lib/execute.c: New file, from GNU gettext.
79643         * lib/w32spawn.h: New file, from GNU gettext.
79644
79645 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79646
79647         Merge from diffutils.
79648
79649         * lib/file-type.c (file_type): Add typed memory objects.
79650         * lib/file-type.h (S_TYPEISTMO): New macro.
79651
79652         * lib/c-stack.h (c_stack_action): Remove argv argument.
79653         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79654         (die): Don't calculate message unless segv_action returns.
79655         (get_stack_location, min_address_from_argv, max_address_from_argv,
79656         volatile stack_base, volatile_stack_size): Remove.
79657         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79658         that every segmentation violation is a stack overflow.  (Ouch!)
79659         See Debian bug 136249 (still outstanding) for more info about why
79660         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79661
79662 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79663
79664         Exit-status fix from coreutils.
79665
79666         Use exit_failure consistently in place of EXIT_FAILURE,
79667         so that program exit statuses are consistent on failure.
79668
79669         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79670         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79671         * lib/argmatch.h: Comment fix to match the above.
79672         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79673         Now a macro referring to exit_failure, instead of a separate
79674         variable.  Include "exitfail.h" to get it.
79675         * lib/xstrtol.h: Include "exitfail.h".
79676         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79677
79678         * lib/long-options.c (parse_long_options): Use prototype
79679         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79680         for clarity.
79681
79682 2004-01-21  Jim Meyering  <jim@meyering.net>
79683
79684         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79685         so as not to conflict with a different-sized __mktime_internal
79686         function in GNU libc.
79687         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79688         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79689
79690 2004-01-20  Karl Berry  <karl@gnu.org>
79691
79692         * config/config.guess: update from config.
79693
79694         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79695
79696 2004-01-20  Bruno Haible  <bruno@clisp.org>
79697
79698         Safer stack allocation.
79699         * lib/setenv.c: Include allocsa.h.
79700         (alloca): Remove fallback definition.
79701         (freea): Remove macro.
79702         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79703         instead of freea.
79704
79705 2004-01-20  Bruno Haible  <bruno@clisp.org>
79706
79707         * m4/eealloc.m4: New file, from GNU gettext.
79708
79709 2004-01-20  Bruno Haible  <bruno@clisp.org>
79710
79711         * m4/allocsa.m4: New file, from GNU gettext.
79712
79713 2004-01-20  Bruno Haible  <bruno@clisp.org>
79714
79715         * lib/xallocsa.h: New file, from GNU gettext.
79716         * lib/xallocsa.c: New file, from GNU gettext.
79717
79718 2004-01-20  Bruno Haible  <bruno@clisp.org>
79719
79720         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79721
79722 2004-01-20  Bruno Haible  <bruno@clisp.org>
79723
79724         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79725         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79726         specially.
79727
79728 2004-01-20  Bruno Haible  <bruno@clisp.org>
79729
79730         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79731         patch.
79732
79733 2004-01-20  Bruno Haible  <bruno@clisp.org>
79734
79735         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79736
79737 2004-01-20  Bruno Haible  <bruno@clisp.org>
79738
79739         * lib/eealloc.h: New file.
79740
79741 2004-01-20  Bruno Haible  <bruno@clisp.org>
79742
79743         * lib/binary-io.h: Avoid warnings on Cygwin.
79744
79745 2004-01-20  Bruno Haible  <bruno@clisp.org>
79746
79747         * lib/allocsa.h: New file, from GNU gettext.
79748         * lib/allocsa.c: New file, from GNU gettext.
79749
79750 2004-01-18  Karl Berry  <karl@gnu.org>
79751
79752         * doc/gpl.texi, doc/lgpl.texi: new files.
79753
79754 2004-01-18  Karl Berry  <karl@gnu.org>
79755
79756         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79757         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79758
79759 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79760
79761         Merge from coreutils.
79762
79763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79764         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79765         (gl_DEFAULT_POSIX2_VERSION): Move
79766         the documentation from 'configure' into 'config.hin',
79767         so that 'configure --help' isn't burdened by it and
79768         we don't have to worry about its formatting there.
79769         Reword the documentation so that it's more succinct
79770         and can be run together into a single paragraph.
79771         * m4/same.m4 (gl_SAME): Check for pathconf.
79772
79773 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79774
79775         Merge from coreutils.
79776
79777         * lib/posixver.c: Include posixver.h.
79778
79779         * lib/same.c: Include <stdbool.h>, <limits.h>.
79780         (_POSIX_NAME_MAX): Define if not defined.
79781         (MIN): New macro.
79782         (same_name): If file names are silently truncated, report
79783         that the file names are the same if they are the same after
79784         the silent truncation.
79785
79786         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79787         conversion function.
79788         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79789         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79790         longer needed.
79791
79792 2004-01-15  Jim Meyering  <jim@meyering.net>
79793
79794         Merge from coreutils.
79795
79796         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79797         if no library is required.
79798         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79799         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79800         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79801         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79802         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79803         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79804         value, $ac_cv_search_crypt, if it's "none required".
79805         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79806         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79807         not gl_FUNC_GETLOADAVG.
79808         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79809         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79810
79811 2004-01-15  Jim Meyering  <jim@meyering.net>
79812
79813         Merge from coreutils.
79814
79815         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79816         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79817         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79818
79819         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79820         optional configure-time default.
79821
79822         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79823
79824         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79825
79826 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79827
79828         Merge from coreutils.
79829
79830         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79831         value, $ac_cv_search_nanosleep, if it's "none required".
79832
79833 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79834
79835         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79836         with like-named macro in fnmatch.c.
79837         (EXT): Use an internal constant instead.
79838
79839         Merge fnmatch patches from glibc.
79840         * lib/fnmatch.c (mbsinit): Remove define.
79841         Add libc_hidden_ver (__fnmatch, fnmatch).
79842         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79843         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79844
79845 2004-01-14  Karl Berry  <karl@gnu.org>
79846
79847         * config/install-sh: update from automake.
79848
79849 2004-01-13  Karl Berry  <karl@gnu.org>
79850
79851         * config/install-sh: update from automake.
79852
79853 2004-01-09  Karl Berry  <karl@gnu.org>
79854
79855         * config/install-sh: update from automake.
79856
79857 2004-01-05  Karl Berry  <karl@gnu.org>
79858
79859         * config/config.{sub,guess}: update from config.
79860
79861 2003-12-31  Karl Berry  <karl@gnu.org>
79862
79863         * config/depcomp: update from automake.
79864
79865 2003-12-14  Karl Berry  <karl@gnu.org>
79866
79867         * lib/config.charset: update from gettext-runtime.
79868
79869 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79870
79871         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79872         Bug reported by Alfred M. Szmidt.
79873
79874 2003-12-03  Bruno Haible  <bruno@clisp.org>
79875
79876         * m4/gettext.m4: Upgrade from gettext-0.13.
79877         * m4/po.m4: Upgrade from gettext-0.13.
79878         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79879         * m4/intmax.m4: New file, from gettext-0.13.
79880         * m4/printf-posix.m4: New file, from gettext-0.13.
79881
79882 2003-11-29  Karl Berry  <karl@gnu.org>
79883
79884         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79885
79886 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79887             Bruno Haible  <bruno@clisp.org>
79888
79889         * lib/printf-parse.h: Don't include sys/types.h.
79890         (ARG_NONE): New macro.
79891         (char_directive): Change type of *arg_index fields to size_t.
79892         * lib/printf-parse.c: Don't include sys/types.h.
79893         (SSIZE_MAX): Remove macro.
79894         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79895         Remove unnecessary overflow check.
79896         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79897         fields.
79898
79899 2003-11-25  Bruno Haible  <bruno@clisp.org>
79900
79901         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79902
79903 2003-11-25  Bruno Haible  <bruno@clisp.org>
79904
79905         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79906         gt_TYPE_SSIZE_T.
79907
79908 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79909
79910         * modules/alloca: Remove dependency on xalloc.
79911
79912 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79913
79914         * lib/alloca.c: Remove dependency on xalloc module.
79915         (xalloc_die): Remove.
79916         (memory_full) [!defined emacs]: New macro.
79917         [!defined emacs]: Don't include xalloc.h.
79918         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79919         address arithmetic overflows.  Change datatypes a bit to avoid
79920         unnecessary casts.
79921
79922 2003-11-22  Jim Meyering  <jim@meyering.net>
79923
79924         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79925         s/size/size_t/.
79926
79927 2003-11-21  Karl Berry  <karl@gnu.org>
79928
79929         * config/config.{sub,guess}: update from config.
79930
79931 2003-11-18  Karl Berry  <karl@gnu.org>
79932
79933         * config/config.{sub,guess}: update from config.
79934
79935         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79936
79937 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79938
79939         * README: Mention that S+T cannot overflow if S is the size of
79940         an existing object and T is sufficiently small.
79941
79942 2003-11-17  Jim Meyering  <jim@meyering.net>
79943
79944         On systems without utime and without a utimes function capable of
79945         dealing with a NULL struct utimbuf* argument, this utime replacement
79946         could -- in unusual circumstances -- leak a file descriptor.
79947         * lib/utime.c: Include <unistd.h> and <errno.h>.
79948         (utime_null): Be sure to close `fd' and to preserve errno.
79949         Reported by Geoff Collyer via Arnold Robbins.
79950
79951 2003-11-17  Bruno Haible  <bruno@clisp.org>
79952
79953         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79954         (Depends-on): Add xsize.
79955
79956 2003-11-17  Bruno Haible  <bruno@clisp.org>
79957
79958         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79959
79960 2003-11-17  Bruno Haible  <bruno@clisp.org>
79961
79962         * lib/vasnprintf.c (alloca): Remove fallback definition.
79963         (freea): Remove definition.
79964         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79965         Reported by Paul Eggert.
79966
79967 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79968             Bruno Haible  <bruno@clisp.org>
79969
79970         Protect against address arithmetic overflow.
79971         * lib/printf-args.h: Include stddef.h.
79972         (arguments): Change type of field 'count' to size_t.
79973         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79974         'unsigned int' where appropriate.
79975         * lib/printf-parse.h: Include sys/types.h.
79976         (char_directive): Change type of *arg_index fields to ssize_t.
79977         (char_directives): Change type of fields 'count', max_*_length to
79978         size_t.
79979         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79980         (SSIZE_MAX): Define fallback value.
79981         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79982         instead of 'int' where appropriate. Check a_allocated, d_allocated
79983         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79984         * lib/vasnprintf.c: Include xsize.h.
79985         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79986         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79987         overflow. Avoid wraparound when converting a width or precision from
79988         decimal to binary.
79989
79990 2003-11-16  Bruno Haible  <bruno@clisp.org>
79991
79992         Update from GNU gettext.
79993         * lib/printf-parse.c: Generalize to it can be compiled for wide
79994         strings.
79995         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79996         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79997         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79998         SNPRINTF): New macros.
79999         Don't include <alloca.h> if the file is used inside libintl.
80000         (local_wcslen): New function, for Solaris 2.5.1.
80001         (VASNPRINTF): Use it instead of wcslen.
80002
80003 2003-11-16  Bruno Haible  <bruno@clisp.org>
80004
80005         * lib/xsize.h (xmax): New function.
80006         (xsum, xsum3, xsum4): Declare as "pure" functions.
80007
80008 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80009
80010         * modules/xalloc (Files): Undo latest change, since xalloc.h
80011         no longer needs SIZE_MAX or PTRDIFF_MAX.
80012
80013 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80014
80015         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80016         gl_PTRDIFF_MAX.
80017
80018 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80019
80020         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80021         "return", to pacify some unknown compiler.  Problem reported
80022         by Joerg Schilling.
80023
80024 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80025
80026         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80027         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80028         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80029         heuristic is just as accurate as far as we know, and it removes a
80030         dependency on size_max.m4 and ptrdiff_max.m4.
80031
80032 2003-11-11  Bruno Haible  <bruno@clisp.org>
80033
80034         * modules/xsize (Files): Add m4/size_max.m4.
80035         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80036
80037 2003-11-11  Bruno Haible  <bruno@clisp.org>
80038
80039         * m4/size_max.m4: New file.
80040         * m4/ptrdiff_max.m4: New file.
80041         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80042         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80043         (gl_XALLOC): Invoke it.
80044
80045 2003-11-11  Bruno Haible  <bruno@clisp.org>
80046
80047         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80048         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80049         defined.
80050
80051 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80052
80053         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80054         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80055         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80056         From Bruno Haible.
80057         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80058         not (size_t) -1, since it's defined here.
80059
80060 2003-11-09  Karl Berry  <karl@gnu.org>
80061
80062         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80063
80064 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80065
80066         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80067         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80068         Reject sizes of exactly SIZE_MAX bytes.
80069         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80070         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80071
80072 2003-11-05  Bruno Haible  <bruno@clisp.org>
80073
80074         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80075         SIZE_MAX defined in <limits.h> on Solaris.
80076
80077 2003-11-04  Jim Meyering  <jim@meyering.net>
80078
80079         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80080         variable names, rather than @VAR@.
80081         * modules/poll: Likewise.
80082
80083 2003-11-04  Bruno Haible  <bruno@clisp.org>
80084
80085         * modules/xsize: New file.
80086         * modules/linebreak: Depend on xsize.
80087         * MODULES.html.sh (func_all_modules): Add xsize.
80088
80089 2003-11-04  Bruno Haible  <bruno@clisp.org>
80090
80091         * m4/xsize.m4: New file.
80092
80093 2003-11-04  Bruno Haible  <bruno@clisp.org>
80094
80095         * lib/xsize.h: New file.
80096         * lib/linebreak.c: Include xsize.h.
80097         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80098         argument for overflow.
80099         Suggested by Paul Eggert.
80100
80101 2003-11-03  Karl Berry  <karl@gnu.org>
80102
80103         * config/config.{guess,sub}: update from config.
80104
80105 2003-11-03  Jim Meyering  <jim@meyering.net>
80106
80107         * modules/userspec (lib_SOURCES): Add userspec.h.
80108         (Include): Add "userspec.h".
80109         Improve description.
80110
80111 2003-11-03  Jim Meyering  <jim@meyering.net>
80112
80113         * lib/userspec.c: Include "userspec.h".
80114         * lib/userspec.h: New file.
80115
80116 2003-11-03  Bruno Haible  <bruno@clisp.org>
80117
80118         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80119
80120 2003-11-03  Bruno Haible  <bruno@clisp.org>
80121
80122         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80123         available, to avoid (extremely rare) race condition.
80124         Suggested by Paul Eggert.
80125
80126 2003-11-02  Karl Berry  <karl@gnu.org>
80127
80128         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80129
80130 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80131
80132         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80133         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80134         (read_filesystem_list): Set and use me_type_malloced.
80135         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80136         whatever the type happens to be), for brevity and consistency.
80137         Check for size calculation overflow on Alphas running OSF/1.
80138
80139 2003-10-31  Jim Meyering  <jim@meyering.net>
80140
80141         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80142
80143         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80144
80145 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80146             Bruno Haible  <bruno@clisp.org>
80147
80148         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80149         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80150
80151 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80154         netbsd*-gnu*.  Suggested by Robert Millan.
80155
80156 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80157
80158         * modules/group-member: Depend on stdbool.
80159
80160 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80161
80162         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80163
80164 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80165
80166         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80167         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80168         after the 'gnu' in these cases.  This fixes some bugs in the
80169         previous change, and is based on suggestions by Robert Millan.
80170
80171 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80172
80173         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80174         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80175         no longer needed.
80176         * lib/quotearg.c (quotearg_n_options): Use it.
80177         * lib/group-member.c: Include <stdbool.h>.
80178         (free_group_info): Arg is now const *; don't free arg.
80179         (get_group_info): Now returns bool and accepts struct group_info *,
80180         rather than returning a malloc'ed struct group_info *.
80181         All uses changed.  Check for overflow in internal size calculation.
80182
80183         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80184         rather than xmalloc/xrealloc.
80185         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80186         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80187         conformance bug: the old code used a pointer after freeing the
80188         storage that it addressed.
80189         * lib/hash.c (hash_initialize): Simplify the code by using
80190         xalloc_oversized rather than doing it by hand.
80191         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80192         the buffer preserved.  Use free and xmalloc instead.
80193         * lib/quotearg.c (quotearg_n_options): Likewise.
80194         Use a simpler test for size overflow.  Don't use xalloc_oversized
80195         because unsigned int might be wider than size_t (!); this suggests
80196         that we should switch from unsigned int to size_t for slot numbers.
80197
80198 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80199
80200         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80201         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80202         NetBSD kernels.  Requested by Richard Stallman.
80203
80204 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80205
80206         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80207         to allocate the returned structure.  Do not allocate a subarray,
80208         as x2nrealloc will do that.
80209         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80210         instead of xnrealloc.
80211         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80212
80213 2003-10-27  Bruno Haible  <bruno@clisp.org>
80214
80215         * lib/stdbool_.h: Better support for BeOS.
80216
80217 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80218
80219         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80220         now uses inline.
80221
80222 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80223
80224         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80225         callers that want to do their own size-overflow checking.  Include
80226         <stdbool.h>, since xalloc_oversized returns bool.
80227         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80228         to use xalloc_oversized.
80229
80230         Add two functions x2realloc, x2nrealloc, for programs that grow
80231         arrays dynamically by doubling their sizes.
80232         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80233         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80234         New functions.
80235
80236         Port to C99 semantics for 'inline' of external functions.
80237         Bug reported by Bruno Haible.
80238         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80239         with the old contents of xnmalloc.
80240         (xnmalloc, xmalloc): Use it.
80241         (xnrealloc_inline): New static inline function,
80242         with the old contents of xnrealloc.
80243         (xnrealloc, xrealloc): Use it.
80244
80245         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80246         that.
80247
80248 2003-10-26  Karl Berry  <karl@gnu.org>
80249
80250         * config/srclist.txt (COPYING.DOC): no longer available from
80251         /gd/gnuorg; don't know where the ultimate source is.
80252
80253 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80254
80255         Fix several address-calculation bugs in the hash modules,
80256         plus some minor code cleanup.
80257
80258         * lib/hash.h: Include <stdbool.h>, for bool.
80259         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80260         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80261         hash_get_n_entries, hash_get_max_bucket_length,
80262         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80263         hash_rehash): Use size_t rather than unsigned.
80264         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80265         hash_get_n_buckets_used, hash_get_n_entries,
80266         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80267         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80268         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80269         Likewise.
80270         (SIZE_MAX): Define if not defined.
80271         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80272         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80273         hash_print):
80274         Use const * when possible.
80275         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80276         (check_tuning): Fix bug: if tuning parameters were very close to
80277         0 or 1, rounding errors could have caused subscript violations.
80278         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80279         (hash_initialize): Add 'fail:' label
80280         to free table and return NULL, and use it to simplify code.
80281         Use calloc rather than clearing the storage ourself.
80282         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80283         buffer size calculations.
80284         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80285         Include <stddef.h>, for size_t.
80286         * lib/hash-pjw.c (hash_pjw): Likewise.
80287         Switch to method described by Bruno Haible.
80288         Include <limits.h>, for CHAR_BIT.
80289         (SIZE_BITS): New macro.
80290
80291 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80292
80293         * m4/getline.m4 (AM_FUNC_GETLINE):
80294         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80295         hosts.  Problem reported by Derek Robert Price in
80296         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80297         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80298         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80299
80300 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80301
80302         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80303         ceiling the allocation at NMAX bytes rather than silently
80304         discarding input bytes before NMAX is reached.  This makes
80305         a difference only if NMAX exceeds SIZE_MAX / 2.
80306
80307         * lib/obstack.c: Merge from glibc.
80308         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80309         Add libc_hidden_def (_obstack_newchunk).
80310         (_obstack_free) [! defined _LIBC]: Remove.
80311         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80312         a clone of the function body.
80313         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80314         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80315
80316         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80317         glibc.
80318         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80319         arg to memcpy.
80320
80321         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80322         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80323         Don't use lvalue casts, as GCC plans to remove support for them
80324         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80325         was also present in the non-GCC version, indicating that this
80326         code had always been buggy and had never been widely used.
80327         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80328         Use the fast variant of each macro, rather than copying the
80329         definiens of the fast variant; that way, we'll be more likely to
80330         catch future bugs in the fast variants.
80331
80332 2003-10-20  Bruno Haible  <bruno@clisp.org>
80333
80334         * modules/wait-process: New file.
80335         * MODULES.html.sh (func_all_modules): Add wait-process.
80336
80337 2003-10-20  Bruno Haible  <bruno@clisp.org>
80338
80339         * m4/wait-process.m4: New file.
80340
80341 2003-10-20  Bruno Haible  <bruno@clisp.org>
80342
80343         * lib/wait-process.h: New file, from GNU gettext.
80344         * lib/wait-process.c: New file, from GNU gettext.
80345
80346 2003-10-19  Jim Meyering  <jim@meyering.net>
80347
80348         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80349         HPUX 10.20.
80350
80351 2003-10-18  Karl Berry  <karl@gnu.org>
80352
80353         * config/config.guess: update from config.
80354
80355 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80356
80357         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80358         (getgroups): First arg is int, not size_t.
80359         Don't let 'free' mangle errno.
80360
80361 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80362
80363         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80364
80365 2003-10-16  Karl Berry  <karl@gnu.org>
80366
80367         * config/config.{guess,sub}: update from config.
80368
80369 2003-10-16  Jim Meyering  <jim@meyering.net>
80370
80371         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80372         memcpy.
80373
80374 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80375
80376         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80377         (SIZE_MAX): Remove.
80378         (new_exclude, add_exclude_file): Initial size no longer needs to
80379         be a power of 2.
80380         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80381         our own address arithmetic overflow checking.
80382
80383         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80384         (fnmatch): Do not alloca more than 2000 wide characters;
80385         instead, use malloc for large buffers.
80386         Check for address arithmetic overflow, and return -1
80387         with errno set to ENOMEM in that case.
80388         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80389         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80390         instead, return -1.  Check for address arithmetic overflow.
80391
80392 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80393
80394         Handle invalid suffixes and overflow independently, so that
80395         callers can treat them independently as needed.  Fix some bugs in
80396         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80397         suffix for a human-readable blocksize.  The major caller-visible
80398         change is the addition of a new
80399         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80400         that both overflow and suffix chars were found.
80401
80402         * lib/human.c (humblock): Don't check separately for invalid suffix
80403         char; that is xstrtoumax's job (now that its bug is fixed).
80404         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80405         INTMAX_MAX]: New macros.
80406         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80407         TYPE_MAXIMUM): New macros.
80408         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80409         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80410         if overflow occurs, as it's what __strtol does and it's more useful
80411         in practice.
80412         (__xstrtol): If __strtol reports some error other than ERANGE,
80413         reflect it to the caller as LONGINT_INVALID.  If it reports
80414         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80415         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80416         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80417         value.
80418         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80419         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80420         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80421         [defined UINTMAX_MAX]: New macros.
80422
80423 2003-10-14  Bruno Haible  <bruno@clisp.org>
80424
80425         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80426
80427 2003-10-14  Bruno Haible  <bruno@clisp.org>
80428
80429         * m4/sig_atomic_t: New file, from GNU gettext.
80430         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80431
80432 2003-10-14  Bruno Haible  <bruno@clisp.org>
80433
80434         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80435         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80436         Also use volatile where needed.
80437
80438 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80439
80440         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80441         Change maintainer from Bruno Haible to 'all'.
80442
80443 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80444
80445         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80446
80447 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80448
80449         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80450         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80451         and define in terms of the other primitives.
80452         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80453         (SIZE_MAX): Define if not already defined.
80454         (array_size_overflow): New function.
80455         (xalloc_die): Abort instead of exiting if 'error' returns.
80456         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80457         (xmalloc, xrealloc): Use them.
80458         (xcalloc): Check for address arithmetic overflow.
80459         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80460         a bit faster than strcpy.
80461
80462 2003-10-10  Simon Josefsson  <jas@extundo.com>
80463
80464         * modules/argp (Depends-on): Add restrict and strcase.
80465
80466 2003-10-10  Simon Josefsson  <jas@extundo.com>
80467
80468         * m4/argp.m4: Add AC_C_INLINE.
80469
80470 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80471
80472         Merge getpass from libc, plus a few fixes.
80473
80474         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80475         Include <stdbool.h>.
80476         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80477         __fsetlocking to empty.
80478         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80479         do include <bits/libc-lock.h>.
80480         Do not include <fcntl.h>; not needed.
80481         [_LIBC]: Include <wchar.h>.
80482         (NOTCANCEL_MODE): New macro.
80483         (flockfile, funlockfile) [_LIBC]: New macros.
80484         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80485         [!_LIBC]: New macros.
80486         (call_fclose): New function.
80487         (getpass): Use it.  Save tty stream separately; this simplifies the
80488         code and makes it more reliable if stdin happens to equal stdout.
80489         Invoke __fsetlocking on tty.
80490         Handle thread cancellation if needed.
80491         Namespace cleanup (use __tcgetattr, __getline).
80492         Use bool for Booleans.
80493         [USE_IN_LIBIO]: Handle wide streams.
80494         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80495         stream might go where.
80496
80497         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80498         doesn't have to include <stdio.h> before us.
80499         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80500         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80501         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80502         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80503         if not declared, so that we can use getpass.c code from libc without
80504         rewriting it.
80505         (flockfile, ftrylockfile, funlockfile): New macros.
80506
80507 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80508
80509         * modules/getpass: Depend on stdbool.
80510
80511 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80512
80513         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80514
80515 2003-10-07  Karl Berry  <karl@gnu.org>
80516
80517         * config/config.{guess,sub}: update from config.
80518
80519 2003-10-06  Jim Meyering  <jim@meyering.net>
80520             Bruno Haible  <bruno@clisp.org>
80521
80522         This lets translators provide better translations for the
80523         "Written by ..." part of --version output.
80524         * lib/version-etc.h: Include stdarg.h.
80525         (version_etc_copyright): Declare as readonly.
80526         (version_etc): Make this function variadic with a NULL-terminated list
80527         of author name strings.
80528         (version_etc_va): New declaration.
80529         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80530         (version_etc_copyright): Declare as readonly.
80531         (version_etc_va): New function. Provide a different translatable string
80532         for each possible number of authors < 10. Abbreviate when there are 10
80533         authors or more.
80534         (version_etc): Make this function variadic. Call version_etc_va.
80535         Suggestion from Gary V. Vaughan.
80536
80537         * lib/long-options.h (parse_long_options): Change prototype: the
80538         authors string is moved to the end and becomes variadic.
80539         * lib/long-options.c: Include stdarg.h.
80540         (parse_long_options): Make this function variadic, too.
80541         Call version_etc_va, not version_etc.
80542
80543 2003-10-06  Bruno Haible  <bruno@clisp.org>
80544
80545         * modules/version-etc-2: Remove file.
80546         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80547
80548 2003-10-06  Bruno Haible  <bruno@clisp.org>
80549
80550         * modules/fatal-signal: New file.
80551         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80552
80553 2003-10-06  Bruno Haible  <bruno@clisp.org>
80554
80555         * m4/fatal-signal.m4: New file.
80556         * m4/signalblocking.m4: New file, from GNU gettext.
80557
80558 2003-10-06  Bruno Haible  <bruno@clisp.org>
80559
80560         * lib/version-etc-2.h: Remove file.
80561         * lib/version-etc-2.c: Remove file.
80562
80563 2003-10-06  Bruno Haible  <bruno@clisp.org>
80564
80565         * lib/fatal-signal.h: New file, from GNU gettext.
80566         * lib/fatal-signal.c: New file, from GNU gettext.
80567
80568 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80569
80570         * README: Rework advice for preventing empty .o files.
80571         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80572         not <sys/types.h>.
80573
80574 2003-10-04  Karl Berry  <karl@gnu.org>
80575
80576         * lib/argp*: update from libc.
80577
80578 2003-10-04  Karl Berry  <karl@gnu.org>
80579
80580         * config/config.{guess,sub}: update from config.
80581
80582 2003-10-02  Bruno Haible  <bruno@clisp.org>
80583
80584         * modules/lchown (Include): Add lchown.h.
80585         * modules/time_r (Include): Use "..." syntax.
80586         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80587
80588 2003-10-01  Simon Josefsson  <jas@extundo.com>
80589
80590         * MODULES.html.sh (func_all_modules): Move gethostname from section
80591         'based on' to section 'lacking' POSIX:2001.
80592
80593 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80594
80595         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80596         to output mode on the same stream.
80597
80598 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80599
80600         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80601         Fix arg typo in previous patch.
80602
80603 2003-09-28  Jim Meyering  <jim@meyering.net>
80604
80605         * lib/error.c: Correct cpp indentation.
80606
80607 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80608
80609         * modules/free: New file.
80610
80611 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80612
80613         * m4/free.m4: New file.
80614
80615 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80616
80617         * lib/minmax.h (MIN, MAX)
80618         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80619         Omit the special code that used __typeof__, since we worry that
80620         it could be more trouble than it's worth.  See:
80621         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80622         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80623
80624         * lib/free.c: New file.
80625
80626 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80627
80628         Trivial fixes to Makefile.am parts of module listings.
80629         * modules/strstr: Append strstr.h to lib_SOURCES.
80630         * modules/strcase: Likewise, for strcase.h.
80631
80632 2003-09-27  Karl Berry  <karl@gnu.org>
80633
80634         * config/mkinstalldirs: update from automake.
80635
80636 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80637
80638         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80639         (error_tail): Do not loop, reallocating temporary buffer, since
80640         the output cannot contain more wide characters than the input
80641         contains bytes, the size must be big enough already.  This avoids
80642         one potential size overflow calculation.  Check for size overflow
80643         when calculating temporary buffer size.  Free temporary buffer
80644         when done, if it was allocated with malloc; this plugs a memory
80645         leak.  Remove casts from void * to pointers, that are no longer
80646         needed now that we're assuming C89 or better.
80647
80648         Merge error changes from glibc.
80649
80650         * lib/error.c, error.h: Update copyright notice header to match glibc.
80651         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80652         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80653         Disable cancellation while printing error.
80654         * lib/error.h: Prepend __ to parameter names.
80655
80656 2003-09-26  Jim Meyering  <jim@meyering.net>
80657
80658         * lib/error.c (error_tail): Move some declarations
80659         into inner scope where the local variables are used.
80660
80661 2003-09-26  Bruno Haible  <bruno@clisp.org>
80662
80663         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80664         stpncpy().
80665         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80666
80667 2003-09-26  Bruno Haible  <bruno@clisp.org>
80668
80669         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80670         (stpncpy): Define as alias for gnu_stpncpy.
80671         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80672
80673 2003-09-25  Simon Josefsson  <jas@extundo.com>
80674
80675         * lib/xgetdomainname.h: New file.
80676         * lib/xgetdomainname.c: New file.
80677
80678 2003-09-25  Simon Josefsson  <jas@extundo.com>
80679             Bruno Haible  <bruno@clisp.org>
80680
80681         * modules/getdomainname: New file.
80682         * modules/xgetdomainname: New file.
80683         * MODULES.html.sh (func_all_modules): Add getdomainname,
80684         xgetdomainname.
80685
80686 2003-09-25  Simon Josefsson  <jas@extundo.com>
80687             Bruno Haible  <bruno@clisp.org>
80688
80689         * m4/getdomainname.m4: New file.
80690
80691 2003-09-25  Simon Josefsson  <jas@extundo.com>
80692             Bruno Haible  <bruno@clisp.org>
80693
80694         * lib/getdomainname.h: New file.
80695         * lib/getdomainname.c: New file.
80696
80697 2003-09-25  Karl Berry  <karl@gnu.org>
80698
80699         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80700
80701 2003-09-25  Karl Berry  <karl@gnu.org>
80702
80703         * config/install-sh: update from automake.
80704
80705 2003-09-25  Bruno Haible  <bruno@clisp.org>
80706
80707         * modules/version-etc-2: New file, from modules/version-etc with
80708         modifications.
80709         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80710
80711 2003-09-25  Bruno Haible  <bruno@clisp.org>
80712
80713         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80714         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80715
80716 2003-09-24  Simon Josefsson  <jas@extundo.com>
80717
80718         * modules/xgethostname: Add xgethostname.h.
80719
80720 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80721
80722         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80723         the buffer associated with the argument.  Bug reported by
80724         Simon Josefsson.
80725
80726 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80727
80728         * README: Document assumptions that 'int' is at least 32 bits
80729         wide, that integer arithmetic is 2's complement without overflow,
80730         that there are no holes in integer values, that adding sizes of
80731         two nonoverlapping objects can't overflow, and that all-bits-zero
80732         yields scalar zero.  Fix spelling and capitalization typos.
80733
80734 2003-09-19  Karl Berry  <karl@gnu.org>
80735
80736         * lib/argp.h: update from libc.
80737
80738 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80739
80740         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80741         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80742         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80743
80744 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80745
80746         * gnulib-tool: Use "test -h", not "test -L", for portability
80747         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80748         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80749         (sed_extract_prog): Issue s commands one-by-one, rather than
80750         using \| in one s command.
80751
80752 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80753
80754         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80755         input error, instead of returning NULL the next time we are called
80756         (and therefore losing track of errno).
80757
80758 2003-09-16  Bruno Haible  <bruno@clisp.org>
80759
80760         * gnulib-tool (func_create_testdir): Warn about duplicated
80761         dependencies.
80762
80763 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80764
80765         * modules/argmatch, modules/fatal, modules/obstack,
80766         modules/xalloc, modules/xgethostname: Sort dependencies by
80767         importance, not alphabetically.
80768
80769 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80770
80771         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80772         fails, so that the caller gets the proper errno.
80773
80774         * lib/readutmp.c (read_utmp): Likewise.
80775         Check for fstat error.  Close stream and free storage
80776         when failing.
80777
80778 2003-09-14  Karl Berry  <karl@gnu.org>
80779
80780         * config/srclist.txt (strdup.c): disable for c89 changes.
80781
80782 2003-09-14  Jim Meyering  <jim@meyering.net>
80783
80784         * lib/getloadavg.c: Correct cpp indentation.
80785         * lib/strdup.c: Likewise.
80786         * lib/vasnprintf.c: Likewise.
80787
80788 2003-09-14  Bruno Haible  <bruno@clisp.org>
80789
80790         * modules/fwriteerror: New file.
80791         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80792
80793 2003-09-14  Bruno Haible  <bruno@clisp.org>
80794
80795         * lib/fwriteerror.h: New file.
80796         * lib/fwriteerror.c: New file.
80797
80798 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80799
80800         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80801         modules/xgethostname, modules/xalloc: Depend on exit.
80802
80803 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80804
80805         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80806
80807         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80808         and AC_MINIX, too, so that their extensions are available.
80809
80810         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80811         This macro has been superseded by gl_BACKUPFILE.
80812
80813         More patches to assume C89 or better.
80814
80815         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80816
80817         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80818         unconditionally.
80819         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80820         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80821         Include <string.h>, <stdlib.h> unconditionally.
80822         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80823         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80824         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80825         headers or for string.h.
80826         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80827         or strtoul.
80828
80829         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80830         headers.
80831         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80832         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80833         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80834         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80835         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80836         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80837         memcpy, memset.
80838         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80839         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80840         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80841         strtol.
80842         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80843         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80844         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80845         strtoul.
80846
80847 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80848
80849         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80850         * lib/obstack.c [!defined _LIBC]: Likewise.
80851         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80852         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80853         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80854
80855         More changes to assume C89 or better.
80856
80857         * lib/error.c (error_tail): Assume vprintf.
80858
80859         * lib/argmatch.c (getenv): Remove decl.
80860         * lib/progreloc.c (get_full_program_name): Define via prototype.
80861         * lib/setenv.c (clearenv): Likewise.
80862         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80863         needed.
80864         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80865         (malloc, memcpy): Remove decls.
80866         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80867         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80868         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80869         (memcpy): Remove macro.
80870         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80871         (__P): Remove.  All uses removed.
80872         (PTR): Remove.  All uses changed to void *.
80873         (CHAR_BIT, NULL): Remove.
80874         (spaces, zeros, memset_space, memset_zero)
80875         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80876         Remove.
80877         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80878         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80879         Define with prototype.
80880         Remove now-unnecessary prototype decl.
80881         (extra_args_spec): Assume ANSI C.  All uses changed.
80882         (extra_args_spec_iso): Remove.
80883         (my_strftime, emacs_strftimeu): Define via prototype.
80884         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80885         unconditionally.
80886         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80887         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80888         (strtoul, strtol): Remove decls.
80889         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80890         LONG_MAX): Remove.
80891         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80892         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80893         (LOCALE_PARAM_PROTO): New macro.
80894         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80895         (INTERNAL (strtol), strtol): Define with a prototype.
80896         (PARAMS): Remove.  All uses removed.
80897         * lib/tempname.c: Include <string.h> unconditionally.
80898         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80899         * lib/xgethostname.c (main): Define with a prototype.
80900         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80901         Include <stdlib.h> unconditionally.
80902         (calloc, malloc, realloc, free): Remove decls.
80903         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80904         Include <stdlib.h> unconditionally.  Sort include file names.
80905         (strtod): Remove.
80906         (xstrtod): Define with a prototype.
80907         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80908         (strtol, strtoul): Remove decls.
80909
80910 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80911
80912         More patches to assume C89 or better.
80913         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80914         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80915         string.h, memchr, STDC_HEADERS.
80916
80917 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80918
80919         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80920         Include <stdlib.h>, <string.h> unconditionally.
80921         Remove now-unnecessary cast to char *.
80922         * lib/strnlen.c: Include <string.h> unconditionally.
80923         * lib/yesno.c (yesno): Define with a prototype.
80924
80925 2003-09-11  Bruno Haible  <bruno@clisp.org>
80926
80927         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80928
80929 2003-09-10  Jim Meyering  <jim@meyering.net>
80930
80931         * lib/error.c: Correct indentation of cpp directives.
80932
80933 2003-09-10  Bruno Haible  <bruno@clisp.org>
80934
80935         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80936         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80937         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80938         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80939         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80940         <stdlib.h> and <string.h> checks.
80941         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80942         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80943
80944 2003-09-10  Bruno Haible  <bruno@clisp.org>
80945
80946         * lib/strcspn.c: Include <string.h> unconditionally.
80947         * lib/strpbrk.c: Include <string.h> unconditionally.
80948         * lib/strstr.c: Include <string.h> unconditionally.
80949         * lib/unicodeio.c: Include <string.h> unconditionally.
80950         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80951         * lib/unsetenv.c: Likewise.
80952         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80953         * lib/yesno.c: Include <stdlib.h> unconditionally.
80954         (rpmatch): Add prototype.
80955
80956 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80957
80958         More patches to assume C89 or better.
80959         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80960         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80961         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80962         or for string.h.
80963         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80964         stdlib.h.
80965         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80966         C headers.
80967         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80968         string.h.
80969         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80970         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80971         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80972         or for string.h.
80973         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80974         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80975         C headers.
80976         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80977         memcpy.
80978         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80979         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80980         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80981         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80982         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80983         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80984         string.h, free.
80985         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80986         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80987         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80988         C headers, or for string.h.
80989         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80990         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80991         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80992         headers, memory.h, stdlib.h, string.h, strings.h.
80993         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80994         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80995         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80996         strchr.
80997         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80998         headers, memory.h, string.h.
80999         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81000         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81001         free.
81002         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81003         headers.
81004         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81005         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81006         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81007         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81008         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81009
81010 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81011
81012         More K&R removal.
81013
81014         * lib/acosl.c (main): Use a prototype.
81015         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81016         tanl.c: Likewise.
81017
81018         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81019
81020         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81021         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81022         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81023         with a prototype.
81024         * lib/getopt.c (const): Remove macro.
81025         Include <string.h> unconditionally.
81026         (my_index): Remove; all uses changed to strchr.
81027         (strlen): Remove decl.
81028         (exchange): Remove forward decl; no longer needed.
81029         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81030         Define with prototype.
81031         * lib/getopt1.c (const): Remove macro.
81032         (getopt_long, getopt_long_only, main): Define with prototype.
81033
81034         * lib/getugroups.c: Include <string.h> unconditionally.
81035
81036         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81037         (getusershell, setusershell, endusershell, readname, main):
81038         Define with prototypes.
81039
81040         * lib/group-member.c: Include group-member.h first.
81041         Include <stdlib.h> unconditionally.
81042
81043         * lib/hard-locale.c: Include hard-locale.h first.
81044         Include <stdlib.h>, <string.h> unconditionally.
81045
81046         * lib/hash.c (free, malloc): Remove decls.
81047         Include <stdlib.h> unconditionally.
81048
81049         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81050         (getenv): Do not declare.
81051
81052         * lib/idcache.c: Include <string.h> unconditionally.
81053
81054         * lib/long-options.c: Include long-options.h first, to test interface.
81055         Include <stdlib.h> unconditionally.
81056
81057         * lib/makepath.c: Include makepath.h first, to test interface.
81058         Include <stdlib.h> and <string.h> unconditionally.
81059
81060         * lib/linebuffer.c: Include <stdlib.h>.
81061         (free): Remove decl.
81062
81063         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81064         stddef.h. rpl_malloc returns void *, not char *.
81065         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81066         prototype.
81067
81068         * lib/md5.h: Include <limits.h> unconditionally.
81069         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81070         (__P): Remove; all uses removed.
81071         * lib/md5.c: Include "md5.h" first.
81072         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81073         md5_buffer, md5_process_bytes, md5_process_block):
81074         Define with prototypes.
81075         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81076         * lib/sha.c: Include "sha.h" first.
81077         Include <stdlib.h>, <string.h> unconditionally.
81078
81079         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81080         * lib/memcmp.c (__ptr_t): Likewise.
81081         * lib/memrchr.c (__ptr_t): Likewise.
81082         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81083         Include <string.h> unconditionally.
81084         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81085         * lib/memchr.c: Include <stdlib.h> unconditionally.
81086         * lib/memchr.c (LONG_MAX): Remove.
81087         * lib/memrchr.c (LONG_MAX): Likewise.
81088         * lib/memchr.c (__memchr): Define via a prototype.
81089         * lib/memrchr.c (__memrchr): Likewise.
81090         * lib/memcmp.c (__P): Remove, and remove all uses.
81091         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81092         Remove forward decls; no longer needed.
81093         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81094         Use types required by C89 in prototype.
81095
81096         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81097         * lib/savedir.c: Likewise.
81098         * lib/mkdir.c (free): Remove decl.
81099         * lib/rmdir.c (rmdir): Define with a prototype.
81100         * lib/savedir.c: Include savedir.h first, to test interface.
81101
81102         * lib/mktime.c (STDC_HEADERS): Remove.
81103         Include <stdlib.h>, <string.h> unconditionally.
81104
81105         * lib/modechange.c: Include <stdlib.h> unconditionally.
81106         (malloc): Remove decl.
81107
81108         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81109         (free): Remove decl.
81110
81111         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81112         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81113         (This type really should be intptr_t, but that's a C99ism.)
81114         (_obstack_memcpy): Remove: all uses changed to memcpy.
81115         Include <string.h> unconditionally.
81116         (struct obstack): Assume __STDC__ for types of members
81117         chunkfun, freefun, extra_arg.
81118         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81119         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81120         obstack_begin, obstack_specify_allocation,
81121         obstack_specify_allocation_with_arg, obstack_chunkfun,
81122         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81123         Remove unprototyped decls and the macros that use them.
81124         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81125         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81126         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81127         (defined __STDC__ && __STDC__)]:
81128         Remove nonprototyped code.
81129         Include <stdlib.h> unconditionally.
81130         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81131         _obstack_allocated_p, _obstack_free, obstack_free,
81132         _obstack_memory_used, print_and_abort):
81133         Define using prototypes.
81134         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81135         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81136         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81137         obstack_next_free, obstack_object_size, obstack_room) [0]:
81138         Remove unused, unprototyped code.
81139
81140         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81141
81142         * lib/physmem.c (physmem_total, physmem_available, main): Define
81143         with prototypes.
81144
81145         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81146         (main): Define with a prototype.
81147
81148         * lib/posixver.c (getenv): Remove decl.
81149
81150         * lib/putenv.c (malloc): Returns void *, not char *.
81151         Include <string.h> unconditionally.
81152         (strchr, memcpy, NULL): Do not define.
81153
81154         * lib/readtokens.c: Include readtokens.h first, to test interface.
81155         Include <stdlib.h>, <string.h> unconditionally.
81156         (init_tokenbuffer): Define with a prototype.
81157
81158         * lib/regex.c (PARAMS): Remove.  All uses removed.
81159         All uses of _RE_ARGS removed, too.
81160         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81161         unconditionally.
81162         (bzero): Assume memset exists.
81163         (memcmp, memcpy, NULL): Remove.
81164         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81165         char, or assignments to local vars of type signed char.
81166         (init_syntax_once, PREFIX(extract_number_and_incr),
81167         PREFIX(print_partial_compiled_pattern),
81168         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81169         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81170         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81171         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81172         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81173         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81174         wcs_compile_range, byte_compile_range, truncate_wchar,
81175         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81176         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81177         count_mbs_length, wcs_re_match_2_internal,
81178         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81179         PREFIX(alt_match_null_string_p),
81180         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81181         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81182         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81183         now-unnecessary declaration, if any.
81184         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81185         regcomp, regexec):
81186         Remove now-unnecessary casts among pointer types.
81187         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81188
81189         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81190         (free): Remove decl.
81191
81192         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81193
81194         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81195         (free): Remove decl.
81196
81197         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81198         * lib/xgetcwd.c: Likewise.
81199
81200         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81201         (free): Remove decl.
81202
81203         * lib/strchrnul.c (strchrnul): Define with a prototype.
81204         Fix bug: c_in was not converted to char before searching.
81205
81206         The following changes are not K&R related:
81207
81208         * lib/group-member.h: Include <sys/types.h>, so that this file is
81209         self-contained.
81210         * lib/makepath.h: Likewise.
81211
81212         * lib/getusershell.c (readname, default_index, line_size, readname):
81213         Use size_t, not int, for sizes.
81214         (readname): If the size overflows, report an error instead of
81215         looping forever.
81216
81217 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81218
81219         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81220         libc.
81221
81222 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81223
81224         * README: New section: portability guidelines.
81225
81226 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81227
81228         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81229         C89 spec.
81230
81231 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81232
81233         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81234
81235 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81236
81237         Assume C89 or better; remove K&R cruft.
81238         A few of these changes were first proposed by Derek Robert Price
81239         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81240
81241         * lib/addext.c: Include <string.h> unconditionally.
81242         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81243         Don't declare getenv or malloc.
81244
81245         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81246         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81247         (NULL): Remove.
81248         (find_stack_direction, alloca): Use prototypes.
81249
81250         * lib/atexit.c (atexit): Define using a prototype.
81251
81252         * lib/basename.c, dirname.c, stripslash.c:
81253         Include <string.h> unconditionally.
81254
81255         * lib/bcopy.c: Include <stddef.h>.
81256         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81257
81258         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81259
81260         * lib/error.h (error, error_at_line, error_print_progname)
81261         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81262         * lib/error.c: Include error.h first, to check interface.
81263         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81264         (VA_START): Remove; all uses changeed to va_start.
81265         (exit, strerror): Remove decls.
81266         (error_print_progname): Prototype uncondionally.
81267         Don't include <errno.h>; no longer needed.
81268         (private_strerror): Remove.
81269         (error_tail): Always define.
81270         (error, error_at_line): Assume C89 or better; always use prototypes.
81271         * lib/fatal.c: Include "fatal.h" first, to test interface.
81272         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81273         (VA_START): Remove; all uses changed to va_start.
81274         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81275         this case.
81276         (exit): Remove decl.
81277         (fatal): Prototype unconditionally.  Assume va_start works.
81278         Abort at end, to pacify gcc.
81279
81280         * lib/euidaccess.c (main): Define with a prototype.
81281
81282         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81283
81284         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81285
81286         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81287         prototypes.
81288         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81289         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81290         (getenv): Remove decl.
81291         (fnmatch): Define using a prototype.
81292         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81293         (FCT): Define using a prototype.
81294
81295         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81296
81297         * lib/gethostname.c: Include <stddef.h>.
81298         (gethostname): Define with prototype.  Length is size_t, not int.
81299
81300 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81301
81302         Assume C89 or better; remove K&R cruft.
81303         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81304         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81305         string.h, getenv, malloc.
81306         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81307         headers.
81308         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81309         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81310         do not check for strerror.
81311         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81312         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81313         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81314         do not check for doprnt or vprintf.
81315         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81316         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81317
81318 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81319
81320         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81321         getversion.c should have been removed then, but was accidentally
81322         preserved.
81323
81324         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81325         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81326
81327 2003-09-08  Karl Berry  <karl@gnu.org>
81328
81329         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81330                 config, forget about prep.
81331
81332         * config/depcomp, missing: update from automake.
81333
81334 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81335
81336         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81337         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81338
81339 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81340
81341         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81342         copy_tm_result.  Bug reported by Simon Josefsson in
81343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81344
81345 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81346
81347         * m4/time_r.m4: New file.
81348         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81349         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81350         is. Check for timegm declaration.
81351         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81352         Do not check for gmtime_r.
81353         Replace mktime if __mktime_internal does not exist and if mktime
81354         hasn't been replaced already.
81355
81356 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81357
81358         * lib/time_r.c, lib/time_r.h: New files.
81359
81360         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81361         __localtime_r.
81362         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81363         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81364
81365         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81366         __gmtime_r.
81367         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81368         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81369         Include <time_r.h>.
81370
81371         * lib/timegm.c: Switch to glibc implementation, with the following
81372         changes:
81373         [defined HAVE_CONFIG_H]: Include <config.h>.
81374         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81375         (__mktime_internal) [!defined _LIBC]: New decl.
81376         (__gmtime_r) [!defined _LIBC]: New macro and function.
81377         (timegm): Use a prototype, since gnulib assumes C89.
81378         Do not bother declaring tmp to be const, as it's not really usefu.
81379         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81380         (timegm): Declare only if HAVE_DECL_TIMEGM.
81381
81382 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81383
81384         * MODULES.html.sh (func_all_modules): Add time_r.
81385         * modules/time_r: New file.
81386         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81387         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81388
81389 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81390
81391         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81392         Bug reported by Lute Kamstra in
81393         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81394
81395         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81396         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81397         course with correspondingly smaller numbers for tomorrow and
81398         yesterday.  From Tadayoshi Funaba.  Originally installed into
81399         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81400         coreutils merge?).
81401
81402 2003-08-31  Simon Josefsson  <jas@extundo.com>
81403
81404         * modules/timegm: New file.
81405         * MODULES.html.sh (func_all_modules): Add timegm.
81406
81407 2003-08-31  Simon Josefsson  <jas@extundo.com>
81408
81409         * m4/timegm.m4: New file.
81410
81411 2003-08-31  Simon Josefsson  <jas@extundo.com>
81412
81413         * lib/timegm.h: New file.
81414         * lib/timegm.c: New file.  Based on
81415         wget-1.8.2/src/http.c:mktime_from_utc.
81416
81417 2003-08-31  Karl Berry  <karl@gnu.org>
81418
81419         * lib/argp.h: update from libc.
81420
81421 2003-08-28  Bruno Haible  <bruno@clisp.org>
81422
81423         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81424         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81425         followed by '#define fnmatch fnmatch_posix' gives an error.
81426
81427 2003-08-28  Bruno Haible  <bruno@clisp.org>
81428
81429         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81430         warning on QNX, which defines O_BINARY to 000000.
81431
81432 2003-08-27  Jim Meyering  <jim@meyering.net>
81433
81434         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81435         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81436         would fail after 32.  Reported by Danny Levinson.  Details here:
81437         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81438
81439 2003-08-24  Bruno Haible  <bruno@clisp.org>
81440
81441         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81442         MSVC7 <stdio.h> is included later.
81443
81444 2003-08-22  Simon Josefsson  <jas@extundo.com>
81445
81446         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81447
81448 2003-08-20  Karl Berry  <karl@gnu.org>
81449
81450         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81451
81452 2003-08-20  Bruno Haible  <bruno@clisp.org>
81453
81454         * modules/progname: New file.
81455         * MODULES.html.sh (func_all_modules): Add progname.
81456
81457 2003-08-20  Bruno Haible  <bruno@clisp.org>
81458
81459         * lib/progname.h: New file, from GNU gettext.
81460         * lib/progname.c: New file, from GNU gettext.
81461         * lib/progreloc.c: New file, from GNU gettext.
81462
81463 2003-08-19  Jim Meyering  <jim@meyering.net>
81464
81465         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81466         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81467
81468 2003-08-19  Bruno Haible  <bruno@clisp.org>
81469
81470         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81471         more.
81472
81473 2003-08-19  Bruno Haible  <bruno@clisp.org>
81474
81475         * lib/xstrdup.c: Assume <string.h> exists.
81476
81477 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81478
81479         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81480         in makefile rules.
81481
81482 2003-08-18  Jim Meyering  <jim@meyering.net>
81483
81484         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81485         * m4/lib-ld.m4: Likewise.
81486
81487 2003-08-18  Jim Meyering  <jim@meyering.net>
81488
81489         * lib/setenv.h: Indent nested cpp directive.
81490         * lib/vasnprintf.c: Remove trailing blanks.
81491
81492 2003-08-17  Simon Josefsson  <jas@extundo.com>
81493
81494         * modules/xstrndup: New file.
81495         * MODULES.html.sh (func_all_modules): Add xstrndup.
81496
81497 2003-08-17  Simon Josefsson  <jas@extundo.com>
81498
81499         * modules/argp: Fix autoconf macro name. Add more dependencies.
81500
81501 2003-08-17  Simon Josefsson  <jas@extundo.com>
81502
81503         * m4/xstrndup.m4: New file.
81504
81505 2003-08-17  Simon Josefsson  <jas@extundo.com>
81506
81507         * m4/argp.m4: New file.
81508
81509 2003-08-17  Simon Josefsson  <jas@extundo.com>
81510             Bruno Haible  <bruno@clisp.org>
81511
81512         * lib/xstrndup.h: New file.
81513         * lib/xstrndup.c: New file.
81514
81515 2003-08-17  Bruno Haible  <bruno@clisp.org>
81516
81517         * modules/strndup (Files, Include): Add lib/strndup.h.
81518
81519 2003-08-17  Bruno Haible  <bruno@clisp.org>
81520
81521         * modules/euidaccess (Files): Add lib/euidaccess.h.
81522
81523 2003-08-17  Bruno Haible  <bruno@clisp.org>
81524
81525         * lib/strndup.h: New file.
81526
81527 2003-08-17  Bruno Haible  <bruno@clisp.org>
81528
81529         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81530         like AC_GNU_SOURCE.
81531         * modules/extensions (configure.ac): Comment out the invocation of
81532         gl_USE_SYSTEM_EXTENSIONS.
81533
81534 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81535
81536         Merges from coreutils, etc.
81537         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81538         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81539         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81540         fixing a typo.
81541         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81542         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81543
81544 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81545
81546         Document merge from coreutils.
81547         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81548         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81549         * modules/utime: Add m4/utimes-null.m4.
81550
81551 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81552
81553         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81554         space, undoing this 2003-08-12 change:
81555         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81556
81557 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81558
81559         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81560         strtoul.c from libc, undoing this 2003-08-12 change:
81561         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81562
81563 2003-08-16  Jim Meyering  <jim@meyering.net>
81564
81565         Merges from coreutils.
81566         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81567         prefix.  Adjust cache variables similarly.  Create 500 rather than
81568         just 300 files, to exercise bug on Darwin6.5, too.
81569         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81570         $missing_dir.
81571         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81572         AM_SYS_POSIX_TERMIOS.
81573         Reported by mkc@mathdogs.com.
81574         Also change use of $am_cv_sys_posix_termios
81575         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81576         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81577         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81578         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81579         in /proc/mounts until it finds one with matching device number.  This
81580         is unnecessary when the FILE argument *is* a mount point.  No stat call
81581         is necessary in that case.  So, disable the statvfs-testing code on
81582         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81583         as RedHat bug# 84846.
81584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81585         to 1MB, so as not to render systems with no stack size limit (e.g.,
81586         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81587         Include <unistd.h>.  On some systems,
81588         it is required for the definition of _SC_PAGESIZE.
81589
81590 2003-08-16  Jim Meyering  <jim@meyering.net>
81591
81592         Merge from coreutils.
81593         * lib/xstrtoimax.c: #else #if -> #elif.
81594         * lib/xstrtoumax.c: Likewise.
81595
81596 2003-08-16  Jim Meyering  <jim@meyering.net>
81597
81598         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81599         * m4/utimes.m4: Removed.
81600         * m4/utimes-null.m4: Renamed from utimes.m4.
81601
81602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81603         to 1MB, so as not to render systems with no stack size limit (e.g.,
81604         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81605         Include <unistd.h>.  On some systems,
81606         it is required for the definition of _SC_PAGESIZE.
81607
81608 2003-08-16  Jim Meyering  <jim@meyering.net>
81609         and Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         Merges from coreutils, etc.
81612
81613         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81614         using the latest version from cvs.  This avoids problems with #line
81615         directives using a vendor (Sun) compiler.
81616         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81617         Don't set GETGROUPS_LIB here; now it's
81618         done via getgroups.m4's wrapper function.
81619         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81620         rather than just in sh-util/configure.in, so that the
81621         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81622         same.
81623         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81624         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81625         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81626         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81627         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81628         Remove code that is now done by the newly-required macros.
81629         Append $(EXEEXT) to DF_PROG.
81630         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81631         Do not invoke or require the following here,
81632         since prereq.m4 or some gnulib .m4 now does this for us:
81633         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81634         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81635         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81636         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81637         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81638         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81639         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81640         AC_FUNC_OBSTACK.
81641         Do not replace the following functions, as this is now the job
81642         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81643         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81644         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81645         atexit getpass, strdup, getpagesize.
81646         Replace 'raise'.
81647         Do not check for the following functions, as this is now the job
81648         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81649         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81650         setregid.
81651         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81652         Check for sys/sysctl.h.
81653         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81654         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81655         of checking for ssize_t ourselves.
81656
81657         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81658         Require every macro that gnulib/modules/* suggests for us.
81659         (jm_PREREQ_ADDEXT): New macro.
81660         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81661         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81662
81663         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81664         (gl_PHYSMEM): Use it.
81665         Also check for `table' function.
81666         Check for new headers and functions.
81667         Add check for sys/sysmp.h.
81668         With suggestions from Kaveh Ghazi.
81669         Ignore headers that are present but cannot be compiled.  This
81670         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81671         C 5.4.
81672
81673 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81674
81675         Document merge from coreutils.
81676         * modules/userspec: Depend on posixver.
81677         * modules/strftime: Depend on tzset.
81678
81679 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81680
81681         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81682         rather than tab, after '#' in shell-script copyright notices.
81683         Suggested by Bruno Haible.
81684
81685 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81686
81687         * config/srclist-update: Use three spaces, rather than tab, after '#'
81688         in shell-script copyright notices.  Suggested by Bruno Haible.
81689         Remove unnecessary parenthesization in regular expression.
81690
81691 2003-08-15  Jim Meyering  <jim@meyering.net>
81692
81693         Merge from coreutils.
81694         * lib/xgethostname.c: Include <stdlib.h>.
81695         (xghostname): Don't exit for anything other than memory-related
81696         failure; just return NULL.
81697         * lib/userspec.c: Include "posixver.h".
81698         (parse_user_spec): Accept `.' as a separator only
81699         in pre-POSIX-200112 mode.
81700         * lib/strtoimax.c: Use #elif rather than #else #if.
81701         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81702         Remove function, now that we can rely on a working tzset function.
81703         [!_LIBC]: Ensure that the required autoconf test has been run.
81704         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81705         Use underlying_strftime for %r.
81706         * lib/sha.c: Merge in some clean-up and optimization changes from
81707         glibc.
81708         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81709         Ensure that it is a multiple of 64.
81710         Rearrange loop exit tests so as to avoid performing an
81711         additional fread after encountering an error or EOF.
81712         * lib/realloc.c: Update copyright date.
81713
81714 2003-08-15  Jim Meyering  <jim@meyering.net>
81715         and Paul Eggert  <eggert@twinsun.com>
81716
81717         Merge from coreutils.
81718         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81719         member but strut utmpx does not.  Needed for AIX 4.3.3.
81720         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81721
81722 2003-08-15  Jim Meyering  <jim@meyering.net>
81723         and Paul Eggert  <eggert@cs.ucla.edu>
81724
81725         Merges from coreutils, etc.
81726         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81727         Require gl_FUNC_TZSET_CLOBBER.
81728         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81729         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81730         members.
81731
81732 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81733
81734         Help the merge from coreutils.
81735         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81736         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81737         * m4/tzset.m4: Use it too.
81738
81739 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81740
81741         * modules/tzset: New file.
81742
81743 2003-08-14  Jim Meyering  <jim@meyering.net>
81744
81745         Merges from coreutils.
81746         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81747         variable names, rather than @FNMATCH_H@.
81748         * modules/alloca: Likewise for $(ALLOCA_H).
81749
81750         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81751         the three copies of the literal target, `fnmatch.h'.
81752         * modules/alloca (alloca.h): Likewise.
81753
81754 2003-08-14  Jim Meyering  <jim@meyering.net>
81755
81756         Merge from coreutils.
81757         * m4/tzset.m4: New file.
81758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81759         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81760         otherwise, AIX 5.1 systems would end up using the latter.
81761         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81762         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81763         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81764         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81765
81766 2003-08-14  Jim Meyering  <jim@meyering.net>
81767
81768         Merge from coreutils.
81769         * lib/obstack.h: Whitespace changes.
81770         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81771         and xcalloc return values.
81772         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81773         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81774         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81775         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81776         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81777         error from mntctl.
81778         Use mntctl's return value to drive the entry-processing loop, since
81779         we can't rely on the value of the vmt_length member in the last
81780         entry.  On some systems doing so could result in exhausting
81781         virtual memory.  Based in part on a patch from Mike Jetzer.
81782
81783 2003-08-14  Jim Meyering  <jim@meyering.net>
81784         and Paul Eggert  <eggert@twinsun.com>
81785
81786         Merges from coreutils, plus other fixes.
81787         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81788         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81789         for credits and details.  Thanks to Kaveh Ghazi for helping
81790         to keep these files in sync.
81791         (ARRAY_SIZE): Define it.
81792         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81793         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81794         (memcasecmp): Don't assume size_t fits in unsigned int.
81795         Remove casts and duplicate code.
81796         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81797         (memcpy): Remove definition.
81798         Merge in some clean-up and optimization changes from glibc.
81799         [BLOCKSIZE]: Move definition to top of file.
81800         Ensure that it is a multiple of 64.
81801         Rearrange loop exit tests so as to avoid performing an
81802         additional fread after encountering an error or EOF.
81803         * lib/md5.h (md5_uintptr): Define.
81804         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81805         return to the initial working directory.  Preserve errno
81806         for caller.
81807         * lib/idcache.c: Include "xalloc.h".
81808         (xmalloc, xrealloc): Remove decls.
81809         (getuser): Remove casts no longer required in C89.
81810         * lib/human.c: Include stdio.h, for sprintf.
81811         * lib/group-member.c: Include "xalloc.h".
81812         (xmalloc, xrealloc): Remove decls.
81813         (get_group_info): Remove casts no longer required in C89.
81814         * lib/getusershell.c (readname): Remove casts no longer required in
81815         C89.
81816         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81817         * lib/getline.c: Whitespace fix, from coreutils.
81818
81819 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81820
81821         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81822         Check for isascii.
81823
81824         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81825         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81826         Undo previous (whitespace-only) change.
81827
81828 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81829
81830         * lib/exclude.c: Include <ctype.h>
81831         (IN_CTYPE_DOMAIN): New macro.
81832         (is_space): New fn.
81833         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81834         and empty lines.
81835
81836         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81837         Undo previous (whitespace-only) change.
81838
81839 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81840
81841         * config/srclist-update: Change update back to the old behavior,
81842         leaving whitespace alone.  Use one 'sed' command rather than a
81843         pipeline.
81844         (fixlicense): Now a variable, not a function.
81845         (remove_trailing_blanks): Remove.
81846         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81847         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81848         Undo previous (whitespace-only) change.
81849
81850 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81851
81852         Merge from coreutils.
81853         * modules/euidaccess: Add lib_SOURCES, include for new
81854         file euidaccess.h
81855
81856 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81857
81858         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81859         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81860         Normalize leading white space and remove trailing white space.
81861
81862         Merge from coreutils
81863         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81864
81865         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81866         0.12.1.  These files are now being upgraded automatically by
81867         ../config/srclist-update.
81868
81869 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81870
81871         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81872         Normalize leading white space and remove trailing white space.
81873         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81874         notice, as per ../config/srclist-update.
81875
81876         Merge from coreutils.
81877         * lib/euidaccess.h: New file.
81878         * lib/euidaccess.c: Include it.
81879         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81880         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81881         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81882
81883 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81884
81885         * config/srclist-update: Add copyright notice.
81886         (remove_id_lines, remove_trailing_blanks): New constants.
81887         (fixfile): Use them to normalize spacing a bit in copied files.
81888         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81889         Normalize leading white space and remove trailing white space.
81890
81891         * config/texinfo.tex: Sync with texinfo.
81892
81893         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81894         strtoul.c from libc, to merge coreutils whitespace changes.
81895
81896         * config/srclist.txt: Get the following m4 files from gettext:
81897         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81898         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81899         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81900         wint_t.m4.
81901
81902 2003-08-12  Karl Berry  <karl@gnu.org>
81903
81904         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81905         been made.
81906
81907 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81908
81909         * modules/gnu-source, m4/gnu-source.m4:
81910         Remove; we're assuming Autoconf 2.54 or later now.
81911         Suggested by Bruno Haible.
81912         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81913
81914 2003-08-11  Bruno Haible  <bruno@clisp.org>
81915
81916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81917
81918 2003-08-11  Bruno Haible  <bruno@clisp.org>
81919
81920         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81921         (vasnprintf): Use it instead of wcslen.
81922
81923 2003-08-11  Bruno Haible  <bruno@clisp.org>
81924
81925         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81926         value to ensure that _Bool promotes to int. Use #define for _Bool when
81927         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81928
81929 2003-08-10  Karl Berry  <karl@gnu.org>
81930
81931         * lib/regex.h: update from libc (whitespace fix).
81932
81933 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81934
81935         Merge some files from coreutils.  These changes were
81936         originally made by Jim Meyering.
81937         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81938         many older Unixes require this.
81939         * lib/alloca.c (alloca): Remove cast to argument of free;
81940         no longer needed in C89.
81941         * lib/alloca_.h, regex.h: Fix white space to match
81942         what GNU indent does.
81943
81944 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81945
81946         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81947         apparently Emacs's Unicode mode got confused before my 2003-08-05
81948         checkin.
81949
81950 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81951
81952         * m4/extensions.m4: New file.
81953         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81954         Require gl_USE_SYSTEM_EXTENSIONS.
81955         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81956         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81957
81958 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81959
81960         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81961         * modules/extensions, modules/gnu-source: New files.
81962         * modules/timespec, modules/unlocked-io: Depend on extensions.
81963
81964 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81965
81966         * modules/restrict: New file.
81967         * MODULES.html.sh (func_all_modules): Add restrict.
81968         * modules/regex: Depend on restrict.
81969
81970 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81971
81972         * m4/restrict.m4: New file.
81973         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81974
81975 2003-08-07  Bruno Haible  <bruno@clisp.org>
81976
81977         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81978         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81979
81980 2003-08-07  Bruno Haible  <bruno@clisp.org>
81981
81982         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81983         makes the module 'getndelim2' compatible with the module 'getline'.
81984
81985 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81986
81987         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81988         byte with "\201" to avoid glitches when editing that source file
81989         with multi-gnome-terminal.
81990
81991 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81992
81993         * lib/bumpalloc.h: Remove.
81994
81995 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81996
81997         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81998         * modules/bumpalloc: Remove.
81999
82000 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82001
82002         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82003         GNU coding style.
82004
82005         Merge from coreutils.
82006         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82007         1. From glibc.
82008         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82009         from Karl Berry, implemented by Jim Meyering.
82010         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82011         from Dmitry V. Levin.
82012         Remove anachronistic cast of xrealloc.
82013         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82014         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82015         type. Otherwise, it wouldn't compile with at least /bin/cc on
82016         ymp-cray-unicos9.0.2.X.
82017         Combine two mostly-identical uses of alloca into one.
82018         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82019
82020 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82021
82022         [From Emacs.]
82023
82024         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82025         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82026         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82027         obsolete NLIST_NAME_UNION.
82028         [__GNU__]: Undef BSD and FSCALE.
82029         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82030
82031 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82032
82033         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82034         an enum type, so that it's guaranteed to promote to int.  See:
82035         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82036
82037 2003-08-03  Karl Berry  <karl@gnu.org>
82038
82039         * config/depcomp: update from automake.
82040
82041 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82042
82043         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82044         (strerror): Don't assume that a printable int fits in 14 bytes.
82045
82046 2003-07-31  Bruno Haible  <bruno@clisp.org>
82047
82048         * modules/getpass-gnu: New file.
82049         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82050
82051 2003-07-31  Bruno Haible  <bruno@clisp.org>
82052
82053         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82054
82055 2003-07-24  Karl Berry  <karl@gnu.org>
82056
82057         * config/missing: update from automake.
82058
82059 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82060             Bruno Haible  <bruno@clisp.org>
82061
82062         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82063         * lib/getline.c (getline, getdelim): Likewise.
82064         Remove _GNU_SOURCE define; now it's defined in config.h through
82065         m4/getline.m4.
82066
82067 2003-07-23  Karl Berry  <karl@gnu.org>
82068
82069         * config/config.sub: update from prep.
82070
82071 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82072
82073         * modules/xalloc (Depends-on): Add exitfail.
82074         * modules/xmemcoll: Likewise.
82075
82076 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82077
82078         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82079         over-parenthesization in macros.
82080
82081         Sync with coreutils.
82082
82083         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82084         required by C99.
82085
82086         Use `exit_failure' for xalloc and xmemcoll instead of their own
82087         private exit-failure variables.
82088         * lib/xalloc.h (xalloc_exit_failure): Remove.
82089         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82090         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82091         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82092         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82093         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82094
82095 2003-07-20  Jim Meyering  <jim@meyering.net>
82096
82097         * modules/closeout (Depends-on): Add exitfail.
82098         Suggestion from Bruno Haible.
82099
82100 2003-07-19  Karl Berry  <karl@gnu.org>
82101
82102         * config/config.sub: update from prep.
82103
82104 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82105
82106         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82107         Remove.
82108         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82109         to test that it can stand by itself.  Include "exitfail.h".
82110         Clients should set exit_failure instead.
82111         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82112
82113 2003-07-18  Bruno Haible  <bruno@clisp.org>
82114
82115         * modules/getndelim2: New file.
82116         * modules/getline: Share files with module getndelim2.
82117         * modules/getnline: Depend on getndelim2 instead of sharing files with
82118         it. Add getnline.c to lib_SOURCES.
82119         * MODULES.html.sh (func_all_modules): Add getndelim2.
82120
82121 2003-07-18  Bruno Haible  <bruno@clisp.org>
82122
82123         * m4/getndelim2.m4: New file.
82124         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82125         invoke gl_PREREQ_GETNDELIM2.
82126         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82127         gl_PREREQ_GETNDELIM2.
82128         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82129         gl_GETNDELIM2.
82130
82131 2003-07-18  Bruno Haible  <bruno@clisp.org>
82132
82133         * lib/getndelim2.h: New file.
82134         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82135         getndelim2.h.
82136         (getndelim2): Make non-static. Change return type to ssize_t.
82137         * lib/getline.h: Change argument names.
82138         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82139         * lib/getnline.c: Include getndelim2.h.
82140
82141 2003-07-18  Andreas Schwab  <schwab@suse.de>
82142
82143         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82144
82145 2003-07-17  Karl Berry  <karl@gnu.org>
82146
82147         * config/config.sub: update from prep.
82148
82149 2003-07-17  Bruno Haible  <bruno@clisp.org>
82150
82151         * modules/getnline: New file.
82152         * modules/getline: Add lib/getndelim2.c to source file list.
82153         * MODULES.html.sh (func_all_modules): Add getnline.
82154
82155 2003-07-17  Bruno Haible  <bruno@clisp.org>
82156
82157         * m4/getnline.m4: New file.
82158
82159 2003-07-17  Bruno Haible  <bruno@clisp.org>
82160
82161         * m4/Makefile.am.in: Remove file.
82162         * m4/Makefile.am: Remove file.
82163         * m4/Makefile.in: Remove file.
82164
82165 2003-07-17  Bruno Haible  <bruno@clisp.org>
82166
82167         * lib/getnline.h: New file.
82168         * lib/getnline.c: New file.
82169         * lib/getndelim2.c: New file, extracted from getline.c.
82170         (getndelim2): Renamed from getdelim2, with added nmax argument.
82171         * lib/getline.c: Include getndelim2.c.
82172         (getdelim2): Moved out to getndelim2.c.
82173         (getline, getdelim): Update.
82174
82175 2003-07-17  Bruno Haible  <bruno@clisp.org>
82176
82177         * lib/Makefile.am: Remove file.
82178         * lib/Makefile.in: Remove file.
82179
82180 2003-07-17  Bruno Haible  <bruno@clisp.org>
82181
82182         * configure.in: Remove file.
82183         * Makefile.in: Remove file.
82184
82185 2003-07-17  Bruno Haible  <bruno@clisp.org>
82186
82187         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82188
82189 2003-07-16  Karl Berry  <karl@gnu.org>
82190
82191         * config/srclist-update: was running fixlicense twice, which caused
82192                 texinfo.tex to be nullified for some reason.  Simplify,
82193                 $gplsrc is no longer needed as far as I can see?
82194
82195 2003-07-16  Jim Meyering  <jim@meyering.net>
82196
82197         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82198
82199 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82200
82201         * config/srclist.txt: Get the following files from gettext-runtime/intl
82202         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82203         ref-del.sin.  From Bruno Haible.
82204         * config/srclist-update (fixfile): Change grep pattern again, since the
82205         previous fix didn't work (there was another trailing $).  Use
82206         '[$]' to escape the $s.
82207
82208 2003-07-15  Karl Berry  <karl@gnu.org>
82209
82210         * lib/vasnprintf.c: update from gettext.
82211
82212 2003-07-15  Karl Berry  <karl@gnu.org>
82213
82214         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82215         gets expanded when surrounded by '$'.
82216
82217 2003-07-15  Jim Meyering  <jim@meyering.net>
82218
82219         * modules/save-cwd: Don't depend on error.  From Derek Price.
82220
82221 2003-07-15  Jim Meyering  <jim@meyering.net>
82222
82223         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82224
82225 2003-07-14  Simon Josefsson  <jas@extundo.com>
82226
82227         * modules/mempcpy: New file.
82228         * MODULES.html.sh (func_all_modules): Add mempcpy.
82229
82230 2003-07-14  Simon Josefsson  <jas@extundo.com>
82231
82232         * m4/mempcpy.m4: New file.
82233
82234 2003-07-14  Simon Josefsson  <jas@extundo.com>
82235
82236         * lib/mempcpy.h: New file.
82237         * lib/mempcpy.c: New file.
82238
82239 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82240
82241         * modules/getdate, modules/posixtm: Depend on mktime.
82242
82243 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82244
82245         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82246         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82247         unicodeio.c, unicodeio.h, unlocked-io.h:
82248         Switch from LGPL to GPL.
82249
82250 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82251
82252         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82253         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82254         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82255         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82256         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82257         updated automatically by ../config/srclist-update.  This changes
82258         their license from LPGL to GPL.
82259
82260 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82261
82262         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82263         assumed to refer to the root of the most recent stable gettext version.
82264         * config/srclistvars.sh: Add defaults for eggert.
82265         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82266         Match "This program" as well as "The program".  This is needed
82267         for gettext.
82268
82269 2003-07-14  Jim Meyering  <jim@meyering.net>
82270
82271         Don't emit diagnostics.  Let callers do that.
82272         * lib/save-cwd.c: Don't include "error.h".
82273         (save_cwd): Don't call error.  Ensure that errno is valid
82274         when returning nonzero.
82275
82276         * lib/save-cwd.h (restore_cwd): Update prototype.
82277         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82278         Simplify.  Don't call error upon failure.  Let callers do that.
82279         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82280         when auditing is enabled.  But don't bother updating the #if.
82281
82282 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82283
82284         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82285         it breaks C++ compilation.
82286         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82287
82288 2003-07-10  Simon Josefsson  <jas@extundo.com>
82289
82290         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82291
82292 2003-07-10  Jim Meyering  <jim@meyering.net>
82293
82294         * m4/clock_time.m4: Remove trailing blank.
82295         * m4/intmax_t.m4: Likewise.
82296
82297 2003-07-10  Jim Meyering  <jim@meyering.net>
82298
82299         * lib/vasnprintf.c: Remove trailing blanks.
82300         Make cpp indentation consistent.
82301
82302 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82303
82304         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82305         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82306         Switch from LGPL to GPL.
82307
82308 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82309
82310         * config/srclist.txt: Sort sublists.  Add
82311         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82312         that differ from gnulib for one reason or another; we'd like this list
82313         to be smaller but for now let's document what we have.
82314
82315 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82316
82317         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82318         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82319         and sweeter "eval x=$x".
82320         * config/srclist.txt: Get lib/argp* from glibc.
82321
82322 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82323
82324         * lib/mktime.c: Fix some boundary cases and remove need for floating
82325         point.
82326
82327         Issue a compile-time diagnostic if time_t is floating point, or if
82328         two's complement arithmetic is not in effect, or if arithmetic
82329         right shift does not propagate the sign.  These assumptions were
82330         all in the original code but they weren't checked.
82331
82332         (TIME_T_MIDPOINT, verify): New macros.
82333         (__isleap): Remove; it has integer overflow problems.
82334         (leapyear): New function, without those problems.
82335         (ydhms_tm_diff): Remove; splitting into two parts.
82336         (ydhms_diff): New function, containing the arithmetic part of
82337         the old ydhms_tm_diff function.  Issue a compile-time
82338         diagnostic if we are not using C99 integer division.
82339         Avoid casts when possible.
82340         (guess_time_tm): New function, containing the checking part of
82341         the old ydhms_tm_diff function.  Return the new value, rather than
82342         the difference between it and the old.  Accept a new argument T
82343         so that *T specifies the old value.  Check for overflow in the result.
82344
82345         (__mktime_internal): Use a time_t offset, not a long int offset.
82346         This undoes the 2003-06-04 change, which is no longer needed now
82347         that we have better overflow checking.
82348         (localtime_offset): Likewise.
82349
82350         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82351         and long are 64-bit but int is only 32-bit.
82352         (ydhms_diff): Use long int to store year1 and yday1.
82353         Issue a compile-time diagnostic if long int is not wide enough.
82354
82355         (__mktime_internal): Use long int to store adjusted year and yday.
82356         Use plain C rather than preprocessor commands, if that doesn't
82357         affect efficiency.
82358         Check for overflow (and try to repair) after each probe
82359         rather than checking only at the very end.  This avoids some bugs
82360         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82361         does not equal GMT offset at maximum time).
82362         Use integer to check for overflow rather than floating point; this
82363         is more portable to non-IEEE hosts, and is a tad faster.
82364         When we detect that we are oscillating between two values,
82365         don't check whether tm_isdst has the requested value, since
82366         we already know the answer.  When tm_isdst has the wrong value,
82367         use a different heuristic to find the right one, based on the
82368         extreme values actually observed in practice in tz2003a,
82369         rather than the (overly optimistic) "previous 3 calendar quarters".
82370
82371         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82372         "T const" to accommodate glibc style.
82373         (check_result): Use less-confusing report format.  "long" -> "long int.
82374         (main): Likewise.
82375         Don't loop if the iteration overflows time_t.
82376         Allow a negative step in the iteration.
82377
82378 2003-07-06  Karl Berry  <karl@gnu.org>
82379
82380         * config/depcomp: update from automake.
82381         * config/config.sub: update from prep.
82382
82383 2003-07-03  Karl Berry  <karl@gnu.org>
82384
82385         * config/config.guess: update from prep.
82386
82387 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82388
82389         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82390         xreadlink.c now includes it unconditionally.
82391
82392 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82395         having it depend on HAVE_SYS_TYPES_H.
82396
82397 2003-07-01  Bruno Haible  <bruno@clisp.org>
82398
82399         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82400         <sys/types.h> should be sufficient.
82401         Reported by Paul Eggert.
82402
82403 2003-06-26  Karl Berry  <karl@gnu.org>
82404
82405         * config/depcomp: update from automake.
82406
82407 2003-06-26  Bruno Haible  <bruno@clisp.org>
82408
82409         * modules/human: Depend on module stdbool.
82410
82411 2003-06-25  Bruno Haible  <bruno@clisp.org>
82412
82413         * modules/readlink: New file.
82414         * modules/xreadlink: Depend on it.
82415         * MODULES.html.sh (func_all_modules): Add readlink.
82416
82417 2003-06-25  Bruno Haible  <bruno@clisp.org>
82418
82419         * m4/readlink.m4: New file.
82420
82421 2003-06-25  Bruno Haible  <bruno@clisp.org>
82422
82423         * lib/readlink.c: New file.
82424
82425 2003-06-22  Karl Berry  <karl@gnu.org>
82426
82427         * config/srclist.txt: update mkinstalldirs from automake.
82428         * config/mkinstalldirs: update.
82429
82430 2003-06-22  Bruno Haible  <bruno@clisp.org>
82431
82432         Portability to mingw32.
82433         * m4/ssize_t.m4: New file, from GNU gettext.
82434         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82435         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82436
82437 2003-06-22  Bruno Haible  <bruno@clisp.org>
82438
82439         * modules/safe-read: Add m4/ssize_t.m4.
82440         * modules/xreadlink: Add m4/ssize_t.m4.
82441
82442 2003-06-20  Bruno Haible  <bruno@clisp.org>
82443
82444         Assume C89, so PARAMS isn't needed.
82445         * lib/unicodeio.h (PARAMS): Remove.
82446         * lib/unicodeio.c: Don't use PARAMS.
82447
82448 2003-06-18  Karl Berry  <karl@gnu.org>
82449
82450         * config/config.{guess,sub}: update from prep.
82451
82452 2003-06-18  Jim Meyering  <jim@meyering.net>
82453
82454         Merge changes from coreutils.
82455         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82456         Remove explicit declarations of xmalloc and realloc.
82457         Include xalloc.h.
82458         (read_utmp): Remove anachronistic cast of xmalloc.
82459
82460 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82461
82462         Assume C89, so PARAMS isn't needed.
82463         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82464         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82465         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82466         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82467         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82468         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82469         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82470         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82471         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82472         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82473         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82474         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82475         no longer needed. Anyway, config.h should always be included before any
82476         other file.
82477
82478 2003-06-11  Simon Josefsson  <jas@extundo.com>
82479
82480         * modules/sysexits: New file.
82481         * MODULES.html.sh (func_all_modules): Add sysexits.
82482
82483 2003-06-11  Simon Josefsson  <jas@extundo.com>
82484
82485         * lib/sysexit_.h: New file.
82486
82487 2003-06-11  Derek Price  <derek@ximbiot.com>
82488
82489         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82490         necessary.
82491
82492 2003-06-11  Bruno Haible  <bruno@clisp.org>
82493
82494         * m4/sysexits.m4: New file.
82495
82496 2003-06-10  Simon Josefsson  <jas@extundo.com>
82497
82498         * lib/argp.h: New file, from glibc.
82499         * lib/argp-ba.c: New file, from glibc.
82500         * lib/argp-eexst.c: New file, from glibc.
82501         * lib/argp-fmtstream.c: New file, from glibc.
82502         * lib/argp-fmtstream.h: New file, from glibc.
82503         * lib/argp-fs-xinl.c: New file, from glibc.
82504         * lib/argp-help.c: New file, from glibc.
82505         * lib/argp-namefrob.h: New file, from glibc.
82506         * lib/argp-parse.c: New file, from glibc.
82507         * lib/argp-pv.c: New file, from glibc.
82508         * lib/argp-pvh.c: New file, from glibc.
82509         * lib/argp-xinl.c: New file, from glibc.
82510
82511 2003-06-10  Simon Josefsson  <jas@extundo.com>
82512
82513         * modules/strchrnul: New file.
82514
82515 2003-06-10  Simon Josefsson  <jas@extundo.com>
82516
82517         * modules/argp: New file.
82518
82519 2003-06-10  Simon Josefsson  <jas@extundo.com>
82520
82521         * m4/strchrnul.m4: New file.
82522
82523 2003-06-10  Simon Josefsson  <jas@extundo.com>
82524
82525         * lib/strchrnul.h: New file.
82526         * lib/strchrnul.c: New file.
82527
82528 2003-06-10  Bruno Haible  <bruno@clisp.org>
82529
82530         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82531
82532 2003-06-07  Karl Berry  <karl@gnu.org>
82533
82534         * config/config.{guess,sub}: update from prep.
82535
82536 2003-06-07  Jim Meyering  <jim@meyering.net>
82537
82538         * modules/strtod: Use $(...) notation, not @...@ for
82539         AC_REPLACE'd variables.
82540         * modules/localcharset: Likewise.
82541
82542 2003-06-07  Jim Meyering  <jim@meyering.net>
82543
82544         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82545         in place of my name in the copyright comment.
82546         Remove definition and uses of __P.
82547
82548         From coreutils.
82549         * lib/stat.c: Don't declare xmalloc explicitly.
82550         Instead, include "xalloc.h".
82551         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82552         xrealloc, and xcalloc return values.
82553         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82554         Improve comment.
82555         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82556
82557 2003-06-07  Bruno Haible  <bruno@clisp.org>
82558
82559         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82560         avoid AC_CONFIG_LINKS.
82561         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82562         fnmatch.h, to avoid AC_CONFIG_LINKS.
82563         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82564
82565 2003-06-07  Bruno Haible  <bruno@clisp.org>
82566
82567         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82568         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82569         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82570         directory.
82571         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82572         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82573         directory.
82574
82575 2003-06-06  Jim Meyering  <jim@meyering.net>
82576
82577         Merge from coreutils.
82578         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82579         Consolidate declarations and initializations of *_base* locals.
82580
82581         Merge from coreutils.
82582         This avoids a core dump on systems without GNU putenv,
82583         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82584         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82585         (unsetenv): New static function, from GNU libc.
82586         (rpl_putenv): Use it.
82587
82588         * lib/modechange.c: Remove trailing blanks.
82589
82590         Merge from coreutils.
82591         * lib/fsusage.c: Remove declaration of statfs.
82592         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82593
82594         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82595
82596 2003-06-06  Jim Meyering  <jim@meyering.net>
82597
82598         * lib/stdbool_.h: Renamed from stdbool.h.in.
82599
82600 2003-06-06  Jim Meyering  <jim@meyering.net>
82601             Bruno Haible  <bruno@clisp.org>
82602
82603         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82604         Adjust Makefile.am snippet not to redirect directly to target.
82605         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82606
82607 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82608
82609         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82610         mismatch, look in future quarters as well as past.  This fixes a
82611         bug when processing fall-backwards gaps immediately after a long
82612         period of daylight-saving time.
82613
82614         * lib/mktime.c: Assume freestanding C89 or better.
82615         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82616         (__P): Remove; not used.
82617         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82618         (mktime, not_equal_tm, print_tm, check_result,
82619         main): Use prototypes.  Use const * where appropriate.
82620         (main): Fix typo in testing code that uncovered by above changes.
82621         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82622
82623 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82624
82625         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82626         locale.h, localeconv.  This merges changes from coreutils.
82627
82628         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82629         It can be removed after the next Autoconf is released.
82630         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82631         needed.
82632
82633 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82634
82635         * lib/mktime.c: Fix Debian bug 177940
82636         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82637         (localtime_offset): Now long int, not time_t, because we want it
82638         to be guaranteed to be signed.  All uses changed.
82639         (__mktime_internal): If overflow would occur when adding offset,
82640         don't add it.
82641
82642         Merge 'human' changes from coreutils.  Rewrite to support
82643         locale-specific notations like thousands separators.
82644         * lib/human.c: Simplify authorship notice.
82645         Include human.h immediately after config.h.
82646         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82647         <limits.h>: Do not include, since human.h does.
82648         (SIZE_MAX, UINTMAX_MAX): New macros.
82649         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82650         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82651         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82652         (power_letter): Renamed from suffixes.
82653         (generate_suffix_backwards): Remove.
82654         (adjust_value): Now takes int style (because of human.h changes)
82655         and long double value (for greater precision on some platforms).
82656         (group_number): New function.
82657         (human_readable): Use it.  Use integer options, not enum.
82658         Put the options before the sizes in the arg list.
82659         Support all the new options.
82660         The old human_readable function has been removed;
82661         use inttostr.h instead.
82662         (human_readable, default_block_size, humblock):
82663         Use uintmax_t, not int, for block sizes.
82664         (human_readable_inexact, block_size_types): Remove.
82665         (block_size_opts): New constant.
82666         (human_options): Renamed from human_block_size, with new signature
82667         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82668         * lib/human.h: Add copyright and authorship notice.
82669         Include <limits.h> and <stdbool.h> unconditionally.
82670         (PARAMS): Remove.  All uses removed.
82671         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82672         (enum human_inexact_style): Remove tag; now a nameless enum.
82673         (human_floor, human_ceiling, human_round_to_even): Now have
82674         values 2, 0, 1 rather than -1, 1, 0.
82675         (human_group_digits, human_suppress_point_zero, human_autoscale,
82676         human_base_1024, human_SI, human_B): New constants.
82677         (human_readable_inexact, human_block_size): Remove.
82678         (human_readable): Size args are now uintmax_t, not int.
82679         (human_options): New decl.
82680
82681         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82682         unnecessary now that we assume C89 or better.  This change
82683         imported from coreutils.
82684
82685         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82686         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82687         in the 2003-05-30 sync from glibc.
82688
82689         .h files should stand alone, but we shouldn't include <sys/types.h>
82690         if we can get away with just <stddef.h>.
82691
82692         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82693         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82694         rather than <sys/types.h>, as we merely need size_t.
82695         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82696         to get size_t.
82697         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82698         Include <stdio.h>, to get FILE.
82699         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82700         memcasecmp.h has included <stddef.h> and all we need is size_t.
82701         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82702         our interface, instead of including <sys/types.h>
82703
82704 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82705
82706         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82707         now, as glibc mktime is buggy on non-glibc systems.
82708
82709 2003-06-03  Karl Berry  <karl@gnu.org>
82710
82711         * config/config.sub: update from prep.
82712
82713 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82714
82715         [from coreutils]
82716         Fix some minor time-related bugs with POSIX time arguments.
82717         Some valid time stamps were being rejected (notably -1, and
82718         time stamps before 1900 on 64-bit hosts).  And some invalid
82719         time stamps were being accepted, e.g. September 31.
82720
82721         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82722         that we can return (time_t) -1 successfully.
82723         * lib/posixtm.c: Likewise.
82724         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82725         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82726         (t): Remove static var.
82727         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82728         of static var.  All uses changed.
82729         (year): Do not reject years before 1900; they can occur with
82730         64-bit time_t.
82731         (posix_time_parse): Do not check for out-of-range components;
82732         that is now the caller's responsibility, since our checks were
82733         only approximations.
82734         (posixtime): Use mktime to check for out-of-range components,
82735         since it knows them exactly.
82736         If mktime returns (time_t) -1, check whether an error actually occurred
82737         by invoking localtime on -1.
82738         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82739         posixtime failures better.
82740         Improve the test data (in comments only).
82741
82742 2003-06-02  Karl Berry  <karl@gnu.org>
82743
82744         * config/mkinstalldirs (version): new variable.
82745         (--version): new option.
82746         (usage): improve message.
82747
82748 2003-05-30  Karl Berry  <karl@gnu.org>
82749
82750         * lib/mktime.c: update from libc.
82751
82752 2003-05-30  Bruno Haible  <bruno@clisp.org>
82753
82754         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82755         * config/config.rpath: Upgrade to gettext-0.12.1.
82756
82757 2003-05-30  Bruno Haible  <bruno@clisp.org>
82758
82759         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82760         * m4/nls.m4: New file, from gettext-0.12.1.
82761         * m4/po.m4: New file, from gettext-0.12.1.
82762         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82763
82764 2003-05-30  Bruno Haible  <bruno@clisp.org>
82765
82766         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82767         * lib/localcharset.h: Likewise.
82768         * lib/localcharset.c: Likewise.
82769
82770 2003-05-29  Karl Berry  <karl@gnu.org>
82771
82772         * config/config.rpath: update from gettext.
82773
82774 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82775
82776         Assume the headers required for C89 freestanding compilers.
82777         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82778         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82779         * m4/human.m4 (gl_HUMAN): Likewise.
82780         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82781         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82782         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82783         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82784         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82785         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82786
82787 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82788
82789         Assume the headers required for C89 freestanding compilers.
82790         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82791         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82792         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82793         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82794         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82795         define, since <limits.h> is guaranteed to do that.
82796         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82797         * lib/exclude.c: Include <stdbool.h> unconditionally.
82798         * lib/tempname.c: Include <stddef.h> unconditionally.
82799         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82800         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82801         <stddef.h> does that.
82802         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82803         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82804         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82805         needed.
82806         * lib/xstrtol.c: Likewise.
82807         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82808         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82809
82810         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82811         warnings on some platforms.
82812
82813         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82814         arbitrarily.
82815
82816 2003-05-26  Jim Meyering  <jim@meyering.net>
82817
82818         Merge in a change from coreutils:
82819         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82820         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82821         that condition, rather than `-1' which is slightly misleading.
82822         Change the name of the cache variable to have the gl_ prefix.
82823         Prompted by a patch from Richard Dawe for DJGPP.
82824
82825 2003-05-24  Karl Berry  <karl@gnu.org>
82826
82827         * config/config.guess: update from prep.
82828
82829 2003-05-22  Karl Berry  <karl@gnu.org>
82830
82831         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82832
82833 2003-05-20  Karl Berry  <karl@gnu.org>
82834
82835         * config/config.guess: update from prep.
82836
82837 2003-05-18  Karl Berry  <karl@gnu.org>
82838
82839         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82840         might actually be set by the user.
82841
82842         * config/depcomp, install-sh, mdate-sh: update from automake.
82843
82844 2003-05-17  Bruno Haible  <bruno@clisp.org>
82845
82846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82847         invalid expansion for AC_EGREP_CPP.
82848         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82849         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82850         Suggested by Akim Demaille <akim@epita.fr> in
82851         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82852
82853 2003-05-12  Jim Meyering  <jim@meyering.net>
82854
82855         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82856         the space-padded-by-default conversion specifiers, %e, %k, %l.
82857
82858 2003-05-12  Bruno Haible  <bruno@clisp.org>
82859
82860         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82861         the string is longer than 4 KB.
82862
82863 2003-05-11  Karl Berry  <karl@gnu.org>
82864
82865         * config/config.{guess,sub}: update from prep.
82866
82867 2003-05-09  Bruno Haible  <bruno@clisp.org>
82868
82869         * modules/error: Add m4/strerror_r.m4 to file list.
82870
82871 2003-05-03  Bruno Haible  <bruno@clisp.org>
82872
82873         Upgrade to Unicode-4.0.
82874         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82875         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82876         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82877         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82878         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82879         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82880         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82881         Change width of U+E0100..U+E01EF from 1 to 0.
82882
82883 2003-04-25  Jim Meyering  <jim@meyering.net>
82884
82885         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82886         of type size_t, not int.
82887
82888 2003-04-25  Bruno Haible  <bruno@clisp.org>
82889
82890         * lib/copy-file.c: Include <stddef.h>, for size_t.
82891
82892 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82893
82894         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82895         code which expansion is under static control.  Patch imported from
82896         Akim Demaille's patch to Bison; see
82897         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82898
82899 2003-04-14  Bruno Haible  <bruno@clisp.org>
82900
82901         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82902
82903 2003-04-11  Jim Meyering  <jim@meyering.net>
82904
82905         Merge changes from Coreutils.
82906
82907         2003-03-22  Jim Meyering  <jim@meyering.net>
82908
82909         * lib/strftime.c (widen): Cast alloca return value to proper type.
82910
82911         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82912
82913         From GNU libc.
82914         * lib/strftime.c (my_strftime): Handle very large width
82915         specifications for numeric values correctly.  Improve checks for
82916         overflow.
82917
82918         2003-01-19  Jim Meyering  <jim@meyering.net>
82919
82920         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82921         definitions.
82922         (nl_get_alt_digit) [! defined my_strftime]: Define.
82923         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82924         _nl_get_alt_digit and _nl_get_walt_digit.
82925
82926         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82927         libc. These changes have no effect outside of _LIBC.
82928
82929 2003-04-10  Bruno Haible  <bruno@clisp.org>
82930
82931         * modules/findprog: New file.
82932         * MODULES.html.sh (func_all_modules): Add it.
82933
82934 2003-04-10  Bruno Haible  <bruno@clisp.org>
82935
82936         * m4/findprog.m4: New file.
82937         * m4/eaccess.m4: New file.
82938
82939 2003-04-10  Bruno Haible  <bruno@clisp.org>
82940
82941         * lib/findprog.h: New file, from GNU gettext.
82942         * lib/findprog.c: New file, from GNU gettext.
82943
82944 2003-04-05  Jim Meyering  <jim@meyering.net>
82945
82946         Merge changes from Coreutils.
82947
82948         * lib/exclude.h (PARAMS): Remove definition and uses.
82949         * lib/exclude.c: Remove uses of `PARAMS'.
82950
82951         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82952         Add test-cases for DOS filenames. Declare program_name.
82953         (main): Set up program_name.  Patch by Rich Dawe.
82954
82955         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82956         error from mntctl.
82957         Use mntctl's return value to drive the entry-processing loop, since
82958         we can't rely on the value of the vmt_length member in the last
82959         entry.  On some systems doing so could result in exhausting
82960         virtual memory.  Based in part on a patch from Mike Jetzer.
82961
82962 2003-04-04  Bruno Haible  <bruno@clisp.org>
82963
82964         * modules/linebreak: New file.
82965         * MODULES.html.sh (func_all_modules): Add it.
82966
82967 2003-04-04  Bruno Haible  <bruno@clisp.org>
82968
82969         * m4/linebreak.m4: New file.
82970
82971 2003-04-04  Bruno Haible  <bruno@clisp.org>
82972
82973         * lib/linebreak.h: New file, from GNU gettext.
82974         * lib/linebreak.c: New file, from GNU gettext with slight
82975         modifications.
82976         * lib/lbrkprop.h: New file, from GNU gettext.
82977
82978 2003-04-03  Bruno Haible  <bruno@clisp.org>
82979
82980         * modules/utf8-ucs4: New file.
82981         * modules/utf16-ucs4: New file.
82982         * modules/ucs4-utf8: New file.
82983         * modules/ucs4-utf16: New file.
82984         * MODULES.html.sh (func_all_modules): Add them.
82985
82986 2003-04-03  Bruno Haible  <bruno@clisp.org>
82987
82988         * m4/utf-ucs4.m4: New file.
82989         * m4/ucs4-utf.m4: New file.
82990
82991 2003-04-03  Bruno Haible  <bruno@clisp.org>
82992
82993         * lib/utf8-ucs4.h: New file, from GNU gettext.
82994         * lib/utf16-ucs4.h: New file, from GNU gettext.
82995         * lib/ucs4-utf8.h: New file, from GNU gettext.
82996         * lib/ucs4-utf16.h: New file, from GNU gettext.
82997
82998 2003-04-02  Bruno Haible  <bruno@clisp.org>
82999
83000         * modules/binary-io: New file.
83001         * MODULES.html.sh (func_all_modules): Add it.
83002
83003 2003-04-02  Bruno Haible  <bruno@clisp.org>
83004
83005         * lib/binary-io.h: New file, from GNU gettext.
83006
83007 2003-04-01  Bruno Haible  <bruno@clisp.org>
83008
83009         * modules/pathname: New file.
83010         * MODULES.html.sh (func_all_modules): Add it.
83011
83012 2003-04-01  Bruno Haible  <bruno@clisp.org>
83013
83014         * lib/pathname.h: New file, from GNU gettext.
83015         * lib/concatpath.c: New file, from GNU gettext.
83016
83017 2003-03-30  Bruno Haible  <bruno@clisp.org>
83018
83019         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83020
83021 2003-03-30  Bruno Haible  <bruno@clisp.org>
83022
83023         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83024         function chown() doesn't exist.
83025
83026 2003-03-28  Bruno Haible  <bruno@clisp.org>
83027
83028         * modules/copy-file: New file.
83029         * MODULES.html.sh (func_all_modules): Add it.
83030
83031 2003-03-28  Bruno Haible  <bruno@clisp.org>
83032
83033         * m4/copy-file.m4: New file.
83034
83035 2003-03-28  Bruno Haible  <bruno@clisp.org>
83036
83037         * lib/copy-file.h: New file, from GNU gettext.
83038         * lib/copy-file.c: New file, from GNU gettext.
83039
83040 2003-03-18  Jim Meyering  <jim@meyering.net>
83041
83042         * lib/quote.c (quote_n): Fix typo in comment.
83043
83044 2003-03-18  Bruno Haible  <bruno@clisp.org>
83045
83046         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83047         checking.
83048         * m4/onceonly_2_57.m4: Likewise.
83049
83050 2003-03-17  Bruno Haible  <bruno@clisp.org>
83051
83052         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83053         (m4_quote): Remove macro.
83054         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83055
83056 2003-03-14  Jim Meyering  <jim@meyering.net>
83057
83058         Merge changes from Coreutils.
83059         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83060         to be const, in order to avoid warnings.
83061         (obstack_room): Likewise.
83062         (obstack_empty_p): Likewise.
83063
83064 2003-03-14  Bruno Haible  <bruno@clisp.org>
83065
83066         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83067         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83068
83069 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83070
83071         Merge changes from Bison.
83072         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83073         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83074         when compiling Bison 1.875's `bitset bset = obstack_alloc
83075         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83076         * lib/hash.c: Include <stdbool.h> unconditionally.
83077
83078 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83079
83080         * m4/onceonly.m4 (m4_quote): New macro.
83081         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83082         Quote AC_FOREACH variable-expansions properly.
83083
83084 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83085
83086         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83087
83088 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83089
83090         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83091         Reported by Bruce Becker; see:
83092         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83093
83094 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83095             Bruno Haible  <bruno@clisp.org>
83096
83097         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83098         Reported by John Hughes, see
83099         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83100
83101 2003-02-20  Bruno Haible  <bruno@clisp.org>
83102
83103         * MODULES.html.sh (func_all_modules): Add poll.
83104
83105 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83106
83107         * modules/poll: New file.
83108
83109 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83110
83111         * lib/poll_.h: New file.
83112         * lib/poll.c: New file.
83113
83114 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83115
83116         * m4/poll.m4: New file.
83117
83118 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83119
83120         * modules/mathl: New file.
83121
83122 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83123
83124         * lib/mathl.h: New file.
83125         * lib/acosl.c: New file.
83126         * lib/asinl.c: New file.
83127         * lib/atanl.c: New file.
83128         * lib/ceill.c: New file.
83129         * lib/cosl.c: New file.
83130         * lib/expl.c: New file.
83131         * lib/floorl.c: New file.
83132         * lib/frexpl.c: New file.
83133         * lib/ldexpl.c: New file.
83134         * lib/logl.c: New file.
83135         * lib/sincosl.c: New file.
83136         * lib/sinl.c: New file.
83137         * lib/sqrtl.c: New file.
83138         * lib/tanl.c: New file.
83139         * lib/trigl.c: New file.
83140         * lib/trigl.h: New file.
83141
83142 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83143
83144         * m4/mathl.m4: New file.
83145
83146 2003-02-18  Bruno Haible  <bruno@clisp.org>
83147
83148         * MODULES.html.sh (func_all_modules): Add mathl.
83149
83150 2003-02-17  Bruno Haible  <bruno@clisp.org>
83151
83152         * modules/mkdtemp: New module.
83153         * MODULES.html.sh (func_all_modules): Add it.
83154
83155 2003-02-17  Bruno Haible  <bruno@clisp.org>
83156
83157         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83158
83159 2003-02-17  Bruno Haible  <bruno@clisp.org>
83160
83161         * lib/mkdtemp.h: New file, from GNU gettext.
83162         * lib/mkdtemp.c: New file, from GNU gettext.
83163
83164 2003-02-02  Jim Meyering  <jim@meyering.net>
83165
83166         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83167         e.g. glibc-2.2.93.
83168
83169 2003-01-31  Bruno Haible  <bruno@clisp.org>
83170
83171         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83172         'rpl_rename'.
83173         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83174         'rpl_strnlen'.
83175         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83176         'rpl_strtod'.
83177         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83178         'rpl_utime'.
83179
83180 2003-01-31  Bruno Haible  <bruno@clisp.org>
83181
83182         * lib/rename.c: #undef rename before defining rpl_rename.
83183         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83184
83185 2003-01-30  Bruno Haible  <bruno@clisp.org>
83186
83187         * modules/vasnprintf, modules/vasprintf: New modules.
83188         * MODULES.html.sh (func_all_modules): Add them.
83189
83190 2003-01-30  Bruno Haible  <bruno@clisp.org>
83191
83192         * m4/signed.m4: New file, from GNU gettext.
83193         * m4/longdouble.m4: New file, from GNU gettext.
83194         * m4/wchar_t.m4: New file, from GNU gettext.
83195         * m4/wint_t.m4: New file, from GNU gettext.
83196         * m4/vasnprintf.m4: New file.
83197         * m4/vasprintf.m4: New file.
83198
83199 2003-01-30  Bruno Haible  <bruno@clisp.org>
83200
83201         * lib/printf-args.h: New file, from GNU gettext.
83202         * lib/printf-args.c: New file, from GNU gettext.
83203         * lib/printf-parse.h: New file, from GNU gettext.
83204         * lib/printf-parse.c: New file, from GNU gettext.
83205         * lib/vasnprintf.h: New file, from GNU gettext.
83206         * lib/vasnprintf.c: New file, from GNU gettext.
83207         * lib/asnprintf.c: New file, from GNU gettext.
83208         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83209         * lib/vasprintf.c: New file, from GNU gettext.
83210         * lib/asprintf.c: New file, from GNU gettext.
83211
83212 2003-01-29  Bruno Haible  <bruno@clisp.org>
83213
83214         * modules/stpncpy: New module.
83215         * MODULES.html.sh (func_all_modules): Add it.
83216
83217 2003-01-29  Bruno Haible  <bruno@clisp.org>
83218
83219         * m4/stpncpy.m4: New file.
83220
83221 2003-01-29  Bruno Haible  <bruno@clisp.org>
83222
83223         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83224         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83225
83226 2003-01-28  Bruno Haible  <bruno@clisp.org>
83227
83228         * modules/c-ctype: New module.
83229         * MODULES.html.sh (func_all_modules): Add it.
83230
83231 2003-01-28  Bruno Haible  <bruno@clisp.org>
83232
83233         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83234         Paul Eggert.
83235         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83236         Paul Eggert.
83237
83238 2003-01-27  Bruno Haible  <bruno@clisp.org>
83239
83240         * modules/xsetenv: New module.
83241         * MODULES.html.sh (func_all_modules): Add it.
83242
83243 2003-01-27  Bruno Haible  <bruno@clisp.org>
83244
83245         * lib/xsetenv.h: New file, from GNU gettext.
83246         * lib/xsetenv.c: New file, from GNU gettext.
83247
83248 2003-01-23  Jim Meyering  <jim@meyering.net>
83249
83250         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83251         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83252
83253 2003-01-23  Bruno Haible  <bruno@clisp.org>
83254
83255         * modules/minmax: New module.
83256         * MODULES.html.sh (func_all_modules): Add it.
83257
83258 2003-01-23  Bruno Haible  <bruno@clisp.org>
83259
83260         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83261         Eggert.
83262
83263 2003-01-22  Bruno Haible  <bruno@clisp.org>
83264
83265         * modules/exit: New module.
83266         * MODULES.html.sh (func_all_modules): Add it.
83267
83268 2003-01-22  Bruno Haible  <bruno@clisp.org>
83269
83270         * lib/exit.h: New file, from GNU gettext.
83271
83272 2003-01-19  Bruno Haible  <bruno@clisp.org>
83273
83274         * gnulib-tool: Recognize option --extract-maintainer.
83275         (func_get_maintainer): New function.
83276         * modules/*: Add Maintainer entry.
83277
83278 2003-01-16  Jim Meyering  <jim@meyering.net>
83279
83280         * m4/regex.m4: The `regex' struct is both input and output.
83281         Initialize it before each use.  Patch by Tim Waugh.
83282
83283 2003-01-16  Bruno Haible  <bruno@clisp.org>
83284
83285         * MODULES.html.sh: Add a table of contents. Add the module name as
83286         leftmost column. Add hyperlinks.
83287
83288 2003-01-15  Bruno Haible  <bruno@clisp.org>
83289
83290         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83291
83292 2003-01-15  Bruno Haible  <bruno@clisp.org>
83293
83294         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83295         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83296         suffix.
83297
83298 2003-01-15  Bruno Haible  <bruno@clisp.org>
83299
83300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83301
83302 2003-01-15  Bruno Haible  <bruno@clisp.org>
83303
83304         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83305         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83306
83307 2003-01-14  Jim Meyering  <jim@meyering.net>
83308
83309         * lib/same.c (same_name): Tweak a comment.
83310
83311 2003-01-14  Bruno Haible  <bruno@clisp.org>
83312
83313         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83314         when a string comparison is sufficient.
83315
83316 2003-01-14  Bruno Haible  <bruno@clisp.org>
83317
83318         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83319         'unsigned int'.
83320
83321 2003-01-14  Bruno Haible  <bruno@clisp.org>
83322
83323         * lib/hash-pjw.c: Add comment about low quality of this function.
83324
83325 2003-01-13  Bruno Haible  <bruno@clisp.org>
83326
83327         * modules/stpcpy: Distribute lib/stpcpy.h.
83328         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83329
83330 2003-01-13  Bruno Haible  <bruno@clisp.org>
83331
83332         * modules/*: Add a description.
83333         * modules/strpbrk: Fix Makefile.am snippet.
83334         * modules/strtoimax: Fix dependencies.
83335         * modules/strtoumax: Likewise.
83336
83337 2003-01-13  Bruno Haible  <bruno@clisp.org>
83338
83339         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83340         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83341         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83342
83343 2003-01-13  Bruno Haible  <bruno@clisp.org>
83344
83345         * gnulib-tool (func_create_testdir): Store config/* files in the main
83346         directory.
83347         * config.rpath: Move to ...
83348         * config/config.rpath: ... here.
83349         * modules/gettext: Contains config/config.rpath, not config.rpath.
83350         * modules/iconv: Likewise.
83351
83352 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83353
83354         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83355         to avoid collisions with libcurses and libreadline.
83356
83357         * m4/getstr.m4: Remove.
83358         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83359
83360 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83361
83362         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83363         to avoid collisions with libcurses and libreadline.
83364
83365         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83366         * lib/getstr.h, getstr.c: Remove.
83367         * lib/getline.c: Include "getline.h", to check interface.
83368         Move body of old getstr.c here: this defines MIN_CHUNK and
83369         declares getdelim2, which is renamed from getstr.
83370         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83371
83372         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83373         All uses changed.
83374         * lib/linebuffer.h: Likewise.
83375         (readline): Remove backward-compatibility macro.
83376
83377 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83378
83379         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83380         to avoid collisions with libcurses and libreadline.
83381         * getstr: Remove.
83382         * MODULES.html.sh: Remove getstr.
83383         * modules/getline: Depend on unlocked-io, not getstr.
83384
83385 2003-01-12  Jim Meyering  <jim@meyering.net>
83386
83387         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83388
83389 2003-01-10  Bruno Haible  <bruno@clisp.org>
83390
83391         * modules/alloca: Change Makefile.am requirements. Simplify Include
83392         requirements. Add lib/alloca_.h to file list.
83393
83394 2003-01-10  Bruno Haible  <bruno@clisp.org>
83395
83396         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83397
83398 2003-01-10  Bruno Haible  <bruno@clisp.org>
83399
83400         * lib/alloca_.h: New file.
83401         * lib/getdate.y: Unconditionally include alloca.h.
83402         * lib/makepath.c: Likewise.
83403         * lib/setenv.c: Likewise.
83404         * lib/userspec.c: Likewise.
83405
83406 2003-01-09  Karl Berry  <karl@gnu.org>
83407
83408         * MODULES.html.sh: include `dirname $0` in PATH, to find
83409         gnulib-tool.
83410
83411 2003-01-09  Bruno Haible  <bruno@clisp.org>
83412
83413         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83414         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83415
83416 2003-01-09  Bruno Haible  <bruno@clisp.org>
83417
83418         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83419
83420 2003-01-09  Bruno Haible  <bruno@clisp.org>
83421
83422         * lib/stdbool.h.in: New file.
83423
83424 2003-01-09  Bruno Haible  <bruno@clisp.org>
83425
83426         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83427         * MODULES.html.sh: Likewise.
83428
83429 2003-01-08  Jim Meyering  <jim@meyering.net>
83430
83431         * lib/full-write.c: Undefine and define-away `const' after inclusion
83432         of errno.h, not before.  Suggestion from Bruno Haible.
83433
83434 2003-01-08  Bruno Haible  <bruno@clisp.org>
83435
83436         * modules/full-read: Depend on full-write.
83437
83438 2003-01-08  Bruno Haible  <bruno@clisp.org>
83439
83440         * lib/safe-read.c: Include specification header first, to ensure its
83441         selfcontainedness.
83442         * lib/full-write.c: Likewise.
83443
83444 2003-01-07  Jim Meyering  <jim@meyering.net>
83445
83446         * lib/full-write.c: Rework so that it may serve to define full_read,
83447         too.
83448         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83449
83450 2003-01-07  Bruno Haible  <bruno@clisp.org>
83451
83452         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83453         <inttypes.h>.
83454         * lib/xstrtol.h: Likewise.
83455         * lib/xstrtoimax.c: Likewise.
83456         * lib/xstrtoumax.c: Likewise.
83457         * lib/human.h: Likewise.
83458
83459         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83460         on systems that have <inttypes.h> but not <stdint.h>.
83461
83462 2003-01-07  Bruno Haible  <bruno@clisp.org>
83463
83464         * MODULES.html.sh: Add copyright notice.
83465         (missed_files): Omit CVS directory entries.
83466         (func_module): Make it work with sed-3.02.
83467         * MODULES.txt: Remove file.
83468
83469 2003-01-06  Jim Meyering  <jim@meyering.net>
83470
83471         * lib/version-etc.c: Update year in translatable copyright string.
83472
83473 2003-01-03  Karl Berry  <karl@gnu.org>
83474
83475         * config/config.{guess,sub}: update from prep.
83476
83477 2003-01-02  Karl Berry  <karl@gnu.org>
83478
83479         * doc/COPYING.DOC: belatedly updated to 1.2.
83480
83481 2003-01-01  Karl Berry  <karl@gnu.org>
83482
83483         * gnulib-tool (func_verify_module): report module name $module in
83484         error message, not $1.
83485         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83486         be created, only if it doesn't exist.
83487         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83488
83489 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83490
83491         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83492
83493 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83494
83495         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83496         memcmp if strcoll doesn't work.
83497
83498 2002-12-31  Bruno Haible  <bruno@clisp.org>
83499
83500         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83501         nonempty.
83502
83503 2002-12-31  Bruno Haible  <bruno@clisp.org>
83504
83505         * lib/memcoll.c (STRCOLL): New macro.
83506         (memcoll): Use it.
83507
83508 2002-12-31  Bruno Haible  <bruno@clisp.org>
83509
83510         * lib/localcharset.h: New file.
83511         * lib/localcharset.c: Include it.
83512         * lib/unicodeio.c: Likewise.
83513
83514 2002-12-31  Bruno Haible  <bruno@clisp.org>
83515
83516         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83517         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83518
83519 2002-12-31  Bruno Haible  <bruno@clisp.org>
83520
83521         * lib/getline.h: Include <stddef.h>, for size_t.
83522
83523         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83524         * lib/unicodeio.c: Don't include <stddef.h>.
83525
83526 2002-12-31  Bruno Haible  <bruno@clisp.org>
83527
83528         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83529         HAVE_TM_ZONE.
83530
83531 2002-12-24  Karl Berry  <karl@gnu.org>
83532
83533         * config/config.guess: update from prep.
83534
83535 2002-12-24  Bruno Haible  <bruno@clisp.org>
83536
83537         General infrasructure.
83538         * m4/README: Rewritten.
83539         * m4/onceonly.m4: New file.
83540         * m4/onceonly_2_57.m4: New file.
83541
83542         Module atexit.
83543         * m4/atexit.m4: New file.
83544
83545         Module strtod.
83546         * m4/strtod.m4: New file.
83547
83548         Module strtol.
83549         * m4/strtol.m4: New file.
83550
83551         Module strtoul.
83552         * m4/strtoul.m4: New file.
83553
83554         Module memchr.
83555         * m4/memchr.m4: New file.
83556
83557         Module memcmp.
83558         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83559         (jm_FUNC_MEMCMP): Invoke it.
83560
83561         Module memcpy.
83562         * m4/memcpy.m4: New file.
83563
83564         Module memmove.
83565         * m4/memmove.m4: New file.
83566
83567         Module memset.
83568         * m4/memset.m4: New file.
83569
83570         Module strcspn.
83571         * m4/strcspn.m4: New file.
83572
83573         Module strpbrk.
83574         * m4/strpbrk.m4: New file.
83575
83576         Module strstr.
83577         * m4/strstr.m4: New file.
83578
83579         Module strerror.
83580         * m4/strerror.m4: New file.
83581
83582         Module mktime.
83583         * m4/mktime.m4: Renamed from jm-mktime.m4.
83584         (gl_PREREQ_MKTIME): New macro.
83585         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83586
83587         Module malloc.
83588         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83589         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83590         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83591
83592         Module realloc.
83593         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83594         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83595         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83596
83597         Module strftime.
83598         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83599         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83600         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83601         gl_TM_GMTOFF.
83602         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83603
83604         Module xalloc.
83605         * m4/xalloc.m4: New file.
83606
83607         Module alloca.
83608         * m4/alloca.m4: New file.
83609
83610         Module putenv.
83611         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83612         (jm_FUNC_PUTENV): Invoke it.
83613
83614         Module setenv.
83615         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83616         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83617         when invoked twice.
83618         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83619         gt_FUNC_SETENV.
83620
83621         Module memrchr.
83622         * m4/memrchr.m4: New file.
83623
83624         Module stpcpy.
83625         * m4/stpcpy.m4: New file.
83626
83627         Module strcase.
83628         * m4/strcase.m4: New file.
83629
83630         Module strdup.
83631         * m4/strdup.m4: New file.
83632
83633         Module strnlen.
83634         * m4/strnlen.m4: New file.
83635
83636         Module strndup.
83637         * m4/strndup.m4: New file.
83638
83639         Module xstrtod.
83640         * m4/xstrtod.m4: New file.
83641
83642         Module xstrtol.
83643         * m4/xstrtol.m4: New file.
83644
83645         Module getdate.
83646         * m4/getdate.m4: New file.
83647
83648         Module unlocked-io.
83649         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83650         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83651         * m4/jm-glibc-io.m4n: Remove file.
83652
83653         Module long-options.
83654         * m4/long-options.m4: New file.
83655
83656         Module md5.
83657         * m4/md5.m4: New file.
83658
83659         Module sha.
83660         * m4/sha.m4: New file.
83661
83662         Module getstr.
83663         * m4/getstr.m4: New file.
83664
83665         Module getline.
83666         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83667         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83668         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83669         simply getline. Infoke gl_PREREQ_GETLINE.
83670
83671         Module obstack.
83672         * m4/obstack.m4: New file.
83673
83674         Module hash.
83675         * m4/hash.m4: New file.
83676
83677         Module readtokens.
83678         * m4/readtokens.m4: New file.
83679
83680         Module strverscmp.
83681         * m4/strverscmp.m4: New file.
83682
83683         Module stdbool.
83684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83685         OSF/1.
83686
83687         Module strtoll.
83688         * m4/strtoll.m4: New file.
83689
83690         Module strtoull.
83691         * m4/strtoull.m4: New file.
83692
83693         Module strtoimax.
83694         * m4/strtoimax.m4: New file.
83695
83696         Module strtoumax.
83697         * m4/strtoumax.m4: New file.
83698
83699         Module xstrtoimax.
83700         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83701         jm_AC_PREREQ_XSTRTOIMAX.
83702         Moved the strtol prerequisites to strtol.m4.
83703         Moved the strtoll prerequisites to strtoll.m4.
83704         Moved the strtoimax prerequisites to strtoimax.m4.
83705
83706         Module xstrtoumax.
83707         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83708         jm_AC_PREREQ_XSTRTOUMAX.
83709         Moved the strtoul prerequisites to strtoul.m4.
83710         Moved the strtoull prerequisites to strtoull.m4.
83711         Moved the strtoumax prerequisites to strtoumax.m4.
83712
83713         Module chown.
83714         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83715         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83716
83717         Module dup2.
83718         * m4/dup2.m4: New file.
83719
83720         Module ftruncate.
83721         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83722         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83723
83724         Module getgroups.
83725         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83726         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83727
83728         Module gettimeofday.
83729         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83730         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83731         gl_PREREQ_GETTIMEOFDAY.
83732
83733         Module mkdir.
83734         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83735         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83736
83737         Module mkstemp.
83738         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83739         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83740         jm_AC_TYPE_UINTMAX_T.
83741         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83742
83743         Module stat.
83744         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83745         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83746
83747         Module lstat.
83748         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83749         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83750
83751         Module timespec.
83752         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83753         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83754         * m4/st_mtim.m4: Indentation.
83755
83756         Module nanosleep.
83757         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83758         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83759         gl_PREREQ_NANOSLEEP.
83760
83761         Module regex.
83762         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83763         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83764         (gl_REGEX): New macro.
83765
83766         Module rename.
83767         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83768         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83769
83770         Module rmdir.
83771         * m4/rmdir.m4: New file.
83772
83773         Module utime.
83774         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83775         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83776         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83777
83778         Module dirname.
83779         * m4/dirname.m4: New file.
83780
83781         Module getopt.
83782         * m4/getopt.m4: New file.
83783
83784         Module unistd-safer.
83785         * m4/unistd-safer.m4: New file.
83786
83787         Module fnmatch.
83788         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83789         declaration.
83790         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83791         (gl_FUNC_FNMATCH_POSIX): New macro.
83792         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83793         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83794         simply fnmatch.
83795
83796         Module exclude.
83797         * m4/exclude.m4: New file.
83798
83799         Module human.
83800         * m4/human.m4: New file.
83801
83802         Module acl.
83803         * m4/acl.m4: Nop.
83804
83805         Module backupfile.
83806         * m4/backupfile.m4: New file.
83807         * m4/d-ino.m4: Indentation.
83808
83809         Module fsusage.
83810         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83811         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83812         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83813
83814         Module dirfd.
83815         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83816         requirements.
83817
83818         Module euidaccess.
83819         * m4/euidaccess.m4: New file.
83820
83821         Module file-type.
83822         * m4/file-type.m4: New file.
83823
83824         Module fileblocks.
83825         * m4/fileblocks.m4: New file.
83826
83827         Module filemode.
83828         * m4/filemode.m4: New file.
83829
83830         Module isdir.
83831         * m4/isdir.m4: New file.
83832
83833         Module lchown.
83834         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83835         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83836
83837         Module makepath.
83838         * m4/makepath.m4: New file.
83839
83840         Module modechange.
83841         * m4/modechange.m4: New file.
83842
83843         Module mountlist.
83844         * m4/mountlist.m4: New file.
83845         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83846         Indentation.
83847
83848         Module path-concat.
83849         * m4/path-concat.m4: New file.
83850
83851         Module pathmax.
83852         * m4/pathmax.m4: New file.
83853
83854         Module same.
83855         * m4/same.m4: New file.
83856
83857         Module save-cwd.
83858         * m4/save-cwd.m4: New file.
83859
83860         Module savedir.
83861         * m4/savedir.m4: New file.
83862
83863         Module xgetcwd.
83864         * m4/xgetcwd.m4: New file.
83865         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83866
83867         Module xreadlink.
83868         * m4/xreadlink.m4: New file.
83869
83870         Module safe-read.
83871         * m4/safe-read.m4: New file.
83872
83873         Module safe-write.
83874         * m4/safe-write.m4: New file.
83875
83876         Module closeout.
83877         * m4/closeout.m4: New file.
83878
83879         Module stdio-safer.
83880         * m4/stdio-safer.m4: New file.
83881
83882         Module getpass.
83883         * m4/getpass.m4: New file.
83884
83885         Module getugroups.
83886         * m4/getugroups.m4: New file.
83887
83888         Module group-member.
83889         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83890         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83891
83892         Module idcache.
83893         * m4/idcache.m4: New file.
83894
83895         Module userspec.
83896         * m4/userspec.m4: New file.
83897
83898         Module gettime.
83899         * m4/clock_time.m4: New file.
83900         * m4/gettime.m4: New file.
83901
83902         Module settime.
83903         * m4/settime.m4: New file.
83904
83905         Module posixtm.
83906         * m4/posixtm.m4: New file.
83907
83908         Module gethostname.
83909         * m4/gethostname.m4: New file.
83910
83911         Module canon-host.
83912         * m4/canon-host.m4: New file.
83913
83914         Module gettext.
83915         * m4/codeset.m4: New file, from gettext-0.11.5.
83916         * m4/gettext.m4: New file, from gettext-0.11.5.
83917         * m4/glibc21.m4: New file, from gettext-0.11.5.
83918         * m4/iconv.m4: New file, from gettext-0.11.5.
83919         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83920         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83921         * m4/inttypes.m4: New file, from gettext-0.11.5.
83922         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83923         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83924         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83925         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83926         * m4/lib-link.m4: New file, from gettext-0.11.5.
83927         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83928         * m4/progtest.m4: New file, from gettext-0.11.5.
83929         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83930         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83931         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83932
83933         Module localcharset.
83934         * m4/localcharset.m4: New file.
83935
83936         Module hard-locale.
83937         * m4/hard-locale.m4: New file.
83938
83939         Module mbswidth.
83940         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83941         onceonly macros.
83942         * m4/mbrtowc.m4: Add comment.
83943
83944         Module memcasecmp.
83945         * m4/memcasecmp.m4: New file.
83946
83947         Module memcoll.
83948         * m4/memcoll.m4: New file.
83949
83950         Module unicodeio.
83951         * m4/unicodeio.m4: New file.
83952
83953         Module rpmatch.
83954         * m4/rpmatch.m4: New file.
83955
83956         Module yesno.
83957         * m4/yesno.m4: New file.
83958
83959         Module exitfail.
83960         * m4/exitfail.m4: New file.
83961
83962         Module c-stack.
83963         * m4/c-stack.m4 (gl_C_STACK): New macro.
83964         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83965
83966         Module error.
83967         * m4/error.m4 (gl_ERROR): New macro.
83968         (jm_PREREQ_ERROR): Use onceonly macros.
83969
83970         Module fatal.
83971         * m4/fatal.m4: New file.
83972
83973         Module getloadavg.
83974         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83975         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83976
83977         Module getpagesize.
83978         * m4/getpagesize.m4: New file.
83979
83980         Module getusershell.
83981         * m4/getusershell.m4: New file.
83982
83983         Module physmem.
83984         * m4/physmem.m4: New file.
83985
83986         Module posixver.
83987         * m4/posixver.m4: New file.
83988
83989         Module quotearg.
83990         * m4/quotearg.m4: New file.
83991
83992         Module quote.
83993         * m4/quote.m4: New file.
83994
83995         Module readutmp.
83996         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83997
83998         Module sig2str.
83999         * m4/sig2str.m4: New file.
84000
84001         Other.
84002         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84003         ulonglong.m4.
84004         * m4/intmax_t.m4: New file.
84005         * m4/d-type.m4: Indentation.
84006         * m4/jm-macros.m4: Update.
84007         * m4/prereq.m4 (jm_PREREQ): Update.
84008         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84009         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84010         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84011         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84012         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84013         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84014         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84015         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84016         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84017         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84018         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84019         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84020         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84021         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84022         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84023         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84024         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84025         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84026         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84027
84028 2002-12-24  Bruno Haible  <bruno@clisp.org>
84029
84030         * MODULES.txt: Update according to m4/ changes.
84031
84032         Module gettext.
84033         * config.rpath: New file, from gettext-0.11.5.
84034
84035         * modules/*: New module descriptions.
84036         * gnulib-tool: New file.
84037         * MODULES.html.sh: New file.
84038
84039 2002-12-21  Karl Berry  <karl@gnu.org>
84040
84041         * doc/fdl.texi: update to version 1.2.
84042
84043 2002-12-19  Karl Berry  <karl@gnu.org>
84044
84045         * config/config.guess: update from prep.
84046
84047 2002-12-18  Bruno Haible  <bruno@clisp.org>
84048
84049         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84050         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84051
84052 2002-12-17  Bruno Haible  <bruno@clisp.org>
84053
84054         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84055         stdlib.h, string.h.
84056
84057 2002-12-17  Bruno Haible  <bruno@clisp.org>
84058
84059         * lib/canon-host.c (strdup): Remove unused declaration.
84060
84061         * lib/fsusage.c: Include full_read.h.
84062         (get_fs_usage): Use full_read instead of safe_read.
84063
84064         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84065
84066 2002-12-12  Karl Berry  <karl@gnu.org>
84067
84068         * config/config.guess: update from prep.
84069
84070 2002-12-11  Bruno Haible  <bruno@clisp.org>
84071
84072         * m4/setenv.m4: New file, from gettext-0.11.5.
84073
84074 2002-12-11  Bruno Haible  <bruno@clisp.org>
84075
84076         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84077         not unsetenv().
84078         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84079         modifications:
84080
84081         2002-12-11  Bruno Haible  <bruno@clisp.org>
84082
84083                 * setenv.c (alloca): Fall back to malloc.
84084                 (freea): New macro.
84085                 (setenv): Use freea() to free memory allocated with alloca().
84086
84087         2002-11-13  Bruno Haible  <bruno@clisp.org>
84088
84089                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84090                 function declarations.
84091                 * unsetenv.c (unsetenv): Likewise.
84092
84093         2002-03-04  Bruno Haible  <bruno@clisp.org>
84094
84095                 Portability to AIX 4.3.3.
84096                 * unsetenv.c: New file, extracted from setenv.c.
84097                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84098
84099         2001-12-20  Bruno Haible  <bruno@clisp.org>
84100
84101                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84102                 use malloc instead. For SunOS 4.
84103
84104         2001-12-11  Bruno Haible  <bruno@clisp.org>
84105
84106                 * setenv.c: Declare alloca.
84107                 (compar_fn_t): New typedef.
84108                 (KNOWN_VALUE, STORE_VALUE): Use it.
84109
84110         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84111         setenv.h.
84112
84113 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84114
84115         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84116         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84117         Choose values that are less likely to collide with system fnmatch
84118         options.
84119         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84120         defined (e.g., a pure POSIX system).
84121         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84122         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84123
84124 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84125
84126         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84127         a pain in practice to deal with generated m4 files.  This change
84128         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84129
84130         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84131         and jm-glibc-io.m4, as they are no longer a special case.
84132         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84133         kludge and the auto-generation stuff.  Check only whether the
84134         functions are declared, not whether they exist, since older hosts
84135         that don't declare the functions can't use the optimization anyway.
84136
84137 2002-12-06  Jim Meyering  <jim@meyering.net>
84138
84139         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84140
84141         Merge in changes from libc's misc/error.c, in preparation
84142         for the merge of gnulib's changes back into libc.
84143
84144         * lib/error.c (_): Define only if not already defined.
84145         Move definition to follow all #include directives.
84146         Include unlocked-io.h only if !_LIBC.
84147         [_LIBC]: Include <libio/libioP.h>.
84148         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84149         (fflush): Tweak definition to use INTUSE.
84150         (putc): Define.
84151
84152 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84153
84154         * lib/alloca.c [defined emacs]: Include "lisp.h".
84155         (xalloc_die) [defined emacs]: New macro.
84156         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84157         [! defined emacs]: Include <xalloc.h>.
84158         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84159         (pointer): Typedef to POINTER_TYPE *.
84160         (malloc): Remove decl; we now always use xmalloc.
84161         (alloca): Use old-style definition, since Emacs needs this.
84162         Check for arithmetic overflow when computing combined size.
84163
84164 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84165
84166         Do not generate unlocked-io.h automatically, since it's easier to
84167         maintain it by hand.
84168
84169         * lib/unlocked-io.h: New file, from GNU diffutils,
84170         but with proper copyright notice and attribution.
84171         * lib/gen-uio: Remove.
84172         * lib/Makefile.am: Add copyright notice.
84173         (libfetish_a_SOURCES): Add unlocked-io.h.
84174         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84175         (DISTCLEANFILES, io_functions): Remove macros.
84176         (EXTRA_DIST): Remove gen_uio.
84177         (unlocked-io.h): Remove rule.
84178
84179 2002-12-04  Jim Meyering  <jim@meyering.net>
84180
84181         Reflect the fact that stat.c and lstat.c are no longer generated.
84182         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84183         (DISTCLEANFILES): Likewise.
84184         (EXTRA_DIST): Likewise.
84185         (all_local): Don't depend on stat.c or lstat.c.
84186         (stat.c, lstat.c): Remove rules.
84187         (EXTRA_DIST): Remove xstat.in.
84188
84189         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84190         * lib/stat.c: New file.  Contents mostly from xstat.in.
84191         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84192         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84193
84194         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84195         too.
84196         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84197
84198 2002-12-03  Jim Meyering  <jim@meyering.net>
84199
84200         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84201         but not semantics, to minimize the differences between these two files.
84202         (safe_read): Change comment to mention SAFE_READ_ERROR.
84203
84204         * lib/safe-read.c (IS_EINTR): Define.
84205         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84206
84207 2002-12-02  Jim Meyering  <jim@meyering.net>
84208
84209         * lib/safe-read.c (EINTR): Define.
84210         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84211         (INT_MAX): Provide fallback.
84212         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84213
84214         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84215
84216 2002-12-02  Bruno Haible  <bruno@clisp.org>
84217
84218         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84219         Define, taken from safe-read.c.
84220         (INT_MAX): Provide fallback.
84221         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84222         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84223
84224         * lib/safe-read.c (EINTR): Remove definition.
84225         (safe_read): Don't use EINTR if it is absent.
84226
84227 2002-12-01  Jim Meyering  <jim@meyering.net>
84228
84229         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84230         zero.
84231         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84232
84233 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84234
84235         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84236         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84237         with `if (! (value < limit)) abort ();', for readability.
84238
84239 2002-11-26  Karl Berry  <karl@gnu.org>
84240
84241         * lib/strdup.c: copy from libc again, with jim's ok.
84242         * lib/.cppi-disable: re-add strdup.c
84243
84244 2002-11-25  Karl Berry  <karl@gnu.org>
84245
84246         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84247         instead of "strtol.c".
84248
84249 2002-11-25  Karl Berry  <karl@gnu.org>
84250
84251         * config/install-sh: update from automake for variable quoting, $0 in
84252         error msgs, etc.
84253
84254         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84255         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84256         entry.
84257
84258 2002-11-25  Jim Meyering  <jim@meyering.net>
84259
84260         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84261
84262 2002-11-24  Karl Berry  <karl@gnu.org>
84263
84264         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84265         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84266
84267 2002-11-24  Jim Meyering  <jim@meyering.net>
84268
84269         Update from coreutils:
84270
84271         * lib/mktime.c: Merge in changes from libc.
84272
84273         Avoid a link-time failure on some Linux systems.
84274         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84275         (otherwise).
84276         (__mon_yday): Declare with the STATIC attribute.
84277         (__mktime_internal): Likewise.
84278         Based on a report from Greg Schafer.
84279
84280 2002-11-23  Jim Meyering  <jim@meyering.net>
84281
84282         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84283         Use `unsigned', not `int', as type of index.
84284
84285         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84286
84287         * lib/fsusage.c: Remove unneeded parentheses around operands of
84288         `defined'.
84289
84290 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84291
84292         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84293         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84294         so that we can be included first.
84295         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84296         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84297         No need to include stddef.h or sys/types.h any more.
84298         Surround local include files with "", not "<>".
84299         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84300         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84301         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84302         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84303         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84304         (ISPRINT): Remove; no longer needed now that we assume C89.
84305
84306         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84307         Preserve errno.
84308
84309         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84310         quotearg_char): Use SIZE_MAX rather than
84311         (size_t) -1 when we are talking about "infinity".
84312
84313         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84314
84315 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84316
84317         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84318         hint that one should use `if (! x) abort ();' rather than `assert
84319         (x);', and anyway it's one less thing to worry about configuring.
84320         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84321         hash_rehash, hash_insert): Use abort rather than assert.
84322
84323 2002-11-22  Bruno Haible  <bruno@clisp.org>
84324
84325         * lib/safe-read.h: Assume C89. Add comments.
84326         (safe_read): Change return type to size_t.
84327         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84328         byte counts > SSIZE_MAX correctly.
84329         * lib/safe-write.h: New file.
84330         * lib/safe-write.c: New file.
84331         * lib/full-read.h: New file.
84332         * lib/full-read.c: New file.
84333         * lib/full-write.h: Assume C89. Add comments.
84334         * lib/full-write.c: Include safe-write.h.
84335         (full_write): Rewritten to use safe_write.
84336         Suggested by Jim Meyering and Paul Eggert.
84337
84338 2002-11-21  Jim Meyering  <jim@meyering.net>
84339
84340         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84341
84342         Merge in changes from the coreutils.
84343
84344         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84345         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84346         <stdint.h>.
84347         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84348         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84349         int.  Work more efficiently if X is the same width as uintmax_t.
84350         Do not compare X to -1, to avoid bogus compiler warning.
84351         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84352         Don't assume that f_frsize and f_bsize are the same type.
84353
84354         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84355         warning on FreeBSD.
84356
84357         * lib/makepath.c (make_path): Restore umask *before* creating the final
84358         component.
84359         (make_path): Minor reformatting.
84360
84361         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84362         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84363         HAVE_MALLOC/HAVE_REALLOC.
84364
84365         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84366         dummy ones.  At least on GNU/Linux systems, `auto' means something
84367         else.
84368         From Michael Stone.
84369
84370 2002-11-21  Bruno Haible  <bruno@clisp.org>
84371
84372         Remove case insensitive option matching.
84373         * lib/argmatch.h (argcasematch): Remove declaration.
84374         (ARGCASEMATCH): Remove macro.
84375         (__xargmatch_internal): Remove case_sensitive argument.
84376         (XARGMATCH): Update.
84377         (XARGCASEMATCH): Remove macro.
84378         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84379         case_sensitive argument.
84380         (argcasematch): Remove function.
84381         (__xargmatch_internal): Remove case_sensitive argument.
84382         (main): Use XARGMATCH instead of XARGCASEMATCH.
84383
84384         * lib/xmalloc.c: Change compile-time error message. Add comment about
84385         required autoconf version.
84386
84387 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84388
84389         Merge argmatch cleanups from Bison.  Assume C89.
84390
84391         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84392         Include stdlib.h, for EXIT_FAILURE.
84393         Always include <string.h>, since we assume C89.
84394         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84395         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84396         Include <stddef.h> instead, since it's all we need for size_t.
84397         (PARAMS): Remove.  All uses removed.
84398         (ARRAY_CARDINALITY): Do not bother to #undef.
84399         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84400         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84401         Remove unnecessary parentheses.
84402         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84403         Insert necessary parentheses.
84404         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84405         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84406
84407 2002-11-19  Bruno Haible  <bruno@clisp.org>
84408
84409         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84410         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84411
84412         * lib/mbswidth.h (PARAMS): Remove macro.
84413         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84414         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84415
84416         * lib/gcd.h (PARAMS): Remove macro.
84417         (gcd): Use ANSI C function declarations.
84418         * lib/gcd.c (gcd): Likewise.
84419
84420 2002-11-15  Bruno Haible  <bruno@clisp.org>
84421
84422         * lib/strcspn.c: Include <stddef.h>.
84423         (strcspn): Use ANSI C function declaration. Change return type to
84424         size_t. Use NULL.
84425         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84426         (strpbrk): Use NULL.
84427         * lib/strpbrk.h (PARAMS): Remove macro.
84428         (strpbrk): Use ANSI C function declaration.
84429         * lib/strstr.c: Don't include <sys/types.h>.
84430         * lib/strstr.h (PARAMS): Remove macro.
84431         (strstr): Use ANSI C function declarations.
84432
84433 2002-11-14  Karl Berry  <karl@gnu.org>
84434
84435         * config/mkinstalldirs: `do' on separate line, instead of
84436         `for var; do'.
84437
84438 2002-11-06  Bruno Haible  <bruno@clisp.org>
84439
84440         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84441         * lib/gcd.c (gcd): Likewise.
84442
84443 2002-11-05  Bruno Haible  <bruno@clisp.org>
84444
84445         * lib/gcd.h: New file, from gettext-0.11.5.
84446         * lib/gcd.c: New file, from gettext-0.11.5.
84447
84448 2002-11-05  Bruno Haible  <bruno@clisp.org>
84449
84450         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84451         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84452         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84453         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84454
84455         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84456         <libintl.h>.
84457         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84458         <libintl.h>.
84459
84460         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84461         * lib/human.c: Include gettext.h instead of <libintl.h>.
84462         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84463         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84464         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84465         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84466         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84467         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84468         (textdomain): Remove definition.
84469         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84470
84471         * lib/long-options.c: Remove include of <libintl.h> and definition of
84472         _.
84473         * lib/same.c: Remove include of <libintl.h> and definition of _.
84474
84475 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84476
84477         * lib/config.charset: A few additions for Solaris.
84478
84479 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84480
84481         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84482         * lib/localcharset.c (locale_charset): Declare as extern "C".
84483
84484 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84485
84486         * lib/config.charset: msdos in uk_UA uses CP1125.
84487
84488 2002-11-04  Bruno Haible  <bruno@clisp.org>
84489
84490         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84491         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84492         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84493         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84494         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84495
84496 2002-11-04  Bruno Haible  <bruno@clisp.org>
84497
84498         * lib/localcharset.c (locale_charset): Don't return an empty string.
84499
84500 2002-11-04  Bruno Haible  <bruno@clisp.org>
84501
84502         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84503         aliases.
84504
84505 2002-11-04  Bruno Haible  <bruno@clisp.org>
84506
84507         * lib/config.charset: Update for newest glibc. Add canonical names
84508         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84509
84510 2002-11-04  Bruno Haible  <bruno@clisp.org>
84511
84512         * lib/config.charset: Add support for NetBSD.
84513
84514 2002-11-04  Bruno Haible  <bruno@clisp.org>
84515
84516         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84517
84518 2002-11-01  Bruno Haible  <bruno@clisp.org>
84519
84520         * configure.in: Add AC_CONFIG_AUX_DIR call.
84521         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84522         test/Makefile.
84523         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84524
84525 2002-09-28  Karl Berry  <karl@gnu.org>
84526
84527         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84528         installed automake until the next release, since changes have been
84529         made.
84530
84531 2002-09-25  Karl Berry  <karl@gnu.org>
84532
84533         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84534         * lib/getopt*: copy from libc/posix.
84535         * lib/gettext.h: copy from gettext.
84536         * lib/.cppi-disable: add strdup.c, gettext.h.
84537
84538 2002-09-25  Karl Berry  <karl@gnu.org>
84539
84540         * config/srclist.txt: enable gettext.h check.
84541         * config/config.{guess,sub}: update from prep.
84542         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84543                 from automake 1.6.3.
84544         See srclist*.
84545
84546 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84547
84548         * regex.c (PATFETCH): Remove the translating fetch.
84549         (PATFETCH_RAW): Rename to PATFETCH.
84550         (set_image_of_range): New fun.
84551         (SET_RANGE_TABLE_WORK_AREA): Use it.
84552         (regex_compile): Don't translate the pattern chars so eagerly.
84553         Only do it when inserting an `exactn' bytecode or when handling
84554         a char-range.
84555         (mutually_exclusive_p): Avoid empty statement.
84556
84557 2002-07-06  Jim Meyering  <meyering@lucent.com>
84558
84559         * m4/README: Don't mention Makefile.am.in.
84560         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84561
84562 2002-07-01  Jim Meyering  <meyering@lucent.com>
84563
84564         * lib/c-stack.c: Include sys/time.h.
84565         From Volker Borchert.
84566
84567 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84568
84569         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84570
84571 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84572
84573         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84574         New macro.  Use it uniformly instead of
84575         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84576         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84577         reported by Vin Shelton.
84578
84579 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84580
84581         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84582         Do not assume SA_SIGINFO behavior.
84583         Bug reported by Jim Meyering on NetBSD 1.5.2.
84584
84585 2002-06-22  Jim Meyering  <meyering@lucent.com>
84586
84587         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84589
84590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84591         now that configure.ac uses AC_GNU_SOURCE.
84592         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84593         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84594
84595         Update to latest tools.  Suggestions from Paul Eggert.
84596         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84597         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84598         * m4/fnmatch.m4: Likewise.
84599         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84600         to AC_HEADER_STDBOOL
84601
84602 2002-06-22  Jim Meyering  <meyering@lucent.com>
84603
84604         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84605         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84606
84607 2002-06-22  Jim Meyering  <meyering@lucent.com>
84608
84609         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84610
84611         * lib/exitfail.c, exitfail.h: Likewise.
84612         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84613
84614         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84615         of fnmatch.h.
84616         (EXTRA_DIST): Add fnmatch_loop.c.
84617         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84618
84619         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84620         * lib/fnmatch.c: Update from diffutils-2.8.2.
84621         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84622         * lib/fnmatch.h: Remove file.
84623
84624 2002-06-21  Jim Meyering  <meyering@lucent.com>
84625
84626         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84627         * m4/mbrtowc.m4: Likewise.
84628
84629         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84630         * m4/mbswidth.m4: Reflect name change:
84631         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84632         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84633
84634         * m4/lib-link.m4: Update from gettext-0.11.2.
84635         * m4/gettext.m4: Likewise.
84636
84637         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84638         From Alfred M. Szmidt.
84639
84640 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84641
84642         * lib/file-type.h: Report an error if neither S_ISREG nor
84643         S_IFREG is defined, instead of using a test specific to glibc
84644         2.2.  This should be safe, since POSIX requires S_ISREG and
84645         Unix Version 7 had S_IFREG.  We don't need to check for
84646         <sys/types.h> since we don't use any symbols that it defines.
84647
84648 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84649
84650         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84651         $@-t, so that each temporary file name is unique and valid in the first
84652         8 characters, for operation under DOS.
84653
84654 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84655
84656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84657
84658 2002-06-15  Jim Meyering  <meyering@lucent.com>
84659
84660         Work even with DJGPP 2.03, which lacks support for symlinks.
84661         From Richard Dawe.
84662         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84663         is defined.
84664         * lib/lchown.c (S_ISLNK): Likewise.
84665
84666 2002-06-15  Jim Meyering  <meyering@lucent.com>
84667
84668         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84669         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84670         have been included before this file.
84671
84672 2002-06-14  Jim Meyering  <meyering@lucent.com>
84673
84674         * lib/file-type.h: Use the version from diffutils-2.8.2.
84675         * lib/file-type.c: Likewise.
84676
84677 2002-06-07  Jim Meyering  <meyering@lucent.com>
84678
84679         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84680         They're needed at least for NetBSD 1.5.2.
84681         ($statxfs_includes): Include those same headers.
84682         ($statxfs_includes): Include sys/vfs.h if available.
84683         ($statxfs_includes): Likewise for sys/statvfs.h.
84684         Check for the following members in both structs statfs and statvfs:
84685         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84686
84687 2002-06-01  Jim Meyering  <meyering@lucent.com>
84688
84689         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84690         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84691
84692 2002-05-28  Jim Meyering  <meyering@lucent.com>
84693
84694         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84695         Reported by Volker Borchert.
84696
84697 2002-05-27  Jim Meyering  <meyering@lucent.com>
84698
84699         Fix a problem seen only on nonconforming systems whereby ls.c's
84700         use of localtime, and then of gettimeofday would cause trouble:
84701         the localtime call used to initialize rpl_gettimeofday's save
84702         mechanism would clobber ls's current local time information so
84703         that in any long listing the first file would always be listed
84704         with date 1970-01-01.  Analysis by Volker Borchert.
84705
84706         * lib/gettimeofday.c (localtime): Undefine.
84707         (rpl_localtime): New function.
84708
84709 2002-05-27  Jim Meyering  <meyering@lucent.com>
84710
84711         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84712         localtime.
84713
84714         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84715         use the replacement function; it wouldn't resolve at link time.
84716         Reported by Volker Borchert.
84717
84718 2002-05-22  Jim Meyering  <meyering@lucent.com>
84719
84720         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84721         file-type.h.
84722         * lib/file-type.h: New file.
84723         * lib/file-type.c (file_type): New file/function.  Extracted from
84724         diffutils.
84725
84726 2002-04-30  Jim Meyering  <meyering@lucent.com>
84727
84728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84729
84730 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84731
84732         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84733
84734 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84735
84736         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84737         Do not check for alloca.h (no longer used) or stdbool.h (was never
84738         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84739
84740 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84741
84742         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84743
84744 2002-04-29  Jim Meyering  <meyering@lucent.com>
84745
84746         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84747         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84748         Use AC_FUNC_STRNLEN here instead.
84749
84750         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84751         With autoconf-2.53a, it's part of AC_PROG_CC.
84752
84753 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84754
84755         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84757
84758 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84759
84760         * lib/sig2str.h, lib/sig2str.c: New files.
84761         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84762
84763 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84764
84765         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84766         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84767         of 127, since 64 is the largest conceivable number for ancient
84768         nonstandard hosts.
84769         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84770
84771 2002-04-28  Jim Meyering  <meyering@lucent.com>
84772
84773         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84774
84775 2002-04-24  Jim Meyering  <meyering@lucent.com>
84776
84777         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84778         (jm_PREREQ): Use it.
84779
84780         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84781         mach/mach.h fcntl.h.
84782         Check for this function: setlocale.
84783
84784 2002-04-24  Jim Meyering  <meyering@lucent.com>
84785
84786         * lib/gettext.h: New file, from Gettext.
84787         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84788         (libfetish_a_SOURCES): Add gettext.h.
84789
84790 2002-04-16  Jim Meyering  <meyering@lucent.com>
84791
84792         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84793         ut_pid, ut_id, ut_exit.
84794
84795 2002-04-16  Jim Meyering  <meyering@lucent.com>
84796
84797         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84798         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84799         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84800
84801 2002-04-12  Jim Meyering  <meyering@lucent.com>
84802
84803         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84804         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84805         existence of the getmntinfo function.  Needed for Darwin 5.3.
84806
84807         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84808         This is necessary at least on Darwin 5.3.
84809
84810         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84811         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84812         strnlen.o in the library, and that makes some versions of ranlib
84813         object.
84814
84815 2002-04-12  Jim Meyering  <meyering@lucent.com>
84816
84817         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84818
84819 2002-04-09  Jim Meyering  <meyering@lucent.com>
84820
84821         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84822         to be more precise.  Rather than saying we're checking whether the
84823         function `works', say what we're testing.
84824         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84825         Reported by Bruno Haible.
84826
84827 2002-03-10  Jim Meyering  <meyering@lucent.com>
84828
84829         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84830         Suggestion from Santiago Vila.
84831
84832 2002-03-08  Jim Meyering  <meyering@lucent.com>
84833
84834         * lib/rename.c: Mention that this wrapper is needed also on
84835         mips-dec-ultrix4.4 systems.
84836
84837 2002-03-02  Jim Meyering  <meyering@lucent.com>
84838
84839         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84840         not HAVE_CLOCK_SETTIME.
84841
84842 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84843
84844         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84845         Check for clock_settime.
84846
84847 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84848
84849         * lib/nanosleep.h: Rename to....
84850         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84851
84852         * lib/gettime.c: New file.
84853         * lib/settime.c: New file.
84854         * lib/stime.c: Remove.
84855
84856         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84857         timespec.h.  Remove nanosleep.h.
84858
84859 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84860
84861         * m4/acl.m4: New file.
84862         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84863         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84864
84865 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84866
84867         * lib/acl.c, lib/acl.h: New files.
84868         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84869
84870 2002-02-24  Jim Meyering  <meyering@lucent.com>
84871
84872         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84873         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84874         cause trouble.  Reported by Nelson Beebe.
84875
84876 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84877
84878         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84879         compilers that don't know that xalloc_die never returns.
84880
84881 2002-02-20  Jim Meyering  <meyering@lucent.com>
84882
84883         * lib/getdate.c: Regenerate using bison-1.33.
84884
84885 2002-02-17  Jim Meyering  <meyering@lucent.com>
84886
84887         * config/config.guess (main): Don't use `head -1'; it's no longer
84888         portable. Use `sed 1q' instead.
84889
84890 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84891
84892         * m4/codeset.m4: Upgrade to gettext-0.11.
84893         * m4/gettext.m4: Upgrade to gettext-0.11.
84894         * m4/glibc21.m4: Upgrade to gettext-0.11.
84895         * m4/iconv.m4: Upgrade to gettext-0.11.
84896         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84897         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84898         * m4/lib-ld.m4: New file, from gettext-0.11.
84899         * m4/lib-link.m4: New file, from gettext-0.11.
84900         * m4/lib-prefix.m4: New file, from gettext-0.11.
84901         * m4/progtest.m4: Upgrade to gettext-0.11.
84902
84903 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84904
84905         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84906         (jm_PREREQ): Use it.
84907
84908 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84909
84910         * lib/posixver.c, lib/posixver.h: New files.
84911         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84912
84913 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84914             Bruno Haible  <bruno@clisp.org>
84915
84916         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84917         (fwrite_success_callback): New declaration.
84918         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84919         print_unicode_char. Call failure callback instead of error.
84920         (fwrite_success_callback): New function.
84921         (exit_failure_callback): New function.
84922         (fallback_failure_callback): New function.
84923         (print_unicode_char): Call unicode_to_mb.
84924
84925 2002-01-26  Jim Meyering  <meyering@lucent.com>
84926
84927         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84928         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84929
84930 2002-01-26  Jim Meyering  <meyering@lucent.com>
84931
84932         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84933
84934 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84935
84936         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84937
84938 2002-01-22  Jim Meyering  <meyering@lucent.com>
84939
84940         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84941         Otherwise, some versions of automake would omit the rule that makes
84942         Makefile from Makefile.in.
84943
84944 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84945
84946         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84947         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84948         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84949         (memcoll): Set errno to zero if there is no error.
84950
84951         * lib/quotearg.c (quotearg_buffer_restyled):
84952         Fix bug with quoting buffers containing NUL when backslashing escapes.
84953         This bug was exposed by the other changes in this patch.
84954         (quotearg_n_options): New arg ARGSIZE.
84955         All callers changed.
84956         (quoting_options_from_style): New function.
84957         (quotearg_n_style): Use it.
84958         (quotearg_n_style_mem): New function.
84959
84960         * lib/quotearg.h (quotearg_n_style_mem): New function.
84961
84962 2002-01-19  Jim Meyering  <meyering@lucent.com>
84963
84964         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84965         Remove useless quotes: DF_PROG="df".
84966         * m4/strnlen.m4: New file.
84967
84968 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84969
84970         * lib/backupfile.c (ISDIGIT): Comment fix.
84971         * lib/getdate.y (ISDIGIT): Likewise.
84972         * lib/posixtm.c (ISDIGIT, year): Likewise.
84973         * lib/strverscmp.c (ISDIGIT): Likewise.
84974         * lib/userspec.c (ISDIGIT): Likewise.
84975
84976 2002-01-16  Jim Meyering  <meyering@lucent.com>
84977
84978         * lib/getdate.y: Add three semicolons, each just before a closing
84979         brace. Bison (as of version 1.31) no longer papers over that mistake.
84980
84981 2002-01-05  Jim Meyering  <meyering@lucent.com>
84982
84983         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84984
84985 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84986
84987         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84988         not silently exit merely because the output buffer happens to
84989         have nothing pending.
84990
84991 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84992
84993         See the big note in ../ChangeLog.
84994         * lib/human.c (suffixes): Prefer K to k for 1024.
84995         (generate_suffix_backwards): New function.
84996         (human_readable_inexact): Use it.
84997         * lib/xstrtol.c (__xstrtol): If there is no number but there
84998         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84999         Accept 'K' as well as 'k'.
85000
85001 2001-12-15  Jim Meyering  <meyering@lucent.com>
85002
85003         * lib/regex.h (__restrict_arr): Update from libc.
85004
85005         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85006         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85007         (STREQ): Define.
85008
85009 2001-12-14  Jim Meyering  <meyering@lucent.com>
85010
85011         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85012         Suggestion from Bruno Haible.
85013
85014 2001-12-10  Jim Meyering  <meyering@lucent.com>
85015
85016         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85017         xrealloc, Instead, include "xalloc.h".
85018         (initbuffer): Don't cast xmalloc return value to char*.
85019         (readline): Reword comment.
85020         Don't cast xrealloc return value to char*
85021         Return NULL, not 0.
85022
85023 2001-12-09  Jim Meyering  <meyering@lucent.com>
85024
85025         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85026         about `signed and unsigned type in conditional expression'.
85027         * lib/posixtm.c (posix_time_parse): Likewise.
85028
85029         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85030
85031         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85032         to avoid a pedantic warning.
85033
85034         * lib/getstr.c: Don't include assert.h.
85035         (getstr): Remove warning-evoking assertions.
85036         Return -1 if offset parameter is out of bounds.
85037         Change the type of a local from int to size_t.
85038
85039         * lib/strftime.c (my_strftime_localtime_r): Include this function
85040         definition in the `#if ! HAVE_TM_GMTOFF' block.
85041
85042         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85043         Include xalloc.h instead.
85044
85045 2001-12-02  Jim Meyering  <meyering@lucent.com>
85046
85047         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85048         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85049         included.
85050
85051         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85052         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85053
85054 2001-11-30  Akim Demaille  <akim@epita.fr>
85055
85056         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85057         before being defined.
85058
85059 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85060
85061         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85062         First arg is int, not unsigned.
85063         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85064         (SIZE_MAX, UINT_MAX): New macros.
85065         (quotearg_n_options): Abort if N is negative.
85066         Avoid overflow check on hosts where size_t is 64 bits and int
85067         is 32 bits, as overflow is impossible there.
85068         Fix off-by-one typo that caused unnecessary reallocation.
85069
85070 2001-11-27  Jim Meyering  <meyering@lucent.com>
85071
85072         * lib/tempname.c: Merge with version from libc.
85073         * lib/regex.c: Likewise.
85074
85075         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85076         systems for which STDC_HEADERS is 0, it was not included, resulting in
85077         a warning about an integer-to-pointer conversion problem with getenv.
85078         Reported by Volker Borchert.
85079
85080 2001-11-26  Jim Meyering  <meyering@lucent.com>
85081
85082         * lib/gtod.h: Remove file.
85083         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85084         * lib/gettimeofday.c: Don't include gtod.h.
85085         (GTOD_init): Remove function.
85086         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85087         Suggestion from Volker Borchert.
85088
85089 2001-11-23  Jim Meyering  <meyering@lucent.com>
85090
85091         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85092         it.
85093         * lib/hash.c (struct hash_table): Define it here instead.
85094
85095 2001-11-22  Jim Meyering  <meyering@lucent.com>
85096
85097         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85098
85099 2001-11-20  Jim Meyering  <meyering@lucent.com>
85100
85101         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85102         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85103
85104 2001-11-19  Jim Meyering  <meyering@lucent.com>
85105
85106         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85107         directory.  Use "conftestXXXXXX" as the template.
85108         Suggestion from Paul Eggert.
85109
85110         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85111         immediately, so the test doesn't mistakenly hit the max-open-files
85112         limit.
85113
85114 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85115
85116         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85117         (TEMPORARIES): New macro.
85118         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85119         removes an artificial limitation (e.g. HP-UX 10.20, where
85120         TMP_MAX is 17576).
85121
85122 2001-11-18  Jim Meyering  <meyering@lucent.com>
85123
85124         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85125
85126 2001-11-18  Jim Meyering  <meyering@lucent.com>
85127
85128         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85129         on SunOS 4.
85130
85131         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85132         files will be created before anything else.
85133
85134 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85135
85136         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85137         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85138
85139 2001-11-17  Jim Meyering  <meyering@lucent.com>
85140
85141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85142         Prompted by a report from Bob Proulx.
85143
85144         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85145         Instead, require UTILS_FUNC_MKSTEMP.
85146
85147 2001-11-17  Jim Meyering  <meyering@lucent.com>
85148
85149         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85150         Now, that's done as part of AC_FUNC_STRTOD.
85151
85152 2001-11-17  Jim Meyering  <meyering@lucent.com>
85153
85154         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85155         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85156         rather than group writable.  Patch by Juan F. Codagnone.
85157
85158         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85159         xrealloc, Instead, include "xalloc.h".
85160
85161         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85162         Remove explicit declarations of xmalloc, xrealloc,
85163         and xstrdup.  Instead, include "xalloc.h".
85164
85165         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85166         unlocked-io.h.
85167         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85168         Likewise.
85169         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85170
85171         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85172         Reported by Padraig Brady.
85173
85174         * lib/mkstemp.c: #undef mkstemp.
85175         Include config.h.
85176         (rpl_mkstemp): Rename from mkstemp.
85177         Protoize.
85178
85179 2001-11-16  Jim Meyering  <meyering@lucent.com>
85180
85181         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85182         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85183         determine the amount of total physical memory, use pstat_getstatic.
85184         HPUX-11 doesn't define _SC_PHYS_PAGES.
85185         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85186         If sysconf couldn't be used to determine the amount of available
85187         physical memory, use both pstat_getstatic and pstat_getdynamic.
85188         Based on a patch from Bob Proulx.
85189
85190 2001-11-10  Jim Meyering  <meyering@lucent.com>
85191
85192         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85193         (jm_PREREQ): Use it.
85194
85195 2001-11-09  Jim Meyering  <meyering@lucent.com>
85196
85197         * m4/jm-macros.m4: Require autoconf-2.52f.
85198         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85199         Use these AC_-prefixed names, not the AM_-prefixed ones.
85200
85201         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85202
85203 2001-11-05  Jim Meyering  <meyering@lucent.com>
85204
85205         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85206
85207 2001-11-04  Jim Meyering  <meyering@lucent.com>
85208
85209         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85210         $DEFS.
85211
85212 2001-11-03  Jim Meyering  <meyering@lucent.com>
85213
85214         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85215         of AC_DEFUN.
85216
85217         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85218         know the name of the variable in the macro definition.
85219
85220 2001-11-03  Jim Meyering  <meyering@lucent.com>
85221
85222         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85223         in argmatch_to_argument call.
85224
85225         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85226         argument.
85227
85228         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85229         e.g., a fault due to an attempt to free a NULL pointer.
85230
85231 2001-11-01  Jim Meyering  <meyering@lucent.com>
85232
85233         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85234         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85235
85236 2001-11-01  Jim Meyering  <meyering@lucent.com>
85237
85238         * lib/dirfd.c, lib/dirfd.h: New files.
85239         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85240
85241         * lib/hash.c (hash_print) [TESTING]: Clean up.
85242
85243 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85244
85245         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85246         to avoid a warning if -Wall.
85247
85248 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85249
85250         * README: New file
85251         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85252         (per RMS's instructions, this is now the canonical source)
85253         * lgpl/, gpl/: New directories.
85254
85255 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85256
85257         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85258
85259 2001-10-21  Jim Meyering  <meyering@lucent.com>
85260
85261         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85262         this code would end up calling gettext even in packages built
85263         with --disable-nls.
85264         * lib/getopt.c (_): Likewise.
85265         * lib/regex.c (_): Likewise.
85266
85267 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85268
85269         * m4/error.m4 (jm_PREREQ_ERROR):
85270         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85271         AC_FUNC_STRERROR_R does that.
85272         Check for strerror declaration.
85273
85274         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85275         are supposed to have them these days.
85276         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85277         Merge changes from latest Autoconf CVS.
85278         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85279         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85280         POSIX decided to standardize on the int flavor of strerror_r.
85281
85282 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85283
85284         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85285         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85286         Use strerror_r that is only a macro, even if it is not a function.
85287         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85288         (private_strerror): Use prototypes, not old-style function definition.
85289         (print_errno_message): New function.
85290         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85291         char*-flavored one.
85292         (error_tail, error, error_at_line): Use it.
85293
85294 2001-10-11  Jim Meyering  <meyering@lucent.com>
85295
85296         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85297         and quote_n (1, ... to avoid clobbering a buffer.
85298
85299 2001-10-05  Jim Meyering  <meyering@lucent.com>
85300
85301         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85302         hash-pjw.h.
85303         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85304         * lib/hash-pjw.h: New file.
85305
85306 2001-09-30  Jim Meyering  <meyering@lucent.com>
85307
85308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85309         `struct fsstat' has the `f_fstypename' member.
85310         Use that to define FS_TYPE, which is now used to make
85311         the getfsstat link test tighter.
85312
85313 2001-09-30  Jim Meyering  <meyering@lucent.com>
85314
85315         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85316         Include <sys/ucred.h>, for Apple Darwin.
85317         Include sys/mount.h and sys/fs_types.h only if available.
85318         (FS_TYPE): Define.
85319         (read_filesystem_list): Use FS_TYPE.
85320
85321 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85322
85323         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85324         a boolean context.
85325
85326 2001-09-29  Jim Meyering  <meyering@lucent.com>
85327
85328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85329         [one-argument getmntent function]): Include stdio.h before mntent.h.
85330         SunOS 4.1.x needs it for the declaration of `FILE'.
85331         Patch by Volker Borchert.
85332
85333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85334         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85335         sys/fs_types.h, and make the link-test for getfsstat guard #include
85336         directives with appropriate #if HAVE_*_H tests so that we can
85337         detect getfsstat on Apple Darwin1.3.7 systems.
85338         Reported by Nelson Beebe.
85339         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85340
85341 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85342
85343         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85344         #defines strtoimax.  Also treat the other strto* functions
85345         like strtoimax.
85346
85347         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85348         Check for strtoul and strtoumax,
85349         as those declarations are made even in the signed case.
85350         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85351         Likewise, for strtol and strtoimax.
85352
85353 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85354
85355         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85356         #defines strtoimax.  Also treat the other strto* functions
85357         like strtoimax.
85358
85359         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85360         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85361         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85362
85363 2001-09-26  Jim Meyering  <meyering@lucent.com>
85364
85365         Most macros in unlocked-io.h had the wrong number of arguments.
85366         * lib/gen-uio: New script.
85367         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85368         * lib/unlocked-io.hin: Remove file.
85369         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85370         rather than trying to embed it here.
85371         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85372         Reported by Padraig Brady.
85373
85374 2001-09-25  Volker Borchert  <bt@teknon.de>
85375
85376         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85377         `result'.
85378
85379 2001-09-24  Jim Meyering  <meyering@lucent.com>
85380
85381         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85382
85383 2001-09-23  Jim Meyering  <meyering@lucent.com>
85384
85385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85386         instead of the mere test for existence of mntent.h.  The latter
85387         would get a false-positive on AIX 3.4 systems.
85388         In the outer getmntent if-block, don't die if neither of the getmntent
85389         tests succeeds.  Instead, just fall through and continue with the
85390         remaining tests.
85391
85392 2001-09-23  Jim Meyering  <meyering@lucent.com>
85393
85394         * lib/mountlist.c: Remove useless parentheses in #if directives.
85395         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85396         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85397
85398 2001-09-22  Jim Meyering  <meyering@lucent.com>
85399
85400         * m4/gettext.m4: New file.  From gettext.
85401         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85402         * m4/progtest.m4: Likewise
85403         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85404         * m4/glibc21.m4: Likewise.
85405
85406         * m4/libintl.m4: Remove.  No longer used.
85407
85408 2001-09-22  Jim Meyering  <meyering@lucent.com>
85409
85410         * lib/localcharset.c: Update from latest gettext.
85411         * lib/config.charset: Likewise.
85412
85413 2001-09-20  Jim Meyering  <meyering@lucent.com>
85414
85415         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85416         strtoimax.
85417         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85418         strtoumax.
85419
85420 2001-09-20  Jim Meyering  <meyering@lucent.com>
85421
85422         * lib/xstrtol.c (strtoimax): Guard declaration with
85423         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85424         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85425         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85426         (strtoumax): Likewise, for completeness (it wasn't necessary).
85427
85428 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85429
85430         * lib/strtoimax.c (HAVE_LONG_LONG):
85431         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85432         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85433         to work around bug in IBM C compiler.
85434
85435 2001-09-17  Jim Meyering  <meyering@lucent.com>
85436
85437         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85438         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85439         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85440         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85441         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85442         whenever the right hand side need not be expanded by the shell.
85443
85444 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85445
85446         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85447         library.  It's not correct, as some older glibcs are buggy.
85448         fnmatch wasn't fixed until glibc 2.2.
85449
85450         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85451         special shell magic here.
85452
85453 2001-09-16  Jim Meyering  <meyering@lucent.com>
85454
85455         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85456         * m4/jm-macros.m4: Require it.
85457
85458 2001-09-16  Jim Meyering  <meyering@lucent.com>
85459
85460         * lib/mkdir.c: New file.
85461
85462 2001-09-15  Jim Meyering  <meyering@lucent.com>
85463
85464         * m4/jm-macros.m4: Check for help2man.
85465
85466 2001-09-11  Jim Meyering  <meyering@lucent.com>
85467
85468         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85469         The body, by Paul Eggert, was moved here from configure.in.
85470         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85471
85472 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85473
85474         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85475         (jm_PREREQ): Use it.
85476
85477 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85478
85479         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85480         Use ssize_t, not int, to store result of readlink.
85481         Check for ssize_t overflow as well as size_t overflow,
85482         as POSIX says the result of readlink is implementation-defined
85483         when ssize_t overflows.
85484         Remove unnecessary cast to char*.
85485         Use free+malloc instead of realloc, as the storage doesn't need
85486         to be preserved and it's clearer and can be more efficient that way.
85487         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85488         * lib/xreadlink.h (xreadlink): Update prototype.
85489
85490 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85491
85492         * lib/xgetcwd.c: Revert some of the previous change; intead,
85493         fix the HAVE_GETCWD_NULL code to behave more like the
85494         !HAVE_GETCWD_NULL code used to.
85495
85496         Include "xalloc.h".
85497         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85498         invoke xalloc_die.
85499
85500 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85501
85502         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85503         sys/param.h, as pathmax.h includes them.
85504
85505 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85506
85507         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85508         (jm_PREREQ_XGETCWD): New macro.
85509
85510         * m4/getcwd.m4: New file.
85511
85512 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85513
85514         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85515         like the HAVE_GETCWD_NULL code.
85516         Include pathmax.h if not HAVE_GETCWD.
85517         Do not include xalloc.h.
85518         (INITIAL_BUFFER_SIZE): New symbol.
85519         Do not use xmalloc / xrealloc, since the caller is responsible for
85520         handling errors.  Preserve errno around `free' during failure.
85521         Do not overrun buffer when using getwd.
85522
85523 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85524
85525         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85526         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85527         getcwd (NULL, 0).
85528
85529 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85530
85531         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85532         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85533         spotted by Jim Meyering.
85534
85535 2001-09-03  Jim Meyering  <meyering@lucent.com>
85536
85537         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85538         failure.
85539
85540 2001-09-02  Jim Meyering  <meyering@lucent.com>
85541
85542         * lib/error.c: Update from GNU libc.
85543
85544 2001-09-01  Jim Meyering  <meyering@lucent.com>
85545
85546         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85547         Used by df.
85548
85549 2001-09-01  Jim Meyering  <meyering@lucent.com>
85550
85551         * lib/xreadlink.c: New file.
85552         * lib/xreadlink.h: New file.
85553         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85554         xreadlink.h.
85555
85556         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85557         doesn't conflict with sparc Solaris 7's definition in
85558         /usr/include/sys/int_types.h.
85559
85560         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85561         files.
85562         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85563         and strncasecmp as r-values.  Unixware didn't have declarations.
85564
85565 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85566
85567         * lib/xstrtol.h: Add copyright notice.
85568         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85569         LONGINT_INVALID_SUFFIX_CHAR.
85570
85571 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85572
85573         * lib/xstrtol.c (strtoimax): New decl.
85574
85575 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85576
85577         * lib/xgetcwd.c: Don't include pathmax.h.
85578         Include stdlib.h and unistd.h if available.
85579         Include xalloc.h.
85580         (xmalloc, xstrdup, free): Remove decls.
85581         (xgetcwd): Don't assume sizes fit in unsigned.
85582         Check for overflow when computing sizes.
85583         Simplify reallocation code.
85584
85585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85586
85587         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85588         a directory's st_size can have an arbitrary value, so the old
85589         usage could waste an arbitrary amount of memory.  All uses
85590         changed.
85591         * lib/savedir.h: Update prototype.
85592
85593 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85594
85595         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85596
85597         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85598         old strtoimax.c.
85599
85600         Also, make the following further changes to make this file's
85601         configuration more similar to that of strtol.c:
85602         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85603         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85604         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85605         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85606         changed to signed values.
85607
85608         And make the following changes as well:
85609         Fix copyright notice, as 1999 was missing.
85610         (verify): New macro.
85611         (strtoimax): Check sizes at compile-time, not run-time.
85612         Prefer strtol to strtoll if both work.
85613         (main): Remove; it was not that useful and was a pain to maintain.
85614
85615         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85616
85617 2001-08-31  Jim Meyering  <meyering@lucent.com>
85618
85619         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85620         Use an initial, malloc'd, buffer of length 128 rather than
85621         a statically allocated one of length 1024.
85622
85623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85624
85625         Simplify code, partly by assuming autoconf 2.52 semantics.
85626
85627         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85628
85629         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85630         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85631         All uses removed.
85632         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85633         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85634         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85635         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85636         jm_AC_HEADER_INTTYPES_H.
85637         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85638
85639         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85640
85641         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85642         Quote first arg of AC_DEFUN.
85643         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85644         since they are needed to parse the include file even if we need
85645         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85647         but with opposite signedness.
85648
85649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85650
85651         Merge 'exclude' changes from tar 1.13.22.
85652         This fixes one or two unlikely storage allocation overflow bugs,
85653         but doesn't change user-visible behavior otherwise.
85654
85655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85656
85657         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85658         (jm_PREREQ_EXCLUDE): New macro.
85659
85660 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85661
85662         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85663         tm to be declared.
85664
85665 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85666
85667         * lib/hash.c: Remove '2001' from copyright notice.
85668
85669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85670
85671         * lib/full-write.h: New file.
85672         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85673         * lib/full-write.c: Correct credits, as cccp.c no longer
85674         exists and anyway it was so heavily changed from the old cccp
85675         code as to be unrecognizable.  Include full-write.h.
85676         (full_write): Return size_t, with short writes meaning failure.
85677         All callers changed.  This fixes a bug with large buffers
85678         on 64-bit hosts.
85679         * lib/utime.c: Include full-write.h.
85680
85681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85682
85683         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85684         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85685         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85686         Include if available.
85687         (<xalloc.h>): Include
85688         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85689         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85690         collide with FNM macros.
85691         (struct patopts): New struct.
85692         (struct exclude): Use it, as exclude patterns now come with options.
85693         (new_exclude): Support above changes.
85694         (new_exclude, add_exclude_file):
85695         Initial size must now be a power of two to simplify overflow checking.
85696         (free_exclude, fnmatch_no_wildcards): New function.
85697         (excluded_filename): No longer requires options arg, as the options
85698         are determined by add_exclude.  Now returns bool, not int.
85699         (excluded_filename, add_exclude):
85700         Add support for the fancy new exclusion options.
85701         (add_exclude, add_exclude_file): Now takes int options arg.
85702         Check for arithmetic overflow when computing sizes.
85703         (add_exclude_file): xrealloc might modify errno, so don't
85704         realloc until after errno might be used.
85705
85706         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85707         New macros.
85708         (free_exclude): New decl.
85709         (add_exclude, add_exclude_file): Now takes int options arg.
85710         (excluded_filename): No longer requires options arg, as the options
85711         are determined by add_exclude.  Now returns bool, not int.
85712
85713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85714
85715         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85716
85717 2001-08-27  Jim Meyering  <meyering@lucent.com>
85718
85719         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85720
85721         * lib/version-etc.c (N_): Remove definition.
85722         Revert most of last change.
85723         Instead, simply don't mark the `Copyright...' string for translation.
85724         Based on advice from Paul Eggert.
85725
85726         * lib/strtoxmax.c: Tweak comment.
85727
85728 2001-08-26  Jim Meyering  <meyering@lucent.com>
85729
85730         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85731
85732         * m4/xstrtoimax.m4: New file.
85733         * m4/xstrtoumax.m4: Add comments explaining why we
85734         AC_REPLACE_FUNCS(strtol).
85735
85736 2001-08-26  Jim Meyering  <meyering@lucent.com>
85737
85738         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85739         of copyright with `%s' so translators don't get an untranslated
85740         message in 2002.
85741         (COPYRIGHT_YEAR): Define.
85742         (version_etc): Use fprintf rather than fputs.
85743         Suggestion from Ulrich Drepper.
85744
85745         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85746
85747         * lib/strtoll.c: New file, from GNU libc.
85748         * lib/xstrtoimax.c: New file.
85749
85750         * lib/xstrtol.h: Add xstrtoimax.
85751         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85752         * lib/strtoimax.c: New file.  Likewise, but first define
85753         STRTOUXMAX_SIGNED.
85754
85755         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85756         ...
85757         * lib/strtoxmax.c: ... then renamed to this.
85758
85759 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85760
85761         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85762         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85763         (jm_AC_TYPE_INTMAX_T): New macro.
85764         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85765
85766         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85767
85768         * m4/longlong.m4: Renamed from ulonglong.m4.
85769         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85770         * m4/uintmax_t.m4: Removed.
85771
85772 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85773
85774         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85775         Port to Solaris 8, where 'sed' requires a space after the 'r'
85776         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85777         Redirect output to $tmp just once.
85778
85779 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85780
85781         * lib/addext.c (<errno.h>): Include.
85782         (errno): Declare if not defined.
85783         (addext): Work correctly when pathconf returns -1 and leaves
85784         errno alone because there is no limit.  Also, work even if
85785         pathconf returns a value greater than SIZE_MAX.
85786
85787 2001-08-12  Jim Meyering  <meyering@lucent.com>
85788
85789         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85790         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85791         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85792         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85793         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85794         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85795         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85796         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85797         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85798         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85799         utime.m4, utimes.m4, xstrtoumax.m4:
85800         Quote the first argument in each use of AC_DEFUN.
85801
85802 2001-08-12  Jim Meyering  <meyering@lucent.com>
85803
85804         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85805         Simply `return getcwd (NULL, 0);'.
85806         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85807         Use 1300 as initial value for length, not PATH_MAX.
85808
85809         * lib/pathmax.h: Clean up cpp syntax.
85810
85811 2001-08-12  Jim Meyering  <meyering@lucent.com>
85812
85813         * lib/gettimeofday.c: New file.
85814         * lib/gtod.h: New file.
85815         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85816
85817 2001-08-05  Jim Meyering  <meyering@lucent.com>
85818
85819         * m4/jm-macros.m4: Require autoconf-2.52.
85820
85821 2001-08-04  Jim Meyering  <meyering@lucent.com>
85822
85823         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85824         stmt, to get in sync with glibc.
85825
85826 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85827
85828         The following changes are from gettext 0.10.39 as maintained by
85829         Bruno Haible.
85830
85831         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85832         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85833         with inverted sense.  All uses changed.
85834
85835         * lib/mbswidth.c: Don't include <limits.h>.
85836         Include <stdlib.h> and <string.h> unconditionally.
85837         (iswcntrl, mbsinit, ISCNTRL): New macros.
85838         (mbsnwidth): Use K&R style function declarations.
85839         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85840         can optimize it when MB_CUR_MAX == 1.
85841         The width of control characters is zero, not 1.
85842
85843 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85844
85845         The following changes are from gettext 0.10.39 as maintained by
85846         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85847
85848         * m4/codeset.m4: Upgrade to serial AM1.
85849         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85850         all uses changed.  Quote first arg of AC_DEFUN.
85851         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85852
85853         * m4/iconv.m4: Upgrade to serial AM2.
85854         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85855         Add --with-libconv-prefix.
85856         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85857         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85858         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85859         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85860         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85861
85862         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85863         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85864         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85865         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85866         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85867         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85868         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85869         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85870         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85871
85872         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85873         string.h any more.
85874
85875         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85876         not the default value.
85877
85878         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85879         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85880         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85881         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85882         Also check for iswcntrl, used for wcwidth fallback.
85883         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85884         to Autoconf 2.13.
85885
85886 2001-08-03  Jim Meyering  <meyering@lucent.com>
85887
85888         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85889         as it was in the original.  Reported by Paul Eggert.
85890
85891 2001-07-16  Jim Meyering  <meyering@lucent.com>
85892
85893         * m4/gettimeofday.m4: New file.
85894         Prompted by a report from Bernhard Baehr.
85895
85896 2001-07-15  Jim Meyering  <meyering@lucent.com>
85897
85898         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85899         stuff. Now it's in ../Makefile.cfg.
85900
85901 2001-07-15  Jim Meyering  <meyering@lucent.com>
85902
85903         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85904         (BUILT_SOURCES): Add unlocked-io.h.
85905         (io_functions): Define.
85906         (unlocked-io.h): New rule.
85907         (DISTCLEANFILES): Add unlocked-io.h.
85908         (all-local): Depend on unlocked-io.h, to ensure it is created.
85909
85910         * lib/unlocked-io.hin: New file
85911
85912         * lib/regex.c: Update from glibc.
85913
85914 2001-07-05  Jim Meyering  <meyering@lucent.com>
85915
85916         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85917         recommendation.
85918         (libfetish_a_SOURCES): Put all .h files here instead.
85919         Remove a thus-exposed (better checks in automake) duplicate and
85920         two unnecessary .h files.
85921
85922 2001-07-04  Jim Meyering  <meyering@lucent.com>
85923
85924         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85925         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85926         distcheck failure.
85927
85928 2001-07-02  Jim Meyering  <meyering@lucent.com>
85929
85930         The following changes were prompted by suggestions from Bruno Haible.
85931
85932         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85933         is now generated.
85934         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85935         definition of EXTRA_DIST.
85936         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85937         ensure that the generated file is created/updated whenever the list
85938         of $(unlocked_functions) is changed.
85939         (jm-glibc-io.m4): New rule.
85940         (unlocked-io.h): New rule -- currently unused.
85941
85942 2001-06-24  Jim Meyering  <meyering@lucent.com>
85943
85944         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85945         unmatched right bracket, rather than kludging it with an extra,
85946         falsely-matching quote in a comment.  Patch by Akim Demaille.
85947
85948 2001-06-11  Jim Meyering  <meyering@lucent.com>
85949
85950         * lib/regex.c: Update from GNU libc.
85951
85952 2001-05-27  Jim Meyering  <meyering@lucent.com>
85953
85954         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85955         Check for ut_type in struct utmp.
85956
85957 2001-05-27  Jim Meyering  <meyering@lucent.com>
85958
85959         * lib/readutmp.h (UT_TYPE): Define.
85960
85961 2001-05-24  Jim Meyering  <meyering@lucent.com>
85962
85963         * lib/argmatch.c: Include "quote.h".
85964         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85965         quote function.  Reported by Göran Uddeborg.
85966
85967 2001-05-22  Jim Meyering  <meyering@lucent.com>
85968
85969         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85970         now that we use the package-supplied version unconditionally.
85971         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85972
85973 2001-05-21  Jim Meyering  <meyering@lucent.com>
85974
85975         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85976         shell syntax errors.
85977
85978 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85979
85980         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85981
85982 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85983
85984         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85985         Don't bother to check library strftime, since
85986         we'll be using our own my_strftime function anyway.
85987         Define my_strftime instead of strftime.
85988
85989 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85990
85991         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85992         which is not yet declared.
85993
85994 2001-05-15  Jim Meyering  <meyering@lucent.com>
85995
85996         * m4/regex.m4: Use proper quoting so brackets appear in the test
85997         program.
85998         Reported by, and with help from, Bruno Haible.
85999
86000 2001-05-13  Jim Meyering  <meyering@lucent.com>
86001
86002         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86003         undefined.
86004
86005 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86006
86007         dirname code cleanup.  base_name now behaves more compatibly
86008         with POSIX basename when given file names that have trailing
86009         slashes, and similarly for dir_name.  Add new primitives
86010         base_len and dir_len.  Put the directory-name-related decls
86011         into dirname.h.
86012
86013         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86014         * lib/backupfile.c (base_name): Likewise.
86015         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86016         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86017         * lib/makepath.c (strip_trailing_slashes): Likewise.
86018         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86019         ISSLASH): Likewise.
86020         * lib/rename.c (strip_trailing_slashes): Likewise.
86021         * lib/same.c (base_name): Likewise.
86022         * lib/stripslash.c (ISSLASH): Likewise.
86023
86024         * lib/addext.c: Include <dirname.h> after size_t is defined.
86025         * lib/backupfile.c: Likewise.
86026
86027         * lib/addext.c (addext): Use base_len to trim redundant
86028         trailing slashes instead of doing it ourselves.
86029         But do not trim the last slash if it is not redundant.
86030
86031         * lib/backupfile.c (find_backup_file_name,
86032         max_backup_version): Use base_len instead of rolling it ourselves.
86033         Handle the case of "" and (on DOS) "C:" correctly.
86034
86035         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86036         needed. Include <string.h>, <dirname.h>.
86037         (base_name): Allow file names ending in slashes, other than names
86038         that are all slashes.  In this case, return the basename followed
86039         by the slashes.  This is more general, and can be used in places
86040         where the original base_name purposely had an assertion failure.
86041         (base_len): New function.
86042
86043         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86044         Do not include <assert.h>; no longer needed.
86045         Include xalloc.h.
86046         (memrchr): Remove decl.
86047         (dir_name_r): Remove.
86048         (dir_len): Renamed from dirlen.  All callers changed.
86049         Rewrite in terms of base_name, for simplicity and consistency.
86050         (dir_name): Never return NULL.  All callers changed.
86051         Do not include <stdlib.h> in test program; no longer needed.
86052         return 0; is fine for test program.
86053
86054         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86055         New macros.
86056         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86057
86058         * lib/path-concat.c (path_concat): Use base_len to compute
86059         base length, not strlen; this means we cannot rely on memcpy
86060         to null-terminate.
86061
86062         * lib/same.c (STREQ): Remove.
86063         (same_name): Handle the case where the basename ends in trailing '/'.
86064
86065         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86066         a slash was stripped.  Do not strip the last slash after a
86067         file system prefix.
86068
86069 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86070
86071         * lib/Makefile.am (libfetish_a_SOURCES):
86072         Add strftime.c, since we now compile it on all hosts.
86073
86074         * lib/strftime.c (my_strftime):
86075         Define to nstrftime if emacs, but only if my_strftime is not defined.
86076         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86077         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86078         Add one more extra argument: a nanoseconds value.
86079         All uses changed.
86080         (ns): New macro.
86081         (my_strftime function): Add %N format.
86082         (emacs_strftimeu): Renamed from emacs_strftime,
86083         with extra ut argument.
86084
86085 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86086
86087         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86088
86089 2001-04-21  Jim Meyering  <meyering@lucent.com>
86090
86091         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86092         doesn't interfere.
86093
86094 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86095
86096         * m4/ftruncate.m4: Check for chsize.
86097         Link with ftruncate.o unconditionally if ftruncate is missing.
86098         This was required when cross-compiling to i586-mingw32msvc.
86099
86100 2001-04-08  Jim Meyering  <meyering@lucent.com>
86101
86102         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86103         recomputed; that's necessary when the offset spans a DST transition.
86104         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86105
86106 2001-04-02  Jim Meyering  <meyering@lucent.com>
86107
86108         * lib/regex.h, regex.c: Update from GNU libc.
86109
86110 2001-03-24  Jim Meyering  <meyering@lucent.com>
86111
86112         * m4/jm-macros.m4: Require autoconf-2.49d.
86113
86114 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86115
86116         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86117
86118 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86119
86120         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86121
86122 2001-03-17  Jim Meyering  <meyering@lucent.com>
86123
86124         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86125         now that the version in autoconf is equivalent.
86126         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86127
86128         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86129         Suggestion from Akim Demaille.
86130
86131         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86132         (jm_PREREQ_TEMPNAME): New function.
86133
86134 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86135
86136         * lib/tempname.c (uint64_t): Define to uintmax_t if
86137         not defined, and if UINT64_MAX is not defined.
86138         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86139         Reported by John David Anglin.
86140
86141 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86142
86143         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86144         resolve alias if codeset is empty.
86145         * lib/config.charset (BeOS): Use wildcard syntax.
86146
86147 2001-03-13  Jim Meyering  <meyering@lucent.com>
86148
86149         * lib/path-concat.c (path_concat)
86150         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86151         concatenating e.g., `C:' and `foo'.
86152         From Bruno Haible.
86153
86154 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86155
86156         * lib/localcharset.c (locale_charset): Don't use
86157         setlocale(LC_CTYPE,NULL). Don't return NULL.
86158         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86159
86160 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86161
86162         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86163         support for DOS/DJGPP.
86164
86165 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86166
86167         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86168         lacks mkstemp.  Compile our own tempname.c if we compile our own
86169         mkstemp.c, as mkstemp relies on tempname.
86170
86171 2001-03-01  Jim Meyering  <meyering@lucent.com>
86172
86173         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86174         AH_VERBATIM really does output its argument verbatim.
86175
86176 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86177
86178         * lib/Makefile.am (libfetish_a_SOURCES):
86179         Add dup-safer.c, fopen-safer.c.
86180         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86181
86182         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86183         * lib/unistd-safer.h: New files.
86184
86185 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86186
86187         The mkstemp replacement is taken from glibc 2.2.2, with some
86188         portability fixes for use outside glibc, as follows:
86189
86190         * lib/tempname.c (struct_stat64): New macro.
86191         (direxists, __gen_tempname): Use it.
86192         This avoids a portability problem with Solaris 8.
86193
86194         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86195         (<stddef.h>, <stdint.h>, <string.h>):
86196         Include only if STDC_HEADERS || _LIBC.
86197         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86198         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86199         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86200         (__set_errno): Define this macro if <errno.h> doesn't.
86201         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86202         Define these macros if <stdio.h> doesn't.
86203         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86204         Define these macros if <sys/stat.h>
86205         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86206         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86207         __xstat64): Define if not _LIBC.
86208         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86209         (__gen_tempname): Invoke gettimeofday only if
86210         HAVE_GETTIMEOFDAY || _LIBC;
86211         otherwise, fall back on plain "time".
86212         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86213
86214         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86215
86216         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86217
86218 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86219
86220         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86221
86222 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86223
86224         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86225         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86226         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86228
86229 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86230
86231         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86232         Remove workaround macros for hosts that have mbrtowc but not
86233         mbstate_t, as we now insist on proper declarations for both
86234         before using mbrtowc.
86235
86236 2001-02-17  Jim Meyering  <meyering@lucent.com>
86237
86238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86239         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86240         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86241         UnixWare 7.1.1.
86242
86243         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86244         rather than AC_CACHE_VAL.
86245
86246 2001-02-17  Jim Meyering  <meyering@lucent.com>
86247
86248         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86249         around included file name.
86250
86251         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86252
86253         * lib/strftime.c: Update from GNU libc (the only changes were to
86254         comments).
86255
86256 2001-02-17  Jim Meyering  <meyering@lucent.com>
86257
86258         * lib/regex.c: Update from libc.
86259
86260 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86261
86262         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86263         clash.
86264
86265 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86266
86267         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86268         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86269         Reported by Mark Hounschell via Paul Eggert.
86270
86271 2001-02-07  Jim Meyering  <meyering@lucent.com>
86272
86273         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86274
86275 2001-02-05  Jim Meyering  <meyering@lucent.com>
86276
86277         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86278         it includes the patch required for `large file' support with at least
86279         HP-UX's 10.20 /bin/cc.
86280
86281 2001-02-03  Jim Meyering  <meyering@lucent.com>
86282
86283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86284         AS_IF, now that it works once again (mysteriously).
86285         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86286
86287 2001-01-30  Jim Meyering  <meyering@lucent.com>
86288
86289         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86290         * m4/chown.m4: Rename conftestchown to conftest.chown.
86291         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86292         s/conftestdir2/conftest.d2/.
86293         * m4/utimes.m4: s/conftestdata/conftest.data/
86294         Inspired by Pavel Roskin's change in autoconf.
86295
86296 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86297
86298         * lib/config.charset: Update for FreeBSD 4.2.
86299
86300 2001-01-27  Jim Meyering  <meyering@lucent.com>
86301
86302         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86303         a use of AS_IF.
86304         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86305
86306 2001-01-26  Jim Meyering  <meyering@lucent.com>
86307
86308         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86309         quotearg.c includes it.
86310
86311 2001-01-26  Jim Meyering  <meyering@lucent.com>
86312
86313         * lib/quotearg.c: Include stddef.h.
86314         * lib/quote.c: Include stddef.h.
86315         Reported by Axel Kittenberger.
86316
86317         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86318         line in double quotes so that it evokes a better diagnostic.
86319         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86320         Reported by Axel Kittenberger.
86321
86322 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86323
86324         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86325         as if it was a `charset'.
86326
86327 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86328
86329         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86330         has const.
86331
86332 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86333
86334         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86335         to avoid a warning.  Add back 'const' to inptr.
86336
86337 2001-01-20  Jim Meyering  <meyering@lucent.com>
86338
86339         Be sure that headers are checked before used in code compiled
86340         for the type checks.
86341         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86342         In place of that, invoke jm_CHECK_ALL_TYPES.
86343         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86344         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86345         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86346         The check for ssize_t was mistakenly run before the test for unistd.h.
86347
86348         The configure-time check for stdbool.h was missing.
86349         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86350         (jm_PREREQ_HASH): New function.
86351
86352 2001-01-17  Jim Meyering  <meyering@lucent.com>
86353
86354         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86355         for autoconf-2.49c.
86356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86357
86358 2001-01-16  Jim Meyering  <meyering@lucent.com>
86359
86360         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86361         From Bruno Haible.
86362
86363 2001-01-14  Jim Meyering  <meyering@lucent.com>
86364
86365         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86366         foo and bar.  Create conftestdir/ in the script, not in the C code.
86367         Remove directories in the script, not in the C code.
86368         Remove conftestdir{,2} before trying to create the directory.
86369         Make the entire configure script fail if the mkdir fails.
86370
86371 2001-01-14  Jim Meyering  <meyering@lucent.com>
86372
86373         * lib/rename.c: New file.  From Volker Borchert.
86374         Include stdlib.h, string.h or strings.h, and xalloc.h.
86375         Use strip_trailing_slashes rather than open-coding it.
86376
86377 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86378
86379         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86380
86381 2001-01-03  Jim Meyering  <meyering@lucent.com>
86382
86383         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86384         of local `inptr' to avoid warning with some system declarations of
86385         iconv.
86386
86387 2001-01-02  Volker Borchert  <bt@teknon.de>
86388
86389         * m4/rename.m4: New file.
86390         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86391
86392 2001-01-01  Jim Meyering  <meyering@lucent.com>
86393
86394         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86395         even on systems with utmpx.h.  It's necessary for the declaration of
86396         utmp's ut_user member.  Reported by Andreas Jaeger.
86397
86398         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86399         available. They are required for the declarations of getgrgid and
86400         getpwuid resp.
86401         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86402         Reported by Andreas Jaeger.
86403
86404 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86405
86406         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86407         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86408         so `make install' also works in VPATH builds.
86409
86410 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86411
86412         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86413         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86414         can be used in subdirectories.
86415
86416 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86417
86418         * lib/modechange.c: Do not assume that mode_t uses the
86419         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86420         the other-execute bit of FOO even if S_IXOTH != 1.
86421
86422         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86423         WOTH, XOTH, ALLM): New macros.
86424         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86425          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86426         Use them.
86427         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86428         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86429         (mode_compile):
86430         No need to use uintmax_t; unsigned long is long enough.
86431         Don't bother to get suffix since we don't use it.
86432
86433 2000-12-26  Jim Meyering  <meyering@lucent.com>
86434
86435         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86436         better with autoheader.
86437
86438 2000-12-24  Jim Meyering  <meyering@lucent.com>
86439
86440         * lib/hash.c (is_prime): Return explicit boolean values.
86441         (hash_get_first): Return NULL to appease Irix5.6's 89.
86442         Reported by Nelson Beebe.
86443
86444 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86445
86446         * lib/localcharset.c (locale_charset): Add support for Win32.
86447
86448 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86449
86450         * lib/physmem.h, lib/physmem.c: New files.
86451
86452         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86453         (noinst_HEADERS): Add physmem.h.
86454
86455         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86456         't' for compatibility with Solaris 8 sort.
86457
86458 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86459
86460         * lib/config.charset: Add support for BeOS.
86461
86462 2000-12-17  Jim Meyering  <meyering@lucent.com>
86463
86464         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86465         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86466
86467 2000-12-16  Jim Meyering  <meyering@lucent.com>
86468
86469         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86470         N and M) would have treated it like `chown N:N FILE'.
86471
86472         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86473
86474 2000-12-16  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86477         SHELLS_FILE to a file name that's useful on djgpp systems.
86478         Include stdlib.h.
86479         (ADDITIONAL_DEFAULT_SHELLS): Define.
86480         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86481         Based mostly on a patch from Prashant TR.
86482
86483 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86484
86485         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86486         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86487         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86488
86489 2000-12-08  Andreas Schwab  <schwab@suse.de>
86490
86491         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86492         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86493
86494 2000-12-07  Jim Meyering  <meyering@lucent.com>
86495
86496         * lib/stripslash.c (ISSLASH): Define.
86497         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86498         `/'.
86499         From Prashant TR.
86500
86501         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86502         (dir_name_r): Declare this function as static.
86503         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86504         manifest itself on a name containing a mix of slashes and
86505         backslashes.
86506         Make this function work with names starting with a DOS-style
86507         drive letter and colon prefix.
86508         (dir_name): Append `.' if necessary.
86509         Based mostly on patches from Prashant TR and Eli Zaretskii.
86510
86511         * lib/dirname.h (dir_name_r): Remove prototype.
86512
86513 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86514
86515         * m4/off_t-format.m4: Remove this file.
86516         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86517
86518 2000-12-06  Jim Meyering  <meyering@lucent.com>
86519
86520         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86521         replacement strtoull, we may well need the replacement strtoul, too.
86522         Check for declarations of strtoul and strtoull.
86523         Check for strtol.  Mainly as a cue to cause automake to include
86524         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86525         Check for limits.h -- strtol.c needs it.
86526
86527 2000-12-05  Jim Meyering  <meyering@lucent.com>
86528
86529         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86530
86531 2000-12-04  Jim Meyering  <meyering@lucent.com>
86532
86533         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86534         Also include memory.h, stdlib.h, unistd.h if appropriate.
86535         Reported by Andreas Jaeger (conflicting declaration of malloc).
86536
86537 2000-12-02  Jim Meyering  <meyering@lucent.com>
86538
86539         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86540         * m4/jm-macros.m4 (jm_MACROS): require it.
86541
86542 2000-12-02  Jim Meyering  <meyering@lucent.com>
86543
86544         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86545
86546 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86547
86548         * lib/memrchr.c: Include <config.h> before any system include file.
86549
86550 2000-11-30  Jim Meyering  <meyering@lucent.com>
86551
86552         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86553
86554 2000-11-30  Jim Meyering  <meyering@lucent.com>
86555
86556         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86557
86558 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86559
86560         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86561
86562 2000-11-26  Jim Meyering  <meyering@lucent.com>
86563
86564         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86565
86566 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86567
86568         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86569         size of (size_t) -1; it's not portable.
86570
86571 2000-11-17  Jim Meyering  <meyering@lucent.com>
86572
86573         * lib/strstr.c: Update from GNU libc.
86574
86575 2000-11-17  Akim Demaille  <akim@epita.fr>
86576
86577         * lib/obstack.h: Formatting changes.
86578         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86579         prevent type checking.
86580         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86581         cast the value to (void *): assigning a `foo *' to a `void *'
86582         variable is valid.
86583         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86584
86585 2000-11-16  Jim Meyering  <meyering@lucent.com>
86586
86587         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86588
86589 2000-11-11  Jim Meyering  <meyering@lucent.com>
86590
86591         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86592
86593 2000-11-10  Jim Meyering  <meyering@lucent.com>
86594
86595         * lib/obstack.h: Update from GNU libc.
86596         * lib/obstack.c: Likewise.
86597
86598 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86599
86600         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86601
86602 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86603
86604         * lib/getusershell.c (setusershell): Use rewind rather than
86605         fseek/fseeko, to avoid configuration hassles with fseeko.
86606         Don't bother opening SHELLS_FILE if shellstream is NULL;
86607         it's not necessary.
86608
86609 2000-11-05  Jim Meyering  <meyering@lucent.com>
86610
86611         * lib/makepath.h (make_dir): Declare.
86612         * lib/makepath.c (make_dir): Remove `static' attribute.
86613         Tweak a comment.
86614
86615 2000-11-04  Jim Meyering  <meyering@lucent.com>
86616
86617         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86618
86619 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86620
86621         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86622         last one in a bucket, advance to the next bucket.
86623
86624 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86625
86626         * lib/fnmatch.c: Do not comment out all the code if we are using
86627         the GNU C library, because in some cases we are replacing buggy
86628         code in the GNU C library itself.
86629
86630 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86631
86632         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86633         (regex_compile): Catch bogus \(\1\).
86634
86635 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86636
86637         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86638         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86639         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86640
86641 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86642
86643         * lib/error.h, getline.h, modechange.h:
86644         Remove "2000" from Copyright line, as the file hasn't been
86645         changed this year other than in the copyright notice.
86646
86647         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86648         was changed this year.
86649
86650 2000-10-29  Jim Meyering  <meyering@lucent.com>
86651
86652         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86653         renaming.
86654         * m4/ls-mntd-fs.m4: Likewise
86655
86656 2000-10-29  Jim Meyering  <meyering@lucent.com>
86657
86658         * lib/xstat.in: Fix grammar in comment.
86659
86660 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86661
86662         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86663         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86664         doesn't define __restrict_arr.
86665
86666 2000-10-28  Jim Meyering  <meyering@lucent.com>
86667
86668         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86669         (jm_PREREQ_MEMCHR): New function.
86670
86671 2000-10-28  Jim Meyering  <meyering@lucent.com>
86672
86673         * lib/memchr.c: Update from libc.
86674         Adjust for portability:
86675         [HAVE_STDLIB_H]: Include stdlib.h.
86676         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86677         Undef __memchr, too.
86678         [!weak_alias]: Define __memchr to memchr.
86679
86680         * lib/regex.c: Update from libc.
86681         * lib/regex.h: Likewise.
86682         * lib/getopt1.c: Likewise.
86683         * lib/memcmp.c: Likewise.
86684
86685         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86686         Avoid using fseek, when possible -- it's broken by design.
86687         Patch by Ulrich Drepper.
86688
86689 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86690
86691         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86692         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86693         Giving in to popular pressure to shut up the compiler with casts.
86694
86695 2000-10-26  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/strftime.c: Update from libc.
86698
86699 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86700
86701         * regex.c: More `unsigned char' -> `re_char' changes.
86702         Also change several `int' into `re_wchar_t'.
86703         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86704         (PUSH_FAILURE_POINTER): Don't cast any more.
86705         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86706         We want GCC to complain, since this piece of code makes
86707         re_match non-reentrant, which *should* be fixed.
86708         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86709         (EXTEND_BUFFER): Use RETALLOC.
86710         (SET_LIST_BIT): Don't cast.
86711         (re_wchar_t): New type.
86712         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86713         that those two functions will always properly return.
86714         (IMMEDIATE_QUIT_CHECK): Cast to void.
86715         (analyse_first): Use recursion rather than an explicit stack.
86716         (re_compile_fastmap): Can't fail anymore.
86717         (re_search_2): Don't check re_compile_fastmap for failure.
86718         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86719         Now also sets the new value (passed in a new argument).
86720         (re_match_2_internal): Use it.
86721         Also, use a new var `reg' of type size_t when looping through regs
86722         rather than reuse the inappropriate `mcnt'.
86723
86724 2000-10-25  Jim Meyering  <meyering@lucent.com>
86725
86726         * lib/obstack.c: Update from libc.
86727
86728 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86729
86730         * regex.c (regex_compile): Change the way of handling a range from
86731         a char less than 256 to a char not less than 256.
86732
86733 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86734
86735         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86736         NT-Emacs only.
86737         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86738         so that re_search functions only quit when callers expect them to.
86739
86740 2000-10-23  Jim Meyering  <meyering@lucent.com>
86741
86742         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86743         wrong.  That set_locale call must not have any side effects.
86744         From Paul Eggert.
86745
86746 2000-10-22  Jim Meyering  <meyering@lucent.com>
86747
86748         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86749         [CYCLIC]: Remove now-unused definition.
86750
86751         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86752         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86753         Suggestion from Ulrich Drepper.
86754
86755 2000-10-21  Jim Meyering  <meyering@lucent.com>
86756
86757         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86758         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86759         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86760
86761 2000-10-21  Jim Meyering  <meyering@lucent.com>
86762
86763         * lib/dirname.c (memrchr): Declare if necessary.
86764         (dir_name): Remove the restriction that there be no
86765         trailing slashes.  Now, this code skips past them, effectively
86766         ignoring them.
86767         [TEST_DIRNAME] (main): New unit tests.
86768
86769         * lib/memrchr.c: New file from GNU libc.
86770         Undef __memrchr, too.
86771         [!weak_alias]: Define __memrchr to memrchr.
86772         Guard weak_alias use with `#ifdef weak_alias'.
86773
86774 2000-10-21  Jim Meyering  <meyering@lucent.com>
86775
86776         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86777         (dir_name): Use dir_name_r.
86778         * lib/dirname.h (dir_name_r): Declare it.
86779
86780 2000-10-17  Jim Meyering  <meyering@lucent.com>
86781
86782         * lib/quote.h (PARAMS): Define and use.
86783         Reported by Akim Demaille.
86784
86785         * lib/getopt.c: Update from libc.
86786
86787 2000-10-16  Jim Meyering  <meyering@lucent.com>
86788
86789         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86790         setlocale.
86791         From Jan Fedak.
86792
86793 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86794
86795         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86796
86797 2000-09-25  Jim Meyering  <meyering@lucent.com>
86798
86799         * lib/md5.h (rol): Define (from GnuPG).
86800
86801         * lib/sha.c: Give credit (GnuPG) where due.
86802         (M): Use rol rather than open-coding it.
86803         Add a FIXME comment.
86804
86805 2000-09-21  Jim Meyering  <meyering@lucent.com>
86806
86807         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86808         Reported by Michael Stone.
86809
86810 2000-09-20  Jim Meyering  <meyering@lucent.com>
86811
86812         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86813         (noinst_HEADERS): Add sha.h.
86814         Based on code from Scott G. Miller and from GnuPG.
86815
86816 2000-09-18  Jim Meyering  <meyering@lucent.com>
86817
86818         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86819         LIBS. Otherwise, everyone ends up linking with -lelf for some
86820         configurations.
86821         Reported by Mike Stone.
86822
86823 2000-09-15  Jim Meyering  <meyering@lucent.com>
86824
86825         * lib/regex.c: Update from libc.
86826
86827 2000-09-10  Jim Meyering  <meyering@lucent.com>
86828
86829         * lib/getopt.c (_getopt_internal): Update from glibc.
86830
86831 2000-09-09  Jim Meyering  <meyering@lucent.com>
86832
86833         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86834         think it should be used as a general replacement for isascii.
86835         * lib/fnmatch.c: Likewise.
86836         * lib/mbswidth.c: Likewise
86837         * lib/regex.c: Likewise.
86838
86839         Don't use atoi.
86840         * lib/userspec.c: Include sys/param.h and limits.h.
86841         Include xstrtol.h.
86842         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86843         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86844         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86845         UID, GID.  Check range.
86846
86847 2000-09-06  Jim Meyering  <meyering@lucent.com>
86848
86849         * lib/getopt.c (_getopt_internal): Update from glibc.
86850
86851 2000-08-30  Jim Meyering  <meyering@lucent.com>
86852
86853         * lib/strftime.c: Merge in changes from GNU libc.
86854
86855 2000-08-26  Jim Meyering  <meyering@lucent.com>
86856
86857         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86858         * m4/fpending.m4: New file.
86859
86860 2000-08-26  Jim Meyering  <meyering@lucent.com>
86861
86862         * lib/closeout.c: Include "__fpending.h".
86863         (close_stdout_status): Return right away if there's nothing to flush.
86864
86865         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86866         * lib/__fpending.c: New file.
86867         * lib/__fpending.h: New file.
86868
86869 2000-08-20  Jim Meyering  <meyering@lucent.com>
86870
86871         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86872         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86873         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86874
86875 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86876
86877         Improve fileutils installation on systems where running
86878         programs (like install) can't be unlinked.
86879         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86880         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86881
86882 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86883
86884         Standardize on "memory exhausted" instead of "Memory exhausted"
86885         or "virtual memory exhausted".
86886         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86887         "virtual memory exhausted".
86888         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86889         our own message.
86890         * lib/userspec.c (parse_user_spec): Likewise.
86891         * lib/bumpalloc.h: comment fix
86892         * lib/same.c, userspec.c: Include xalloc.h.
86893
86894         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86895         not char *const and pointing to a constant array.
86896         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86897         (xrealloc): Comment fix.
86898
86899         * lib/userspec.c (parse_user_spec):
86900         Don't translate a message until just before returning,
86901         to avoid unnecessary translation.
86902
86903 2000-08-07  Jim Meyering  <meyering@lucent.com>
86904
86905         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86906         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86907         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86908         getgroups.c, gethostname.c, getopt.h, group-member.c,
86909         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86910         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86911         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86912         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86913         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86914         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86915         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86916         yesno.c: Back out Copyright date changes for each file with no change
86917         this year.  This eases coordination with other programs using the same
86918         source code modules.  From Paul Eggert.
86919
86920 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86921
86922         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86923         not char, for compatibility with glibc 2.1.3 strftime.c.
86924
86925 2000-08-03  Greg McGary  <greg@mcgary.org>
86926
86927         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86928         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86929         (EXTEND_BUFFER): Use them.
86930
86931 2000-08-01  Jim Meyering  <meyering@lucent.com>
86932
86933         * lib/dirname.c (ISSLASH): Define.
86934         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86935         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86936         both `\' and `/' may be use as path separators.
86937         Based on a patch from Prashant TR.
86938
86939 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86940
86941         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86942         slot vector a constant, since it might get modified.
86943
86944 2000-07-31  Jim Meyering  <meyering@lucent.com>
86945
86946         * lib/xmalloc.c: Use `virtual memory exhausted', not
86947         `Memory exhausted'.
86948         * lib/obstack.c (print_and_abort): Likewise.
86949
86950 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86951
86952         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86953         buffer, so that the caller can always quote one small
86954         component of a "memory exhausted" message in slot 0.
86955         From a suggestion by Jim Meyering.
86956
86957 2000-07-30  Jim Meyering  <meyering@lucent.com>
86958
86959         * lib/makepath.c (make_path): Quote the other instance, too.
86960
86961         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86962         (STATIC_BUF_SIZE): Define.
86963         (quotearg_n_options): Use only statically allocated storage when
86964         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86965         than STATIC_BUF_SIZE.
86966
86967 2000-07-29  Jim Meyering  <meyering@lucent.com>
86968
86969         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86970         * lib/dirname.c (dir_name): Likewise.
86971
86972         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86973         `/'.
86974
86975         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86976         (dir_name): Assert that there are no trailing slashes.
86977
86978 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86979
86980         * lib/mbswidth.h (mbswidth): Add a flags argument.
86981         (mbswidth): New declaration.
86982         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86983         * lib/mbswidth.c (mbswidth): Add a flags argument.
86984         (mbsnwidth): New function.
86985
86986 2000-07-24  Jim Meyering  <meyering@lucent.com>
86987
86988         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86989
86990 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86991
86992         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86993
86994 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86995
86996         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86997         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86998         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86999         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87000         invoke multibyte primitives.
87001
87002 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87003
87004         * lib/quotearg.c:
87005         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87006         so that mbstate_t is always defined.
87007
87008         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87009         be 1 in at least one GCC installation, and this configuration
87010         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87011         performance on hosts that have mbrtowc but have only unibyte
87012         locales, but I assume these hosts are rare.
87013
87014 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87015
87016         * lib/mbswidth.c (_XOPEN_SOURCE):
87017         Don't define; this causes problems on Solaris 7.
87018         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87019
87020 2000-07-23  Jim Meyering  <meyering@lucent.com>
87021
87022         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87023         too: getgrgid, getpwuid, getuid.
87024
87025 2000-07-23  Jim Meyering  <meyering@lucent.com>
87026
87027         * lib/basename.c (base_name): Add an assertion.
87028
87029 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87030
87031         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87032         shadow its mbsinit function.
87033
87034 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87035
87036         * lib/mbswidth.h: New file.
87037         * lib/mbswidth.c: New file.
87038         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87039         (noinst_HEADERS): Add mbswidth.h.
87040
87041 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87042
87043         * lib/config.charset: Add support for FreeBSD. Improve support for
87044         HP-UX and IRIX 6.
87045
87046 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87047
87048         * m4/mbswidth.m4: New file.
87049         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87050
87051 2000-07-15  Jim Meyering  <meyering@lucent.com>
87052
87053         * lib/makepath.c: Include quote.h.
87054         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87055         corresponding argument in a `quote (...)' call.
87056         Give better diagnostics.
87057
87058         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87059         (noinst_HEADERS): Add quote.h.
87060
87061         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87062         from tar's src/misc.c.
87063         * lib/quote.h: New file.  Prototypes for same.
87064
87065 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87066
87067         From a suggestion by Bruno Haible.
87068         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87069         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87070         to decide whether to define the BeOS workaround macro;
87071         this adjusts to the change to AC_MBSTATE_T.
87072
87073 2000-07-14  Jim Meyering  <meyering@lucent.com>
87074
87075         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87076         jm_AC_TYPE_UINTMAX_T.
87077
87078 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87079
87080         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87081
87082         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87083         quotearg_buffer_restyled): Add support for
87084         clocale_quoting_style.  Undo previous change to
87085         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87086         and "{RIGHT QUOTATION MARK}" msgids.
87087
87088 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87089
87090         From a suggestion by Bruno Haible.
87091         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87092         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87093         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87094         and mbstate_t, to a single-part test that simply defines mbstate_t.
87095         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87096         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87097
87098 2000-07-10  Jim Meyering  <meyering@lucent.com>
87099
87100         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87101
87102         * m4/gnu-source.m4: Output to confdefs.h directly.
87103         Suggestion from Akim Demaille.
87104
87105 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87106
87107         The old behavior of quoting `like this' doesn't look good with
87108         newer, ISO-style fonts.  See:
87109         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87110
87111         Instead, quote "like this" by default.  Let the translator
87112         tailor the locale-specific quoting behavior by providing
87113         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87114
87115         * lib/quotearg.c (N_): New macro.
87116         (gettext_default): New function.
87117         (quotearg_buffer_restyled): Use
87118         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87119         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87120
87121 2000-07-09  Jim Meyering  <meyering@lucent.com>
87122
87123         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87124         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87125
87126         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87128
87129 2000-07-09  Jim Meyering  <meyering@lucent.com>
87130
87131         * lib/Most files: Update copyright dates to include 2000.
87132
87133 2000-07-08  Jim Meyering  <meyering@lucent.com>
87134
87135         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87136         if not defined.
87137         (xgethostname): Remove now-unnecessary #ifdef.
87138         Move declaration of `err' into loop where it's used.
87139
87140 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87141         and Bruno Haible  <haible@clisp.cons.org>
87142
87143         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87144         only if the test for an object-type mbstate_t fails.  This
87145         prevents us from mistakenly reporting that mbstate_t is a
87146         system object type after we "#define mbstate_t int" to work
87147         around its lack.
87148
87149 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87150         and Bruno Haible  <haible@clisp.cons.org>
87151
87152         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87153
87154 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87155
87156         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87157         to strerror_r.
87158         Include <ctype.h> for use of isalpha.
87159
87160 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87161
87162         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87163         by allocating a larger buffer. Test the gethostname return value for
87164         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87165         returns an error and ENAMETOOLONG isn't defined.
87166
87167 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87168
87169         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87170         dimension.
87171
87172 2000-07-04  Jim Meyering  <meyering@lucent.com>
87173
87174         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87175         of the deprecated AC_CHECKING.
87176
87177 2000-07-04  Jim Meyering  <meyering@lucent.com>
87178
87179         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87180         Reported by Bruno Haible.
87181
87182 2000-07-04  Jim Meyering  <meyering@lucent.com>
87183
87184         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87185         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87186         lacks mbrtowc.
87187
87188 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87189
87190         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87191         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87192
87193 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87194         and Bruno Haible  <haible@clisp.cons.org>
87195
87196         * lib/quotearg.c (mbrtowc):
87197         Assign to *pwc, and return 1 only if result is nonzero.
87198         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87199
87200 2000-07-03  Jim Meyering  <meyering@lucent.com>
87201
87202         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87203
87204 2000-07-03  Jim Meyering  <meyering@lucent.com>
87205
87206         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87207         This is necessary to get a definition of e.g., UTMP_FILE on
87208         HP-UX 10.20.
87209         From Bob Proulx.
87210
87211 2000-07-02  Jim Meyering  <meyering@lucent.com>
87212
87213         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87214
87215         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87216         AC_LIBOBJ(function_name).
87217         * m4/chown.m4: Likewise.
87218         * m4/fnmatch.m4: Likewise.
87219         * m4/ftruncate.m4: Likewise.
87220         * m4/getgroups.m4: Likewise.
87221         * m4/getline.m4: Likewise.
87222         * m4/group-member.m4: Likewise.
87223         * m4/jm-macros.m4: Likewise.
87224         * m4/lstat.m4: Likewise.
87225         * m4/malloc.m4: Likewise.
87226         * m4/memcmp.m4: Likewise.
87227         * m4/nanosleep.m4: Likewise.
87228         * m4/putenv.m4: Likewise.
87229         * m4/realloc.m4: Likewise.
87230         * m4/regex.m4: Likewise.
87231         * m4/stat.m4: Likewise.
87232         * m4/strftime.m4: Likewise.
87233
87234 2000-07-02  Jim Meyering  <meyering@lucent.com>
87235
87236         * lib/quotearg.c (mbstate_t): Don't define here.
87237
87238 2000-07-02  Jim Meyering  <meyering@lucent.com>
87239
87240         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87241
87242 2000-07-01  Jim Meyering  <meyering@lucent.com>
87243
87244         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87245
87246 2000-07-01  Jim Meyering  <meyering@lucent.com>
87247
87248         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87249         problem.
87250
87251 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87252
87253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87254         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87255
87256 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87257
87258         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87259         per change in ../m4/ls-mntd-fs.m4.
87260         (read_filesystem_list): Ignore symbolic links.
87261
87262 2000-06-29  Jim Meyering  <meyering@lucent.com>
87263
87264         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87265         for declaration of strcmp.
87266
87267         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87268
87269         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87270         Avoid warning by casting result to `char *' to remove `const'.
87271
87272 2000-06-28  Jim Meyering  <meyering@lucent.com>
87273
87274         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87275         included by quotearg.c, for which we perform this test.  From
87276         Bruno Haible.
87277
87278 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87279
87280         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87281         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87282         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87283
87284 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87285
87286         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87287
87288 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87289
87290         savedir now sets errno on failure and invokes xmalloc to get memory.
87291         Fix a couple of other minor bugs while we're at it.
87292
87293         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87294         (NAMLEN): Remove macro.
87295         (malloc, realloc): Remove decls.
87296         (stpcpy): Likewise.
87297         ("xalloc.h"): Include.
87298         (NAME_SIZE_DEFAULT): New macro.
87299         (savedir): Use xmalloc / xrealloc to allocate memory.
87300         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87301         Skip "" directory entries.
87302         Use strlen to calculate directory entry length, since the old method
87303         is rarely used these days and isn't worth supporting.
87304         Don't use a pointer after freeing it.
87305         Check for integer overflow when calculating allocation size.
87306         Use memcpy to copy entries, instead of stpcpy.
87307         Set errno properly when returning NULL.
87308         Check for readdir error.
87309
87310 2000-06-26  Jim Meyering  <meyering@lucent.com>
87311
87312         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87313
87314 2000-06-25  Jim Meyering  <meyering@lucent.com>
87315
87316         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87317         Linux header bug when _XOPEN_SOURCE is defined to 500.
87318
87319 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87320
87321         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87322         deficiency.
87323
87324 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87325
87326         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87327         Include xalloc.h.
87328         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87329
87330 2000-06-24  Jim Meyering  <meyering@lucent.com>
87331
87332         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87333         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87334         for which strerror does return char*, but which lacks a conveniently
87335         accessible declaration of the function.  If the compile-test says
87336         strerror_r doesn't work, then resort to a `run'-test that works on
87337         BeOS and segfaults on DEC Unix.
87338
87339 2000-06-24  Jim Meyering  <meyering@lucent.com>
87340
87341         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87342
87343 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87344
87345         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87346         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87347
87348 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87349
87350         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87351         (mbrtowc, mbstate_t): Define substitutes if
87352         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87353         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87354         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87355
87356 2000-06-23  Jim Meyering  <meyering@lucent.com>
87357
87358         * m4/afs.m4: Add missing AC_MSG_RESULT.
87359         Reported by Bruno Haible.
87360
87361         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87362         Suggestion from Bruno Haible.
87363
87364 2000-06-23  Jim Meyering  <meyering@lucent.com>
87365
87366         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87367
87368 2000-06-21  Jim Meyering  <meyering@lucent.com>
87369
87370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87371
87372 2000-06-21  Jim Meyering  <meyering@lucent.com>
87373
87374         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87375         (noinst_HEADERS): Add getstr.h.
87376
87377         * lib/getline.c (getstr): Move into a separate file.
87378         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87379         the following changes: new parameter, delim2; both delim[12]
87380         parameters have type `int', not `char'.  The latter would lose
87381         with 8-bit delimiters.
87382         * lib/getstr.h: New file.
87383
87384 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87385
87386         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87387         than 1024, return a memory chunk of least possible size, instead
87388         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87389         Use free/xmalloc instead of xrealloc to avoid copying for very long
87390         paths.
87391
87392 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87393
87394         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87395         the empty string.
87396
87397 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87398
87399         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87400         address, not strdup.  Include <stdlib.h> and don't declare free().
87401
87402 2000-06-19  Jim Meyering  <meyering@lucent.com>
87403
87404         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87405
87406 2000-06-18  Jim Meyering  <meyering@lucent.com>
87407
87408         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87409
87410         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87411         `checking whether...' message to be consistent with that of the
87412         lstat test.
87413
87414 2000-06-18  Jim Meyering  <meyering@lucent.com>
87415
87416         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87417         Besides, these days every porting target provides a mkdir function.
87418
87419         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87420         needed. (this snippet comes from src/system.h).
87421
87422 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87423
87424         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87425
87426 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87427
87428         * lib/human.c (adjust_value): New function.
87429         (human_readable_inexact): Apply rounding style even when
87430         printing approximate values.
87431
87432 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87433
87434         * lib/human.c (human_readable_inexact): Allow an input block
87435         size that is not a multiple of the output block size, and vice versa.
87436         Reported by Piergiorgio Sartor.
87437
87438 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87439
87440         * lib/getdate.y (get_date): Apply relative times after time
87441         zone indicator, not before.  Reported by Todd A. Jacobs.
87442
87443 2000-06-13  Jim Meyering  <meyering@lucent.com>
87444
87445         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87446
87447         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87448
87449 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87450
87451         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87452
87453 2000-06-12  Jim Meyering  <meyering@lucent.com>
87454
87455         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87456         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87457         optional argument.
87458         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87459         the optional argument, `lib'.
87460
87461 2000-06-08  Jim Meyering  <meyering@lucent.com>
87462
87463         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87464
87465 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87466
87467         Rewrite largefile configuration so that we don't need to run
87468         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87469         AC_CANONICAL_HOST in configure.in -- jmm]
87470
87471         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87472         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87473         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87474         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87475         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87476         All uses changed.
87477         Instead of inspecting the output of getconf, try to compile the
87478         test program without and with the macro definition.
87479         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87480         for getconf.  Instead, check for the needed flags by compiling
87481         test programs.
87482
87483 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87484
87485         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87486
87487 2000-06-04  Jim Meyering  <meyering@lucent.com>
87488
87489         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87490         SunOS 4.1.4 for which gid_t is an unsigned type.
87491
87492 2000-06-03  Jim Meyering  <meyering@lucent.com>
87493
87494         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87495         now that autoconf requires that.
87496
87497         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87498         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87499         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87500
87501 2000-06-03  Jim Meyering  <meyering@lucent.com>
87502
87503         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87504
87505 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87506
87507         * m4/glibc21.m4: New file.
87508         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87509
87510 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87511
87512         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87513         newer, don't install charset.alias.
87514         * lib/config.charset: Change the Linux/glibc rules so they become empty
87515         on glibc-2.1 or newer.
87516
87517 2000-06-02  Jim Meyering  <meyering@lucent.com>
87518
87519         * lib/mountlist.c: Back out last change.  Instead, do this...
87520         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87521         me_dummy member using the same `ignore'-testing code.
87522         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87523         fs_type strings.
87524         From Mark D. Roth.
87525
87526 2000-05-29  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87529         mounts with the `ignore' attribute.  Based on a patch from
87530         Mark D. Roth.
87531
87532 2000-05-28  Jim Meyering  <meyering@lucent.com>
87533
87534         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87535         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87536         * m4/stat.m4: Likewise.
87537         * m4/lstat.m4: Likewise.
87538         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87539
87540         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87541         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87542
87543 2000-05-26  Jim Meyering  <meyering@lucent.com>
87544
87545         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87546
87547 2000-05-24  Jim Meyering  <meyering@lucent.com>
87548
87549         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87550         autoconf requires that.
87551         * m4/lib-check.m4: Likewise.
87552         * m4/jm-macros.m4: Likewise.
87553         * m4/strftime.m4: Likewise.
87554
87555         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87556         AC_CHECK_DECLS, now that autoconf requires that.
87557
87558 2000-05-22  Jim Meyering  <meyering@lucent.com>
87559
87560         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87561         * m4/lstat.m4: Likewise.
87562
87563 2000-05-22  Jim Meyering  <meyering@lucent.com>
87564
87565         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87566
87567 2000-05-20  Jim Meyering  <meyering@lucent.com>
87568
87569         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87570         (jm_PREREQ): Use it.
87571
87572 2000-05-18  Jim Meyering  <meyering@lucent.com>
87573
87574         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87575         back, too, since it may have been modified by allocate_entry.
87576         (hash_delete): Rewrite to use neither the assignment operator
87577         nor the comma operator in an if-expression.
87578
87579 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87580
87581         * lib/closeout.c:
87582         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87583         Remove; no longer needed.
87584         "quotearg.h": Add include.
87585         (file_name): Do not bother to explicitly initialize to NULL; it's less
87586         efficient on some hosts.
87587         (close_stdout_status): Remove test as to whether stdout was already
87588         closed; it breaks for the case "echo x | sort >&-".
87589         Quote file name colons.
87590         Do not assume that _("write error") lacks format strings.
87591
87592 2000-05-15  Jim Meyering  <meyering@lucent.com>
87593
87594         * lib/version-etc.c (version_etc_copyright): Update the copyright
87595         string used in all --version output.
87596
87597 2000-05-14  Jim Meyering  <meyering@lucent.com>
87598
87599         * lib/closeout.c (close_stdout_set_file_name): New function.
87600         (close_stdout_status): Use new file-scoped global.
87601         Return right away if fstat says the stdout file descriptor is invalid.
87602         * lib/closeout.h (close_stdout_set_file_name): Declare.
87603
87604 2000-05-10  Jim Meyering  <meyering@lucent.com>
87605
87606         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87607         (close_stdout_set_status): New function.
87608         * lib/closeout.h (close_stdout_set_status): Declare.
87609
87610 2000-05-09  Jim Meyering  <meyering@lucent.com>
87611
87612         * m4/gettext.m4: Rename this...
87613         * m4/libintl.m4: ...to this.
87614
87615 2000-05-08  Jim Meyering  <meyering@lucent.com>
87616
87617         * lib/long-options.c: Don't include closeout.h.
87618         (parse_long_options): Don't call close_stdout for --version.
87619
87620 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87621
87622         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87623         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87624         2.1.3 bug.  This avoids a clash when files like regex.c define
87625         _GNU_SOURCE.
87626
87627 2000-05-06  Jim Meyering  <meyering@lucent.com>
87628
87629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87630         (AC_REPLACE_FUNCS): Add strnlen.
87631
87632         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87633         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87634
87635         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87636         AC_SEARCH_LIBS call for nanosleep.
87637         (LIB_NANOSLEEP): Set and AC_SUBST.
87638
87639 2000-05-06  Jim Meyering  <meyering@lucent.com>
87640
87641         * lib/strnlen.c: Undefine __strnlen and strnlen.
87642         [!weak_alias]: Define __strnlen to strnlen.
87643
87644         * lib/atexit.c: New file, from libiberty.
87645
87646 2000-05-06  Jim Meyering  <meyering@lucent.com>
87647
87648         * lib/closeout.c (close_stdout_status): Also check for errors on the
87649         stderr stream.
87650
87651 2000-05-05  Jim Meyering  <meyering@lucent.com>
87652
87653         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87654         AC_SEARCH_LIBS call for clock_gettime.
87655         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87656
87657         * m4/search-libs.m4: Update from autoconf.
87658
87659         su doesn't work on Solaris 2.6.
87660         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87661         <shadow.h>.  Reported by Dragos Harabor.
87662
87663 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87664
87665         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87666         memcpy instead of xmalloc, xrealloc, path_concat.
87667         (locale_charset): Treat empty environment variables as absent.
87668         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87669
87670 2000-05-04  Jim Meyering  <meyering@lucent.com>
87671
87672         * lib/getopt.c: Update from glibc.
87673         * lib/obstack.c: Likewise.
87674         * lib/obstack.h: Likewise.
87675         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87676         file
87677
87678         * lib/regex.h: Likewise.
87679         * lib/strndup.c: Likewise.
87680         * lib/strnlen.c: New file, from glibc.
87681
87682 2000-05-03  Jim Meyering  <meyering@lucent.com>
87683
87684         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87685
87686 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87687
87688         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87689         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87690         compile-time test, rather than inspecting host and OS, to
87691         decide whether to define _LARGEFILE_SOURCE.
87692
87693 2000-05-01  Jim Meyering  <meyering@lucent.com>
87694
87695         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87696
87697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87698         Based on a patch from Bruno Haible.
87699
87700 2000-05-01  Jim Meyering  <meyering@lucent.com>
87701
87702         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87703
87704 2000-04-29  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/path-concat.c: Declare strdup only if it's not defined.
87707         * lib/canon-host.c: Likewise.
87708
87709 2000-04-28  Jim Meyering  <meyering@lucent.com>
87710
87711         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87712         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87713         is included first, then limits.h is included by locale.h by libintl.h.
87714         From John David Anglin.
87715
87716 2000-04-25  Jim Meyering  <meyering@lucent.com>
87717
87718         * lib/makepath.c (S_IRWXUGO): Define.
87719         (make_path): Always perform explicit chmod if MODE specifies any
87720         of the `special' permission bits.  Prompted by a bug report against
87721         install from Mate Wierdl and Joost van Baal.
87722
87723 2000-04-18  Jim Meyering  <meyering@lucent.com>
87724
87725         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87726         (jm_PREREQ): Use it.
87727
87728 2000-04-18  Jim Meyering  <meyering@lucent.com>
87729
87730         * lib/README: New file.
87731
87732         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87733         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87734
87735 2000-04-17  Jim Meyering  <meyering@lucent.com>
87736
87737         Get it right :-)
87738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87739         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87740         Suggestion from Akim Demaille.
87741
87742 2000-04-17  Jim Meyering  <meyering@lucent.com>
87743
87744         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87745         the definition of it to rpl_strftime also defined-away the system's
87746         declaration.
87747
87748 2000-04-15  Jim Meyering  <meyering@lucent.com>
87749
87750         Use `C' to denote so-called `contiguous' files, the same way
87751         that tar does.
87752         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87753         (ftypelet): Use S_ISCTG.
87754         From Michael Deutschmann.
87755
87756 2000-04-14  Jim Meyering  <meyering@lucent.com>
87757
87758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87759         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87760         clobbered.
87761
87762 2000-04-14  Jim Meyering  <meyering@lucent.com>
87763
87764         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87765
87766 2000-04-13  Jim Meyering  <meyering@lucent.com>
87767
87768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87769         AH_VERBATIM to insert required #ifndef into config.h.in.
87770         Suggestion from Akim Demaille.
87771
87772 2000-04-12  Jim Meyering  <meyering@lucent.com>
87773
87774         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87775         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87776         Christian Krackowizer.
87777
87778         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87779         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87780         (AC_SYS_LARGEFILE): Require.
87781         (AM_C_PROTOTYPES): Require.
87782
87783 2000-04-08  Jim Meyering  <meyering@lucent.com>
87784
87785         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87786         names don't conflict.  Reported by Eli Zaretskii.
87787
87788 2000-04-07  Jim Meyering  <meyering@lucent.com>
87789
87790         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87791         sys/types.h, to work around system header problems on AIX 3.2.5.
87792         From Bruno Haible.
87793
87794 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87795
87796         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87797         bug.  Deal with the different error behavior of Irix iconv.
87798
87799 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87800
87801         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87802         IRIX if the installer said otherwise.
87803
87804 2000-04-05  Jim Meyering  <meyering@lucent.com>
87805
87806         Portability tweaks required for ultrix4.3.
87807         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87808         (jm_CHECK_DECLS): Add getutent to the list of functions.
87809         (_jm_DECL_HEADERS): Add utmpx.h.
87810         From John David Anglin.
87811
87812         * m4/strftime.m4: Back out the 2000-04-02 change.
87813         Instead of that change, simply undefine putenv in the test program.
87814
87815 2000-04-05  Jim Meyering  <meyering@lucent.com>
87816
87817         Portability tweaks required for ultrix4.3.
87818         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87819         getutent.
87820         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87821         * lib/canon-host.c: Declare strdup.
87822         * lib/path-concat.c: Likewise.
87823         From John David Anglin.
87824
87825 2000-04-04  Jim Meyering  <meyering@lucent.com>
87826
87827         Be more DOS 8.3-friendly.
87828         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87829         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87830         * lib/Makefile.am: Reflect renaming.
87831         Reported by Eli Zaretskii.
87832
87833         Use a temporary file name that won't clash with `charset.alias'
87834         in the DOS 8.3 name space.
87835         * lib/Makefile.am (charset_tmp): Define.
87836         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87837         (uninstall-local): Likewise.
87838         Reported by Eli Zaretskii.
87839
87840 2000-04-03  Jim Meyering  <meyering@lucent.com>
87841
87842         * m4/gettext.m4: Fix typo in comment.
87843
87844         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87845         textutils/configure.in).  Suggestion from Paul Eggert.
87846         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87847
87848 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87849
87850         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87851         variable in the shell rather than using putenv, which isn't
87852         portable.  This avoids the configure-time inter-test dependency
87853         on the potentially-renamed putenv function.
87854
87855 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87856
87857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87858         before checking struct stat.st_blksize, so that
87859         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87860
87861 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87862
87863         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87864         since strftime.c uses HAVE_STRFTIME to decide whether to use
87865         the underlying strftime.
87866
87867 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87868
87869         * lib/time/strftime.c (my_strftime): Make sure we call the system
87870         strftime, not ourselves, when invoking the underlying strftime.
87871
87872 2000-03-24  Jim Meyering  <meyering@lucent.com>
87873
87874         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87875         (charset_alias): Define.
87876         (install-exec-local): Factor out common code.
87877         (uninstall-local): Split lines longer than 80.
87878         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87879         (SUFFIXES): Define.
87880         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87881         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87882
87883 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87884
87885         * lib/config.charset: Output a line containing "Packages using this
87886         file".
87887         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87888         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87889         ref-del.sed): New rules.
87890
87891 2000-03-17  Jim Meyering  <meyering@lucent.com>
87892
87893         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87894         Otherwise, include <strings.h>
87895
87896 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87897
87898         * lib/unicodeio.c (utf8_wctomb): New function.
87899         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87900         format instead of in UCS-4 with platform dependent endianness.
87901
87902 2000-03-10  Jim Meyering  <meyering@lucent.com>
87903
87904         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87905         From Marco Franzen.
87906
87907 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87908
87909         * lib/savedir.c (savedir): Work even if directory size is
87910         negative; this can happen with some screwy NFS configurations.
87911
87912 2000-03-06  Jim Meyering  <meyering@lucent.com>
87913
87914         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87915         if it's NULL (because we ran out of memory).  From Bruno Haible.
87916
87917 2000-03-05  Jim Meyering  <meyering@lucent.com>
87918
87919         * lib/localcharset.c ("path-concat.h"): Include.
87920         (get_charset_aliases): Use path_concat instead of ANSI string
87921         concatenation.
87922
87923         * lib/unicodeio.h (PARAMS): Define.
87924         Use it to guard prototype.
87925
87926 2000-03-04  Jim Meyering  <meyering@lucent.com>
87927
87928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87929         for lib/localcharset.c.
87930
87931 2000-03-04  Jim Meyering  <meyering@lucent.com>
87932
87933         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87934         installing into it.
87935         (uninstall-local): Uncomment this rule so `make distcheck' works
87936         once again.
87937
87938         * lib/unicodeio.c (<errno.h>): Include it.
87939         (errno): Declare if not defined.
87940
87941         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87942
87943         * lib/config.charset: New version, incorporating remarks from a linux
87944         i18n mailing list.  From Bruno Haible.
87945
87946 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87947
87948         * m4/codeset.m4: New file.
87949         * m4/iconv.m4: New file.
87950         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87951
87952 2000-03-03  Jim Meyering  <meyering@lucent.com>
87953
87954         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87955
87956 2000-03-02  Jim Meyering  <meyering@lucent.com>
87957
87958         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87959         the messages come out on separate lines.
87960
87961         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87962         rather than jm_CHECK_DECLARATIONS.
87963         * m4/decl.m4: Remove now-unused file.
87964
87965         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87966         geteuid.
87967
87968 2000-03-02  Jim Meyering  <meyering@lucent.com>
87969
87970         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87971
87972 2000-03-01  Jim Meyering  <meyering@lucent.com>
87973
87974         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87975         * lib/unicodeio.c: Likewise.
87976
87977 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87978
87979         * lib/config.charset: New file.
87980         * lib/localcharset.c: New file.
87981         * lib/unicodeio.h, lib/unicodeio.c: New files.
87982         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87983         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87984         (noinst_HEADERS): Add unicodeio.h.
87985         (all-local, install-exec-local, charset.alias): New targets.
87986
87987 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87988
87989         * lib/quotearg.c (ALERT_CHAR): New macro.
87990         (quotearg_buffer_restyled): Use it.
87991
87992 2000-02-27  Jim Meyering  <meyering@lucent.com>
87993
87994         * m4/check-decl.m4: Add getenv to the list.
87995
87996 2000-02-27  Jim Meyering  <meyering@lucent.com>
87997
87998         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87999         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88000
88001         * lib/backupfile.c: Guard inclusion of stdlib.h with
88002         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88003         Declare malloc if needed.
88004
88005         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88006         `#ifndef HAVE_DECL..'
88007         now that autoconf always defines the HAVE_DECL_ symbols.
88008         * lib/human.c: Likewise.
88009         * lib/same.c: Likewise.
88010         * lib/strtoumax.c: Likewise.
88011
88012         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88013         declaration check was not run.
88014         * lib/hash.c: Likewise.
88015         * lib/human.c: Likewise.
88016         * lib/same.c: Likewise.
88017         * lib/strtoumax.c: Likewise.
88018
88019         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88020         `.', then first look up the entire `.'-containing string as a login
88021         name.
88022
88023 2000-02-23  Jim Meyering  <meyering@lucent.com>
88024
88025         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88026         in place of my hack.
88027
88028 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88029
88030         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88031         (textint): New typedef.
88032         (parser_control): Member year changed from int to textint.
88033         All uses changed.
88034         (YYSTYPE): Removed; replaced by %union with int and textint members.
88035         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88036         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88037         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88038         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88039         (date, number, to_year): Use width of number in digits, not its value,
88040         to determine whether it's a 2-digit year, or a 2-digit time.
88041         (yylex): Store number of digits of numeric tokens.
88042         Reported by John Kendall.
88043
88044         (parser_control): Changed from struct parser_control to typedef (for
88045         consistency).  All uses changed.
88046
88047         (tID): Removed; not used.
88048         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88049
88050 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88051
88052         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88053         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88054
88055 2000-02-12  Jim Meyering  <meyering@lucent.com>
88056
88057         * lib/userspec.c (ISDIGIT): Define it.
88058         (isdigit): Remove definition.
88059         (is_number): Use ISDIGIT, not isdigit.
88060         <libintl.h>: Include.
88061         (_ and N_): Define.
88062         (parse_user_spec): Mark translatable strings.
88063
88064 2000-02-10  Jim Meyering  <meyering@lucent.com>
88065
88066         With these changes, nanosleep.[ch] are finally enough like the other
88067         lib/* replacement files to compile on a few more losing systems.
88068
88069         * lib/nanosleep.h: Don't include config.h.
88070         Remove prototype from declaration of nanosleep.
88071         (PARAMS): Remove now-unneeded definition.
88072         * lib/nanosleep.c: #undef nanosleep.
88073         (rpl_nanosleep): Rename from nanosleep.
88074
88075 2000-02-10  Jim Meyering  <meyering@lucent.com>
88076
88077         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88078         gnu_nanosleep to rpl_nanosleep.
88079
88080 2000-02-09  Jim Meyering  <meyering@lucent.com>
88081
88082         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88083         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88084
88085 2000-02-08  Akim Demaille  <akim@epita.fr>
88086
88087         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88088         `[' and `]' and remove uses of `changequote'.
88089         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88090         (AC_SYS_LARGEFILE): Likewise.
88091         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88092         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88093         of changequote.
88094         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88095         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88096         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88097         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88098
88099 2000-02-05  Jim Meyering  <meyering@lucent.com>
88100
88101         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88102         Remove explicit use of AC_HEADER_TIME.  It is required by
88103         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88104         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88105         in autoconf whereby the expansion of the latter ended up preceding
88106         the expansion of its prerequisite, AC_HEADER_TIME.
88107         Reported by Volker Borchert.
88108
88109 2000-02-03  Jim Meyering  <meyering@lucent.com>
88110
88111         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88112
88113 2000-02-03  Jim Meyering  <meyering@lucent.com>
88114
88115         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88116         rather than with `#if HAVE_UTMPNAME'.
88117
88118 2000-02-02  Jim Meyering  <meyering@lucent.com>
88119
88120         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88121         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88122         Reported by Eli Zaretskii.
88123
88124 2000-02-01  Jim Meyering  <meyering@lucent.com>
88125
88126         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88127
88128 2000-01-31  Jim Meyering  <meyering@lucent.com>
88129
88130         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88131         functions.  Add the time.h and sys/time.h headers along with the
88132         AC_REQUIRE'ment of AC_HEADER_TIME.
88133
88134 2000-01-31  Jim Meyering  <meyering@lucent.com>
88135
88136         * lib/nanosleep.h (nanosleep): Guard declaration with
88137         `#if ! HAVE_DECL_NANOSLEEP'.
88138         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88139         the declaration in that vendor's sys/timers.h.
88140         Reported by Christian Krackowizer.
88141
88142         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88143         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88144         (ISPRINT): Likewise.
88145         Reported by Tom Tromey.
88146
88147 2000-01-30  Jim Meyering  <meyering@lucent.com>
88148
88149         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88150
88151         * m4/prereq.m4 (utmp_includes): Define.
88152         Check for ut_user and ut_name members in both struct utmpx
88153         and struct utmp.
88154
88155 2000-01-30  Jim Meyering  <meyering@lucent.com>
88156
88157         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88158         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88159         header files where only utmpx.ut_user is declared.
88160
88161         * lib/readutmp.h (UT_USER): Define.
88162
88163 2000-01-29  Jim Meyering  <meyering@lucent.com>
88164
88165         * m4/lib-check.m4: New file containing library-related checks from
88166         fileutils and sh-utils (textutils had none).
88167
88168 2000-01-28  Jim Meyering  <meyering@lucent.com>
88169
88170         * m4/perl.m4: Change format of warning message to look more like that
88171         from the missing script.  Suggestion from François Pinard.
88172
88173 2000-01-25  Jim Meyering  <meyering@lucent.com>
88174
88175         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88176         well as time.h in the compile check.
88177         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88178         Fix typo in cross-compiling case: s/yes/no/.
88179
88180 2000-01-23  Jim Meyering  <meyering@lucent.com>
88181
88182         * m4/jm-macros.m4: Move df-related tests here from
88183         fileutils/configure.in
88184
88185         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88186         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88187
88188         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88189         s/space/ac_fsusage_space/.
88190         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88191
88192         * m4/ftruncate.m4: New file (derived from part of
88193         fileutils/configure.in).
88194         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88195         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88196
88197         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88198         AC_SUBST these here, rather than just in sh-util/configure.in, so
88199         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88200         all the same.
88201         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88202         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88203         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88204         (AC_SUBST(POW_LIBM)): Likewise.
88205         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88206
88207 2000-01-23  Jim Meyering  <meyering@lucent.com>
88208
88209         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88210         obstack.c.
88211
88212 2000-01-22  Jim Meyering  <meyering@lucent.com>
88213
88214         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88215
88216         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88217
88218         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88219         configure.in
88220         (AC_CHECK_HEADERS): Likewise for sh-utils.
88221         (AC_CHECK_HEADERS): Likewise for textutils.
88222         Merge the three lists of headers.
88223
88224         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88225         from fileutils' configure.in.
88226
88227         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88228         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88229         check-decl.m4.
88230
88231         * m4/check-decl.m4: Use #if rather than #ifdef.
88232         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88233         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88234         (_jm_DECL_HEADERS): Define new function.
88235         (jm_CHECK_DECLARATIONS): Require it.
88236
88237 2000-01-22  Jim Meyering  <meyering@lucent.com>
88238
88239         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88240         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88241         Required for some AIX systems.  Reported by Christian Krackowizer.
88242         [TESTING] (main): New function.
88243
88244         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88245         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88246         letters.
88247
88248         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88249         iswprint.
88250
88251         * lib/strverscmp.c (ISDIGIT): Define.
88252         (strverscmp): Use ISDIGIT, not isdigit.
88253
88254 2000-01-19  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88257         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88258         defines `struct timespec' in <sys/time.h>
88259
88260         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88261         Thanks to Akim for explaining.
88262
88263 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88264
88265         * lib/nanosleep.c (nanosleep):
88266         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88267         POSIX.1 doesn't require SA_INTERRUPT and some systems
88268         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88269         it's been part of POSIX.1 since day 1 (in 1988).
88270
88271 2000-01-17  Jim Meyering  <meyering@lucent.com>
88272
88273         * lib/interlock: Remove unused file.  Reported by François Pinard.
88274
88275 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88276
88277         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88278         alert, backslash, formfeed, and vertical tab unnecessarily in
88279         shell quoting style.
88280
88281 2000-01-16  Jim Meyering  <meyering@lucent.com>
88282
88283         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88284         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88285         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88286         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88287
88288 2000-01-16  Jim Meyering  <meyering@lucent.com>
88289
88290         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88291         because the latter didn't work.
88292
88293 2000-01-15  Jim Meyering  <meyering@lucent.com>
88294
88295         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88296         (AC_REPLACE_FUNCS): Add memcpy and memset.
88297         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88298         Add strpbrk.
88299         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88300
88301 2000-01-12  Jim Meyering  <meyering@lucent.com>
88302
88303         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88304         (jm_PREREQ): Use it.
88305         (jm_PREREQ_READUTMP): New macro.
88306         (jm_PREREQ): Use it.
88307
88308 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88309
88310         Quote multibyte characters correctly.
88311         * m4/c-bs-a.m4: New file.
88312         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88313         (jm_PREREQ): Use it.
88314
88315 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88316
88317         * m4/uintmax_t.m4: Port to autoconf 2.13.
88318
88319 2000-01-08  Jim Meyering  <meyering@ascend.com>
88320
88321         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88322         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88323
88324 2000-01-04  Jim Meyering  <meyering@ascend.com>
88325
88326         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88327         jm_STRUCT_DIRENT_D_TYPE.
88328         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88329         jm_STRUCT_DIRENT_D_INO.
88330         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88331         jm_STRUCT_UTIMBUF.
88332         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88333         renamings.
88334         * m4/utime.m4: Likewise.
88335
88336         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88337         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88338
88339 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88340
88341         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88342         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88343
88344 2000-01-02  Jim Meyering  <meyering@ascend.com>
88345
88346         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88347         remember if this is necessary.
88348
88349 1999-12-26  Jim Meyering  <meyering@ascend.com>
88350
88351         * m4/jm-macros.m4: Use it here.
88352         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88353
88354 1999-12-23  Jim Meyering  <meyering@ascend.com>
88355
88356         * m4/jm-macros.m4: Check for clock_gettime (moved from
88357         fileutils/configure.in)
88358         Check for gettimeofday.
88359
88360 1999-12-20  Jim Meyering  <meyering@ascend.com>
88361
88362         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88363         autoconf-2.14a-1999-12-20.
88364
88365 1999-12-19  Jim Meyering  <meyering@ascend.com>
88366
88367         * m4/lstat-slash.m4: New file.
88368         * m4/jm-macros.m4: Use the new macro:
88369         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88370
88371 1999-12-07  Jim Meyering  <meyering@ascend.com>
88372
88373         * m4/perl.m4: Require that File::Compare be available, too.
88374         Too many systems seem to lack it.
88375
88376         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88377         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88378
88379 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88380
88381         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88382         problem with the QNX 4.25 shell, which doesn't propagate exit
88383         status of failed commands inside shell assignments.
88384
88385 1999-11-17  Jim Meyering  <meyering@ascend.com>
88386
88387         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88388
88389 1999-11-07  Jim Meyering  <meyering@ascend.com>
88390
88391         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88392
88393 1999-11-06  Jim Meyering  <meyering@ascend.com>
88394
88395         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88396         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88397
88398 1999-11-05  Jim Meyering  <meyering@ascend.com>
88399
88400         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88401         configure.in of textutils, fileutils, and sh-utils into this one
88402         (shared between those packages) file.
88403         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88404         AC_STRUCT_ST_BLKSIZE.
88405
88406 1999-11-03  Jim Meyering  <meyering@ascend.com>
88407
88408         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88409         of AC_CHECK_TYPE checks includes unistd.h.
88410         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88411         Suggestion from Akim Demaille.
88412
88413 1999-10-30  Jim Meyering  <meyering@ascend.com>
88414
88415         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88416         m4-quoted string.
88417         * m4/ls-mntd-fs.m4: Likewise.
88418         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88419         * m4/jm-winsz1.m4: Likewise.
88420
88421         * m4/const.m4: Remove file, since the fix made it into the experimental
88422         version of autoconf.
88423         * m4/mktime.m4: Likewise.
88424
88425         * m4/check-type.m4: Remove file, now that the latest version of
88426         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88427
88428         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88429         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88430         AC_CHECK_TYPE.
88431
88432 1999-10-04  Jim Meyering  <meyering@ascend.com>
88433
88434         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88435
88436 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88437
88438         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88439         2.95.1 bug with HP-UX 10.20.
88440
88441 1999-09-17  Jim Meyering  <meyering@ascend.com>
88442
88443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88444         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88445         due to missing strdup (against sh-utils-2.0).
88446
88447 1999-08-29  Jim Meyering  <meyering@ascend.com>
88448
88449         * m4/jm-macros.m4: Require jm_BISON.
88450         * m4/bison.m4: New file.
88451
88452 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88453
88454         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88455         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88456
88457 1999-08-05  Jim Meyering  <meyering@ascend.com>
88458
88459         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88460         to avoid conflicts with `conftest' on 8+3 filesystems.
88461         Suggestion from Eli Zaretskii.
88462
88463 1999-08-04  Jim Meyering  <meyering@ascend.com>
88464
88465         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88466         fileutils and sh-utils (textutils's getline test was inadequate).
88467         (AM_FUNC_GETLINE): Run this test.
88468         (AC_CHECK_FUNCS): Check for getdelim.
88469         Reported by Bob Proulx.
88470
88471 1999-08-02  Jim Meyering  <meyering@ascend.com>
88472
88473         * m4/jm-macros.m4: Add a comment.
88474
88475 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88476
88477         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88478         <inttypes.h> defines strtoumax as a macro (and not as a
88479         function).
88480
88481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88482
88483         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88484         that we can shift, multiply and divide unsigned long long
88485         values; Ultrix cc can't do it.
88486
88487 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88488
88489         * m4/mktime.m4: New file, which is a preview of what should appear
88490         in the next public autoconf release.
88491
88492 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88493
88494         * m4/lfs.m4: Remove this file.
88495         * m4/largefile.m4: New file.  It contains the old contents of
88496         lfs.m4, except that all names with prefix AC_LFS have been
88497         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88498         compatible with future autoconf versions.  Also, some minor m4
88499         quoting problems have been fixed.
88500
88501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88502
88503         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88504         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88505         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88506         and simplify the shell code.
88507
88508 1999-08-01  Jim Meyering  <meyering@ascend.com>
88509
88510         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88511         m4.
88512
88513 1999-07-20  Jim Meyering  <meyering@ascend.com>
88514
88515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88516
88517 1999-07-15  Jim Meyering  <meyering@ascend.com>
88518
88519         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88520
88521 1999-05-22  Jim Meyering  <meyering@ascend.com>
88522
88523         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88524
88525 1999-05-20  Jim Meyering  <meyering@ascend.com>
88526
88527         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88528         Add a colon after each `then' in case $4 is empty.
88529
88530 1999-05-16  Jim Meyering  <meyering@ascend.com>
88531
88532         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88533
88534 1999-05-10  Jim Meyering  <meyering@ascend.com>
88535
88536         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88537
88538         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88539         AC_FUNC_MKTIME.
88540
88541 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88542
88543         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88544
88545 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88546
88547         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88548         not CPPFLAGS, so that linking works correctly in IRIX.
88549
88550 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88551
88552         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88553
88554 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88555
88556         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88557         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88559         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88560         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88561
88562         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88563
88564 1999-04-20  Jim Meyering  <meyering@ascend.com>
88565
88566         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88567         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88568         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88569
88570 1999-04-18  Jim Meyering  <meyering@ascend.com>
88571
88572         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88573         * m4/jm-macros.m4: Use it.
88574
88575 1999-04-06  Jim Meyering  <meyering@ascend.com>
88576
88577         * m4/strftime.m4: Remove test for %f.
88578
88579 1999-03-29  Jim Meyering  <meyering@ascend.com>
88580
88581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88582         superset of the AC_TYPE_* checks in the textutils, fileutils,
88583         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88584         AC_TYPE_PID_T.
88585
88586 1999-03-28  Jim Meyering  <meyering@ascend.com>
88587
88588         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88589         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88590         replaced e.g., in the *.sh files of the sh-utils.
88591
88592 1999-03-20  Jim Meyering  <meyering@ascend.com>
88593
88594         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88595         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88596         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88597
88598 1999-03-19  Jim Meyering  <meyering@ascend.com>
88599
88600         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88601
88602 1999-03-12  Jim Meyering  <meyering@ascend.com>
88603
88604         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88605
88606 1999-03-07  Jim Meyering  <meyering@ascend.com>
88607
88608         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88609         declared.
88610
88611 1999-02-17  Jim Meyering  <meyering@ascend.com>
88612
88613         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88614         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88615
88616 1999-02-07  Jim Meyering  <meyering@ascend.com>
88617
88618         * m4/group-member.m4: New file -- extracted from sh-utils'
88619         configure.in.
88620
88621         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88622         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88623
88624 1999-02-06  Jim Meyering  <meyering@ascend.com>
88625
88626         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88627         * m4/fnmatch.m4: Likewise.
88628         * m4/getgroups.m4: Likewise.
88629         * m4/lstat.m4: Likewise.
88630         * m4/malloc.m4: Likewise.
88631         * m4/putenv.m4: Likewise.
88632         * m4/realloc.m4: Likewise.
88633         * m4/regex.m4: Likewise.
88634         * m4/stat.m4: Likewise.
88635         * m4/strftime.m4: Likewise.
88636         Suggestion from Alain Magloire.
88637
88638         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88639         * m4/fnmatch.m4: Likewise.
88640         * m4/getgroups.m4: Likewise.
88641         * m4/getline.m4: Likewise.
88642         * m4/lstat.m4: Likewise.
88643         * m4/malloc.m4: Likewise.
88644         * m4/memcmp.m4: Likewise.
88645         * m4/putenv.m4: Likewise.
88646         * m4/realloc.m4: Likewise.
88647         * m4/regex.m4: Likewise.
88648         * m4/stat.m4: Likewise.
88649         * m4/strftime.m4: Likewise.
88650         Suggestion from Alain Magloire.
88651
88652         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88653         an argument.
88654
88655         * m4/regex.m4: Add a run-time Test for proper operation of
88656         re_compile_pattern.
88657
88658 1999-01-31  Jim Meyering  <meyering@ascend.com>
88659
88660         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88661
88662 1999-01-30  Jim Meyering  <meyering@ascend.com>
88663
88664         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88665
88666         * m4/jm-mktime.m4: Make this a wrapper around the official
88667         AM_FUNC_MKTIME rather than my private copy, now that the official one
88668         is up to date.
88669         * m4/mktime.m4: Remove file.
88670
88671         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88672         * m4/uptime.m4: Likewise.
88673         * m4/uintmax_t.m4: Likewise.
88674
88675 1999-01-28  Jim Meyering  <meyering@ascend.com>
88676
88677         * m4/jm-macros.m4: Use jm_AFS.
88678         * m4/afs.m4: New file (from fileutils' configure.in).
88679
88680         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88681         * m4/chown.m4: Likewise.
88682         * m4/d-ino.m4: Likewise.
88683         * m4/d-type.m4: Likewise.
88684         * m4/fnmatch.m4: Likewise.
88685         * m4/getgroups.m4: Likewise.
88686         * m4/gettext.m4: Likewise.
88687         * m4/jm-mktime.m4: Likewise.
88688         * m4/jm-winsz2.m4: Likewise.
88689         * m4/lcmessage.m4: Likewise.
88690         * m4/ls-mntd-fs.m4: Likewise.
88691         * m4/malloc.m4: Likewise.
88692         * m4/memcmp.m4: Likewise.
88693         * m4/putenv.m4: Likewise.
88694         * m4/realloc.m4: Likewise.
88695         * m4/st_mtim.m4: Likewise.
88696         * m4/strftime.m4: Likewise.
88697
88698 1999-01-16  Jim Meyering  <meyering@ascend.com>
88699
88700         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88701         (ARGMATCH_DIE_DECL): Define.
88702
88703 1999-01-12  Jim Meyering  <meyering@ascend.com>
88704
88705         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88706         Reported by Lars Hecking.
88707
88708 1999-01-10  Jim Meyering  <meyering@ascend.com>
88709
88710         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88711         gross kludge.
88712         * m4/inttypes_h.m4: Likewise.
88713         * m4/lstat.m4: Likewise.
88714         * m4/malloc.m4: Likewise.
88715         * m4/readdir.m4: Likewise.
88716         * m4/realloc.m4: Likewise.
88717         * m4/st_dm_mode.m4: Likewise.
88718         * m4/stat.m4: Likewise.
88719         * m4/utimbuf.m4: Likewise.
88720         * m4/utimes.m4: Likewise.
88721
88722         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88723         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88724         comments in config.h.in are meaningful.
88725
88726         * m4/jm-macros.m4: Require autoconf-2.13 here.
88727
88728         * m4/regex.m4: By default, don't use the included regex.c on systems
88729         with glibc 2.  Suggestion from Uli Drepper.
88730
88731 1999-01-02  Jim Meyering  <meyering@ascend.com>
88732
88733         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88734
88735 1998-12-18  Jim Meyering  <meyering@ascend.com>
88736
88737         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88738         Based on a suggestion from Lars Hecking.
88739
88740 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88741
88742         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88743
88744 1998-11-16  Jim Meyering  <meyering@ascend.com>
88745
88746         * m4/lfs.m4: Double-quote the `uname...` expression.
88747
88748 1998-11-14  Jim Meyering  <meyering@ascend.com>
88749
88750         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88751         * m4/stat.m4: Likewise.
88752
88753 1998-11-03  Jim Meyering  <meyering@ascend.com>
88754
88755         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88756         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88757
88758 1998-10-18  Jim Meyering  <meyering@ascend.com>
88759
88760         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88761
88762 1998-10-17  Jim Meyering  <meyering@ascend.com>
88763
88764         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88765         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88766         calls for those previously hard-coded headers.  Instead, take a new
88767         parameter.
88768         (jm_CHECK_DECLARATIONS): Reflect interface change.
88769         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88770         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88771
88772         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88773
88774 1998-10-14  Jim Meyering  <meyering@ascend.com>
88775
88776         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88777         instead of "TZ=America/Vancouver".  From Paul Eggert.
88778
88779 1998-10-11  Jim Meyering  <meyering@ascend.com>
88780
88781         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88782         This adds a test for a recently added compatibility fix for mktime.c.
88783         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88784
88785 1998-09-27  Jim Meyering  <meyering@ascend.com>
88786
88787         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88788
88789         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88790         ../configure.in, including a change from Gordon Matzigkeit to allow
88791         cross-compiling for the Hurd.
88792
88793         * m4/glibc.m4: New file/macro to test for the GNU C Library
88794         versions 1 and 2.  From Gordon Matzigkeit.
88795         Indent.
88796
88797 1998-09-21  Jim Meyering  <meyering@ascend.com>
88798
88799         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88800
88801 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88802
88803         Port nanosecond-resolution times to UnixWare 2.1.2 and
88804         pedantic Solaris 2.6.
88805
88806         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88807         AC_STRUCT_ST_MTIM.
88808         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88809         Generate name of ns member, instead of just 1 or undef.
88810         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88811
88812 1998-08-15  Jim Meyering  <meyering@ascend.com>
88813
88814         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88815         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88816         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88817         instead of jm_TYPE_SSIZE_T.
88818
88819 1998-08-12  Jim Meyering  <meyering@ascend.com>
88820
88821         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88822
88823 1998-08-02  Jim Meyering  <meyering@ascend.com>
88824
88825         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88826         in acconfig.h manually.
88827
88828 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88829
88830         * m4/st_mtim.m4: New file.
88831
88832 1998-07-28  Jim Meyering  <meyering@ascend.com>
88833
88834         * m4/utimes.m4: Undef stat.
88835
88836 1998-07-25  Jim Meyering  <meyering@ascend.com>
88837
88838         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88839         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88840
88841 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88842
88843         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88844         uid and gid actually remain unchanged.
88845
88846 1998-07-07  Jim Meyering  <meyering@ascend.com>
88847
88848         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88849
88850 1998-07-04  Jim Meyering  <meyering@ascend.com>
88851
88852         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88853         to prove that this macro can be used in packages without regex.c.
88854
88855 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88856
88857         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88858         is to be used.
88859
88860 1998-07-03  Jim Meyering  <meyering@ascend.com>
88861
88862         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88863
88864         * m4/gettext.m4: New file -- from gettext-0.10.35.
88865         * m4/lcmessage.m4: Likewise.
88866         * m4/progtest.m4: Likewise.
88867
88868         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88869         * m4/jm-macros.m4: Require the new macro.
88870
88871 1998-06-29  Jim Meyering  <meyering@ascend.com>
88872
88873         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88874         for the definition of NGROUPS (used in a system header included
88875         by sys/mount.h).
88876
88877 1998-06-28  Jim Meyering  <meyering@ascend.com>
88878
88879         * m4/ls-mntd-fs.m4: New file.
88880         * m4/fstypename.m4: New file.
88881
88882         * m4/jm-macros.m4: Require the new macro.
88883         * m4/jm-glibc-io.m4: New file.
88884
88885 1998-05-19  Jim Meyering  <meyering@ascend.com>
88886
88887         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88888         * m4/lchown.m4: New file.
88889
88890         * m4/Makefile.am.in: New file.
88891         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88892
88893 1998-05-14  Jim Meyering  <meyering@ascend.com>
88894
88895         * m4/Makefile.am (EXTRA_DIST): Add them.
88896         * m4/jm-macros.m4: New file.
88897         * m4/utimbuf.m4: New file.
88898
88899 1998-05-12  Jim Meyering  <meyering@ascend.com>
88900
88901         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88902
88903 1998-05-11  Jim Meyering  <meyering@ascend.com>
88904
88905         * m4/isc-posix.m4: New file.
88906
88907 1998-05-10  Jim Meyering  <meyering@ascend.com>
88908
88909         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88910
88911 1998-05-09  Jim Meyering  <meyering@ascend.com>
88912
88913         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88914         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88915         with automake.
88916
88917         * m4/ssize_t.m4: New file.
88918         * m4/mktime.m4: Remove file -- the new automake has this now.
88919
88920 1998-04-26  Jim Meyering  <meyering@ascend.com>
88921
88922         * m4/assert.m4: New file.
88923         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88924
88925 1998-04-05  Jim Meyering  <meyering@ascend.com>
88926
88927         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88928         (jm_PREREQ): Use it here.
88929
88930 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88931
88932         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88933         in acconfig.h.
88934
88935 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88936
88937         * m4/prereq.m4: New file.
88938         * m4/error.m4: New file.
88939         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88940
88941 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88942
88943         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88944         cache-check for the same variable -- that defeated the purpose of
88945         the test; the test program was never run.  This was a problem only
88946         on systems with losing getline functions -- HP-UX 10.20 is one.
88947         Reported by Bjorn Helgaas.
88948
88949 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88950
88951         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88952
88953 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88954
88955         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88956
88957         * m4/const.m4: New file.  Use an initializer in this declaration
88958         typedef int charset[2]; const charset x;
88959         Reported by Bob Glickstein.
88960
88961 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88962
88963         * m4/chown.m4: Fix reversed types on -1 args to chown.
88964         From Kaveh Ghazi.
88965
88966 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88967
88968         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88969         Add lseek and memchr.
88970
88971         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88972         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88973         have a 20-character limit on names.
88974
88975 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88976
88977         * m4/inttypes_h.m4: New file.
88978         * m4/uintmax_t.m4: New file.
88979         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88980
88981
88982         -----
88983
88984         Local Variables:
88985         coding: utf-8
88986         End:
88987
88988         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88989
88990         Copying and distribution of this file, with or without
88991         modification, are permitted provided the copyright notice
88992         and this notice are preserved.